@mojawork/ui-docs 2.8.1 → 2.8.2

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 (184) hide show
  1. package/README.md +2 -2
  2. package/catalog/atoms/typewriter.md +4 -3
  3. package/catalog/guide.json +3 -3
  4. package/catalog/manifest.json +3 -3
  5. package/catalog/version.json +2 -2
  6. package/package.json +1 -1
  7. package/storybook/1183.fafda52d.iframe.bundle.js +1 -0
  8. package/storybook/2033.986e1406.iframe.bundle.js +1 -0
  9. package/storybook/2089.d5a3e21e.iframe.bundle.js +1 -0
  10. package/storybook/2127.d7de271b.iframe.bundle.js +2 -0
  11. package/storybook/2228.7013a637.iframe.bundle.js +2 -0
  12. package/storybook/2639.7f497882.iframe.bundle.js +1 -0
  13. package/storybook/2971.036e7a14.iframe.bundle.js +1 -0
  14. package/storybook/3968.3c931220.iframe.bundle.js +1 -0
  15. package/storybook/{4425.368129b3.iframe.bundle.js → 4425.7f753a38.iframe.bundle.js} +2 -2
  16. package/storybook/4476.1b913b82.iframe.bundle.js +1 -0
  17. package/storybook/{4555.e26d162c.iframe.bundle.js → 4555.c83b35c3.iframe.bundle.js} +1 -1
  18. package/storybook/4755.0561bac5.iframe.bundle.js +23 -0
  19. package/storybook/{4755.e4656207.iframe.bundle.js.map → 4755.0561bac5.iframe.bundle.js.map} +1 -1
  20. package/storybook/4935.f88465d9.iframe.bundle.js +1 -0
  21. package/storybook/5568.be85a9aa.iframe.bundle.js +1 -0
  22. package/storybook/6824.4b8f7b0a.iframe.bundle.js +1 -0
  23. package/storybook/8051.dbaf9937.iframe.bundle.js +1 -0
  24. package/storybook/871.5a781df6.iframe.bundle.js +1 -0
  25. package/storybook/8819.8e56201f.iframe.bundle.js +1 -0
  26. package/storybook/9850.5a17be74.iframe.bundle.js +1 -0
  27. package/storybook/9946.6fea16dc.iframe.bundle.js +1 -0
  28. package/storybook/_external-mwork-banner-docs-mdx.f33bbf56.iframe.bundle.js +1 -0
  29. package/storybook/_external-mwork-basic-interpreter-docs-mdx.81168b4c.iframe.bundle.js +1 -0
  30. package/storybook/_external-mwork-music-player-docs-mdx.46f4887e.iframe.bundle.js +1 -0
  31. package/storybook/assets/ui/sounds/type.mp3 +0 -0
  32. package/storybook/atoms-_electrons-form-error-message-docs-mdx.9382b0cb.iframe.bundle.js +1 -0
  33. package/storybook/atoms-_electrons-loader-docs-mdx.e8bb9642.iframe.bundle.js +1 -0
  34. package/storybook/atoms-background-docs-mdx.0e861f2c.iframe.bundle.js +1 -0
  35. package/storybook/atoms-barcode-docs-mdx.78b610dc.iframe.bundle.js +1 -0
  36. package/storybook/atoms-buzzer-docs-mdx.f9daf952.iframe.bundle.js +1 -0
  37. package/storybook/atoms-card-docs-mdx.f8b63920.iframe.bundle.js +1 -0
  38. package/storybook/atoms-chart-docs-mdx.29f10b89.iframe.bundle.js +1 -0
  39. package/storybook/atoms-clock-docs-mdx.6864626c.iframe.bundle.js +1 -0
  40. package/storybook/atoms-copy-value-docs-mdx.fbe168e2.iframe.bundle.js +1 -0
  41. package/storybook/atoms-image-grid-docs-mdx.9df158a9.iframe.bundle.js +1 -0
  42. package/storybook/atoms-image-slider-docs-mdx.4ae341f5.iframe.bundle.js +1 -0
  43. package/storybook/atoms-inline-spinner-docs-mdx.8b942147.iframe.bundle.js +1 -0
  44. package/storybook/atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js +2 -0
  45. package/storybook/atoms-mosaic-docs-mdx.738f012c.iframe.bundle.js +1 -0
  46. package/storybook/atoms-placeholder-docs-mdx.7d376291.iframe.bundle.js +1 -0
  47. package/storybook/atoms-qr-code-docs-mdx.c47f67c9.iframe.bundle.js +1 -0
  48. package/storybook/atoms-rating-docs-mdx.d7df9a29.iframe.bundle.js +1 -0
  49. package/storybook/atoms-reader-doc-docs-mdx.f5375a37.iframe.bundle.js +1 -0
  50. package/storybook/atoms-text-animate-docs-mdx.152fc1bd.iframe.bundle.js +1 -0
  51. package/storybook/atoms-thumb-docs-mdx.525fc046.iframe.bundle.js +1 -0
  52. package/storybook/atoms-timer-docs-mdx.686f0392.iframe.bundle.js +1 -0
  53. package/storybook/atoms-typewriter-docs-mdx.a6c3f6b0.iframe.bundle.js +1 -0
  54. package/storybook/atoms-typewriter-typewriter-component-stories.3a4f5356.iframe.bundle.js +1 -0
  55. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.0aa5b787.iframe.bundle.js +1 -0
  56. package/storybook/cdk-components-table-docs-mdx.74bd247c.iframe.bundle.js +1 -0
  57. package/storybook/examples-docs-mdx.1a9d8db0.iframe.bundle.js +1 -0
  58. package/storybook/examples-image-grid-slider-docs-mdx.e56160ef.iframe.bundle.js +1 -0
  59. package/storybook/examples-layout-docs-mdx.d7d6f90b.iframe.bundle.js +1 -0
  60. package/storybook/examples-table-edit-focus-docs-mdx.55960e55.iframe.bundle.js +1 -0
  61. package/storybook/examples-transloco-docs-mdx.46447d84.iframe.bundle.js +2 -0
  62. package/storybook/forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js +2 -0
  63. package/storybook/forms-autofocus-docs-mdx.ce239261.iframe.bundle.js +1 -0
  64. package/storybook/forms-checkbox-checkbox-component-stories.df3196e5.iframe.bundle.js +1 -0
  65. package/storybook/forms-checkbox-docs-mdx.890972f3.iframe.bundle.js +1 -0
  66. package/storybook/forms-chip-docs-mdx.89a48075.iframe.bundle.js +1 -0
  67. package/storybook/forms-input-docs-mdx.56627297.iframe.bundle.js +1 -0
  68. package/storybook/forms-input-input-component-stories.b68ea104.iframe.bundle.js +1 -0
  69. package/storybook/forms-slider-docs-mdx.68b9e21c.iframe.bundle.js +1 -0
  70. package/storybook/forms-switch-docs-mdx.832228cb.iframe.bundle.js +1 -0
  71. package/storybook/forms-validators-docs-mdx.e11fe615.iframe.bundle.js +1 -0
  72. package/storybook/home-guide-mdx.2f32ffc1.iframe.bundle.js +1 -0
  73. package/storybook/{home-overview-mdx.0e32f57f.iframe.bundle.js → home-overview-mdx.00ee5070.iframe.bundle.js} +1 -1
  74. package/storybook/home-tips-mdx.24dc3e35.iframe.bundle.js +1 -0
  75. package/storybook/iframe.html +2 -2
  76. package/storybook/layout-main-docs-mdx.445bce2a.iframe.bundle.js +1 -0
  77. package/storybook/layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js +2 -0
  78. package/storybook/layout-nav-docs-mdx.92eac076.iframe.bundle.js +1 -0
  79. package/storybook/layout-overlay-docs-mdx.a680859b.iframe.bundle.js +1 -0
  80. package/storybook/layout-overlay-header-docs-mdx.6eb6e326.iframe.bundle.js +1 -0
  81. package/storybook/layout-spinner-docs-mdx.a792dea6.iframe.bundle.js +1 -0
  82. package/storybook/layout-splitter-docs-mdx.6b0e4fd2.iframe.bundle.js +1 -0
  83. package/storybook/layout-tabs-docs-mdx.aad59db3.iframe.bundle.js +1 -0
  84. package/storybook/layout-top-scroll-bottom-docs-mdx.42c18a0d.iframe.bundle.js +1 -0
  85. package/storybook/molecules-image-editor-docs-mdx.dba18ee6.iframe.bundle.js +1 -0
  86. package/storybook/project.json +1 -1
  87. package/storybook/{runtime~main.786a8152.iframe.bundle.js → runtime~main.ec39977b.iframe.bundle.js} +1 -1
  88. package/storybook/styling-colors-docs-mdx.3f513a8d.iframe.bundle.js +1 -0
  89. package/storybook/styling-css-variables-docs-mdx.5a090407.iframe.bundle.js +1 -0
  90. package/storybook/styling-forms-docs-mdx.649ae948.iframe.bundle.js +1 -0
  91. package/storybook/styling-icons-docs-mdx.e3ed5ebd.iframe.bundle.js +1 -0
  92. package/storybook/styling-layers-docs-mdx.d810a2c8.iframe.bundle.js +1 -0
  93. package/storybook/styling-tags-docs-mdx.ce4814c9.iframe.bundle.js +1 -0
  94. package/storybook/styling-ui-tags-docs-mdx.d94258ab.iframe.bundle.js +1 -0
  95. package/storybook/version.json +2 -2
  96. package/version.json +2 -2
  97. package/storybook/1183.da25800b.iframe.bundle.js +0 -1
  98. package/storybook/2033.c705a7ce.iframe.bundle.js +0 -1
  99. package/storybook/2089.32694489.iframe.bundle.js +0 -1
  100. package/storybook/2127.29f153d2.iframe.bundle.js +0 -2
  101. package/storybook/2228.77650ef1.iframe.bundle.js +0 -2
  102. package/storybook/2639.29baa8af.iframe.bundle.js +0 -1
  103. package/storybook/2971.edb202b4.iframe.bundle.js +0 -1
  104. package/storybook/3968.69b812e4.iframe.bundle.js +0 -1
  105. package/storybook/4476.f8e4115f.iframe.bundle.js +0 -1
  106. package/storybook/4755.e4656207.iframe.bundle.js +0 -23
  107. package/storybook/4935.8959522b.iframe.bundle.js +0 -1
  108. package/storybook/5568.c6172f92.iframe.bundle.js +0 -1
  109. package/storybook/6824.f5eb8bb7.iframe.bundle.js +0 -1
  110. package/storybook/8051.719eb790.iframe.bundle.js +0 -1
  111. package/storybook/871.428deceb.iframe.bundle.js +0 -1
  112. package/storybook/8819.220ca21d.iframe.bundle.js +0 -1
  113. package/storybook/9850.28367747.iframe.bundle.js +0 -1
  114. package/storybook/9946.36014b4e.iframe.bundle.js +0 -1
  115. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +0 -1
  116. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +0 -1
  117. package/storybook/_external-mwork-music-player-docs-mdx.3d0f7156.iframe.bundle.js +0 -1
  118. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +0 -1
  119. package/storybook/atoms-_electrons-loader-docs-mdx.1176957f.iframe.bundle.js +0 -1
  120. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +0 -1
  121. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +0 -1
  122. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +0 -1
  123. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +0 -1
  124. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +0 -1
  125. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +0 -1
  126. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +0 -1
  127. package/storybook/atoms-image-grid-docs-mdx.8161de39.iframe.bundle.js +0 -1
  128. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +0 -1
  129. package/storybook/atoms-inline-spinner-docs-mdx.a98163b8.iframe.bundle.js +0 -1
  130. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +0 -2
  131. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +0 -1
  132. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +0 -1
  133. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +0 -1
  134. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +0 -1
  135. package/storybook/atoms-reader-doc-docs-mdx.1860338f.iframe.bundle.js +0 -1
  136. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +0 -1
  137. package/storybook/atoms-thumb-docs-mdx.7286b617.iframe.bundle.js +0 -1
  138. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +0 -1
  139. package/storybook/atoms-typewriter-docs-mdx.993bc264.iframe.bundle.js +0 -1
  140. package/storybook/atoms-typewriter-typewriter-component-stories.80f07c89.iframe.bundle.js +0 -1
  141. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +0 -1
  142. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +0 -1
  143. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +0 -1
  144. package/storybook/examples-image-grid-slider-docs-mdx.d3578699.iframe.bundle.js +0 -1
  145. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +0 -1
  146. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +0 -1
  147. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +0 -2
  148. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +0 -2
  149. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +0 -1
  150. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +0 -1
  151. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +0 -1
  152. package/storybook/forms-chip-docs-mdx.01e1b518.iframe.bundle.js +0 -1
  153. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +0 -1
  154. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +0 -1
  155. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +0 -1
  156. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +0 -1
  157. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +0 -1
  158. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +0 -1
  159. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +0 -1
  160. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +0 -1
  161. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +0 -2
  162. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +0 -1
  163. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +0 -1
  164. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +0 -1
  165. package/storybook/layout-spinner-docs-mdx.03741741.iframe.bundle.js +0 -1
  166. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +0 -1
  167. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +0 -1
  168. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +0 -1
  169. package/storybook/molecules-image-editor-docs-mdx.805dcd5a.iframe.bundle.js +0 -1
  170. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +0 -1
  171. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +0 -1
  172. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +0 -1
  173. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +0 -1
  174. package/storybook/styling-layers-docs-mdx.a563260e.iframe.bundle.js +0 -1
  175. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +0 -1
  176. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +0 -1
  177. /package/storybook/{2127.29f153d2.iframe.bundle.js.LICENSE.txt → 2127.d7de271b.iframe.bundle.js.LICENSE.txt} +0 -0
  178. /package/storybook/{2228.77650ef1.iframe.bundle.js.LICENSE.txt → 2228.7013a637.iframe.bundle.js.LICENSE.txt} +0 -0
  179. /package/storybook/{4425.368129b3.iframe.bundle.js.LICENSE.txt → 4425.7f753a38.iframe.bundle.js.LICENSE.txt} +0 -0
  180. /package/storybook/{4755.e4656207.iframe.bundle.js.LICENSE.txt → 4755.0561bac5.iframe.bundle.js.LICENSE.txt} +0 -0
  181. /package/storybook/{atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt → atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js.LICENSE.txt} +0 -0
  182. /package/storybook/{examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt → examples-transloco-docs-mdx.46447d84.iframe.bundle.js.LICENSE.txt} +0 -0
  183. /package/storybook/{forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt → forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js.LICENSE.txt} +0 -0
  184. /package/storybook/{layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt → layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
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()}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt */
2
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1860,7837],{"./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/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/forms/autocomplete/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"),_autocomplete_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/forms/autocomplete/autocomplete.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_autocomplete_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-autocomplete.json");function _createMdxContent(props){const _components={code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_autocomplete_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"autocomplete",children:"Autocomplete"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"An input with a suggestion panel — a massively reduced take on the classic\nautocomplete: single select, fixed two-line row layout, no templates, no\nchips, no dropdown button."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["An input with a suggestion panel: it watches the typed text and, past\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"minChars"})," and after ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"delay"})," milliseconds of quiet, asks for options through\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"(complete)"}),"; the host answers by setting ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"options"}),", and a pick emits\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"(picked)"}),". It never fetches and never interprets the data — any source will\ndo. There is no waiting state, no empty message, no multi-select, no chips and\nno dropdown button: the panel is there with content or not at all."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-autocomplete",entry:_guide_ui_autocomplete_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"overview",children:"Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiAutocompleteComponent"})," wraps a regular projected input (the usual\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-tag"})," pattern) and never interprets the data. It watches the typed text\nand, once it reaches ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"minChars"})," and has been quiet for ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"delay"})," milliseconds,\nemits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"(complete)"})," — the request throttle. The app answers by setting\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"options"}),"; the panel only opens when that answer is non-empty. There is no\nwaiting state and no empty message: the panel appears with content or not at\nall. A tap or Enter on a row emits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"(picked)"})," and closes the panel."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Because the component only asks for data and never fetches, the same element\nserves any source: an in-memory list, computed signals, or a real backend\ncall — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"minChars"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"delay"})," keep request counts civil."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"label"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Text label rendered above the wrapped input."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"options"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Array<UiAutocompleteOption>"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"[]"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Suggestion rows, provided by the app in response to\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(complete)"}),". Shape: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"id"})," (returned on pick,\nnever interpreted), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"label"})," (main line),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"sublabel"})," (optional second line), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"muted"}),"\n(optional; dims the row — it stays focusable and pickable, so the\napp can answer a pick with its own feedback) and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"disabled"})," (optional; the row is inert — dimmed harder,\nskipped by Tab, never pickable)."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"minChars"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"number"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"3"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Minimum input length before any ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(complete)"})," fires."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"delay"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"number"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"250"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Quiet time in milliseconds after typing before\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(complete)"})," fires; an unchanged settled text does not\nre-fire."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"loading"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"false"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Shows a spinning affix icon at the right edge of the field while\ntrue — app-controlled (switch it on when firing a request, off when\nthe answer lands)."})})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"events",children:"Events"}),"\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:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Payload"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(complete)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The trimmed text, fired after threshold and quiet time."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(picked)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UiAutocompleteOption"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The chosen row. The component writes the option's label into the\nfield (a silent write — it never counts as typing, so no new\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"(complete)"})," fires), closes the panel and returns the\nfocus to the field."]})})]})]})]}),"\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:"behaviour",children:"Behaviour"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"The panel is a derived truth, not a state: it is open exactly while a\nnon-empty answer is there, the text still carries the threshold, and the\nfocus lives inside the component."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"Escape and clicking outside close it; the next edit revives it."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"Picking writes the label back into the field without triggering a new\nrequest round — only a real edit wakes the suggestions again."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"Field and panel form one flush body: same width, shared edges, the field\nhands its bottom radii to the panel while open."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"The label is tied to the field."})," The projected input keeps its own\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"id"})," if it has one; otherwise the component hands it one and points the\nlabel at it — a click on the label focuses the field, a screen reader\nnames it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Keyboard"}),": the rows are real buttons — Tab walks field → rows,\nEnter/Space picks, no synthetic key handling. Enter inside the field\nitself does nothing (picking always targets a focused row), which also\nkeeps barcode-scanner input from ever selecting anything. As sugar on\ntop, ↑/↓ walk the focus through the open panel's rows: ↓ from the field\nenters the first row, ↑ on the first row returns to the field, the ends\ndo not wrap and disabled rows are skipped (as with Tab)."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example",children:"Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Type ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"pac"})," or ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"don"})," — or a maker like ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"atari"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"namco"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"kon"})," for a\nscrolling panel. Picking writes the label back into the field."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_autocomplete_component_stories__WEBPACK_IMPORTED_MODULE_4__.Autocomplete}),"\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-autocomplete\n [label]="\'Search\'"\n [options]="suggestions()"\n [minChars]="3"\n [delay]="250"\n [loading]="isLoading()"\n (complete)="loadSuggestions($event)"\n (picked)="onPick($event)"\n>\n <input ui-tag class="ui" type="text" autocomplete="off" [(ngModel)]="query" />\n</ui-autocomplete>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"flat-example",children:"Flat Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The projected input carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-flat"})," instead of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"}),": no borders, no\nshadows — the open state reads as one soft 8%-focus surface (the house\nflat language)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_autocomplete_component_stories__WEBPACK_IMPORTED_MODULE_4__.Flat}),"\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:"loading-example",children:"Loading Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_autocomplete_component_stories__WEBPACK_IMPORTED_MODULE_4__.Loading})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/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()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[166,9236],{"./libs/ui/src/lib/forms/autofocus/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"),_autofocus_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/forms/autofocus/autofocus.stories.ts");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_autofocus_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"autofocus",children:"Autofocus"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Two directives put the cursor where the user is about to type, as soon as\nthe field exists: in a form that just opened, in content that just appeared.\nBoth wait 100ms after the view is ready, so the browser has rendered the\nfield before it is asked to focus it."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"overview",children:"Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiInputComponent"}),": the base input component."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiAutofocus"}),": focuses the element."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiAutofocusAndSelect"}),": focuses the element and selects its whole value."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"uiautofocus",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiAutofocus"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Focuses the host element 100ms after the view is initialised."}),"\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-input label="Autofocus">\n <input class="ui" uiAutofocus type="text" ui-tag />\n</ui-input>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"uiautofocusandselect",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiAutofocusAndSelect"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Selects all text in the host element 100ms after the view is initialised —\nwhich focuses it as well. For a field whose value the user is likely to\nreplace rather than extend."}),"\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-input label="Autofocus & Select">\n <input class="ui" uiAutofocusAndSelect type="text" value="Default Value" ui-tag />\n</ui-input>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"demo",children:"Demo"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The first field is focused on arrival. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Leave it"})," — Tab or a click\nelsewhere — and a second field appears, focused with its value selected.\nThe demo opens on its own, not on this page: a field that steals the focus\nthe moment it renders would do so here, too, while you read."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/forms-autofocus--auto-focus",children:"Open story"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The second field is created the moment it appears (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@if"}),"), not merely\nunhidden. That is the one thing to know about both directives: they act\nonce, 100ms after the element is initialised. An element that is in the DOM\nfrom the start and only hidden has had its moment long before anyone sees\nit — revealing it later focuses nothing. Create the element when you want\nthe cursor in it."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/forms/autofocus/autofocus.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AutoFocus:()=>AutoFocus,__namedExportsOrder:()=>__namedExportsOrder,default:()=>autofocus_stories});var fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiAutofocusAndSelectDirective=class UiAutofocusAndSelectDirective{element=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);ngAfterViewInit(){this.setFocus()}setFocus(){const input=this.element.nativeElement;setTimeout(function(){input.select()},100)}};UiAutofocusAndSelectDirective=(0,tslib_es6.Cg)([(0,_debug_node_chunk.WLR)({selector:"[uiAutofocusAndSelect]"})],UiAutofocusAndSelectDirective);let UiAutofocusDirective=class UiAutofocusDirective{element=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);ngAfterViewInit(){const element=this.element.nativeElement;setTimeout(function(){element.focus()},100)}};UiAutofocusDirective=(0,tslib_es6.Cg)([(0,_debug_node_chunk.WLR)({selector:"[uiAutofocus]"})],UiAutofocusDirective);var input_component=__webpack_require__("./libs/ui/src/lib/forms/input/input.component.ts");const autofocus_stories={title:"Forms/Autofocus",decorators:[(0,dist.Iz)({imports:[header_component.b,fesm2022_forms.YN,input_component.K,UiAutofocusDirective,UiAutofocusAndSelectDirective]})],parameters:{docs:{canvas:{sourceState:"none"}}}},AutoFocus={render:args=>({props:{...args,revealed:!1},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-input label="uiAutofocus">\n <input class="ui" (focusout)="revealed = true" ui-tag type="text" value="focused on arrival" uiAutofocus name="first" />\n </ui-input>\n <hr class="ui-dotted" />\n @if (revealed) {\n <ui-input label="uiAutofocusAndSelect">\n <input class="ui" (focusout)="revealed = false" ui-tag type="text" value="selected on arrival" uiAutofocusAndSelect name="second" />\n </ui-input>\n }\n </section>\n '})},__namedExportsOrder=["AutoFocus"];AutoFocus.parameters={...AutoFocus.parameters,docs:{...AutoFocus.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n revealed: false\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-input label="uiAutofocus">\n <input class="ui" (focusout)="revealed = true" ui-tag type="text" value="focused on arrival" uiAutofocus name="first" />\n </ui-input>\n <hr class="ui-dotted" />\n @if (revealed) {\n <ui-input label="uiAutofocusAndSelect">\n <input class="ui" (focusout)="revealed = false" ui-tag type="text" value="selected on arrival" uiAutofocusAndSelect name="second" />\n </ui-input>\n }\n </section>\n `\n };\n }\n}',...AutoFocus.parameters?.docs?.source},description:{story:"The first field is focused on arrival. Leave it, and a second field appears\n— created at that moment (`@if`, not `[hidden]`), so its directive fires\nwhen it is actually shown and the value comes up selected. A field that is\nmerely hidden has already had its 100ms; nothing would happen on reveal.",...AutoFocus.parameters?.docs?.description}}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3678],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>UiElectronFormErrorMessageComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var form_error_message_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.css?ngResource"),form_error_message_componentngResource_default=__webpack_require__.n(form_error_message_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 UiElectronFormErrorMessageComponent=class UiElectronFormErrorMessageComponent{errors=(0,core.input)({});variant=(0,core.input)("field");static propDecorators={errors:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"errors",required:!1,transform:void 0}]}],variant:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"variant",required:!1,transform:void 0}]}]}};UiElectronFormErrorMessageComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-form-error-message",template:"@if (errors()['required']) {\n <span\n >{{ 'form.errors.required' | transloco }}\n </span>\n}\n\n@if (errors()['minlength']) {\n <span>\n {{ 'form.errors.minlength' | transloco }}\n {{ errors()['minlength']['requiredLength'] }}\n </span>\n}\n\n@if (errors()['maxlength']) {\n <span>\n {{ 'form.errors.maxlength' | transloco }}\n {{ errors()['maxlength']['requiredLength'] }}\n </span>\n}\n\n@if (errors()['min']) {\n <span>\n {{ 'form.errors.min' | transloco }} {{ errors()['min']['min'] }}\n </span>\n}\n@if (errors()['max']) {\n <span>\n {{ 'form.errors.max' | transloco }} {{ errors()['max']['max'] }}\n </span>\n}\n@if (errors()['email']) {\n <span>{{\n 'form.errors.email' | transloco\n }}</span>\n}\n@if (errors()['numberNotValid']) {\n <span>{{\n 'form.errors.numberNotValid' | transloco\n }}</span>\n}\n@if (errors()['hexNotValid']) {\n <span>{{\n 'form.errors.hexNotValid' | transloco\n }}</span>\n}\n@if (errors()['urlInvalid']) {\n <span>{{\n 'form.errors.urlInvalid' | transloco\n }}</span>\n}\n@if (errors()['forbiddenName']) {\n <span>{{\n 'form.errors.forbiddenName' | transloco\n }}</span>\n}\n@if (errors()['uniqueName']) {\n <span>{{\n 'form.errors.uniqueName' | transloco\n }}</span>\n}\n@if (errors()['isbn']) {\n <span>{{\n 'form.errors.isbn' | transloco\n }}</span>\n}\n@if (errors()['integer']) {\n <span>{{\n 'form.errors.integer' | transloco\n }}</span>\n}\n\n@if (\n !errors()['required'] &&\n !errors()['minlength'] &&\n !errors()['maxlength'] &&\n !errors()['min'] &&\n !errors()['max'] &&\n !errors()['email'] &&\n !errors()['numberNotValid'] &&\n !errors()['hexNotValid'] &&\n !errors()['urlInvalid'] &&\n !errors()['forbiddenName'] &&\n !errors()['uniqueName'] &&\n !errors()['isbn'] &&\n !errors()['integer']\n ) {\n <span\n >\n {{ 'form.errors.unknown' | transloco }}\n </span>\n}\n",encapsulation:_debug_node_chunk.gXe.None,host:{"[class.floating]":"variant() === 'floating'"},imports:[ngneat_transloco.Kj],styles:[form_error_message_componentngResource_default()]})],UiElectronFormErrorMessageComponent)},"./libs/ui/src/lib/forms/_service/form-error-overlay.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:()=>UiFormErrorOverlayService});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");let UiFormErrorOverlayService=class UiFormErrorOverlayService{owner=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.vPA)(null);openOwner=this.owner.asReadonly();toggle(owner){this.owner.update(current=>current===owner?null:owner)}};UiFormErrorOverlayService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiFormErrorOverlayService)},"./libs/ui/src/lib/forms/checkbox/checkbox.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:()=>UiCheckboxComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var checkbox_componentngResource=__webpack_require__("./libs/ui/src/lib/forms/checkbox/checkbox.component.css?ngResource"),checkbox_componentngResource_default=__webpack_require__.n(checkbox_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"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),form_error_message_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.ts"),form_error_overlay_service=__webpack_require__("./libs/ui/src/lib/forms/_service/form-error-overlay.service.ts");let nextId=0,UiCheckboxComponent=class UiCheckboxComponent{errorOverlay=(0,_effect_chunk2.WQX)(form_error_overlay_service.I);host=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);label=(0,core.input)(null);display=(0,core.input)("none");uiError=(0,core.input)(!0,{transform:core.booleanAttribute});errorLabel=(0,core.input)("Errors");model=(0,core.contentChild)(fesm2022_forms.vS);fieldId=(0,_effect_chunk2.vPA)(null);showError(){const model=this.model();return this.uiError()&&Boolean(model?.errors)&&Boolean(model?.control?.touched||model?.control?.dirty||model?.formDirective?.submitted)}showOverlayError=(0,_resource_chunk.EW)(()=>this.errorOverlay.openOwner()===this);ngAfterContentInit(){const el=this.host.nativeElement.querySelector("[ui-tag]");el&&(el.id||(el.id="ui-checkbox-"+nextId++),this.fieldId.set(el.id))}toggleOverlayError(){this.errorOverlay.toggle(this)}static propDecorators={label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],uiError:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"uiError",required:!1,transform:void 0}]}],errorLabel:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"errorLabel",required:!1,transform:void 0}]}],model:[{type:core.ContentChild,args:[fesm2022_forms.vS,{isSignal:!0}]}]}};UiCheckboxComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-checkbox",template:'<div\n [class._validation]="uiError()"\n [class._check-icon]="display() === \'check-icon\'"\n>\n @if (display() === \'check-icon\') {\n <div\n class="_check"\n [class._-active]="model()?.value"\n [class._-error]="showError()"\n >\n <span class="ui-icon">\n {{ model()?.value ? \'check\' : \'none\' }}\n </span>\n </div>\n }\n <ng-content select="[ui-tag]"></ng-content>\n\n @if (showError()) {\n \x3c!-- A button, not a span: the overlay is opened by a click, and a\n keyboard user needs a tab stop to do the same. --\x3e\n <button\n type="button"\n class="ui-flat _error-icon"\n [attr.aria-label]="errorLabel()"\n [attr.aria-expanded]="showOverlayError()"\n (click)="toggleOverlayError()"\n >\n <span class="ui-icon">{{ showOverlayError() ? \'cancel\' : \'error\' }}</span>\n </button>\n }\n</div>\n\n@if (label()) {\n <label class="ui-ellipsis" [attr.for]="fieldId()">{{ label() }}</label>\n}\n\n@if (showError() && showOverlayError() && model()?.errors; as errors) {\n <ui-electron-form-error-message\n variant="floating"\n [errors]="errors"\n ></ui-electron-form-error-message>\n}\n',encapsulation:_debug_node_chunk.gXe.None,imports:[form_error_message_component.d],styles:[checkbox_componentngResource_default()]})],UiCheckboxComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/forms/checkbox/checkbox.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Checkbox:()=>Checkbox,CheckboxIcon:()=>CheckboxIcon,CheckboxIconFlat:()=>CheckboxIconFlat,CheckboxValidation:()=>CheckboxValidation,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),_angular_forms__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"),_checkbox_component__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/src/lib/forms/checkbox/checkbox.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Forms/Checkbox",component:_checkbox_component__WEBPACK_IMPORTED_MODULE_5__.j,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_2__.Iz)({providers:[_angular_forms__WEBPACK_IMPORTED_MODULE_1__.vS],imports:[_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_3__.b,_angular_forms__WEBPACK_IMPORTED_MODULE_1__.YN,_checkbox_component__WEBPACK_IMPORTED_MODULE_5__.j,_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_4__.o]})],argTypes:{label:{control:"text"},display:{control:"select",options:["none","check-icon"]},uiError:{table:{disable:!0}},accepted:{control:"boolean"},required:{control:"boolean"}},args:{label:"Checkbox Label",display:"check-icon",accepted:!1,required:!1},parameters:{docs:{canvas:{sourceState:"none"}}}},onlyAccepted={label:{table:{disable:!0}},display:{table:{disable:!0}},required:{table:{disable:!0}}},Checkbox={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-checkbox [label]="label">\n <input\n class="ui"\n ui-tag\n [(ngModel)]="accepted"\n type="checkbox"\n [required]="required"\n />\n </ui-checkbox>\n </section>\n '})},CheckboxIcon={argTypes:onlyAccepted,render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col gap-4">\n <ui-checkbox [label]="\'Icon Checkbox\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" />\n </ui-checkbox>\n\n <ui-checkbox [label]="\'Icon Checkbox (checked)\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" [ngModel]="true" />\n </ui-checkbox>\n </section>\n '})},CheckboxIconFlat={argTypes:onlyAccepted,render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col gap-4">\n <ui-checkbox [label]="\'Flat Icon Checkbox\'" display="check-icon">\n <input class="ui-flat" ui-tag type="checkbox" [(ngModel)]="accepted" />\n </ui-checkbox>\n\n <ui-checkbox [label]="\'Flat Icon Checkbox (checked)\'" display="check-icon">\n <input class="ui-flat" ui-tag type="checkbox" [ngModel]="true" />\n </ui-checkbox>\n </section>\n '})},CheckboxValidation={argTypes:{label:{table:{disable:!0}},display:{table:{disable:!0}}},args:{required:!0},play:(_ref=(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*({canvasElement}){canvasElement.querySelector("form")?.requestSubmit()}),function play(_x){return _ref.apply(this,arguments)}),render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <form class="relative flex flex-col pt-8 h-40" novalidate (ngSubmit)="(0)">\n <ui-checkbox [label]="\'required\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" name="accepted" [(ngModel)]="accepted" [required]="required" />\n </ui-checkbox>\n </form>\n '})};var _ref;const __namedExportsOrder=["Checkbox","CheckboxIcon","CheckboxIconFlat","CheckboxValidation"];Checkbox.parameters={...Checkbox.parameters,docs:{...Checkbox.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-checkbox [label]="label">\n <input\n class="ui"\n ui-tag\n [(ngModel)]="accepted"\n type="checkbox"\n [required]="required"\n />\n </ui-checkbox>\n </section>\n `\n };\n }\n}',...Checkbox.parameters?.docs?.source}}},CheckboxIcon.parameters={...CheckboxIcon.parameters,docs:{...CheckboxIcon.parameters?.docs,source:{originalSource:'{\n argTypes: onlyAccepted,\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 gap-4">\n <ui-checkbox [label]="\'Icon Checkbox\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" />\n </ui-checkbox>\n\n <ui-checkbox [label]="\'Icon Checkbox (checked)\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" [ngModel]="true" />\n </ui-checkbox>\n </section>\n `\n };\n }\n}',...CheckboxIcon.parameters?.docs?.source}}},CheckboxIconFlat.parameters={...CheckboxIconFlat.parameters,docs:{...CheckboxIconFlat.parameters?.docs,source:{originalSource:'{\n argTypes: onlyAccepted,\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 gap-4">\n <ui-checkbox [label]="\'Flat Icon Checkbox\'" display="check-icon">\n <input class="ui-flat" ui-tag type="checkbox" [(ngModel)]="accepted" />\n </ui-checkbox>\n\n <ui-checkbox [label]="\'Flat Icon Checkbox (checked)\'" display="check-icon">\n <input class="ui-flat" ui-tag type="checkbox" [ngModel]="true" />\n </ui-checkbox>\n </section>\n `\n };\n }\n}',...CheckboxIconFlat.parameters?.docs?.source}}},CheckboxValidation.parameters={...CheckboxValidation.parameters,docs:{...CheckboxValidation.parameters?.docs,source:{originalSource:'{\n argTypes: onlyValidation,\n args: {\n required: true\n },\n play: async ({\n canvasElement\n }) => {\n canvasElement.querySelector(\'form\')?.requestSubmit();\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <form class="relative flex flex-col pt-8 h-40" novalidate (ngSubmit)="(0)">\n <ui-checkbox [label]="\'required\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" name="accepted" [(ngModel)]="accepted" [required]="required" />\n </ui-checkbox>\n </form>\n `\n };\n }\n}',...CheckboxValidation.parameters?.docs?.source},description:{story:"Arrives submitted (a play step), so the reader sees the mark and the red\nframe without first touching the box — a required checkbox is the one\ncontrol that is invalid at rest.",...CheckboxValidation.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/_electrons/form-error-message/form-error-message.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-electron-form-error-message {\n position: absolute;\n bottom: 0;\n left: 0;\n display: flex;\n flex-flow: column;\n /* Same width as the wrapped input (which is `100% - 0.25·spacer` wide) and\n flush against its bottom edge — reads as a continuation of the field's\n error border (aligned on both sides, no gap, no shadow). */\n width: calc(100% - var(--ui-spacer) * 0.25);\n transform: translateY(100%);\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-error);\n border-top: 0;\n border-radius: 0 0 var(--ui-border-radius) var(--ui-border-radius);\n padding: calc(var(--ui-spacer) * 0.25);\n max-height: 12rem;\n overflow-y: auto;\n z-index: 1;\n span {\n border-bottom: var(--ui-border-width) solid var(--ui-c-fourthly);\n padding-bottom: calc(var(--ui-spacer) * 0.25);\n margin-bottom: calc(var(--ui-spacer) * 0.25);\n\n &:last-of-type {\n border: 0;\n }\n\n &:only-of-type {\n padding-bottom: 0;\n margin-bottom: 0;\n }\n }\n\n /* Self-contained box below compact controls (checkbox): fits its text,\n carries its own full border (incl. top) and hovers with a small gap. */\n &.floating {\n width: fit-content;\n max-width: 100%;\n transform: translateY(calc(100% + var(--ui-spacer) * 0.15));\n border: var(--ui-border-width) solid var(--ui-c-error);\n border-radius: var(--ui-border-radius);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/forms/checkbox/checkbox.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-checkbox {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n\n /* Themable hooks for the check-icon box (tickets#146). Apps recolor the\n box by setting these on (or above) the element — no out-specifying of\n the library's own rules, and no assumptions here about which surface the\n box will end up sitting on. */\n --ui-checkbox-border-color: var(--ui-c-secondary);\n --ui-checkbox-border-color-checked: var(--ui-c-fourthly);\n --ui-checkbox-border-color-focus: var(--ui-c-focus);\n --ui-checkbox-check-color: var(--ui-c-focus);\n\n position: relative;\n display: grid;\n grid-template-columns: auto 1fr;\n grid-gap: calc(var(--ui-spacer) * 0.4);\n max-width: 100%;\n align-items: center;\n\n /* The error mark: a button above the box, so a keyboard user can reach it\n and open the overlay; its position is the checkbox's own gestalt. (The\n `._-error` modifier below is the BOX's error state, a different thing.) */\n ._error-icon {\n position: absolute;\n top: calc((var(--ui-spacer) * -1) * 0.6);\n left: 0;\n transform: translateX(60%);\n width: 24px;\n height: 24px;\n min-width: 24px;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--ui-c-error);\n cursor: pointer;\n }\n\n ._check-icon {\n position: relative;\n display: flex;\n margin-right: calc(var(--ui-spacer) * 0.25);\n\n ._error-icon {\n transform: translate(80%, -50%);\n }\n\n ._check {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translate(-0%, -50%);\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n /* Three quarters of the icon box: a whole-pixel size at the default\n icon scale. A fractional box lands its border and its centred glyph\n between device pixels, which the browser then renders soft. */\n width: calc(var(--ui-icon-size) * 0.75);\n height: calc(var(--ui-icon-size) * 0.75);\n color: var(--ui-checkbox-check-color);\n background-color: var(--ui-c-fourthly);\n border: var(--ui-border-width) solid var(--ui-checkbox-border-color);\n border-radius: var(--ui-border-radius);\n cursor: pointer;\n\n &._-active {\n border-color: var(--ui-checkbox-border-color-checked);\n }\n\n &._-error {\n outline: none;\n border: var(--ui-border-width) solid var(--ui-c-error);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-error);\n }\n\n /* The glyph is sized to the box instead of being scaled up and nudged\n back into place — the check now sits inside the frame at every\n icon size. Material Icons ship a single weight, so the stroke does\n the bolding (font-weight would do nothing). */\n .ui-icon {\n font-size: calc(var(--ui-icon-size) * 0.75);\n -webkit-text-stroke: 0.06em currentColor;\n }\n }\n\n &:focus-within {\n ._check {\n outline: none;\n border: var(--ui-border-width) solid var(--ui-checkbox-border-color-focus);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-focus);\n }\n }\n\n /* Flat variant — active when the projected input carries `ui-flat`.\n House flat language (see forms.css) and nothing beyond it: the box\n keeps its frame (without one it stops reading as a checkbox) but\n drops its own surface, and focus answers with an 8% surface instead\n of a ring — flat controls never use shadows. Everything richer\n (tinted tiles, colored frames, a different check color) is an app's\n business, not the library's. The error state keeps its red frame and\n shadow. */\n &:has([ui-tag].ui-flat) {\n ._check:not(._-error) {\n background-color: transparent;\n }\n\n &:focus-within ._check:not(._-error) {\n box-shadow: none;\n background-color: color-mix(in srgb, var(--ui-c-focus) 8%, transparent);\n }\n }\n\n input[type='checkbox'] {\n position: absolute;\n top: 0;\n left: 0;\n transform: translate(14%, 10%);\n opacity: 0;\n scale: 2.8;\n }\n }\n\n /* The native box: red once invalid AND the user has been there — the\n untouched rule below undoes the red until then — and red as well after a\n submit, whose flag sits on the form OUTSIDE the component (hence the\n rule that starts there; same fix as ui-input). */\n ._validation {\n .ng-invalid {\n outline: none;\n border: var(--ui-border-width) solid var(--ui-c-error);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-error);\n }\n\n .ng-untouched {\n outline: none;\n border: var(--ui-border-width) solid var(--ui-c-default);\n box-shadow: none;\n }\n }\n\n .ng-submitted & ._validation .ng-invalid.ng-untouched {\n border: var(--ui-border-width) solid var(--ui-c-error);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-error);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3678,8108],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>UiElectronFormErrorMessageComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var form_error_message_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.css?ngResource"),form_error_message_componentngResource_default=__webpack_require__.n(form_error_message_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 UiElectronFormErrorMessageComponent=class UiElectronFormErrorMessageComponent{errors=(0,core.input)({});variant=(0,core.input)("field");static propDecorators={errors:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"errors",required:!1,transform:void 0}]}],variant:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"variant",required:!1,transform:void 0}]}]}};UiElectronFormErrorMessageComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-form-error-message",template:"@if (errors()['required']) {\n <span\n >{{ 'form.errors.required' | transloco }}\n </span>\n}\n\n@if (errors()['minlength']) {\n <span>\n {{ 'form.errors.minlength' | transloco }}\n {{ errors()['minlength']['requiredLength'] }}\n </span>\n}\n\n@if (errors()['maxlength']) {\n <span>\n {{ 'form.errors.maxlength' | transloco }}\n {{ errors()['maxlength']['requiredLength'] }}\n </span>\n}\n\n@if (errors()['min']) {\n <span>\n {{ 'form.errors.min' | transloco }} {{ errors()['min']['min'] }}\n </span>\n}\n@if (errors()['max']) {\n <span>\n {{ 'form.errors.max' | transloco }} {{ errors()['max']['max'] }}\n </span>\n}\n@if (errors()['email']) {\n <span>{{\n 'form.errors.email' | transloco\n }}</span>\n}\n@if (errors()['numberNotValid']) {\n <span>{{\n 'form.errors.numberNotValid' | transloco\n }}</span>\n}\n@if (errors()['hexNotValid']) {\n <span>{{\n 'form.errors.hexNotValid' | transloco\n }}</span>\n}\n@if (errors()['urlInvalid']) {\n <span>{{\n 'form.errors.urlInvalid' | transloco\n }}</span>\n}\n@if (errors()['forbiddenName']) {\n <span>{{\n 'form.errors.forbiddenName' | transloco\n }}</span>\n}\n@if (errors()['uniqueName']) {\n <span>{{\n 'form.errors.uniqueName' | transloco\n }}</span>\n}\n@if (errors()['isbn']) {\n <span>{{\n 'form.errors.isbn' | transloco\n }}</span>\n}\n@if (errors()['integer']) {\n <span>{{\n 'form.errors.integer' | transloco\n }}</span>\n}\n\n@if (\n !errors()['required'] &&\n !errors()['minlength'] &&\n !errors()['maxlength'] &&\n !errors()['min'] &&\n !errors()['max'] &&\n !errors()['email'] &&\n !errors()['numberNotValid'] &&\n !errors()['hexNotValid'] &&\n !errors()['urlInvalid'] &&\n !errors()['forbiddenName'] &&\n !errors()['uniqueName'] &&\n !errors()['isbn'] &&\n !errors()['integer']\n ) {\n <span\n >\n {{ 'form.errors.unknown' | transloco }}\n </span>\n}\n",encapsulation:_debug_node_chunk.gXe.None,host:{"[class.floating]":"variant() === 'floating'"},imports:[ngneat_transloco.Kj],styles:[form_error_message_componentngResource_default()]})],UiElectronFormErrorMessageComponent)},"./libs/ui/src/lib/forms/_service/form-error-overlay.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:()=>UiFormErrorOverlayService});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");let UiFormErrorOverlayService=class UiFormErrorOverlayService{owner=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.vPA)(null);openOwner=this.owner.asReadonly();toggle(owner){this.owner.update(current=>current===owner?null:owner)}};UiFormErrorOverlayService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiFormErrorOverlayService)},"./libs/ui/src/lib/forms/checkbox/checkbox.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:()=>UiCheckboxComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var checkbox_componentngResource=__webpack_require__("./libs/ui/src/lib/forms/checkbox/checkbox.component.css?ngResource"),checkbox_componentngResource_default=__webpack_require__.n(checkbox_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"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),form_error_message_component=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.ts"),form_error_overlay_service=__webpack_require__("./libs/ui/src/lib/forms/_service/form-error-overlay.service.ts");let nextId=0,UiCheckboxComponent=class UiCheckboxComponent{errorOverlay=(0,_effect_chunk2.WQX)(form_error_overlay_service.I);host=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);label=(0,core.input)(null);display=(0,core.input)("none");uiError=(0,core.input)(!0,{transform:core.booleanAttribute});errorLabel=(0,core.input)("Errors");model=(0,core.contentChild)(fesm2022_forms.vS);fieldId=(0,_effect_chunk2.vPA)(null);showError(){const model=this.model();return this.uiError()&&Boolean(model?.errors)&&Boolean(model?.control?.touched||model?.control?.dirty||model?.formDirective?.submitted)}showOverlayError=(0,_resource_chunk.EW)(()=>this.errorOverlay.openOwner()===this);ngAfterContentInit(){const el=this.host.nativeElement.querySelector("[ui-tag]");el&&(el.id||(el.id="ui-checkbox-"+nextId++),this.fieldId.set(el.id))}toggleOverlayError(){this.errorOverlay.toggle(this)}static propDecorators={label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],uiError:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"uiError",required:!1,transform:void 0}]}],errorLabel:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"errorLabel",required:!1,transform:void 0}]}],model:[{type:core.ContentChild,args:[fesm2022_forms.vS,{isSignal:!0}]}]}};UiCheckboxComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-checkbox",template:'<div\n [class._validation]="uiError()"\n [class._check-icon]="display() === \'check-icon\'"\n>\n @if (display() === \'check-icon\') {\n <div\n class="_check"\n [class._-active]="model()?.value"\n [class._-error]="showError()"\n >\n <span class="ui-icon">\n {{ model()?.value ? \'check\' : \'none\' }}\n </span>\n </div>\n }\n <ng-content select="[ui-tag]"></ng-content>\n\n @if (showError()) {\n \x3c!-- A button, not a span: the overlay is opened by a click, and a\n keyboard user needs a tab stop to do the same. --\x3e\n <button\n type="button"\n class="ui-flat _error-icon"\n [attr.aria-label]="errorLabel()"\n [attr.aria-expanded]="showOverlayError()"\n (click)="toggleOverlayError()"\n >\n <span class="ui-icon">{{ showOverlayError() ? \'cancel\' : \'error\' }}</span>\n </button>\n }\n</div>\n\n@if (label()) {\n <label class="ui-ellipsis" [attr.for]="fieldId()">{{ label() }}</label>\n}\n\n@if (showError() && showOverlayError() && model()?.errors; as errors) {\n <ui-electron-form-error-message\n variant="floating"\n [errors]="errors"\n ></ui-electron-form-error-message>\n}\n',encapsulation:_debug_node_chunk.gXe.None,imports:[form_error_message_component.d],styles:[checkbox_componentngResource_default()]})],UiCheckboxComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/forms/checkbox/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"),_checkbox_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/forms/checkbox/checkbox.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_checkbox_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-checkbox.json");function _createMdxContent(props){const _components={a:"a",blockquote:"blockquote",code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_checkbox_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"checkbox",children:"Checkbox"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A reusable and customizable checkbox component for Angular."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A styled wrapper around a projected native checkbox (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-tag"}),"): the label, an\noptional self-painted icon variant, and the validation display through\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiError"}),". Semantics, keyboard handling and form integration are the native\ninput's; the component adds the look and the error reporting. It is the control\nfor a choice that can be required or invalid — a toggle that is always valid\nis ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-switch"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-checkbox",entry:_guide_ui_checkbox_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"overview",children:"Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiCheckboxComponent"})," provides a styled wrapper for standard checkbox inputs. It supports labels, different display types (like icons), and integration with Angular's validation system."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The following properties can be used to configure the checkbox:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"label"}),": (Input) The text label next to the box. It is tied to the box: a\nprojected input keeps its own ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"id"})," if it has one, otherwise the component\nhands it one and points the label at it — a click on the label ticks the\nbox, a screen reader names it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"display"}),": (Input) The visual style of the checkbox ('none' | 'check-icon')."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiError"}),": (Input) Whether validation errors are shown (boolean, default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"true"}),"). It is on by default, so a checkbox reports an invalid state without being asked; set it to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"false"})," where the surrounding form does the reporting itself."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"errorLabel"}),": (Input) Accessible label for the error button that opens the\noverlay; override for localisation (default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'Errors'"}),")."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"basic-example",children:"Basic Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"In this example, you can interactively change the checkbox properties."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.blockquote,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Note:"})," This variant renders the native checkbox, and Safari is unreliable\nwith author-styled native controls — the focus state stays invisible, and a\nchecked box can even vanish under a transformed ancestor. Prefer the\nself-painted ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"#icon-example",children:"Icon Example"})," below; it renders identically in\nevery browser."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_checkbox_component_stories__WEBPACK_IMPORTED_MODULE_4__.Checkbox}),"\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-checkbox [label]="\'Checkbox Label\'">\n <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" />\n</ui-checkbox>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"icon-example",children:"Icon Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/forms-checkbox--checkbox-icon",children:"Open story: Icon"})}),"\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-checkbox [label]="\'Checkbox Icon\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" />\n</ui-checkbox>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The glyph is sized to the box (no scaling hack) and thickened with a text\nstroke, because Material Icons ship a single weight."}),"\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:"flat-icon-example",children:"Flat Icon Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The projected input carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-flat"})," instead of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"}),": the box drops its own\nsurface and every shadow, and focus answers with an 8% surface instead of a\nring — the same language the flat fields speak. The frame stays, because\nwithout one a checkbox stops reading as a control. The error state keeps its\nred frame and shadow."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"That is the whole variant. Anything richer — a tinted tile behind the box, a\ncolored frame, a different check color for a specific surface — is styling an\napp puts on top; the library stays plain here on purpose, so it fits into any\nof them."}),"\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:"custom-properties",children:"Custom properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The colors of the check-icon box are hooks, so an app can fit it to whatever\nsurface it ends up on without out-specifying the library's own rules. Set them\non the element or anywhere above it — they inherit."}),"\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:"Name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--ui-checkbox-border-color"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"var(--ui-c-secondary)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Frame at rest."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--ui-checkbox-border-color-checked"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"var(--ui-c-fourthly)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Frame while checked — the default lets it blend into the filled\nsurface, so the check carries the state on its own."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--ui-checkbox-border-color-focus"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"var(--ui-c-focus)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Frame while the box has focus."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--ui-checkbox-check-color"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"var(--ui-c-focus)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The check glyph."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-css",children:"/* e.g. an inline table editor: ink on every surface the row can take */\n._my-cell {\n --ui-checkbox-border-color: var(--ui-c-default);\n --ui-checkbox-border-color-checked: var(--ui-c-default);\n --ui-checkbox-border-color-focus: var(--ui-c-default);\n --ui-checkbox-check-color: var(--ui-c-default);\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/forms-checkbox--checkbox-icon-flat",children:"Open story: Flat Icon"})}),"\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-checkbox [label]="\'Checkbox Icon\'" display="check-icon">\n <input class="ui-flat" ui-tag type="checkbox" [(ngModel)]="accepted" />\n</ui-checkbox>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"validation-example",children:"Validation Example"}),"\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:"UiCheckboxComponent"})," supports Angular's validation system. As long as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiError"})," stays at its default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"true"}),", the component visually indicates invalid states (e.g., when a required field is not checked) by showing a red error icon and border — once the box has been touched or changed, or the form around it submitted; the same rule as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-input"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The error icon is a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"button"})," above the box — a keyboard user reaches it\nwith Tab and opens the overlay with Enter; it carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-expanded"}),".\nClicking it opens a floating error overlay with the validation messages;\nthe icon switches to a close icon while the overlay is open. Only\none error overlay is open at a time across all form fields — opening one\ncloses any other open overlay (coordinated by the shared\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiFormErrorOverlayService"}),")."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The checkbox uses the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"floating"})," variant of the error message: a\nself-contained box that only fits its text, carries a full border and hovers\nwith a small gap below the checkbox (unlike the full-width, field-attached\nlook of text inputs)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/forms-checkbox--checkbox-validation",children:"Open story: Validation"})}),"\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-checkbox [label]="\'Required Checkbox\'" [uiError]="true">\n <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" required />\n</ui-checkbox>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"types-uicheckboxtype",children:"Types: UiCheckboxType"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Available display types:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'none' | 'check-icon'"})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/forms/checkbox/checkbox.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Checkbox:()=>Checkbox,CheckboxIcon:()=>CheckboxIcon,CheckboxIconFlat:()=>CheckboxIconFlat,CheckboxValidation:()=>CheckboxValidation,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),_angular_forms__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"),_checkbox_component__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/src/lib/forms/checkbox/checkbox.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Forms/Checkbox",component:_checkbox_component__WEBPACK_IMPORTED_MODULE_5__.j,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_2__.Iz)({providers:[_angular_forms__WEBPACK_IMPORTED_MODULE_1__.vS],imports:[_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_3__.b,_angular_forms__WEBPACK_IMPORTED_MODULE_1__.YN,_checkbox_component__WEBPACK_IMPORTED_MODULE_5__.j,_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_4__.o]})],argTypes:{label:{control:"text"},display:{control:"select",options:["none","check-icon"]},uiError:{table:{disable:!0}},accepted:{control:"boolean"},required:{control:"boolean"}},args:{label:"Checkbox Label",display:"check-icon",accepted:!1,required:!1},parameters:{docs:{canvas:{sourceState:"none"}}}},onlyAccepted={label:{table:{disable:!0}},display:{table:{disable:!0}},required:{table:{disable:!0}}},Checkbox={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-checkbox [label]="label">\n <input\n class="ui"\n ui-tag\n [(ngModel)]="accepted"\n type="checkbox"\n [required]="required"\n />\n </ui-checkbox>\n </section>\n '})},CheckboxIcon={argTypes:onlyAccepted,render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col gap-4">\n <ui-checkbox [label]="\'Icon Checkbox\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" />\n </ui-checkbox>\n\n <ui-checkbox [label]="\'Icon Checkbox (checked)\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" [ngModel]="true" />\n </ui-checkbox>\n </section>\n '})},CheckboxIconFlat={argTypes:onlyAccepted,render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col gap-4">\n <ui-checkbox [label]="\'Flat Icon Checkbox\'" display="check-icon">\n <input class="ui-flat" ui-tag type="checkbox" [(ngModel)]="accepted" />\n </ui-checkbox>\n\n <ui-checkbox [label]="\'Flat Icon Checkbox (checked)\'" display="check-icon">\n <input class="ui-flat" ui-tag type="checkbox" [ngModel]="true" />\n </ui-checkbox>\n </section>\n '})},CheckboxValidation={argTypes:{label:{table:{disable:!0}},display:{table:{disable:!0}}},args:{required:!0},play:(_ref=(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*({canvasElement}){canvasElement.querySelector("form")?.requestSubmit()}),function play(_x){return _ref.apply(this,arguments)}),render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <form class="relative flex flex-col pt-8 h-40" novalidate (ngSubmit)="(0)">\n <ui-checkbox [label]="\'required\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" name="accepted" [(ngModel)]="accepted" [required]="required" />\n </ui-checkbox>\n </form>\n '})};var _ref;const __namedExportsOrder=["Checkbox","CheckboxIcon","CheckboxIconFlat","CheckboxValidation"];Checkbox.parameters={...Checkbox.parameters,docs:{...Checkbox.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-checkbox [label]="label">\n <input\n class="ui"\n ui-tag\n [(ngModel)]="accepted"\n type="checkbox"\n [required]="required"\n />\n </ui-checkbox>\n </section>\n `\n };\n }\n}',...Checkbox.parameters?.docs?.source}}},CheckboxIcon.parameters={...CheckboxIcon.parameters,docs:{...CheckboxIcon.parameters?.docs,source:{originalSource:'{\n argTypes: onlyAccepted,\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 gap-4">\n <ui-checkbox [label]="\'Icon Checkbox\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" [(ngModel)]="accepted" />\n </ui-checkbox>\n\n <ui-checkbox [label]="\'Icon Checkbox (checked)\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" [ngModel]="true" />\n </ui-checkbox>\n </section>\n `\n };\n }\n}',...CheckboxIcon.parameters?.docs?.source}}},CheckboxIconFlat.parameters={...CheckboxIconFlat.parameters,docs:{...CheckboxIconFlat.parameters?.docs,source:{originalSource:'{\n argTypes: onlyAccepted,\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 gap-4">\n <ui-checkbox [label]="\'Flat Icon Checkbox\'" display="check-icon">\n <input class="ui-flat" ui-tag type="checkbox" [(ngModel)]="accepted" />\n </ui-checkbox>\n\n <ui-checkbox [label]="\'Flat Icon Checkbox (checked)\'" display="check-icon">\n <input class="ui-flat" ui-tag type="checkbox" [ngModel]="true" />\n </ui-checkbox>\n </section>\n `\n };\n }\n}',...CheckboxIconFlat.parameters?.docs?.source}}},CheckboxValidation.parameters={...CheckboxValidation.parameters,docs:{...CheckboxValidation.parameters?.docs,source:{originalSource:'{\n argTypes: onlyValidation,\n args: {\n required: true\n },\n play: async ({\n canvasElement\n }) => {\n canvasElement.querySelector(\'form\')?.requestSubmit();\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <form class="relative flex flex-col pt-8 h-40" novalidate (ngSubmit)="(0)">\n <ui-checkbox [label]="\'required\'" display="check-icon">\n <input class="ui" ui-tag type="checkbox" name="accepted" [(ngModel)]="accepted" [required]="required" />\n </ui-checkbox>\n </form>\n `\n };\n }\n}',...CheckboxValidation.parameters?.docs?.source},description:{story:"Arrives submitted (a play step), so the reader sees the mark and the red\nframe without first touching the box — a required checkbox is the one\ncontrol that is invalid at rest.",...CheckboxValidation.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/_electrons/form-error-message/form-error-message.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-electron-form-error-message {\n position: absolute;\n bottom: 0;\n left: 0;\n display: flex;\n flex-flow: column;\n /* Same width as the wrapped input (which is `100% - 0.25·spacer` wide) and\n flush against its bottom edge — reads as a continuation of the field's\n error border (aligned on both sides, no gap, no shadow). */\n width: calc(100% - var(--ui-spacer) * 0.25);\n transform: translateY(100%);\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-error);\n border-top: 0;\n border-radius: 0 0 var(--ui-border-radius) var(--ui-border-radius);\n padding: calc(var(--ui-spacer) * 0.25);\n max-height: 12rem;\n overflow-y: auto;\n z-index: 1;\n span {\n border-bottom: var(--ui-border-width) solid var(--ui-c-fourthly);\n padding-bottom: calc(var(--ui-spacer) * 0.25);\n margin-bottom: calc(var(--ui-spacer) * 0.25);\n\n &:last-of-type {\n border: 0;\n }\n\n &:only-of-type {\n padding-bottom: 0;\n margin-bottom: 0;\n }\n }\n\n /* Self-contained box below compact controls (checkbox): fits its text,\n carries its own full border (incl. top) and hovers with a small gap. */\n &.floating {\n width: fit-content;\n max-width: 100%;\n transform: translateY(calc(100% + var(--ui-spacer) * 0.15));\n border: var(--ui-border-width) solid var(--ui-c-error);\n border-radius: var(--ui-border-radius);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/forms/checkbox/checkbox.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-checkbox {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n\n /* Themable hooks for the check-icon box (tickets#146). Apps recolor the\n box by setting these on (or above) the element — no out-specifying of\n the library's own rules, and no assumptions here about which surface the\n box will end up sitting on. */\n --ui-checkbox-border-color: var(--ui-c-secondary);\n --ui-checkbox-border-color-checked: var(--ui-c-fourthly);\n --ui-checkbox-border-color-focus: var(--ui-c-focus);\n --ui-checkbox-check-color: var(--ui-c-focus);\n\n position: relative;\n display: grid;\n grid-template-columns: auto 1fr;\n grid-gap: calc(var(--ui-spacer) * 0.4);\n max-width: 100%;\n align-items: center;\n\n /* The error mark: a button above the box, so a keyboard user can reach it\n and open the overlay; its position is the checkbox's own gestalt. (The\n `._-error` modifier below is the BOX's error state, a different thing.) */\n ._error-icon {\n position: absolute;\n top: calc((var(--ui-spacer) * -1) * 0.6);\n left: 0;\n transform: translateX(60%);\n width: 24px;\n height: 24px;\n min-width: 24px;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--ui-c-error);\n cursor: pointer;\n }\n\n ._check-icon {\n position: relative;\n display: flex;\n margin-right: calc(var(--ui-spacer) * 0.25);\n\n ._error-icon {\n transform: translate(80%, -50%);\n }\n\n ._check {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translate(-0%, -50%);\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n /* Three quarters of the icon box: a whole-pixel size at the default\n icon scale. A fractional box lands its border and its centred glyph\n between device pixels, which the browser then renders soft. */\n width: calc(var(--ui-icon-size) * 0.75);\n height: calc(var(--ui-icon-size) * 0.75);\n color: var(--ui-checkbox-check-color);\n background-color: var(--ui-c-fourthly);\n border: var(--ui-border-width) solid var(--ui-checkbox-border-color);\n border-radius: var(--ui-border-radius);\n cursor: pointer;\n\n &._-active {\n border-color: var(--ui-checkbox-border-color-checked);\n }\n\n &._-error {\n outline: none;\n border: var(--ui-border-width) solid var(--ui-c-error);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-error);\n }\n\n /* The glyph is sized to the box instead of being scaled up and nudged\n back into place — the check now sits inside the frame at every\n icon size. Material Icons ship a single weight, so the stroke does\n the bolding (font-weight would do nothing). */\n .ui-icon {\n font-size: calc(var(--ui-icon-size) * 0.75);\n -webkit-text-stroke: 0.06em currentColor;\n }\n }\n\n &:focus-within {\n ._check {\n outline: none;\n border: var(--ui-border-width) solid var(--ui-checkbox-border-color-focus);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-focus);\n }\n }\n\n /* Flat variant — active when the projected input carries `ui-flat`.\n House flat language (see forms.css) and nothing beyond it: the box\n keeps its frame (without one it stops reading as a checkbox) but\n drops its own surface, and focus answers with an 8% surface instead\n of a ring — flat controls never use shadows. Everything richer\n (tinted tiles, colored frames, a different check color) is an app's\n business, not the library's. The error state keeps its red frame and\n shadow. */\n &:has([ui-tag].ui-flat) {\n ._check:not(._-error) {\n background-color: transparent;\n }\n\n &:focus-within ._check:not(._-error) {\n box-shadow: none;\n background-color: color-mix(in srgb, var(--ui-c-focus) 8%, transparent);\n }\n }\n\n input[type='checkbox'] {\n position: absolute;\n top: 0;\n left: 0;\n transform: translate(14%, 10%);\n opacity: 0;\n scale: 2.8;\n }\n }\n\n /* The native box: red once invalid AND the user has been there — the\n untouched rule below undoes the red until then — and red as well after a\n submit, whose flag sits on the form OUTSIDE the component (hence the\n rule that starts there; same fix as ui-input). */\n ._validation {\n .ng-invalid {\n outline: none;\n border: var(--ui-border-width) solid var(--ui-c-error);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-error);\n }\n\n .ng-untouched {\n outline: none;\n border: var(--ui-border-width) solid var(--ui-c-default);\n box-shadow: none;\n }\n }\n\n .ng-submitted & ._validation .ng-invalid.ng-untouched {\n border: var(--ui-border-width) solid var(--ui-c-error);\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-error);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);