@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([[5684],{"./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:()=>UiPlaceholderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var placeholder_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.css?ngResource"),placeholder_componentngResource_default=__webpack_require__.n(placeholder_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiPlaceholderComponent=class UiPlaceholderComponent{label=(0,core.input)(null);static propDecorators={label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}]}};UiPlaceholderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-placeholder",template:"<span class=\"_label\">{{ label() ?? ('placeholder.label' | transloco) }}</span>\n",encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[placeholder_componentngResource_default()]})],UiPlaceholderComponent)},"./libs/ui/src/lib/layout/splitter/splitter.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>UiLayoutSplitterComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var splitter_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/splitter/splitter.component.css?ngResource"),splitter_componentngResource_default=__webpack_require__.n(splitter_componentngResource),_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"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),ngx_pwa_local_storage=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");const DIRECTIONS=new Set(["left","center","right","split"]),PANEL_ORDERS=new Set(["left-first","right-first"]);let UiLayoutSplitterComponent=class UiLayoutSplitterComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);storage=(0,_effect_chunk2.WQX)(ngx_pwa_local_storage.AX);id=(0,core.input)();defaultDirection=(0,core.input)("center");defaultPanelOrder=(0,core.input)("left-first");layoutAction=(0,core.input)(!0);themeAction=(0,core.input)(!0);animating=(0,core.output)();directionChange=(0,core.output)();direction=(0,_effect_chunk2.vPA)("center");panelOrder=(0,_effect_chunk2.vPA)("left-first");locked=(0,_effect_chunk2.vPA)(!1);zoomActive=(0,_effect_chunk2.vPA)(!1);fullscreenActive=(0,_effect_chunk2.vPA)(!1);syncActionStates(){this.zoomActive.set("zoom"===this.layoutService.settings.zoom),this.fullscreenActive.set("fullscreen"===this.layoutService.settings.fullscreen)}animate=(0,_effect_chunk2.vPA)(!1);ngOnInit(){this.direction.set(this.defaultDirection()),this.panelOrder.set(this.defaultPanelOrder());const key=this.storageKey();if(!key)return this.directionChange.emit(this.direction()),this.syncActionStates(),void this.enableAnimations();this.storage.get(key).subscribe(value=>{const state=value??{};state.direction&&DIRECTIONS.has(state.direction)&&this.direction.set(state.direction),state.panelOrder&&PANEL_ORDERS.has(state.panelOrder)&&(this.panelOrder.set(state.panelOrder),this.applyPanelOrder()),this.directionChange.emit(this.direction()),state.zoom&&this.layoutService.handleZoom(state.zoom),state.fullscreen&&this.layoutService.handleFullScreen(state.fullscreen),this.syncActionStates(),this.enableAnimations()})}enableAnimations(){setTimeout(()=>this.animate.set(!0))}leftPanel=(0,core.viewChild)("leftPanel");rightPanel=(0,core.viewChild)("rightPanel");panelObserver=null;ngAfterViewInit(){const left=this.leftPanel()?.nativeElement,right=this.rightPanel()?.nativeElement;left&&right&&(this.applyPanelOrder(),this.publishPanelWidths(left,right),"undefined"!=typeof ResizeObserver&&(this.panelObserver=new ResizeObserver(()=>this.publishPanelWidths(left,right)),this.panelObserver.observe(left),this.panelObserver.observe(right)))}ngOnDestroy(){this.panelObserver?.disconnect(),this.resumeTimer&&clearTimeout(this.resumeTimer)}publishPanelWidths(left,right){if(this.directionAnimating())return;const id=this.id(),write=(side,element)=>{const width=`${element.getBoundingClientRect().width}px`;document.body.style.setProperty(`--ui-splitter-${side}-width`,width),id&&document.body.style.setProperty(`--ui-splitter-${id}-${side}-width`,width)};write("left",left),write("right",right)}applyPanelOrder(){const left=this.leftPanel()?.nativeElement,right=this.rightPanel()?.nativeElement;if(!left||!right)return;const parent=left.parentElement;if(!parent)return;const rightFirst="right-first"===this.panelOrder(),first=rightFirst?right:left,second=rightFirst?left:right;if(first.nextElementSibling===second)return;const focused=document.activeElement instanceof HTMLElement&&parent.contains(document.activeElement)?document.activeElement:null;second.before(first),focused?.focus()}onSwapClick(){this.locked()||this.swapPanels()}onDirectionClick(type){this.locked()||this.setDirection(type)}onFullscreenClick(){this.locked()||this.fullscreen()}onZoomClick(){this.locked()||this.zoom()}onThemeClick(){this.locked()||this.theme()}swapPanels(){this.panelOrder.update(order=>"left-first"===order?"right-first":"left-first"),this.applyPanelOrder(),this.persist()}setDirection(type){this.direction.set(type),this.directionChange.emit(type),this.pauseMeasuring(),this.persist()}directionAnimating=(0,_effect_chunk2.vPA)(!1);resumeTimer=null;pauseMeasuring(){this.directionAnimating.set(!0),this.animating.emit(!0),this.resumeTimer&&clearTimeout(this.resumeTimer),this.resumeTimer=setTimeout(()=>this.resumeMeasuring(),1e3)}onDirectionSettled(event){event.target===event.currentTarget&&this.resumeMeasuring()}resumeMeasuring(){if(this.resumeTimer&&(clearTimeout(this.resumeTimer),this.resumeTimer=null),!this.directionAnimating())return;this.directionAnimating.set(!1),this.animating.emit(!1);const left=this.leftPanel()?.nativeElement,right=this.rightPanel()?.nativeElement;left&&right&&this.publishPanelWidths(left,right)}fullscreen(){this.layoutService.handleFullScreen(),this.syncActionStates(),this.persist()}zoom(){this.layoutService.handleZoom(),this.syncActionStates(),this.persist()}theme(){this.layoutService.handleTheme(null,null)}persist(){const key=this.storageKey();if(!key)return;const state={direction:this.direction(),panelOrder:this.panelOrder(),zoom:this.layoutService.settings.zoom,fullscreen:this.layoutService.settings.fullscreen};this.storage.set(key,state).subscribe()}storageKey(){const id=this.id();return id?`ui-layout-splitter:${id}`:null}static propDecorators={id:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"id",required:!1,transform:void 0}]}],defaultDirection:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"defaultDirection",required:!1,transform:void 0}]}],defaultPanelOrder:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"defaultPanelOrder",required:!1,transform:void 0}]}],layoutAction:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"layoutAction",required:!1,transform:void 0}]}],themeAction:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"themeAction",required:!1,transform:void 0}]}],animating:[{type:_debug_node_chunk.k7i,args:["animating"]}],directionChange:[{type:_debug_node_chunk.k7i,args:["directionChange"]}],leftPanel:[{type:core.ViewChild,args:["leftPanel",{isSignal:!0}]}],rightPanel:[{type:core.ViewChild,args:["rightPanel",{isSignal:!0}]}]}};UiLayoutSplitterComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-splitter",template:'<div class="_splitter">\n <nav class="_navigation">\n <div class="_actions">\n <ng-content select="[splitter-header]"></ng-content>\n </div>\n <div class="_display">\n <button\n class="ui-icon"\n [class.active]="direction() === \'right\'"\n [title]="\'splitter.direction.right\' | transloco"\n (click)="onDirectionClick(\'right\')"\n >\n border_right\n </button>\n <button\n class="ui-icon"\n [class.active]="direction() === \'center\'"\n [title]="\'splitter.direction.center\' | transloco"\n (click)="onDirectionClick(\'center\')"\n >\n border_vertical\n </button>\n <button\n class="ui-icon"\n [class.active]="direction() === \'left\'"\n [title]="\'splitter.direction.left\' | transloco"\n (click)="onDirectionClick(\'left\')"\n >\n border_left\n </button>\n <button\n class="ui-icon"\n [class.active]="direction() === \'split\'"\n [title]="\'splitter.direction.split\' | transloco"\n (click)="onDirectionClick(\'split\')"\n >\n border_horizontal\n </button>\n <button\n class="ui-icon"\n [class.active]="panelOrder() === \'right-first\'"\n [title]="\'splitter.swap\' | transloco"\n (click)="onSwapClick()"\n >\n swap_horiz\n </button>\n @if (layoutAction()) {\n <button\n class="ui-icon"\n [class.active]="fullscreenActive()"\n [title]="\'splitter.fullscreen\' | transloco"\n (click)="onFullscreenClick()"\n >\n zoom_out_map\n </button>\n }\n @if (layoutAction()) {\n <button\n class="ui-icon"\n [class.active]="zoomActive()"\n [title]="\'splitter.zoom\' | transloco"\n (click)="onZoomClick()"\n >\n center_focus_strong\n </button>\n }\n @if (themeAction()) {\n <button\n class="ui-icon"\n [title]="\'splitter.theme\' | transloco"\n (click)="onThemeClick()"\n >\n invert_colors\n </button>\n }\n </div>\n </nav>\n <div\n class="_bottom"\n [class]="\'_-\' + direction()"\n [class._-animate]="animate()"\n (transitionend)="onDirectionSettled($event)"\n >\n <section #leftPanel>\n <ng-content select="[splitter-left]"></ng-content>\n </section>\n <section #rightPanel>\n <ng-content select="[splitter-right]"></ng-content>\n </section>\n </div>\n</div>\n',imports:[ngneat_transloco.Kj],styles:[splitter_componentngResource_default()]})],UiLayoutSplitterComponent)},"./libs/ui/src/lib/layout/tabs/tabs.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:()=>UiLayoutTabsComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var tabs_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/tabs/tabs.component.css?ngResource"),tabs_componentngResource_default=__webpack_require__.n(tabs_componentngResource),_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"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs");let UiLayoutTabsComponent=class UiLayoutTabsComponent{el=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);tabNames=(0,core.input)([]);activeTab=(0,core.input)(0);activeTabChange=(0,core.output)();activeTabValue=0;tabNamesValue=[];ngOnInit(){this.activeTabValue=this.activeTab(),this.tabNamesValue=[...this.tabNames()],this.activeContent(this.activeTabValue)}ngOnChanges(){this.activeTabValue=this.activeTab(),this.tabNamesValue=[...this.tabNames()],this.activeContent(this.activeTabValue)}active(index){this.activeTabValue=index,this.activeContent(index),this.activeTabChange.emit(index)}defaultLabels(count){0===this.tabNamesValue.length&&(this.tabNamesValue=[...Array.from({length:count}).keys()].map(key=>`0${(key+1).toString()}`))}activeContent(index){const contents=this.el.nativeElement.querySelectorAll("._bottom")[0].childNodes;this.defaultLabels(contents.length),contents.forEach((content,contentIndex)=>{const element=content;element.classList.remove("_-active"),contentIndex===index&&element.classList.add("_-active")})}static propDecorators={tabNames:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tabNames",required:!1,transform:void 0}]}],activeTab:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"activeTab",required:!1,transform:void 0}]}],activeTabChange:[{type:_debug_node_chunk.k7i,args:["activeTabChange"]}]}};UiLayoutTabsComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-tabs",template:'\x3c!-- Real buttons, not clickable divs: Tab reaches them, Enter and Space\n switch natively — no synthetic key handling. `role="tab"` and\n `aria-selected` say which one is open. Tracked by index, not by name:\n two tabs may carry the same label. --\x3e\n<header role="tablist">\n @for (name of tabNamesValue; track $index; let i = $index) {\n <button\n type="button"\n role="tab"\n class="_tab-selector"\n [class._-active]="i === activeTabValue"\n [attr.aria-selected]="i === activeTabValue"\n (click)="active(i)"\n >\n {{ name }}\n </button>\n }\n</header>\n<div class="_bottom">\n <ng-content></ng-content>\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,styles:[tabs_componentngResource_default()]})],UiLayoutTabsComponent)},"./libs/ui/.storybook/demos/examples/layout/layout.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Layout:()=>Layout,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_common__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_src_config_ui_config_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),_src_lib_atoms_placeholder_placeholder_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"),_src_lib_layout_main_main_component__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/main/main.component.ts"),_src_lib_layout_nav_nav_component__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/src/lib/layout/nav/nav.component.ts"),_src_lib_layout_splitter_splitter_component__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/src/lib/layout/splitter/splitter.component.ts"),_src_lib_layout_tabs_tabs_component__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./libs/ui/src/lib/layout/tabs/tabs.component.ts");const navMock=[{label:"link01",route:"link01",title:"link01"},{label:"link02",route:"link02",title:"link02",subNav:[{label:"link01",route:"link01",title:"link02"}]},{label:"link03",route:"link03",title:"link03"}],__WEBPACK_DEFAULT_EXPORT__={title:"Examples/Layout",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({imports:[_angular_common__WEBPACK_IMPORTED_MODULE_0__.TG,_src_lib_layout_main_main_component__WEBPACK_IMPORTED_MODULE_4__.z,_src_lib_layout_nav_nav_component__WEBPACK_IMPORTED_MODULE_5__.L,_src_lib_layout_splitter_splitter_component__WEBPACK_IMPORTED_MODULE_6__.J,_src_lib_layout_tabs_tabs_component__WEBPACK_IMPORTED_MODULE_7__.q,_src_lib_atoms_placeholder_placeholder_component__WEBPACK_IMPORTED_MODULE_3__.F]})]},Layout={render:args=>({props:{...args,prefix:_src_config_ui_config_types__WEBPACK_IMPORTED_MODULE_2__.Q,navMock},template:'\n <ui-layout-main [cssPrefix]="prefix" [zoom]="false" [fullScreen]="false">\n <div class="app-header" main-header>\n <h1 class="py-4 px-[calc(var(--ui-spacer)*0.5)]">Header</h1>\n <ui-layout-nav\n [theme]="\'tab\'"\n [debug]="true"\n [navList]="navMock"\n ></ui-layout-nav>\n </div>\n <div main-content class="p-4 pt-24">\n <ui-layout-splitter [layoutAction]="true" >\n <div splitter-header>\n <div class="flex gap-4 p-4">\n <button class="ui-icon" type="button">star</button>\n <button class="ui-icon" type="button">favorite</button>\n <button class="ui-icon" type="button">pets</button>\n </div>\n </div>\n <div splitter-left>\n <div class="p-4">\n <ui-layout-tabs [tabNames]="[\'one\', \'two\', \'three\', \'four\']">\n <section><ui-placeholder class="h-32 w-64"></ui-placeholder></section>\n <section><ui-placeholder class="h-48 w-80"></ui-placeholder></section>\n <section><ui-placeholder class="h-32 w-64"></ui-placeholder></section>\n <section><ui-placeholder class="h-64 w-64"></ui-placeholder></section>\n </ui-layout-tabs>\n </div>\n </div>\n <div splitter-right>\n <div class="flex flex-col gap-2 p-4">\n <strong>navMock</strong>\n <code class="ui"><pre>{{ navMock | json }}</pre></code>\n </div>\n </div>\n </ui-layout-splitter>\n </div>\n <div main-footer class="p-4">footer</div>\n </ui-layout-main>\n '})},__namedExportsOrder=["Layout"];Layout.parameters={...Layout.parameters,docs:{...Layout.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n prefix: uiConfigStorybookCssPrefix,\n navMock\n },\n template: `\n <ui-layout-main [cssPrefix]="prefix" [zoom]="false" [fullScreen]="false">\n <div class="app-header" main-header>\n <h1 class="py-4 px-[calc(var(--ui-spacer)*0.5)]">Header</h1>\n <ui-layout-nav\n [theme]="\'tab\'"\n [debug]="true"\n [navList]="navMock"\n ></ui-layout-nav>\n </div>\n <div main-content class="p-4 pt-24">\n <ui-layout-splitter [layoutAction]="true" >\n <div splitter-header>\n <div class="flex gap-4 p-4">\n <button class="ui-icon" type="button">star</button>\n <button class="ui-icon" type="button">favorite</button>\n <button class="ui-icon" type="button">pets</button>\n </div>\n </div>\n <div splitter-left>\n <div class="p-4">\n <ui-layout-tabs [tabNames]="[\'one\', \'two\', \'three\', \'four\']">\n <section><ui-placeholder class="h-32 w-64"></ui-placeholder></section>\n <section><ui-placeholder class="h-48 w-80"></ui-placeholder></section>\n <section><ui-placeholder class="h-32 w-64"></ui-placeholder></section>\n <section><ui-placeholder class="h-64 w-64"></ui-placeholder></section>\n </ui-layout-tabs>\n </div>\n </div>\n <div splitter-right>\n <div class="flex flex-col gap-2 p-4">\n <strong>navMock</strong>\n <code class="ui"><pre>{{ navMock | json }}</pre></code>\n </div>\n </div>\n </ui-layout-splitter>\n </div>\n <div main-footer class="p-4">footer</div>\n </ui-layout-main>\n `\n };\n }\n}',...Layout.parameters?.docs?.source},description:{story:'The shell, composed: main with its three slots, the nav in the header, a\nsplitter in the content with tabs on the left and the nav\'s own data on the\nright. The nav runs in `debug` mode, which here means nothing more than\n"take the list from the input" — outside a story the nav service provides\nit. The header buttons and the tab bodies are stand-ins for the slots they\noccupy, nothing else.',...Layout.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/placeholder/placeholder.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/* Encapsulation.None — one nested block anchored on the tag, so the rules\n cannot leak while the host itself stays styleable from outside. */\nui-placeholder {\n display: flex;\n align-items: center;\n justify-content: center;\n\n /* A floor, not a size: width and height come from wherever it is used.\n Without one an empty stand-in collapses to a text line and stops being\n the mass it exists to be. The floor is a named hook with a fallback, so a\n consumer who deliberately wants a smaller stand-in can set\n `--ui-placeholder-min-width` / `--ui-placeholder-min-height` without a\n cascade fight — an unlayered host rule otherwise beats a width utility in\n `@layer utilities` (tickets#241, tickets#251, tickets#253). */\n min-width: var(--ui-placeholder-min-width, calc(var(--ui-spacer) * 3));\n min-height: var(--ui-placeholder-min-height, calc(var(--ui-spacer) * 3));\n padding: calc(var(--ui-spacer) * 0.25);\n\n /* The overlay header's pair: filled enough to read as chrome rather than\n content, and theme-aware through the tokens. */\n background-color: var(--ui-c-primary);\n color: var(--ui-c-default);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-radius: var(--ui-border-radius);\n\n /* It is scenery, never the subject: nothing here should invite a click or\n land in a text selection. */\n -webkit-user-select: none;\n user-select: none;\n\n ._label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/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._splitter {\n display: flex;\n flex-flow: column;\n\n ._navigation {\n display: flex;\n justify-content: space-between;\n /* padding: $spacer * 0.25; */\n margin-bottom: calc(var(--ui-spacer) * 0.5);\n padding-bottom: calc(var(--ui-spacer) * 0.5);\n\n border-bottom: var(--ui-border-width) solid var(--ui-c-fourthly);\n\n ._actions {\n display: flex;\n justify-content: flex-end;\n button {\n margin-right: calc(var(--ui-spacer) * 0.5);\n }\n }\n\n ._display {\n display: flex;\n justify-content: flex-start;\n button {\n margin-left: calc(var(--ui-spacer) * 0.5);\n\n &.active {\n color: var(--ui-c-focus);\n }\n }\n }\n\n @media (max-width: 1024px) {\n display: none;\n }\n }\n\n ._bottom {\n display: grid;\n\n grid-template-columns: 1fr 1fr;\n grid-gap: calc(var(--ui-spacer) * 0.25);\n\n /* Animate direction changes only after the initial (persisted) state has\n been restored — the `_-animate` modifier is added once the component is\n ready, so a restored layout appears instantly. */\n &._-animate {\n transition: var(--ui-time) ease-in;\n }\n\n > section {\n /* background-color: var(--ui-cb-secondary); */\n border-radius: var(--ui-border-radius);\n /* padding: $spacer * 0.25; */\n /* Grid items default to min-width: auto and never shrink below their\n content — wide content (e.g. tables) would blow the panel out of\n the viewport instead of scrolling inside it. */\n min-width: 0;\n }\n\n &._-left {\n grid-template-columns: 3fr 1fr;\n }\n\n &._-center {\n grid-template-columns: 1fr 1fr;\n }\n\n &._-right {\n grid-template-columns: 1fr 3fr;\n }\n\n &._-split {\n grid-template-columns: 1fr;\n }\n\n /* --- breakpoint 01 - 03 --- */\n @media (max-width: 1024px) {\n &._-left,\n &._-center,\n &._-right {\n grid-template-columns: 1fr;\n }\n }\n\n /* The panel order is deliberately NOT expressed here. `order` would move\n the pixels and leave the focus behind, so reading order and tab order\n would disagree; the component moves the two sections in the DOM instead\n and this grid simply lays out whatever it finds. */\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/tabs/tabs.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 {\nui-layout-tabs {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n display: flex;\n flex-flow: column;\n\n header {\n display: flex;\n padding: calc(var(--ui-spacer) * 0.25);\n padding-bottom: 0;\n /* background-color: var(--ui-cb-secondary); */\n\n ._tab-selector {\n display: flex;\n /* A button now (it always acted like one) — strip the native face so\n the class keeps the exact look the div had. */\n appearance: none;\n border: 0;\n font: inherit;\n color: inherit;\n cursor: pointer;\n background-color: var(--ui-c-fourthly);\n padding: calc(var(--ui-spacer) * 0.2);\n border-radius: var(--ui-border-radius) var(--ui-border-radius) 0 0;\n margin: calc(var(--ui-spacer) * 0.08);\n margin-bottom: 0;\n line-height: 0.8;\n\n &:first-of-type {\n margin-left: 0;\n }\n\n &:last-of-type {\n margin-right: 0;\n }\n\n &._-active {\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-bottom: 0;\n transform: translateY(var(--ui-border-width));\n }\n\n /* The house focus ring — the underscore class is outside the global\n button rules, so the ring is declared here. */\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-focus);\n }\n }\n }\n\n ._bottom {\n display: flex;\n flex-flow: column;\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-radius: var(--ui-border-radius);\n padding: calc(var(--ui-spacer) * 0.25);\n height: 100%;\n\n > * {\n display: none;\n }\n\n > *._-active {\n display: flex;\n }\n }\n}\n\n/* --- breakpoint 01 - 03 --- */\n@media (max-width: 768px) {\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[5493,9836],{"./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/.storybook/demos/examples/table-edit-focus/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"),_table_edit_focus_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts"),_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_table_edit_focus_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/table-edit-focus.json");function _createMdxContent(props){const _components={a:"a",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:_table_edit_focus_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"table-edit-focus",children:"Table Edit Focus"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiTableEditFocusDirective"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiTableEditFocus"}),") bundles the focus behaviour of\ninline-editing CDK tables. Place it on the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-cdk-table-wrapper"})," (or any\ncontainer around a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cdk-table"}),"):"]}),"\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:"Behaviour"}),(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:"No select-all"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Focusing a form field never selects its content — the caret goes to the\nend (number inputs included). Disable via\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'[clearSelection]="false"'}),"."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Clicked cell"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Clicks remember the clicked column; calling ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"focusCell()"}),"\nafter the app re-rendered its edit row focuses exactly that cell —\nalways with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"preventScroll"}),", so the wrapper's smooth\nfollowing (horizontal centering plus the vertical row follow;\nkeyboard, mouse and programmatic focus alike) is the only scrolling\nthat happens."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"No layout jumps"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["In the wrapper's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"inline"})," mode, display texts\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"td > div"})," without interactive content) and edit fields\nshare the exact same box metrics — same padding plus a border of the\nsame width — so toggling a cell between text and field never shifts\nthe table. The metrics come from the wrapper, the behaviour from this\ndirective."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Tab row wrapping"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Tab walks all controls of the row — form fields and buttons alike.\nOn the row's last control (Shift+Tab: first) it wraps to the\nneighbour row via ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"uiRowNavigate"}),". A read-only row (no\nform fields, e.g. a locked one) wraps too, with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"column: null"})," — the app is asked for its default entry\npoint instead of a specific column. Without that, the native Tab\nwould carry the focus into the neighbour row behind the app's back,\nwhich then never learns that it should open that row. At the table\nedges Tab leaves the table natively. No app-side key handlers\nneeded."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Sideways step, offered first"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Every Shift+Left/Right is announced as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"uiRowStep"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("em",{children:"before"})," the walk moves, and the app may take the step over\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"handled = true"}),') — a row rendered read-only can be an\neditable row that is merely closed, and "let me in" beats walking its\nremaining buttons. Only the app knows which of the two it is; the\ndirective never learns what "locked" means. The reasoning is on the\n',(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a",{href:"?path=/docs/cdk-table--docs",children:"CDK/Table"})," page."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Shift+Arrow navigation"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Shift+Left/Right focuses the next control — fields and buttons: first\nthe remaining controls of the current cell, then the nearest cell\nthat has any (DOM based, skips empty cells). Shift+Up/Down emits\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"uiRowNavigate"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"{ column, delta }"}),") —\nthe app switches its edit row and calls ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"focusCell()"}),"\nagain; the directive keeps the column AND the control position\nwithin the cell (the lock button stays the lock button, not the\ncell's first button)."]})})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The directive is meant for wrappers ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"inline"})," mode"]}),": only there do all\ncells share the same box metrics. Without ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"inline"})," the cells keep their regular\npadding and toggling text ↔ field shifts the layout — that combination is\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"not recommended"}),"."]}),"\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-table-wrapper inline uiTableEditFocus (uiRowNavigate)="onRowNavigate($event)">\n <table cdk-table [dataSource]="rows()">...</table>\n</ui-cdk-table-wrapper>\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-ts",children:"private readonly editFocus = viewChild(UiTableEditFocusDirective);\n\nprotected onRowClick(id: number, event: Event): void {\n this.editedId.set(id);\n event.stopPropagation();\n this.editFocus()?.focusCell();\n}\n\nprotected onRowNavigate({ delta }: UiRowNavigateEvent): void {\n // switch the edited row by delta, then:\n this.editFocus()?.focusCell();\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"table-edit-focus",entry:_guide_table_edit_focus_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.p,{children:"Click a cell to edit exactly that field — the wrapper smoothly centers\nevery focused field (mouse, Tab, Shift+Arrow alike). Tab walks the fields —\nthe table is wider than its container, so the smooth auto-scrolling is\nvisible — and wraps to the next row after the last field (Shift+Tab: back to\nthe previous row's last field), all built into the directive. The fixed\nlayout keeps the column widths stable while cells toggle between text and\nfield, and the table reserves bottom space for the horizontal scrollbar:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_table_edit_focus_stories__WEBPACK_IMPORTED_MODULE_4__.TableEditFocus}),"\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:["The wrapper also follows the focus ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"vertically"}),": the page scrolls just\nenough to keep the edit row in view (nearest edge, no centering). A row's\nCSS ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"scroll-margin-top"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"-bottom"})," declares sticky\nchrome (nav, detached header, footer) the row must stay clear of. The tall\nvariant makes it visible — enter a row and walk down with Shift+ArrowDown\nor Tab:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_table_edit_focus_stories__WEBPACK_IMPORTED_MODULE_4__.TableEditFocusTall}),"\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:["See also: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/cdk-table--docs",children:"CDK/Table"})," — the wrapper with the\ninline mode and the focus auto-centering."]})]})}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/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TableEditFocus:()=>TableEditFocus,TableEditFocusTall:()=>TableEditFocusTall,__namedExportsOrder:()=>__namedExportsOrder,default:()=>table_edit_focus_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 table=__webpack_require__("./node_modules/@angular/cdk/fesm2022/table.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs");const CONTROL_SELECTOR=':is(input, select, textarea, button, a):not(:disabled):not([hidden]):not([tabindex="-1"])',FIELD_SELECTOR=':is(input, select, textarea):not(:disabled):not([hidden]):not([tabindex="-1"])';let UiTableEditFocusDirective=class UiTableEditFocusDirective{element=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);clearSelection=(0,core.input)(!0);uiRowNavigate=(0,core.output)();uiRowStep=(0,core.output)();lastColumn=null;lastControlIndex=0;focusCell(column=this.lastColumn){column!==this.lastColumn&&(this.lastControlIndex=0),this.lastColumn=column,setTimeout(()=>{const host=this.element.nativeElement,editRow=host.querySelector(`td ${FIELD_SELECTOR}`)?.closest("tr")??null,cell=column?(editRow??host).querySelector(`td.cdk-column-${column}`):null,controls=cell?this.controlsOf(cell):[],target=controls[Math.min(this.lastControlIndex,controls.length-1)]??host.querySelector(`td ${FIELD_SELECTOR}`);target?.focus({preventScroll:!0})})}onFocusIn(event){const el=event.target;this.clearSelection()&&el instanceof HTMLInputElement&&setTimeout(()=>{if("number"===el.type){const value=el.value;return el.value="",void(el.value=value)}const end=el.value.length;el.setSelectionRange(end,end)})}captureColumn(event){const column=this.columnOf(event.target);if(null===column)return;this.lastColumn=column;const control=event.target instanceof Element?event.target.closest(CONTROL_SELECTOR):null;this.lastControlIndex=control?this.controlIndexOf(control):0}onKeydown(event){const el=event.target;if("Tab"===event.key)return void(el.matches(CONTROL_SELECTOR)&&this.onTabKey(event,el));if(!el.matches(CONTROL_SELECTOR))return;const horizontal={ArrowLeft:-1,ArrowRight:1},vertical={ArrowUp:-1,ArrowDown:1};if(!event.shiftKey||!(event.key in horizontal)&&!(event.key in vertical))return;const cell=el.closest("td");if(!cell)return;if(event.key in horizontal){event.preventDefault(),event.stopPropagation();const step={direction:horizontal[event.key]>0?1:-1,from:el,handled:!1};if(this.uiRowStep.emit(step),step.handled)return;return void this.focusSibling(cell,horizontal[event.key],el)}const column=this.columnOf(el);null!==column&&(event.preventDefault(),event.stopPropagation(),this.rememberControl(el),this.uiRowNavigate.emit({column,delta:vertical[event.key]}))}onTabKey(event,el){const row=el.closest("tr");if(!row)return;const focusables=[],fields=[];row.querySelectorAll(`td ${CONTROL_SELECTOR}`).forEach(control=>{focusables.push(control),control.matches(FIELD_SELECTOR)&&fields.push(control)});const index=focusables.indexOf(el),forward=!event.shiftKey;if(-1===index||index!==(forward?focusables.length-1:0))return;const neighbour=forward?row.nextElementSibling:row.previousElementSibling;if(!neighbour?.matches("tr"))return;const target=(forward?fields[0]:fields.at(-1))??null,column=this.columnOf(target);null!==target&&null!==column&&this.rememberControl(target),event.preventDefault(),event.stopPropagation(),this.uiRowNavigate.emit({column,delta:forward?1:-1})}focusSibling(cell,direction,from){const inCell=this.controlsOf(cell),nextInCell=inCell[inCell.indexOf(from)+direction];if(nextInCell)return this.rememberControl(nextInCell),void nextInCell.focus({preventScroll:!0});let sibling=cell;for(;;){const next=direction>0?sibling.nextElementSibling:sibling.previousElementSibling;if(!next)return;const candidates=this.controlsOf(next),target=direction>0?candidates[0]:candidates.at(-1);if(target)return this.rememberControl(target),void target.focus({preventScroll:!0});sibling=next}}controlsOf(cell){const controls=[];return cell.querySelectorAll(CONTROL_SELECTOR).forEach(control=>controls.push(control)),controls}controlIndexOf(control){const cell=control.closest("td"),index=cell?this.controlsOf(cell).indexOf(control):-1;return Math.max(index,0)}rememberControl(control){this.lastColumn=this.columnOf(control),this.lastControlIndex=this.controlIndexOf(control)}columnOf(target){const cell=target instanceof Element?target.closest("td"):null;return cell?.className.split(/\s+/).find(cls=>cls.startsWith("cdk-column-"))?.replace("cdk-column-","")??null}static propDecorators={clearSelection:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"clearSelection",required:!1,transform:void 0}]}],uiRowNavigate:[{type:_debug_node_chunk.k7i,args:["uiRowNavigate"]}],uiRowStep:[{type:_debug_node_chunk.k7i,args:["uiRowStep"]}]}};UiTableEditFocusDirective=(0,tslib_es6.Cg)([(0,_debug_node_chunk.WLR)({selector:"[uiTableEditFocus]",host:{"(focusin)":"onFocusIn($event)","(pointerdown)":"captureColumn($event)","(keydown)":"onKeydown($event)"}})],UiTableEditFocusDirective);var table_component=__webpack_require__("./libs/ui/src/lib/cdk/components/table/table.component.ts");let UiExampleTableEditFocusComponent=class UiExampleTableEditFocusComponent{editFocus=(0,core.viewChild)(UiTableEditFocusDirective);tall=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.tall()&&this.rows.update(seed=>Array.from({length:10},(_,round)=>seed.map(row=>({...row,id:round*seed.length+row.id,code:`${row.code}-${round+1}`}))).flat())}displayedColumns=["name","publisher","year","type","rating","code","action"];rows=(0,_effect_chunk2.vPA)([{id:1,name:"Mario",publisher:"Nintendo",year:1985,type:"Jump n run",rating:9.2,code:"NES-SM"},{id:2,name:"Turrican",publisher:"Rainbow Arts",year:1990,type:"Run and gun",rating:8.7,code:"AMI-TU"},{id:3,name:"Wipeout",publisher:"Psygnosis",year:1995,type:"Racing",rating:8.9,code:"PSX-WO"},{id:4,name:"Frogger",publisher:"Konami",year:1981,type:"Arcade",rating:7.8,code:"ARC-FR"}]);editedId=(0,_effect_chunk2.vPA)(null);onDocumentClick(){this.editedId.set(null)}onRowClick(id,event){this.editedId.set(id),event.stopPropagation(),this.editFocus()?.focusCell()}editRow(id,event){event.stopPropagation(),this.editedId.set(id),this.editFocus()?.focusCell("name")}deleteRow(id,event){event.stopPropagation(),this.rows.update(rows=>rows.filter(row=>row.id!==id)),this.editedId()===id&&this.editedId.set(null)}onRowNavigate({delta}){const ids=this.rows().map(row=>row.id),index=ids.indexOf(this.editedId()??-1),next=Math.min(Math.max(index+delta,0),ids.length-1);-1!==index&&next!==index&&(this.editedId.set(ids[next]),this.editFocus()?.focusCell())}static propDecorators={editFocus:[{type:core.ViewChild,args:[UiTableEditFocusDirective,{isSignal:!0}]}],tall:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tall",required:!1,transform:void 0}]}],onDocumentClick:[{type:_debug_node_chunk.Z$l,args:["document:click"]}]}};UiExampleTableEditFocusComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-table-edit-focus",template:'<ui-cdk-table-wrapper\n inline\n fixed\n uiTableEditFocus\n class="w-full rounded-[var(--ui-border-radius)]! border! border-solid! border-[var(--ui-c-secondary)]!"\n (uiRowNavigate)="onRowNavigate($event)"\n (click)="$event.stopPropagation()"\n>\n <table cdk-table class="mb-6 min-w-[160rem]" [dataSource]="rows()">\n <ng-container cdkColumnDef="name">\n <th cdk-header-cell *cdkHeaderCellDef class="w-56">Name</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.name" />\n } @else {\n <div>{{ game.name }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="publisher">\n <th cdk-header-cell *cdkHeaderCellDef class="w-56">Publisher</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.publisher" />\n } @else {\n <div>{{ game.publisher }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="year">\n <th cdk-header-cell *cdkHeaderCellDef class="w-36">Year</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" type="number" [(ngModel)]="game.year" />\n } @else {\n <div>{{ game.year }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="type">\n <th cdk-header-cell *cdkHeaderCellDef class="w-56">Type</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.type" />\n } @else {\n <div>{{ game.type }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="rating">\n <th cdk-header-cell *cdkHeaderCellDef class="w-36">Rating</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" type="number" [(ngModel)]="game.rating" />\n } @else {\n <div>{{ game.rating }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="code">\n <th cdk-header-cell *cdkHeaderCellDef class="w-44">Code</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.code" />\n } @else {\n <div>{{ game.code }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="action">\n <th cdk-header-cell *cdkHeaderCellDef class="w-36">Action</th>\n <td cdk-cell *cdkCellDef="let game">\n <div class="flex justify-end gap-2">\n <button class="ui-flat" type="button" (click)="editRow(game.id, $event)">\n <span class="ui-icon text-c-focus/80">edit</span>\n </button>\n <button class="ui-flat" type="button" (click)="deleteRow(game.id, $event)">\n <span class="ui-icon text-c-error/80">delete</span>\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr cdk-header-row *cdkHeaderRowDef="displayedColumns"></tr>\n <tr cdk-row *cdkRowDef="let row; columns: displayedColumns" (click)="onRowClick(row.id, $event)"></tr>\n </table>\n</ui-cdk-table-wrapper>\n',host:{class:"block w-full"},imports:[table.N0,fesm2022_forms.YN,table_component.N,UiTableEditFocusDirective]})],UiExampleTableEditFocusComponent);const table_edit_focus_stories={title:"Examples/Table Edit Focus",decorators:[(0,dist.Iz)({imports:[header_component.b,UiExampleTableEditFocusComponent]})]},TableEditFocusTall={parameters:{docs:{canvas:{sourceState:"none"}}},render:()=>({template:'\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus tall></ui-examples-table-edit-focus>\n </div>\n '})},TableEditFocus={parameters:{docs:{canvas:{sourceState:"none"}}},render:()=>({template:'\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus></ui-examples-table-edit-focus>\n </div>\n '})},__namedExportsOrder=["TableEditFocusTall","TableEditFocus"];TableEditFocusTall.parameters={...TableEditFocusTall.parameters,docs:{...TableEditFocusTall.parameters?.docs,source:{originalSource:'{\n parameters: {\n docs: {\n canvas: {\n sourceState: \'none\'\n }\n }\n },\n render: () => ({\n template: `\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus tall></ui-examples-table-edit-focus>\n </div>\n `\n })\n}',...TableEditFocusTall.parameters?.docs?.source},description:{story:"Tall variant: 40 rows, the table exceeds the viewport. Enter a row and\nwalk down with Shift+ArrowDown (or Tab through the fields) — the page\nscrolls along so the edit row stays visible; horizontally the focused\ncell keeps centering as usual.",...TableEditFocusTall.parameters?.docs?.description}}},TableEditFocus.parameters={...TableEditFocus.parameters,docs:{...TableEditFocus.parameters?.docs,source:{originalSource:'{\n parameters: {\n docs: {\n canvas: {\n sourceState: \'none\'\n }\n }\n },\n render: () => ({\n template: `\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus></ui-examples-table-edit-focus>\n </div>\n `\n })\n}',...TableEditFocus.parameters?.docs?.source}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[9836],{"./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TableEditFocus:()=>TableEditFocus,TableEditFocusTall:()=>TableEditFocusTall,__namedExportsOrder:()=>__namedExportsOrder,default:()=>table_edit_focus_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 table=__webpack_require__("./node_modules/@angular/cdk/fesm2022/table.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs");const CONTROL_SELECTOR=':is(input, select, textarea, button, a):not(:disabled):not([hidden]):not([tabindex="-1"])',FIELD_SELECTOR=':is(input, select, textarea):not(:disabled):not([hidden]):not([tabindex="-1"])';let UiTableEditFocusDirective=class UiTableEditFocusDirective{element=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);clearSelection=(0,core.input)(!0);uiRowNavigate=(0,core.output)();uiRowStep=(0,core.output)();lastColumn=null;lastControlIndex=0;focusCell(column=this.lastColumn){column!==this.lastColumn&&(this.lastControlIndex=0),this.lastColumn=column,setTimeout(()=>{const host=this.element.nativeElement,editRow=host.querySelector(`td ${FIELD_SELECTOR}`)?.closest("tr")??null,cell=column?(editRow??host).querySelector(`td.cdk-column-${column}`):null,controls=cell?this.controlsOf(cell):[],target=controls[Math.min(this.lastControlIndex,controls.length-1)]??host.querySelector(`td ${FIELD_SELECTOR}`);target?.focus({preventScroll:!0})})}onFocusIn(event){const el=event.target;this.clearSelection()&&el instanceof HTMLInputElement&&setTimeout(()=>{if("number"===el.type){const value=el.value;return el.value="",void(el.value=value)}const end=el.value.length;el.setSelectionRange(end,end)})}captureColumn(event){const column=this.columnOf(event.target);if(null===column)return;this.lastColumn=column;const control=event.target instanceof Element?event.target.closest(CONTROL_SELECTOR):null;this.lastControlIndex=control?this.controlIndexOf(control):0}onKeydown(event){const el=event.target;if("Tab"===event.key)return void(el.matches(CONTROL_SELECTOR)&&this.onTabKey(event,el));if(!el.matches(CONTROL_SELECTOR))return;const horizontal={ArrowLeft:-1,ArrowRight:1},vertical={ArrowUp:-1,ArrowDown:1};if(!event.shiftKey||!(event.key in horizontal)&&!(event.key in vertical))return;const cell=el.closest("td");if(!cell)return;if(event.key in horizontal){event.preventDefault(),event.stopPropagation();const step={direction:horizontal[event.key]>0?1:-1,from:el,handled:!1};if(this.uiRowStep.emit(step),step.handled)return;return void this.focusSibling(cell,horizontal[event.key],el)}const column=this.columnOf(el);null!==column&&(event.preventDefault(),event.stopPropagation(),this.rememberControl(el),this.uiRowNavigate.emit({column,delta:vertical[event.key]}))}onTabKey(event,el){const row=el.closest("tr");if(!row)return;const focusables=[],fields=[];row.querySelectorAll(`td ${CONTROL_SELECTOR}`).forEach(control=>{focusables.push(control),control.matches(FIELD_SELECTOR)&&fields.push(control)});const index=focusables.indexOf(el),forward=!event.shiftKey;if(-1===index||index!==(forward?focusables.length-1:0))return;const neighbour=forward?row.nextElementSibling:row.previousElementSibling;if(!neighbour?.matches("tr"))return;const target=(forward?fields[0]:fields.at(-1))??null,column=this.columnOf(target);null!==target&&null!==column&&this.rememberControl(target),event.preventDefault(),event.stopPropagation(),this.uiRowNavigate.emit({column,delta:forward?1:-1})}focusSibling(cell,direction,from){const inCell=this.controlsOf(cell),nextInCell=inCell[inCell.indexOf(from)+direction];if(nextInCell)return this.rememberControl(nextInCell),void nextInCell.focus({preventScroll:!0});let sibling=cell;for(;;){const next=direction>0?sibling.nextElementSibling:sibling.previousElementSibling;if(!next)return;const candidates=this.controlsOf(next),target=direction>0?candidates[0]:candidates.at(-1);if(target)return this.rememberControl(target),void target.focus({preventScroll:!0});sibling=next}}controlsOf(cell){const controls=[];return cell.querySelectorAll(CONTROL_SELECTOR).forEach(control=>controls.push(control)),controls}controlIndexOf(control){const cell=control.closest("td"),index=cell?this.controlsOf(cell).indexOf(control):-1;return Math.max(index,0)}rememberControl(control){this.lastColumn=this.columnOf(control),this.lastControlIndex=this.controlIndexOf(control)}columnOf(target){const cell=target instanceof Element?target.closest("td"):null;return cell?.className.split(/\s+/).find(cls=>cls.startsWith("cdk-column-"))?.replace("cdk-column-","")??null}static propDecorators={clearSelection:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"clearSelection",required:!1,transform:void 0}]}],uiRowNavigate:[{type:_debug_node_chunk.k7i,args:["uiRowNavigate"]}],uiRowStep:[{type:_debug_node_chunk.k7i,args:["uiRowStep"]}]}};UiTableEditFocusDirective=(0,tslib_es6.Cg)([(0,_debug_node_chunk.WLR)({selector:"[uiTableEditFocus]",host:{"(focusin)":"onFocusIn($event)","(pointerdown)":"captureColumn($event)","(keydown)":"onKeydown($event)"}})],UiTableEditFocusDirective);var table_component=__webpack_require__("./libs/ui/src/lib/cdk/components/table/table.component.ts");let UiExampleTableEditFocusComponent=class UiExampleTableEditFocusComponent{editFocus=(0,core.viewChild)(UiTableEditFocusDirective);tall=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.tall()&&this.rows.update(seed=>Array.from({length:10},(_,round)=>seed.map(row=>({...row,id:round*seed.length+row.id,code:`${row.code}-${round+1}`}))).flat())}displayedColumns=["name","publisher","year","type","rating","code","action"];rows=(0,_effect_chunk2.vPA)([{id:1,name:"Mario",publisher:"Nintendo",year:1985,type:"Jump n run",rating:9.2,code:"NES-SM"},{id:2,name:"Turrican",publisher:"Rainbow Arts",year:1990,type:"Run and gun",rating:8.7,code:"AMI-TU"},{id:3,name:"Wipeout",publisher:"Psygnosis",year:1995,type:"Racing",rating:8.9,code:"PSX-WO"},{id:4,name:"Frogger",publisher:"Konami",year:1981,type:"Arcade",rating:7.8,code:"ARC-FR"}]);editedId=(0,_effect_chunk2.vPA)(null);onDocumentClick(){this.editedId.set(null)}onRowClick(id,event){this.editedId.set(id),event.stopPropagation(),this.editFocus()?.focusCell()}editRow(id,event){event.stopPropagation(),this.editedId.set(id),this.editFocus()?.focusCell("name")}deleteRow(id,event){event.stopPropagation(),this.rows.update(rows=>rows.filter(row=>row.id!==id)),this.editedId()===id&&this.editedId.set(null)}onRowNavigate({delta}){const ids=this.rows().map(row=>row.id),index=ids.indexOf(this.editedId()??-1),next=Math.min(Math.max(index+delta,0),ids.length-1);-1!==index&&next!==index&&(this.editedId.set(ids[next]),this.editFocus()?.focusCell())}static propDecorators={editFocus:[{type:core.ViewChild,args:[UiTableEditFocusDirective,{isSignal:!0}]}],tall:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tall",required:!1,transform:void 0}]}],onDocumentClick:[{type:_debug_node_chunk.Z$l,args:["document:click"]}]}};UiExampleTableEditFocusComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-table-edit-focus",template:'<ui-cdk-table-wrapper\n inline\n fixed\n uiTableEditFocus\n class="w-full rounded-[var(--ui-border-radius)]! border! border-solid! border-[var(--ui-c-secondary)]!"\n (uiRowNavigate)="onRowNavigate($event)"\n (click)="$event.stopPropagation()"\n>\n <table cdk-table class="mb-6 min-w-[160rem]" [dataSource]="rows()">\n <ng-container cdkColumnDef="name">\n <th cdk-header-cell *cdkHeaderCellDef class="w-56">Name</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.name" />\n } @else {\n <div>{{ game.name }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="publisher">\n <th cdk-header-cell *cdkHeaderCellDef class="w-56">Publisher</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.publisher" />\n } @else {\n <div>{{ game.publisher }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="year">\n <th cdk-header-cell *cdkHeaderCellDef class="w-36">Year</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" type="number" [(ngModel)]="game.year" />\n } @else {\n <div>{{ game.year }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="type">\n <th cdk-header-cell *cdkHeaderCellDef class="w-56">Type</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.type" />\n } @else {\n <div>{{ game.type }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="rating">\n <th cdk-header-cell *cdkHeaderCellDef class="w-36">Rating</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" type="number" [(ngModel)]="game.rating" />\n } @else {\n <div>{{ game.rating }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="code">\n <th cdk-header-cell *cdkHeaderCellDef class="w-44">Code</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.code" />\n } @else {\n <div>{{ game.code }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="action">\n <th cdk-header-cell *cdkHeaderCellDef class="w-36">Action</th>\n <td cdk-cell *cdkCellDef="let game">\n <div class="flex justify-end gap-2">\n <button class="ui-flat" type="button" (click)="editRow(game.id, $event)">\n <span class="ui-icon text-c-focus/80">edit</span>\n </button>\n <button class="ui-flat" type="button" (click)="deleteRow(game.id, $event)">\n <span class="ui-icon text-c-error/80">delete</span>\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr cdk-header-row *cdkHeaderRowDef="displayedColumns"></tr>\n <tr cdk-row *cdkRowDef="let row; columns: displayedColumns" (click)="onRowClick(row.id, $event)"></tr>\n </table>\n</ui-cdk-table-wrapper>\n',host:{class:"block w-full"},imports:[table.N0,fesm2022_forms.YN,table_component.N,UiTableEditFocusDirective]})],UiExampleTableEditFocusComponent);const table_edit_focus_stories={title:"Examples/Table Edit Focus",decorators:[(0,dist.Iz)({imports:[header_component.b,UiExampleTableEditFocusComponent]})]},TableEditFocusTall={parameters:{docs:{canvas:{sourceState:"none"}}},render:()=>({template:'\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus tall></ui-examples-table-edit-focus>\n </div>\n '})},TableEditFocus={parameters:{docs:{canvas:{sourceState:"none"}}},render:()=>({template:'\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus></ui-examples-table-edit-focus>\n </div>\n '})},__namedExportsOrder=["TableEditFocusTall","TableEditFocus"];TableEditFocusTall.parameters={...TableEditFocusTall.parameters,docs:{...TableEditFocusTall.parameters?.docs,source:{originalSource:'{\n parameters: {\n docs: {\n canvas: {\n sourceState: \'none\'\n }\n }\n },\n render: () => ({\n template: `\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus tall></ui-examples-table-edit-focus>\n </div>\n `\n })\n}',...TableEditFocusTall.parameters?.docs?.source},description:{story:"Tall variant: 40 rows, the table exceeds the viewport. Enter a row and\nwalk down with Shift+ArrowDown (or Tab through the fields) — the page\nscrolls along so the edit row stays visible; horizontally the focused\ncell keeps centering as usual.",...TableEditFocusTall.parameters?.docs?.description}}},TableEditFocus.parameters={...TableEditFocus.parameters,docs:{...TableEditFocus.parameters?.docs,source:{originalSource:'{\n parameters: {\n docs: {\n canvas: {\n sourceState: \'none\'\n }\n }\n },\n render: () => ({\n template: `\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus></ui-examples-table-edit-focus>\n </div>\n `\n })\n}',...TableEditFocus.parameters?.docs?.source}}}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt */
2
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[6768,9044],{"./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{br:()=>toObservable,ot:()=>toSignal,pQ:()=>takeUntilDestroyed});var rxjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Observable.js"),rxjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/ReplaySubject.js"),rxjs_operators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"),_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs");function takeUntilDestroyed(destroyRef){destroyRef||(ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(takeUntilDestroyed),destroyRef=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz));const destroyed$=new rxjs__WEBPACK_IMPORTED_MODULE_0__.c(subscriber=>{if(destroyRef.destroyed)return void subscriber.next();return destroyRef.onDestroy(subscriber.next.bind(subscriber))});return source=>source.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.Q)(destroyed$))}function toObservable(source,options){ngDevMode&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toObservable);const injector=options?.injector??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.zZn),subject=new rxjs__WEBPACK_IMPORTED_MODULE_1__.m(1),watcher=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.QZP)(()=>{let value;try{value=source()}catch(err){return void(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.error(err))}(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.next(value))},{injector,manualCleanup:!0});return injector.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz).onDestroy(()=>{watcher.destroy(),subject.complete()}),subject.asObservable()}function toSignal(source,options){"undefined"!=typeof ngDevMode&&ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.tdH)(toSignal,"Invoking `toSignal` causes new subscriptions every time. Consider moving `toSignal` outside of the reactive context and read the signal value where needed.");const requiresCleanup=!options?.manualCleanup;ngDevMode&&requiresCleanup&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toSignal);const cleanupRef=requiresCleanup?options?.injector?.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz)??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz):null,equal=function makeToSignalEqual(userEquality=Object.is){return(a,b)=>1===a.kind&&1===b.kind&&userEquality(a.value,b.value)}(options?.equal);let state,destroyUnregisterFn;state=options?.requireSync?(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:0},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0}):(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:1,value:options?.initialValue},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0});const sub=source.subscribe({next:value=>state.set({kind:1,value}),error:error=>{state.set({kind:2,error}),destroyUnregisterFn?.()},complete:()=>{destroyUnregisterFn?.()}});if(options?.requireSync&&0===state().kind)throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.");return destroyUnregisterFn=cleanupRef?.onDestroy(sub.unsubscribe.bind(sub)),(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.EW)(()=>{const current=state();switch(current.kind){case 1:return current.value;case 2:throw current.error;case 0:throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:options?.equal,...ngDevMode?createDebugNameObject(options?.debugName,"source"):void 0})}function createDebugNameObject(toSignalDebugName,internalSignalDebugName){return{debugName:`toSignal${toSignalDebugName?"#"+toSignalDebugName:""}.${internalSignalDebugName}`}}},"./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/lang-selector/lang-selector.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>LANG_STORAGE_KEY,R:()=>UiLangSelectorComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var lang_selector_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.css?ngResource"),lang_selector_componentngResource_default=__webpack_require__.n(lang_selector_componentngResource),_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"),rxjs_interop=__webpack_require__("./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),ngx_pwa_local_storage=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs");const LANG_STORAGE_KEY="ui-lang";let UiLangSelectorComponent=class UiLangSelectorComponent{translocoService=(0,_effect_chunk2.WQX)(ngneat_transloco.JO);storage=(0,_effect_chunk2.WQX)(ngx_pwa_local_storage.AX);local=(0,core.input)(!1);langChange=(0,core.output)();currentLang=(0,rxjs_interop.ot)(this.translocoService.langChanges$,{initialValue:this.translocoService.getActiveLang()});ngOnInit(){this.storage.get(LANG_STORAGE_KEY).subscribe(value=>{if("en-EN"!==value&&"de-DE"!==value){if(this.local()){const detected=function detectSystemLang(){return(globalThis.navigator?.language??"").toLowerCase().startsWith("de")?"de-DE":"en-EN"}();if(detected===this.currentLang())return;this.translocoService.setActiveLang(detected),this.langChange.emit(detected)}}else this.translocoService.setActiveLang(value)})}setLang(){const next="en-EN"===this.currentLang()?"de-DE":"en-EN";this.translocoService.setActiveLang(next),this.storage.set(LANG_STORAGE_KEY,next).subscribe(),this.langChange.emit(next)}static propDecorators={local:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"local",required:!1,transform:void 0}]}],langChange:[{type:_debug_node_chunk.k7i,args:["langChange"]}]}};UiLangSelectorComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-lang-selector",template:'<button type="button" class="ui-lang-selector ui-none" (click)="setLang()">\n <ng-content>\n <span class="_label">\n {{ \'langSelector.selected\' | transloco }}\n <span class="ui-icon">language</span>\n </span>\n </ng-content>\n</button>\n',imports:[ngneat_transloco.Kj],styles:[lang_selector_componentngResource_default()]})],UiLangSelectorComponent)},"./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)},"./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>takeUntil});var _util_lift__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/lift.js"),_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js"),_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js"),_util_noop__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/noop.js");function takeUntil(notifier){return(0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.N)(function(source,subscriber){(0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__.Tg)(notifier).subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__._)(subscriber,function(){return subscriber.complete()},_util_noop__WEBPACK_IMPORTED_MODULE_3__.l)),!subscriber.closed&&source.subscribe(subscriber)})}},"./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/.storybook/demos/examples/transloco/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"),_transloco_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/examples/transloco/transloco.component.stories.ts"),_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_translations_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/translations.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:_transloco_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"transloco-translation-keys",children:"Transloco translation keys"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Every text the UI library ships with, and how it is reached. The keys are\nmanaged with Transloco; an application loads the library's files alongside its\nown."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"translations",entry:_guide_translations_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:"language-selector",children:"Language Selector"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The language selector switches the active language, and every text on this\npage follows it. Left alone it renders its own label and a globe; anything\nprojected into it takes their place instead."}),"\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-lang-selector></ui-lang-selector>\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_transloco_component_stories__WEBPACK_IMPORTED_MODULE_4__.LangSelector}),"\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:"every-key-read-from-the-file",children:"Every key, read from the file"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The table below is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"generated from the loaded translation"}),", not written down\nbeside it. Switch the language above and the outputs follow."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"That is not a convenience, it is the point. A hand-kept table is an excerpt\nthe moment someone adds a key and forgets the row — and nothing about such a\npage says it is one. A list that walks the translation object cannot fall\nbehind it: a key added anywhere shows up here without anyone remembering to\nadd a row."}),"\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:"param"})," column names the placeholders a text expects. The output column\nprints what the pipe returns without them, so a text with a placeholder shows\nit raw — that IS the string."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_transloco_component_stories__WEBPACK_IMPORTED_MODULE_4__.AllKeys}),"\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:"passing-parameters",children:"Passing parameters"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The one thing the generated list cannot show: a placeholder filled in."}),"\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:"{{ 'form.errors.minlength' | transloco: { requiredLength: 3 } }}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_transloco_component_stories__WEBPACK_IMPORTED_MODULE_4__.WithParameters})]})}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/.storybook/demos/examples/transloco/transloco.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AllKeys:()=>AllKeys,LangSelector:()=>LangSelector,WithParameters:()=>WithParameters,__namedExportsOrder:()=>__namedExportsOrder,default:()=>transloco_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),lang_selector_component=__webpack_require__("./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.ts"),transloco_storybook_module=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),translation_table_component=__webpack_require__("./libs/ui/.storybook/demos/examples/transloco/translation-table/translation-table.component.ts.css?ngResource!=!./node_modules/@ngtools/webpack/src/loaders/inline-resource.js?data=CiAgICA6aG9zdCB7CiAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgfQoKICAgIHRhYmxlIHsKICAgICAgd2lkdGg6IDEwMCU7CiAgICB9CgogICAgLl9lbXB0eSB7CiAgICAgIGNvbG9yOiB2YXIoLS11aS1jLWVycm9yKTsKICAgIH0KICA%3D!./libs/ui/.storybook/demos/examples/transloco/translation-table/translation-table.component.ts"),translation_table_component_default=__webpack_require__.n(translation_table_component),_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"),rxjs_interop=__webpack_require__("./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiDemoTranslationTableComponent=class UiDemoTranslationTableComponent{transloco=(0,_effect_chunk2.WQX)(ngneat_transloco.JO);translation=(0,rxjs_interop.ot)(this.transloco.selectTranslation(),{initialValue:{}});rows=(0,_resource_chunk.EW)(()=>{let group="";return flatten(this.translation()).map(([key,value])=>{const own=key.split(".")[0],first=own!==group;return group=own,{key,group:own,params:placeholdersIn(value),first}})})};function flatten(translation,prefix=""){return Object.entries(translation).flatMap(([key,value])=>{const path=`${prefix}${key}`;return"object"==typeof value&&null!==value?flatten(value,`${path}.`):[[path,String(value)]]})}function placeholdersIn(value){return[...value.matchAll(/{\s*([^{}\s]+)\s*}/g)].map(match=>match[1])}UiDemoTranslationTableComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-demo-translation-table",imports:[ngneat_transloco.Kj],template:'\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n @if (rows().length === 0) {\n <tr>\n <td class="_empty" colspan="3">\n No translation keys loaded — this table reads the live translation\n file, so an empty table means a broken reader, not an empty file.\n </td>\n </tr>\n }\n @for (row of rows(); track row.key) {\n @if (row.first) {\n <tr>\n <th colspan="3">{{ row.group }}</th>\n </tr>\n }\n <tr>\n <td>{{ row.key }}</td>\n <td>{{ row.params.join(\', \') }}</td>\n <td>{{ row.key | transloco }}</td>\n </tr>\n }\n </table>\n ',styles:[translation_table_component_default()]})],UiDemoTranslationTableComponent);const transloco_component_stories={title:"Examples/Transloco",decorators:[(0,dist.Iz)({imports:[header_component.b,lang_selector_component.R,transloco_storybook_module.o,UiDemoTranslationTableComponent]})],parameters:{docs:{canvas:{sourceState:"none"}}}},LangSelector={render:args=>({props:{...args},template:'\n <ui-intern-header [theme]="\'theme-light\'"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-lang-selector></ui-lang-selector>\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n <tr>\n <td>langSelector.selected</td>\n <td></td>\n <td>{{"langSelector.selected" | transloco }}</td>\n </tr>\n </table>\n </section>\n '})},AllKeys={render:args=>({props:{...args},template:'\n <section class="relative flex flex-col gap-4">\n <ui-lang-selector></ui-lang-selector>\n <ui-demo-translation-table></ui-demo-translation-table>\n </section>\n '})},WithParameters={render:args=>({props:{...args},template:'\n <section class="relative flex flex-col">\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n <tr>\n <td>form.errors.minlength</td>\n <td>requiredLength: 3</td>\n <td>{{ "form.errors.minlength" | transloco : { requiredLength: 3 } }}</td>\n </tr>\n <tr>\n <td>form.errors.maxlength</td>\n <td>requiredLength: 10</td>\n <td>{{ "form.errors.maxlength" | transloco : { requiredLength: 10 } }}</td>\n </tr>\n </table>\n </section>\n '})},__namedExportsOrder=["LangSelector","AllKeys","WithParameters"];LangSelector.parameters={...LangSelector.parameters,docs:{...LangSelector.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-lang-selector></ui-lang-selector>\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n <tr>\n <td>langSelector.selected</td>\n <td></td>\n <td>{{"langSelector.selected" | transloco }}</td>\n </tr>\n </table>\n </section>\n `\n };\n }\n}',...LangSelector.parameters?.docs?.source}}},AllKeys.parameters={...AllKeys.parameters,docs:{...AllKeys.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <section class="relative flex flex-col gap-4">\n <ui-lang-selector></ui-lang-selector>\n <ui-demo-translation-table></ui-demo-translation-table>\n </section>\n `\n };\n }\n}',...AllKeys.parameters?.docs?.source},description:{story:"Every key the library ships, read out of the loaded translation instead of\nwritten down beside it. Switch the language above and the outputs follow.",...AllKeys.parameters?.docs?.description}}},WithParameters.parameters={...WithParameters.parameters,docs:{...WithParameters.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <section class="relative flex flex-col">\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n <tr>\n <td>form.errors.minlength</td>\n <td>requiredLength: 3</td>\n <td>{{ "form.errors.minlength" | transloco : { requiredLength: 3 } }}</td>\n </tr>\n <tr>\n <td>form.errors.maxlength</td>\n <td>requiredLength: 10</td>\n <td>{{ "form.errors.maxlength" | transloco : { requiredLength: 10 } }}</td>\n </tr>\n </table>\n </section>\n `\n };\n }\n}',...WithParameters.parameters?.docs?.source},description:{story:"The one thing a generated list cannot show: a placeholder actually filled\nin. The table above names the parameters a text expects and prints the raw\n`{requiredLength}` — here the same key is asked with a value.",...WithParameters.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/atoms/lang-selector/lang-selector.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.ui-lang-selector,\n._label {\n display: flex;\n flex-flow: row;\n align-items: center;\n}\n\n._label {\n color: var(--ui-c-default);\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/.storybook/demos/examples/transloco/translation-table/translation-table.component.ts.css?ngResource!=!./node_modules/@ngtools/webpack/src/loaders/inline-resource.js?data=CiAgICA6aG9zdCB7CiAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgfQoKICAgIHRhYmxlIHsKICAgICAgd2lkdGg6IDEwMCU7CiAgICB9CgogICAgLl9lbXB0eSB7CiAgICAgIGNvbG9yOiB2YXIoLS11aS1jLWVycm9yKTsKICAgIH0KICA%3D!./libs/ui/.storybook/demos/examples/transloco/translation-table/translation-table.component.ts"(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,"\n :host {\n display: block;\n }\n\n table {\n width: 100%;\n }\n\n ._empty {\n color: var(--ui-c-error);\n }\n ",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Angular v21.2.17
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
+ * License: MIT
5
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js.LICENSE.txt */
2
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[9044],{"./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{br:()=>toObservable,ot:()=>toSignal,pQ:()=>takeUntilDestroyed});var rxjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Observable.js"),rxjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/ReplaySubject.js"),rxjs_operators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"),_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs");function takeUntilDestroyed(destroyRef){destroyRef||(ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(takeUntilDestroyed),destroyRef=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz));const destroyed$=new rxjs__WEBPACK_IMPORTED_MODULE_0__.c(subscriber=>{if(destroyRef.destroyed)return void subscriber.next();return destroyRef.onDestroy(subscriber.next.bind(subscriber))});return source=>source.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.Q)(destroyed$))}function toObservable(source,options){ngDevMode&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toObservable);const injector=options?.injector??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.zZn),subject=new rxjs__WEBPACK_IMPORTED_MODULE_1__.m(1),watcher=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.QZP)(()=>{let value;try{value=source()}catch(err){return void(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.error(err))}(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.next(value))},{injector,manualCleanup:!0});return injector.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz).onDestroy(()=>{watcher.destroy(),subject.complete()}),subject.asObservable()}function toSignal(source,options){"undefined"!=typeof ngDevMode&&ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.tdH)(toSignal,"Invoking `toSignal` causes new subscriptions every time. Consider moving `toSignal` outside of the reactive context and read the signal value where needed.");const requiresCleanup=!options?.manualCleanup;ngDevMode&&requiresCleanup&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toSignal);const cleanupRef=requiresCleanup?options?.injector?.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz)??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz):null,equal=function makeToSignalEqual(userEquality=Object.is){return(a,b)=>1===a.kind&&1===b.kind&&userEquality(a.value,b.value)}(options?.equal);let state,destroyUnregisterFn;state=options?.requireSync?(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:0},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0}):(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:1,value:options?.initialValue},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0});const sub=source.subscribe({next:value=>state.set({kind:1,value}),error:error=>{state.set({kind:2,error}),destroyUnregisterFn?.()},complete:()=>{destroyUnregisterFn?.()}});if(options?.requireSync&&0===state().kind)throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.");return destroyUnregisterFn=cleanupRef?.onDestroy(sub.unsubscribe.bind(sub)),(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.EW)(()=>{const current=state();switch(current.kind){case 1:return current.value;case 2:throw current.error;case 0:throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:options?.equal,...ngDevMode?createDebugNameObject(options?.debugName,"source"):void 0})}function createDebugNameObject(toSignalDebugName,internalSignalDebugName){return{debugName:`toSignal${toSignalDebugName?"#"+toSignalDebugName:""}.${internalSignalDebugName}`}}},"./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/lang-selector/lang-selector.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>LANG_STORAGE_KEY,R:()=>UiLangSelectorComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var lang_selector_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.css?ngResource"),lang_selector_componentngResource_default=__webpack_require__.n(lang_selector_componentngResource),_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"),rxjs_interop=__webpack_require__("./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),ngx_pwa_local_storage=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs");const LANG_STORAGE_KEY="ui-lang";let UiLangSelectorComponent=class UiLangSelectorComponent{translocoService=(0,_effect_chunk2.WQX)(ngneat_transloco.JO);storage=(0,_effect_chunk2.WQX)(ngx_pwa_local_storage.AX);local=(0,core.input)(!1);langChange=(0,core.output)();currentLang=(0,rxjs_interop.ot)(this.translocoService.langChanges$,{initialValue:this.translocoService.getActiveLang()});ngOnInit(){this.storage.get(LANG_STORAGE_KEY).subscribe(value=>{if("en-EN"!==value&&"de-DE"!==value){if(this.local()){const detected=function detectSystemLang(){return(globalThis.navigator?.language??"").toLowerCase().startsWith("de")?"de-DE":"en-EN"}();if(detected===this.currentLang())return;this.translocoService.setActiveLang(detected),this.langChange.emit(detected)}}else this.translocoService.setActiveLang(value)})}setLang(){const next="en-EN"===this.currentLang()?"de-DE":"en-EN";this.translocoService.setActiveLang(next),this.storage.set(LANG_STORAGE_KEY,next).subscribe(),this.langChange.emit(next)}static propDecorators={local:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"local",required:!1,transform:void 0}]}],langChange:[{type:_debug_node_chunk.k7i,args:["langChange"]}]}};UiLangSelectorComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-lang-selector",template:'<button type="button" class="ui-lang-selector ui-none" (click)="setLang()">\n <ng-content>\n <span class="_label">\n {{ \'langSelector.selected\' | transloco }}\n <span class="ui-icon">language</span>\n </span>\n </ng-content>\n</button>\n',imports:[ngneat_transloco.Kj],styles:[lang_selector_componentngResource_default()]})],UiLangSelectorComponent)},"./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)},"./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>takeUntil});var _util_lift__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/lift.js"),_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js"),_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js"),_util_noop__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/noop.js");function takeUntil(notifier){return(0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.N)(function(source,subscriber){(0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__.Tg)(notifier).subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__._)(subscriber,function(){return subscriber.complete()},_util_noop__WEBPACK_IMPORTED_MODULE_3__.l)),!subscriber.closed&&source.subscribe(subscriber)})}},"./libs/ui/.storybook/demos/examples/transloco/transloco.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AllKeys:()=>AllKeys,LangSelector:()=>LangSelector,WithParameters:()=>WithParameters,__namedExportsOrder:()=>__namedExportsOrder,default:()=>transloco_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),lang_selector_component=__webpack_require__("./libs/ui/src/lib/atoms/lang-selector/lang-selector.component.ts"),transloco_storybook_module=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),translation_table_component=__webpack_require__("./libs/ui/.storybook/demos/examples/transloco/translation-table/translation-table.component.ts.css?ngResource!=!./node_modules/@ngtools/webpack/src/loaders/inline-resource.js?data=CiAgICA6aG9zdCB7CiAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgfQoKICAgIHRhYmxlIHsKICAgICAgd2lkdGg6IDEwMCU7CiAgICB9CgogICAgLl9lbXB0eSB7CiAgICAgIGNvbG9yOiB2YXIoLS11aS1jLWVycm9yKTsKICAgIH0KICA%3D!./libs/ui/.storybook/demos/examples/transloco/translation-table/translation-table.component.ts"),translation_table_component_default=__webpack_require__.n(translation_table_component),_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"),rxjs_interop=__webpack_require__("./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiDemoTranslationTableComponent=class UiDemoTranslationTableComponent{transloco=(0,_effect_chunk2.WQX)(ngneat_transloco.JO);translation=(0,rxjs_interop.ot)(this.transloco.selectTranslation(),{initialValue:{}});rows=(0,_resource_chunk.EW)(()=>{let group="";return flatten(this.translation()).map(([key,value])=>{const own=key.split(".")[0],first=own!==group;return group=own,{key,group:own,params:placeholdersIn(value),first}})})};function flatten(translation,prefix=""){return Object.entries(translation).flatMap(([key,value])=>{const path=`${prefix}${key}`;return"object"==typeof value&&null!==value?flatten(value,`${path}.`):[[path,String(value)]]})}function placeholdersIn(value){return[...value.matchAll(/{\s*([^{}\s]+)\s*}/g)].map(match=>match[1])}UiDemoTranslationTableComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-demo-translation-table",imports:[ngneat_transloco.Kj],template:'\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n @if (rows().length === 0) {\n <tr>\n <td class="_empty" colspan="3">\n No translation keys loaded — this table reads the live translation\n file, so an empty table means a broken reader, not an empty file.\n </td>\n </tr>\n }\n @for (row of rows(); track row.key) {\n @if (row.first) {\n <tr>\n <th colspan="3">{{ row.group }}</th>\n </tr>\n }\n <tr>\n <td>{{ row.key }}</td>\n <td>{{ row.params.join(\', \') }}</td>\n <td>{{ row.key | transloco }}</td>\n </tr>\n }\n </table>\n ',styles:[translation_table_component_default()]})],UiDemoTranslationTableComponent);const transloco_component_stories={title:"Examples/Transloco",decorators:[(0,dist.Iz)({imports:[header_component.b,lang_selector_component.R,transloco_storybook_module.o,UiDemoTranslationTableComponent]})],parameters:{docs:{canvas:{sourceState:"none"}}}},LangSelector={render:args=>({props:{...args},template:'\n <ui-intern-header [theme]="\'theme-light\'"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-lang-selector></ui-lang-selector>\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n <tr>\n <td>langSelector.selected</td>\n <td></td>\n <td>{{"langSelector.selected" | transloco }}</td>\n </tr>\n </table>\n </section>\n '})},AllKeys={render:args=>({props:{...args},template:'\n <section class="relative flex flex-col gap-4">\n <ui-lang-selector></ui-lang-selector>\n <ui-demo-translation-table></ui-demo-translation-table>\n </section>\n '})},WithParameters={render:args=>({props:{...args},template:'\n <section class="relative flex flex-col">\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n <tr>\n <td>form.errors.minlength</td>\n <td>requiredLength: 3</td>\n <td>{{ "form.errors.minlength" | transloco : { requiredLength: 3 } }}</td>\n </tr>\n <tr>\n <td>form.errors.maxlength</td>\n <td>requiredLength: 10</td>\n <td>{{ "form.errors.maxlength" | transloco : { requiredLength: 10 } }}</td>\n </tr>\n </table>\n </section>\n '})},__namedExportsOrder=["LangSelector","AllKeys","WithParameters"];LangSelector.parameters={...LangSelector.parameters,docs:{...LangSelector.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-lang-selector></ui-lang-selector>\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n <tr>\n <td>langSelector.selected</td>\n <td></td>\n <td>{{"langSelector.selected" | transloco }}</td>\n </tr>\n </table>\n </section>\n `\n };\n }\n}',...LangSelector.parameters?.docs?.source}}},AllKeys.parameters={...AllKeys.parameters,docs:{...AllKeys.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <section class="relative flex flex-col gap-4">\n <ui-lang-selector></ui-lang-selector>\n <ui-demo-translation-table></ui-demo-translation-table>\n </section>\n `\n };\n }\n}',...AllKeys.parameters?.docs?.source},description:{story:"Every key the library ships, read out of the loaded translation instead of\nwritten down beside it. Switch the language above and the outputs follow.",...AllKeys.parameters?.docs?.description}}},WithParameters.parameters={...WithParameters.parameters,docs:{...WithParameters.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <section class="relative flex flex-col">\n <table class="ui">\n <tr>\n <th class="w-[25rem]">key</th>\n <th class="w-[15rem]">param</th>\n <th>output</th>\n </tr>\n <tr>\n <td>form.errors.minlength</td>\n <td>requiredLength: 3</td>\n <td>{{ "form.errors.minlength" | transloco : { requiredLength: 3 } }}</td>\n </tr>\n <tr>\n <td>form.errors.maxlength</td>\n <td>requiredLength: 10</td>\n <td>{{ "form.errors.maxlength" | transloco : { requiredLength: 10 } }}</td>\n </tr>\n </table>\n </section>\n `\n };\n }\n}',...WithParameters.parameters?.docs?.source},description:{story:"The one thing a generated list cannot show: a placeholder actually filled\nin. The table above names the parameters a text expects and prints the raw\n`{requiredLength}` — here the same key is asked with a value.",...WithParameters.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/atoms/lang-selector/lang-selector.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.ui-lang-selector,\n._label {\n display: flex;\n flex-flow: row;\n align-items: center;\n}\n\n._label {\n color: var(--ui-c-default);\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/.storybook/demos/examples/transloco/translation-table/translation-table.component.ts.css?ngResource!=!./node_modules/@ngtools/webpack/src/loaders/inline-resource.js?data=CiAgICA6aG9zdCB7CiAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgfQoKICAgIHRhYmxlIHsKICAgICAgd2lkdGg6IDEwMCU7CiAgICB9CgogICAgLl9lbXB0eSB7CiAgICAgIGNvbG9yOiB2YXIoLS11aS1jLWVycm9yKTsKICAgIH0KICA%3D!./libs/ui/.storybook/demos/examples/transloco/translation-table/translation-table.component.ts"(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,"\n :host {\n display: block;\n }\n\n table {\n width: 100%;\n }\n\n ._empty {\n color: var(--ui-c-error);\n }\n ",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Angular v21.2.17
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
+ * License: MIT
5
+ */
@@ -0,0 +1,46 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
2
+ <defs>
3
+ <mask id="active-mask">
4
+ <rect x="0" y="0" width="32" height="32" fill="#FFF" />
5
+ <path fill="#000" fill-rule="nonzero"
6
+ d="M25,15.3 C26.8630998,15.3 28.7261995,16.2284418 29.795607,18.0853254 L29.795607,18.0853254 L34.7484772,26.6853254 C35.2679728,27.5873604 35.5068948,28.5446245 35.509009,29.4780654 C35.5112408,30.4762222 35.243212,31.4466974 34.7610935,32.2926531 C34.2789749,33.1386087 33.5826171,33.8603071 32.7267084,34.3600412 C31.9262928,34.8273748 30.9864445,35.1 29.9528702,35.1 L29.9528702,35.1 L20.0471298,35.1 C19.0135555,35.1 18.0737072,34.8273748 17.2732916,34.3600412 C16.4173829,33.8603071 15.7210251,33.1386087 15.2389065,32.2926531 C14.756788,31.4466974 14.4887592,30.4762222 14.490991,29.4780654 C14.4931052,28.5446245 14.7320272,27.5873604 15.2515228,26.6853254 L15.2515228,26.6853254 L20.204393,18.0853254 C21.2738005,16.2284418 23.1369002,15.3 25,15.3 Z"
7
+ transform="rotate(90 25 25.2)" />
8
+ </mask>
9
+ <mask id="critical-mask">
10
+ <rect x="0" y="0" width="32" height="32" fill="#FFF" />
11
+ <path fill="#000" fill-rule="nonzero"
12
+ d="M23.9,14.6 C26.7442665,14.6 29.3192665,15.7528668 31.1831998,17.6168002 C33.0471332,19.4807335 34.2,22.0557335 34.2,24.9 C34.2,27.7442665 33.0471332,30.3192665 31.1831998,32.1831998 C29.3192665,34.0471332 26.7442665,35.2 23.9,35.2 C21.0557335,35.2 18.4807335,34.0471332 16.6168002,32.1831998 C14.7528668,30.3192665 13.6,27.7442665 13.6,24.9 C13.6,22.0557335 14.7528668,19.4807335 16.6168002,17.6168002 C18.4807335,15.7528668 21.0557335,14.6 23.9,14.6 Z" />
13
+ </mask>
14
+ <mask id="negative-mask">
15
+ <rect x="0" y="0" width="32" height="32" fill="#FFF" />
16
+ <path fill="#000" fill-rule="nonzero"
17
+ d="M28.2,14.8 C29.633165,14.8 31.06633,15.346734 32.159798,16.440202 C33.2414078,17.5218119 33.7880833,18.9357904 33.8,20.353376 C33.811544,21.7725108 33.2872104,23.1952877 32.2266806,24.2917914 L32.2266806,24.2917914 L31.7206,24.8006729 L32.159798,25.240202 C33.253266,26.33367 33.8,27.766835 33.8,29.2 C33.8,30.633165 33.253266,32.06633 32.159798,33.159798 C31.0781881,34.2414078 29.6642096,34.7880833 28.246624,34.8 C26.8274892,34.811544 25.4047123,34.2872104 24.3082086,33.2266806 L24.3082086,33.2266806 L23.7993271,32.7206 L23.359798,33.159798 C22.26633,34.253266 20.833165,34.8 19.4,34.8 C17.966835,34.8 16.53367,34.253266 15.440202,33.159798 C14.3585922,32.0781881 13.8119167,30.6642096 13.8,29.246624 C13.788456,27.8274892 14.3127896,26.4047123 15.3733194,25.3082086 L15.3733194,25.3082086 L15.8794,24.7993271 L15.440202,24.359798 C14.346734,23.26633 13.8,21.833165 13.8,20.4 C13.8,18.966835 14.346734,17.53367 15.440202,16.440202 C16.5218119,15.3585922 17.9357904,14.8119167 19.353376,14.8 C20.7725108,14.788456 22.1952877,15.3127896 23.2917914,16.3733194 L23.2917914,16.3733194 L23.8006729,16.8794 L24.240202,16.440202 C25.33367,15.346734 26.766835,14.8 28.2,14.8 Z" />
18
+ </mask>
19
+ <mask id="positive-mask">
20
+ <rect x="0" y="0" width="32" height="32" fill="#FFF" />
21
+ <path fill="#000" fill-rule="nonzero"
22
+ d="M29.7294207,16.9922805 C31.1625744,16.9866282 32.5979013,17.5276612 33.6957071,18.6167741 C34.7816077,19.6940761 35.3338993,21.1058704 35.351258,22.5233982 C35.3686336,23.9423122 34.8500808,25.3669976 33.7941627,26.4676563 L33.7941627,26.4676563 L27.1794488,33.1363075 C26.0960963,34.2283069 24.675298,34.7802389 23.2508341,34.7920857 C21.8249459,34.8039445 20.3953569,34.27469 19.296927,33.2041927 L19.296927,33.2041927 L15.7761737,29.656491 C14.6870608,28.5586851 14.1460279,27.1233582 14.1516801,25.6902046 C14.1574213,24.2570509 14.7098478,22.8260705 15.8076536,21.7369576 C16.7544861,20.7976225 17.9523748,20.2659173 19.1834383,20.1411672 C20.4372495,20.0141119 21.7255226,20.3088158 22.8178242,21.0249737 L22.8178242,21.0249737 L23.1781395,21.2667759 L25.7761737,18.648254 C26.8652867,17.5504481 28.2962671,16.9980217 29.7294207,16.9922805 Z" />
23
+ </mask>
24
+ <mask id="warning-mask">
25
+ <rect x="0" y="0" width="32" height="32" fill="#FFF" />
26
+ <path fill="#000" fill-rule="nonzero"
27
+ d="M23.8,14.8 C25.6808284,14.8 27.5616567,15.7284418 28.6412402,17.5853254 L28.6412402,17.5853254 L33.6412402,26.1853254 C34.1656792,27.0873604 34.4068747,28.0446245 34.409009,28.9780654 C34.4112621,29.9762222 34.1406828,30.9466974 33.6539766,31.7926531 C33.1672704,32.6386087 32.4642862,33.3603071 31.600233,33.8600412 C30.7922009,34.3273748 29.8434094,34.6 28.8,34.6 L28.8,34.6 L18.8,34.6 C17.7565906,34.6 16.8077991,34.3273748 15.999767,33.8600412 C15.1357138,33.3603071 14.4327296,32.6386087 13.9460234,31.7926531 C13.4593172,30.9466974 13.1887379,29.9762222 13.190991,28.9780654 C13.1931253,28.0446245 13.4343208,27.0873604 13.9587598,26.1853254 L13.9587598,26.1853254 L18.9587598,17.5853254 C20.0383433,15.7284418 21.9191716,14.8 23.8,14.8 Z" />
28
+ </mask>
29
+
30
+ <polygon id="active" fill="none" stroke="#029CFD" stroke-linejoin="round" stroke-width="2.8"
31
+ points="25 21 30 29.6 20 29.6" transform="rotate(90 25 25.3)" />
32
+ <circle id="critical" fill="none" cx="23.9" cy="24.9" r="4.7" stroke="#000" stroke-linejoin="round"
33
+ stroke-width="2.8" />
34
+ <path id="negative" fill="none" stroke="#F40" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.8"
35
+ d="M19.4,20.4 L28.2,29.2 M28.2,20.4 L19.4,29.2" />
36
+ <polyline id="positive" fill="none" stroke="#66BF3C" stroke-linecap="round" stroke-linejoin="round"
37
+ stroke-width="2.8" points="19.752 25.712 23.204 29.192 29.752 22.592" />
38
+ <polygon id="warning" fill="none" stroke="#FFAE00" stroke-linejoin="round" stroke-width="2.8"
39
+ points="23.8 20.4 28.8 29 18.8 29" />
40
+ </defs>
41
+
42
+ <g id="mask">
43
+ <use id="icon" />
44
+ </g>
45
+ <use id="status" />
46
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="none" fill-rule="evenodd"><path fill="#FF4785" fill-rule="nonzero" d="M3.19456517,29.5523576 L2.20116517,3.08035756 C2.16820317,2.206041 2.83853396,1.46497625 3.71176517,1.41035756 L26.2285652,0.00315756388 C26.6728415,-0.0246745074 27.1088544,0.132425741 27.4332785,0.437229126 C27.7577026,0.74203251 27.9415652,1.16741027 27.9415652,1.61255756 L27.9415652,30.4585576 C27.9415652,30.8987416 27.7615266,31.3197739 27.4433606,31.6239653 C27.1251947,31.9281568 26.6965078,32.0890657 26.2567652,32.0693576 L4.73376517,31.1027576 C3.89549138,31.0651477 3.22618762,30.3908861 3.19476517,29.5523576 L3.19456517,29.5523576 Z"/><path fill="#FFF" d="M24.4581652,0.113957564 L21.3591652,0.307557564 L21.2081652,3.94195756 C21.2043927,4.0349625 21.2546048,4.1217998 21.3370927,4.16492627 C21.4195807,4.20805273 21.5195442,4.19973049 21.5937652,4.14355756 L23.0057652,3.07275756 L24.1981652,4.01215756 C24.2717133,4.07021898 24.3722957,4.08025391 24.4558654,4.03786787 C24.539435,3.99548183 24.5907604,3.90840015 24.5873652,3.81475756 L24.4581652,0.113757564 L24.4581652,0.113957564 Z M22.0463652,12.2851576 C21.4791652,12.7257576 17.2533652,13.0265576 17.2533652,12.3991576 C17.3427652,10.0053576 16.2709652,9.90035756 15.6755652,9.90035756 C15.1099652,9.90035756 14.1575652,10.0713576 14.1575652,11.3537576 C14.1575652,12.6605576 15.5495652,13.3983576 17.1835652,14.2643576 C19.5049652,15.4943576 22.3143652,16.9831576 22.3143652,20.7295576 C22.3143652,24.3201576 19.3967652,26.3037576 15.6755652,26.3037576 C11.8353652,26.3037576 8.47936517,24.7499576 8.85836517,19.3633576 C9.00716517,18.7307576 13.8895652,18.8811576 13.8895652,19.3633576 C13.8299652,21.5861576 14.3359652,22.2399576 15.6161652,22.2399576 C16.5985652,22.2399576 17.0449652,21.6983576 17.0449652,20.7865576 C17.0449652,19.4065576 15.5945652,18.5919576 13.9259652,17.6551576 C11.6665652,16.3865576 9.00716517,14.8935576 9.00716517,11.4679576 C9.00716517,8.04835756 11.3591652,5.76855756 15.5565652,5.76855756 C19.7541652,5.76855756 22.0463652,8.01335756 22.0463652,12.2853576 L22.0463652,12.2851576 Z"/></g></svg>
@@ -0,0 +1,2 @@
1
+ /*! For license information please see forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js.LICENSE.txt */
2
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1860],{"./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{br:()=>toObservable,ot:()=>toSignal,pQ:()=>takeUntilDestroyed});var rxjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Observable.js"),rxjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/ReplaySubject.js"),rxjs_operators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"),_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs");function takeUntilDestroyed(destroyRef){destroyRef||(ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(takeUntilDestroyed),destroyRef=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz));const destroyed$=new rxjs__WEBPACK_IMPORTED_MODULE_0__.c(subscriber=>{if(destroyRef.destroyed)return void subscriber.next();return destroyRef.onDestroy(subscriber.next.bind(subscriber))});return source=>source.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.Q)(destroyed$))}function toObservable(source,options){ngDevMode&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toObservable);const injector=options?.injector??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.zZn),subject=new rxjs__WEBPACK_IMPORTED_MODULE_1__.m(1),watcher=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.QZP)(()=>{let value;try{value=source()}catch(err){return void(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.error(err))}(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.next(value))},{injector,manualCleanup:!0});return injector.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz).onDestroy(()=>{watcher.destroy(),subject.complete()}),subject.asObservable()}function toSignal(source,options){"undefined"!=typeof ngDevMode&&ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.tdH)(toSignal,"Invoking `toSignal` causes new subscriptions every time. Consider moving `toSignal` outside of the reactive context and read the signal value where needed.");const requiresCleanup=!options?.manualCleanup;ngDevMode&&requiresCleanup&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toSignal);const cleanupRef=requiresCleanup?options?.injector?.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz)??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz):null,equal=function makeToSignalEqual(userEquality=Object.is){return(a,b)=>1===a.kind&&1===b.kind&&userEquality(a.value,b.value)}(options?.equal);let state,destroyUnregisterFn;state=options?.requireSync?(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:0},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0}):(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:1,value:options?.initialValue},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0});const sub=source.subscribe({next:value=>state.set({kind:1,value}),error:error=>{state.set({kind:2,error}),destroyUnregisterFn?.()},complete:()=>{destroyUnregisterFn?.()}});if(options?.requireSync&&0===state().kind)throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.");return destroyUnregisterFn=cleanupRef?.onDestroy(sub.unsubscribe.bind(sub)),(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.EW)(()=>{const current=state();switch(current.kind){case 1:return current.value;case 2:throw current.error;case 0:throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:options?.equal,...ngDevMode?createDebugNameObject(options?.debugName,"source"):void 0})}function createDebugNameObject(toSignalDebugName,internalSignalDebugName){return{debugName:`toSignal${toSignalDebugName?"#"+toSignalDebugName:""}.${internalSignalDebugName}`}}},"./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)},"./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>takeUntil});var _util_lift__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/lift.js"),_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js"),_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js"),_util_noop__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/noop.js");function takeUntil(notifier){return(0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.N)(function(source,subscriber){(0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__.Tg)(notifier).subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__._)(subscriber,function(){return subscriber.complete()},_util_noop__WEBPACK_IMPORTED_MODULE_3__.l)),!subscriber.closed&&source.subscribe(subscriber)})}},"./libs/ui/src/lib/forms/autocomplete/autocomplete.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Autocomplete:()=>Autocomplete,Flat:()=>Flat,Loading:()=>Loading,__namedExportsOrder:()=>__namedExportsOrder,default:()=>autocomplete_component_stories});var _effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),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 autocomplete_componentngResource=__webpack_require__("./libs/ui/src/lib/forms/autocomplete/autocomplete.component.css?ngResource"),autocomplete_componentngResource_default=__webpack_require__.n(autocomplete_componentngResource),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),rxjs_interop=__webpack_require__("./node_modules/@angular/core/fesm2022/rxjs-interop.mjs");let nextId=0,UiAutocompleteComponent=class UiAutocompleteComponent{host=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);destroyRef=(0,_effect_chunk2.WQX)(_effect_chunk2.abz);label=(0,core.input)(null);options=(0,core.input)([]);minChars=(0,core.input)(3);delay=(0,core.input)(250);loading=(0,core.input)(!1);complete=(0,core.output)();picked=(0,core.output)();model=(0,core.contentChild)(fesm2022_forms.vS);fieldId=(0,_effect_chunk2.vPA)(null);text=(0,_effect_chunk2.vPA)("");focused=(0,_effect_chunk2.vPA)(!1);dismissed=(0,_effect_chunk2.vPA)(!1);timer=null;lastFired=null;suppressNextInput=!1;open=(0,_resource_chunk.EW)(()=>this.focused()&&!this.dismissed()&&this.text().trim().length>=this.minChars()&&this.options().length>0);constructor(){this.destroyRef.onDestroy(()=>{this.timer&&clearTimeout(this.timer)})}ngAfterContentInit(){const el=this.inputEl();el&&(el.id||(el.id="ui-autocomplete-"+nextId++),this.fieldId.set(el.id)),this.text.set(String(el?.value??"")),this.model()?.control?.valueChanges?.pipe((0,rxjs_interop.pQ)(this.destroyRef)).subscribe(value=>this.onText(String(value??"")))}onText(value){if(this.text.set(value),this.timer&&(clearTimeout(this.timer),this.timer=null),this.suppressNextInput)return this.suppressNextInput=!1,void(this.lastFired=value.trim());this.dismissed.set(!1);const trimmed=value.trim();trimmed.length<this.minChars()?this.lastFired=null:this.timer=setTimeout(()=>{this.timer=null,trimmed!==this.lastFired&&(this.lastFired=trimmed,this.complete.emit(trimmed))},this.delay())}pick(option){this.dismissed.set(!0);const el=this.inputEl();el&&(this.suppressNextInput=!0,el.value=option.label,el.dispatchEvent(new Event("input",{bubbles:!0})),el.focus()),this.picked.emit(option)}onFocusIn(){this.focused.set(!0)}onFocusOut(event){const next=event.relatedTarget;next&&this.host.nativeElement.contains(next)||this.focused.set(!1)}onEscape(){this.open()&&(this.dismissed.set(!0),this.inputEl()?.focus())}onArrow(event){if(!this.open())return;event.preventDefault();const rows=[];if(this.host.nativeElement.querySelectorAll("button._option:not(:disabled)").forEach(row=>rows.push(row)),0===rows.length)return;const delta="ArrowDown"===event.key?1:-1,index=rows.indexOf(document.activeElement);-1===index?(1===delta?rows[0]:rows.at(-1))?.focus():0===index&&-1===delta?this.inputEl()?.focus():rows[Math.min(rows.length-1,index+delta)].focus()}inputEl(){return this.host.nativeElement.querySelector("[ui-tag]")}static ctorParameters=()=>[];static propDecorators={label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}],options:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"options",required:!1,transform:void 0}]}],minChars:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"minChars",required:!1,transform:void 0}]}],delay:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"delay",required:!1,transform:void 0}]}],loading:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"loading",required:!1,transform:void 0}]}],complete:[{type:_debug_node_chunk.k7i,args:["complete"]}],picked:[{type:_debug_node_chunk.k7i,args:["picked"]}],model:[{type:core.ContentChild,args:[fesm2022_forms.vS,{isSignal:!0}]}],onFocusIn:[{type:_debug_node_chunk.Z$l,args:["focusin"]}],onFocusOut:[{type:_debug_node_chunk.Z$l,args:["focusout",["$event"]]}],onEscape:[{type:_debug_node_chunk.Z$l,args:["keydown.escape"]}],onArrow:[{type:_debug_node_chunk.Z$l,args:["keydown.arrowdown",["$event"]]},{type:_debug_node_chunk.Z$l,args:["keydown.arrowup",["$event"]]}]}};UiAutocompleteComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-autocomplete",template:'@if (label()) {\n <label class="ui-ellipsis" [attr.for]="fieldId()">{{ label() }}</label>\n}\n<div class="_control" [class._-open]="open()">\n <ng-content select="[ui-tag]"></ng-content>\n\n @if (loading()) {\n \x3c!-- `autorenew`, not `progress_activity`: the ui ships the CLASSIC\n Material Icons font, whose ligature set predates the Symbols-only\n icons — an unknown ligature renders as invisible raw text. --\x3e\n <span class="ui-icon _spinner" aria-hidden="true">autorenew</span>\n }\n\n @if (open()) {\n \x3c!-- tabindex -1: browsers (notably Firefox) turn a SCROLLABLE container\n into its own tab stop with a focus outline — Tab would then need\n two hops to reach the first row. The rows are the tab stops. --\x3e\n <div class="_panel" tabindex="-1">\n @for (option of options(); track option.id) {\n <button\n type="button"\n class="_option"\n [class._-muted]="option.muted"\n [disabled]="option.disabled"\n (click)="pick(option)"\n >\n <span class="_option-label">{{ option.label }}</span>\n @if (option.sublabel) {\n <span class="_option-sublabel">{{ option.sublabel }}</span>\n }\n </button>\n }\n </div>\n }\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,styles:[autocomplete_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiAutocompleteComponent);const STOCK=[{id:1,label:"Pac-Man",sublabel:"Namco · 1980"},{id:2,label:"Ms. Pac-Man"},{id:3,label:"Galaga",sublabel:"Namco · 1981"},{id:31,label:"Rally-X",sublabel:"Namco · 1980",disabled:!0},{id:4,label:"Galaxian",sublabel:"Namco · 1979",muted:!0},{id:5,label:"Dig Dug",sublabel:"Namco · 1982"},{id:6,label:"Xevious",sublabel:"Namco · 1983"},{id:7,label:"Pole Position",sublabel:"Namco · 1982"},{id:8,label:"Asteroids",sublabel:"Atari · 1979"},{id:32,label:"Lunar Lander",sublabel:"Atari · 1979",disabled:!0},{id:9,label:"Centipede",sublabel:"Atari · 1981"},{id:10,label:"Millipede",sublabel:"Atari · 1982",muted:!0},{id:11,label:"Missile Command",sublabel:"Atari · 1980"},{id:12,label:"Tempest",sublabel:"Atari · 1981"},{id:13,label:"Breakout",sublabel:"Atari · 1976"},{id:14,label:"Pong"},{id:15,label:"Marble Madness",sublabel:"Atari · 1984"},{id:16,label:"Paperboy",sublabel:"Atari · 1985"},{id:17,label:"Space Invaders",sublabel:"Taito · 1978"},{id:18,label:"Bubble Bobble",sublabel:"Taito · 1986"},{id:19,label:"Arkanoid",sublabel:"Taito · 1986"},{id:20,label:"Frogger",sublabel:"Konami · 1981"},{id:21,label:"Gradius",sublabel:"Konami · 1985"},{id:22,label:"Track & Field",sublabel:"Konami · 1983",muted:!0},{id:23,label:"Donkey Kong",sublabel:"Nintendo · 1981"},{id:24,label:"Donkey Kong Jr."},{id:25,label:"Defender",sublabel:"Williams · 1981"},{id:26,label:"Joust",sublabel:"Williams · 1982"},{id:27,label:"Robotron: 2084",sublabel:"Williams · 1982"},{id:28,label:"Out Run",sublabel:"Sega · 1986"},{id:29,label:"After Burner",sublabel:"Sega · 1987"},{id:30,label:"Ghosts ’n Goblins",sublabel:"Capcom · 1985"}],answer=text=>{const needle=text.toLowerCase();return STOCK.filter(entry=>entry.label.toLowerCase().includes(needle)||(entry.sublabel??"").toLowerCase().includes(needle))},autocomplete_component_stories={title:"Forms/Autocomplete",component:UiAutocompleteComponent,decorators:[(0,dist.Iz)({imports:[header_component.b,fesm2022_forms.YN,UiAutocompleteComponent]})],argTypes:{label:{control:"text"},minChars:{control:{type:"range",min:0,max:6,step:1}},delay:{control:{type:"range",min:0,max:1500,step:50}},loading:{control:"boolean"}},args:{label:"Search",minChars:3,delay:250,loading:!1},parameters:{docs:{canvas:{sourceState:"none"}}}},Autocomplete={render:args=>{const query=(0,_effect_chunk2.vPA)(""),options=(0,_effect_chunk2.vPA)([]);return{props:{...args,query,options,complete:text=>options.set(answer(text))},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-autocomplete\n [label]="label"\n [options]="options()"\n [minChars]="minChars"\n [delay]="delay"\n [loading]="loading"\n (complete)="complete($event)"\n >\n <input\n ui-tag\n class="ui"\n type="text"\n autocomplete="off"\n placeholder="pac, atari, namco…"\n [ngModel]="query()"\n (ngModelChange)="query.set($event)"\n />\n </ui-autocomplete>\n </section>\n '}}},Flat={render:args=>{const query=(0,_effect_chunk2.vPA)(""),options=(0,_effect_chunk2.vPA)([]);return{props:{...args,query,options,complete:text=>options.set(answer(text))},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-autocomplete\n [label]="label"\n [options]="options()"\n [minChars]="minChars"\n [delay]="delay"\n [loading]="loading"\n (complete)="complete($event)"\n >\n <input\n ui-tag\n class="ui-flat"\n type="text"\n autocomplete="off"\n placeholder="pac, atari, namco…"\n [ngModel]="query()"\n (ngModelChange)="query.set($event)"\n />\n </ui-autocomplete>\n </section>\n '}}},Loading={args:{loading:!0},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-autocomplete [label]="label" [loading]="loading">\n <input ui-tag class="ui" type="text" autocomplete="off" [ngModel]="\'\'" />\n </ui-autocomplete>\n </section>\n '})},__namedExportsOrder=["Autocomplete","Flat","Loading"];Autocomplete.parameters={...Autocomplete.parameters,docs:{...Autocomplete.parameters?.docs,source:{originalSource:'{\n render: args => {\n // Signals on purpose: the (complete) emission comes from the debounce\n // timer — zoneless change detection only notices signal writes here.\n const query = signal(\'\');\n const options = signal<Array<UiAutocompleteOption>>([]);\n return {\n props: {\n ...args,\n query,\n options,\n complete: (text: string) => options.set(answer(text))\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-autocomplete\n [label]="label"\n [options]="options()"\n [minChars]="minChars"\n [delay]="delay"\n [loading]="loading"\n (complete)="complete($event)"\n >\n <input\n ui-tag\n class="ui"\n type="text"\n autocomplete="off"\n placeholder="pac, atari, namco…"\n [ngModel]="query()"\n (ngModelChange)="query.set($event)"\n />\n </ui-autocomplete>\n </section>\n `\n };\n }\n}',...Autocomplete.parameters?.docs?.source},description:{story:"Type at least `minChars` characters (try `pac`, `don` — or a maker like\n`atari`, `namco`, `kon` for a scrolling panel) — the story answers\n`(complete)` by filtering a fixed demo stock. Muted rows are dimmed but\nstay focusable and pickable. Fully keyboard-operable: Tab walks the rows,\nEnter picks, Escape closes. Picking writes the label back into the field.",...Autocomplete.parameters?.docs?.description}}},Flat.parameters={...Flat.parameters,docs:{...Flat.parameters?.docs,source:{originalSource:'{\n render: args => {\n const query = signal(\'\');\n const options = signal<Array<UiAutocompleteOption>>([]);\n return {\n props: {\n ...args,\n query,\n options,\n complete: (text: string) => options.set(answer(text))\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col w-96">\n <ui-autocomplete\n [label]="label"\n [options]="options()"\n [minChars]="minChars"\n [delay]="delay"\n [loading]="loading"\n (complete)="complete($event)"\n >\n <input\n ui-tag\n class="ui-flat"\n type="text"\n autocomplete="off"\n placeholder="pac, atari, namco…"\n [ngModel]="query()"\n (ngModelChange)="query.set($event)"\n />\n </ui-autocomplete>\n </section>\n `\n };\n }\n}',...Flat.parameters?.docs?.source},description:{story:"Flat variant: the projected input carries `ui-flat` instead of `ui` — no\nborders, no shadows; the open state reads as one soft 8%-focus surface.",...Flat.parameters?.docs?.description}}},Loading.parameters={...Loading.parameters,docs:{...Loading.parameters?.docs,source:{originalSource:'{\n args: {\n loading: true\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-autocomplete [label]="label" [loading]="loading">\n <input ui-tag class="ui" type="text" autocomplete="off" [ngModel]="\'\'" />\n </ui-autocomplete>\n </section>\n `\n };\n }\n}',...Loading.parameters?.docs?.source},description:{story:"The affix spinner: shown while `loading` is true (app-controlled).",...Loading.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/forms/autocomplete/autocomplete.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/* Spinner rotation — keyframes name deliberately without a leading\n underscore (Angular detaches underscore-prefixed keyframes). */\n@keyframes autocompleteSpin {\n to {\n rotate: 1turn;\n }\n}\n\nui-autocomplete {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n position: relative;\n display: grid;\n grid-template-columns: 1fr;\n grid-gap: calc(var(--ui-spacer) * 0.125);\n max-width: 100%;\n\n /* Same width contract as ui-input (tickets#99). */\n input.ui,\n input.ui-flat {\n width: calc(100% - var(--ui-spacer) * 0.25);\n }\n\n /* Positioning context for the affix spinner and the panel. Flex column\n on purpose: Safari keeps the projected input inline and reserves\n descender space below it — the panel (top: 100%) then starts a few\n pixels under the field. Flex blockifies the child in every engine,\n so field bottom and container bottom are the same line. */\n ._control {\n position: relative;\n display: flex;\n flex-flow: column;\n\n /* Open state: the field hands its bottom radii to the panel — field and\n panel form ONE body, flush edges, no offset. The field also KEEPS the\n focus optics while the panel is open: tabbing into the rows moves the\n real focus out of the input, and a grey field over a glowing panel\n would break the one-body look. */\n &._-open [ui-tag] {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-color: var(--ui-c-focus);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-focus);\n }\n }\n\n /* Loading affix — clear-button geometry with hand-tuned inset (0.38,\n user-approved); the slow spin reads as \"working\", not as alarm. */\n ._spinner {\n position: absolute;\n right: calc(var(--ui-spacer) * 0.38);\n top: 50%;\n margin-top: -12px;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: color-mix(in srgb, var(--ui-c-default) 65%, transparent);\n animation: autocompleteSpin 1.8s linear infinite;\n pointer-events: none;\n }\n\n /* The suggestion panel: exact field width, glued to the field's bottom\n edge (the field's own bottom border is the separator line). No waiting\n state — the panel only exists while there are options to show. */\n ._panel {\n position: absolute;\n top: 100%;\n left: 0;\n outline: none;\n width: calc(100% - var(--ui-spacer) * 0.25);\n z-index: 20;\n display: flex;\n flex-flow: column;\n max-height: 20rem;\n overflow: auto;\n overscroll-behavior: contain;\n background-color: var(--ui-autocomplete-bg, var(--ui-c-background));\n /* Focus-colored border AND the field's focus glow: the panel continues\n the focused field's ring — they read as one active body (user\n request 2026-07-29). */\n border: var(--ui-border-width) solid var(--ui-c-focus);\n border-top: 0;\n border-bottom-left-radius: var(--ui-border-radius);\n border-bottom-right-radius: var(--ui-border-radius);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-focus);\n }\n\n /* Suggestion rows are REAL buttons: Tab reaches them natively, Enter and\n Space pick natively — no synthetic key handling. Tall touch targets. */\n ._option {\n display: flex;\n flex-flow: column;\n align-items: flex-start;\n gap: calc(var(--ui-spacer) * 0.06);\n width: 100%;\n padding: calc(var(--ui-spacer) * 0.1875) calc(var(--ui-spacer) * 0.25);\n /* appearance none: without it the browser paints its NATIVE button face\n past the author styles — visible as a grey band on :disabled rows\n (same class of bug as the Safari checkbox, tickets#137). */\n appearance: none;\n border: 0;\n background: transparent;\n /* Themable hooks: --ui-autocomplete-* is only USED here (with the house\n defaults as fallback), never declared on the host — a parent override\n inherits in from any scope above. */\n color: var(--ui-autocomplete-color, var(--ui-c-default));\n font: inherit;\n text-align: left;\n cursor: pointer;\n\n & + ._option {\n border-top: var(--ui-border-width) solid\n color-mix(in srgb, var(--ui-c-fourthly) 50%, transparent);\n }\n\n /* Selection highlight: the subtle 8% focus surface (the solid focus\n fill was tried and rolled back on user request, 2026-07-29). */\n &:not(:disabled):hover,\n &:focus-visible {\n outline: none;\n background-color: var(\n --ui-autocomplete-hover-bg,\n color-mix(in srgb, var(--ui-c-focus) 8%, transparent)\n );\n }\n\n /* Dimmed (e.g. \"already sold\") — still focusable and pickable. As a\n color (not opacity) so the parent can theme it; the sublabel follows\n via currentColor. */\n &._-muted {\n color: var(\n --ui-autocomplete-muted-color,\n color-mix(in srgb, var(--ui-c-default) 45%, transparent)\n );\n }\n\n /* Inert: display-only — the native disabled removes it from Tab and\n clicks. The grey face follows the house disabled-button pairing\n (primary surface, fourthly text) — token-based and theme-aware,\n never the UA's native button face. */\n &:disabled {\n background-color: var(--ui-autocomplete-disabled-bg, var(--ui-c-primary));\n /* Stronger than the fourthly of disabled buttons — a two-line row\n needs to stay readable, dimming comes from the grey surface. */\n color: var(\n --ui-autocomplete-disabled-color,\n color-mix(in srgb, var(--ui-c-default) 55%, transparent)\n );\n cursor: default;\n }\n }\n\n ._option-sublabel {\n font-size: 0.85em;\n color: color-mix(in srgb, currentColor 65%, transparent);\n }\n\n /* ------------------------------------------------------------------\n Flat variant — active when the projected input is `ui-flat`. Follows\n the house flat language (see forms.css): no borders, NO shadows,\n focus reads as an 8% surface. Field and panel become one soft tinted\n body instead of a ringed one. */\n ._control:has([ui-tag].ui-flat) {\n &._-open [ui-tag] {\n border-color: transparent;\n box-shadow: none;\n background-color: color-mix(in srgb, var(--ui-c-focus) 8%, transparent);\n }\n\n ._panel {\n border: 0;\n box-shadow: none;\n background-color: var(\n --ui-autocomplete-bg,\n color-mix(in srgb, var(--ui-c-focus) 8%, var(--ui-c-background))\n );\n }\n\n ._option + ._option {\n border-top-color: color-mix(in srgb, var(--ui-c-fourthly) 35%, transparent);\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Angular v21.2.17
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
+ * License: MIT
5
+ */