@mojawork/ui-docs 2.8.0 → 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 (187) hide show
  1. package/README.md +2 -2
  2. package/catalog/atoms/image-grid.md +1 -1
  3. package/catalog/atoms/typewriter.md +4 -3
  4. package/catalog/guide.json +4 -4
  5. package/catalog/manifest.json +3 -3
  6. package/catalog/version.json +2 -2
  7. package/package.json +1 -1
  8. package/storybook/1183.fafda52d.iframe.bundle.js +1 -0
  9. package/storybook/2033.986e1406.iframe.bundle.js +1 -0
  10. package/storybook/2089.d5a3e21e.iframe.bundle.js +1 -0
  11. package/storybook/2127.d7de271b.iframe.bundle.js +2 -0
  12. package/storybook/2228.7013a637.iframe.bundle.js +2 -0
  13. package/storybook/2621.b3ba2291.iframe.bundle.js +1 -0
  14. package/storybook/2639.7f497882.iframe.bundle.js +1 -0
  15. package/storybook/2971.036e7a14.iframe.bundle.js +1 -0
  16. package/storybook/3968.3c931220.iframe.bundle.js +1 -0
  17. package/storybook/{4425.368129b3.iframe.bundle.js → 4425.7f753a38.iframe.bundle.js} +2 -2
  18. package/storybook/4476.1b913b82.iframe.bundle.js +1 -0
  19. package/storybook/{4555.525bbef9.iframe.bundle.js → 4555.c83b35c3.iframe.bundle.js} +1 -1
  20. package/storybook/4755.0561bac5.iframe.bundle.js +23 -0
  21. package/storybook/{4755.e4656207.iframe.bundle.js.map → 4755.0561bac5.iframe.bundle.js.map} +1 -1
  22. package/storybook/4935.f88465d9.iframe.bundle.js +1 -0
  23. package/storybook/5568.be85a9aa.iframe.bundle.js +1 -0
  24. package/storybook/6824.4b8f7b0a.iframe.bundle.js +1 -0
  25. package/storybook/8051.dbaf9937.iframe.bundle.js +1 -0
  26. package/storybook/871.5a781df6.iframe.bundle.js +1 -0
  27. package/storybook/8819.8e56201f.iframe.bundle.js +1 -0
  28. package/storybook/9850.5a17be74.iframe.bundle.js +1 -0
  29. package/storybook/9946.6fea16dc.iframe.bundle.js +1 -0
  30. package/storybook/_external-mwork-banner-docs-mdx.f33bbf56.iframe.bundle.js +1 -0
  31. package/storybook/_external-mwork-basic-interpreter-docs-mdx.81168b4c.iframe.bundle.js +1 -0
  32. package/storybook/_external-mwork-music-player-docs-mdx.46f4887e.iframe.bundle.js +1 -0
  33. package/storybook/assets/ui/sounds/type.mp3 +0 -0
  34. package/storybook/atoms-_electrons-form-error-message-docs-mdx.9382b0cb.iframe.bundle.js +1 -0
  35. package/storybook/atoms-_electrons-loader-docs-mdx.e8bb9642.iframe.bundle.js +1 -0
  36. package/storybook/atoms-background-docs-mdx.0e861f2c.iframe.bundle.js +1 -0
  37. package/storybook/atoms-barcode-docs-mdx.78b610dc.iframe.bundle.js +1 -0
  38. package/storybook/atoms-buzzer-docs-mdx.f9daf952.iframe.bundle.js +1 -0
  39. package/storybook/atoms-card-docs-mdx.f8b63920.iframe.bundle.js +1 -0
  40. package/storybook/atoms-chart-docs-mdx.29f10b89.iframe.bundle.js +1 -0
  41. package/storybook/atoms-clock-docs-mdx.6864626c.iframe.bundle.js +1 -0
  42. package/storybook/atoms-copy-value-docs-mdx.fbe168e2.iframe.bundle.js +1 -0
  43. package/storybook/atoms-image-grid-docs-mdx.9df158a9.iframe.bundle.js +1 -0
  44. package/storybook/atoms-image-slider-docs-mdx.4ae341f5.iframe.bundle.js +1 -0
  45. package/storybook/atoms-inline-spinner-docs-mdx.8b942147.iframe.bundle.js +1 -0
  46. package/storybook/atoms-lang-selector-docs-mdx.0487b819.iframe.bundle.js +2 -0
  47. package/storybook/atoms-mosaic-docs-mdx.738f012c.iframe.bundle.js +1 -0
  48. package/storybook/atoms-placeholder-docs-mdx.7d376291.iframe.bundle.js +1 -0
  49. package/storybook/atoms-qr-code-docs-mdx.c47f67c9.iframe.bundle.js +1 -0
  50. package/storybook/atoms-rating-docs-mdx.d7df9a29.iframe.bundle.js +1 -0
  51. package/storybook/atoms-reader-doc-docs-mdx.f5375a37.iframe.bundle.js +1 -0
  52. package/storybook/atoms-text-animate-docs-mdx.152fc1bd.iframe.bundle.js +1 -0
  53. package/storybook/atoms-thumb-docs-mdx.525fc046.iframe.bundle.js +1 -0
  54. package/storybook/atoms-timer-docs-mdx.686f0392.iframe.bundle.js +1 -0
  55. package/storybook/atoms-typewriter-docs-mdx.a6c3f6b0.iframe.bundle.js +1 -0
  56. package/storybook/atoms-typewriter-typewriter-component-stories.3a4f5356.iframe.bundle.js +1 -0
  57. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.0aa5b787.iframe.bundle.js +1 -0
  58. package/storybook/cdk-components-table-docs-mdx.74bd247c.iframe.bundle.js +1 -0
  59. package/storybook/examples-docs-mdx.1a9d8db0.iframe.bundle.js +1 -0
  60. package/storybook/examples-image-grid-slider-docs-mdx.e56160ef.iframe.bundle.js +1 -0
  61. package/storybook/examples-layout-docs-mdx.d7d6f90b.iframe.bundle.js +1 -0
  62. package/storybook/examples-table-edit-focus-docs-mdx.55960e55.iframe.bundle.js +1 -0
  63. package/storybook/examples-transloco-docs-mdx.46447d84.iframe.bundle.js +2 -0
  64. package/storybook/forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js +2 -0
  65. package/storybook/forms-autofocus-docs-mdx.ce239261.iframe.bundle.js +1 -0
  66. package/storybook/forms-checkbox-checkbox-component-stories.df3196e5.iframe.bundle.js +1 -0
  67. package/storybook/forms-checkbox-docs-mdx.890972f3.iframe.bundle.js +1 -0
  68. package/storybook/forms-chip-docs-mdx.89a48075.iframe.bundle.js +1 -0
  69. package/storybook/forms-input-docs-mdx.56627297.iframe.bundle.js +1 -0
  70. package/storybook/forms-input-input-component-stories.b68ea104.iframe.bundle.js +1 -0
  71. package/storybook/forms-slider-docs-mdx.68b9e21c.iframe.bundle.js +1 -0
  72. package/storybook/forms-switch-docs-mdx.832228cb.iframe.bundle.js +1 -0
  73. package/storybook/forms-validators-docs-mdx.e11fe615.iframe.bundle.js +1 -0
  74. package/storybook/home-guide-mdx.2f32ffc1.iframe.bundle.js +1 -0
  75. package/storybook/{home-overview-mdx.a2833e60.iframe.bundle.js → home-overview-mdx.00ee5070.iframe.bundle.js} +1 -1
  76. package/storybook/home-tips-mdx.24dc3e35.iframe.bundle.js +1 -0
  77. package/storybook/iframe.html +2 -2
  78. package/storybook/layout-main-docs-mdx.445bce2a.iframe.bundle.js +1 -0
  79. package/storybook/layout-media-screen-docs-mdx.c382b73b.iframe.bundle.js +2 -0
  80. package/storybook/layout-nav-docs-mdx.92eac076.iframe.bundle.js +1 -0
  81. package/storybook/layout-overlay-docs-mdx.a680859b.iframe.bundle.js +1 -0
  82. package/storybook/layout-overlay-header-docs-mdx.6eb6e326.iframe.bundle.js +1 -0
  83. package/storybook/layout-spinner-docs-mdx.a792dea6.iframe.bundle.js +1 -0
  84. package/storybook/layout-splitter-docs-mdx.6b0e4fd2.iframe.bundle.js +1 -0
  85. package/storybook/layout-tabs-docs-mdx.aad59db3.iframe.bundle.js +1 -0
  86. package/storybook/layout-top-scroll-bottom-docs-mdx.42c18a0d.iframe.bundle.js +1 -0
  87. package/storybook/molecules-image-editor-docs-mdx.dba18ee6.iframe.bundle.js +1 -0
  88. package/storybook/project.json +1 -1
  89. package/storybook/{runtime~main.a2ec52c2.iframe.bundle.js → runtime~main.ec39977b.iframe.bundle.js} +1 -1
  90. package/storybook/styling-colors-docs-mdx.3f513a8d.iframe.bundle.js +1 -0
  91. package/storybook/styling-css-variables-docs-mdx.5a090407.iframe.bundle.js +1 -0
  92. package/storybook/styling-forms-docs-mdx.649ae948.iframe.bundle.js +1 -0
  93. package/storybook/styling-icons-docs-mdx.e3ed5ebd.iframe.bundle.js +1 -0
  94. package/storybook/styling-layers-docs-mdx.d810a2c8.iframe.bundle.js +1 -0
  95. package/storybook/styling-tags-docs-mdx.ce4814c9.iframe.bundle.js +1 -0
  96. package/storybook/styling-ui-tags-docs-mdx.d94258ab.iframe.bundle.js +1 -0
  97. package/storybook/version.json +2 -2
  98. package/version.json +2 -2
  99. package/storybook/1183.da25800b.iframe.bundle.js +0 -1
  100. package/storybook/2033.c705a7ce.iframe.bundle.js +0 -1
  101. package/storybook/2089.32694489.iframe.bundle.js +0 -1
  102. package/storybook/2127.29f153d2.iframe.bundle.js +0 -2
  103. package/storybook/2228.77650ef1.iframe.bundle.js +0 -2
  104. package/storybook/2621.2245d387.iframe.bundle.js +0 -1
  105. package/storybook/2639.29baa8af.iframe.bundle.js +0 -1
  106. package/storybook/2971.edb202b4.iframe.bundle.js +0 -1
  107. package/storybook/3968.69b812e4.iframe.bundle.js +0 -1
  108. package/storybook/4476.f8e4115f.iframe.bundle.js +0 -1
  109. package/storybook/4755.e4656207.iframe.bundle.js +0 -23
  110. package/storybook/4935.8959522b.iframe.bundle.js +0 -1
  111. package/storybook/5568.c6172f92.iframe.bundle.js +0 -1
  112. package/storybook/6824.f5eb8bb7.iframe.bundle.js +0 -1
  113. package/storybook/8051.719eb790.iframe.bundle.js +0 -1
  114. package/storybook/871.428deceb.iframe.bundle.js +0 -1
  115. package/storybook/8819.220ca21d.iframe.bundle.js +0 -1
  116. package/storybook/9850.28367747.iframe.bundle.js +0 -1
  117. package/storybook/9946.36014b4e.iframe.bundle.js +0 -1
  118. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +0 -1
  119. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +0 -1
  120. package/storybook/_external-mwork-music-player-docs-mdx.3d0f7156.iframe.bundle.js +0 -1
  121. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +0 -1
  122. package/storybook/atoms-_electrons-loader-docs-mdx.1176957f.iframe.bundle.js +0 -1
  123. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +0 -1
  124. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +0 -1
  125. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +0 -1
  126. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +0 -1
  127. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +0 -1
  128. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +0 -1
  129. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +0 -1
  130. package/storybook/atoms-image-grid-docs-mdx.7cb6414e.iframe.bundle.js +0 -1
  131. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +0 -1
  132. package/storybook/atoms-inline-spinner-docs-mdx.a98163b8.iframe.bundle.js +0 -1
  133. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +0 -2
  134. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +0 -1
  135. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +0 -1
  136. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +0 -1
  137. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +0 -1
  138. package/storybook/atoms-reader-doc-docs-mdx.1860338f.iframe.bundle.js +0 -1
  139. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +0 -1
  140. package/storybook/atoms-thumb-docs-mdx.7286b617.iframe.bundle.js +0 -1
  141. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +0 -1
  142. package/storybook/atoms-typewriter-docs-mdx.993bc264.iframe.bundle.js +0 -1
  143. package/storybook/atoms-typewriter-typewriter-component-stories.80f07c89.iframe.bundle.js +0 -1
  144. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +0 -1
  145. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +0 -1
  146. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +0 -1
  147. package/storybook/examples-image-grid-slider-docs-mdx.d3578699.iframe.bundle.js +0 -1
  148. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +0 -1
  149. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +0 -1
  150. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +0 -2
  151. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +0 -2
  152. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +0 -1
  153. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +0 -1
  154. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +0 -1
  155. package/storybook/forms-chip-docs-mdx.01e1b518.iframe.bundle.js +0 -1
  156. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +0 -1
  157. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +0 -1
  158. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +0 -1
  159. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +0 -1
  160. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +0 -1
  161. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +0 -1
  162. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +0 -1
  163. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +0 -1
  164. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +0 -2
  165. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +0 -1
  166. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +0 -1
  167. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +0 -1
  168. package/storybook/layout-spinner-docs-mdx.03741741.iframe.bundle.js +0 -1
  169. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +0 -1
  170. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +0 -1
  171. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +0 -1
  172. package/storybook/molecules-image-editor-docs-mdx.805dcd5a.iframe.bundle.js +0 -1
  173. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +0 -1
  174. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +0 -1
  175. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +0 -1
  176. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +0 -1
  177. package/storybook/styling-layers-docs-mdx.a563260e.iframe.bundle.js +0 -1
  178. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +0 -1
  179. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +0 -1
  180. /package/storybook/{2127.29f153d2.iframe.bundle.js.LICENSE.txt → 2127.d7de271b.iframe.bundle.js.LICENSE.txt} +0 -0
  181. /package/storybook/{2228.77650ef1.iframe.bundle.js.LICENSE.txt → 2228.7013a637.iframe.bundle.js.LICENSE.txt} +0 -0
  182. /package/storybook/{4425.368129b3.iframe.bundle.js.LICENSE.txt → 4425.7f753a38.iframe.bundle.js.LICENSE.txt} +0 -0
  183. /package/storybook/{4755.e4656207.iframe.bundle.js.LICENSE.txt → 4755.0561bac5.iframe.bundle.js.LICENSE.txt} +0 -0
  184. /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
  185. /package/storybook/{examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt → examples-transloco-docs-mdx.46447d84.iframe.bundle.js.LICENSE.txt} +0 -0
  186. /package/storybook/{forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt → forms-autocomplete-docs-mdx.698eef62.iframe.bundle.js.LICENSE.txt} +0 -0
  187. /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 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4320,7419],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/buzzer/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"),_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_buzzer_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-buzzer.json");function _createMdxContent(props){const _components={code:"code",em:"em",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:_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"buzzer",children:"Buzzer"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A reusable and customizable buzzer 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 big round button that answers a press with shadow, not outlines — optionally\npulsing or rotating, and able to fill its parent. It is a button and nothing\nmore: it shows what is projected into it, its tint comes from\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-buzzer-color"})," rather than an input, and what a press means is decided\nwhere it is used. It carries no label, icon or state of its own."]}),"\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-buzzer",entry:_guide_ui_buzzer_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:"UiBuzzerComponent"})," is an interactive buzzer button with an optional looping animation and the ability to fill its parent; its tint is set through the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-buzzer-color"})," CSS variable. Its focus halo is a keyboard mark (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":focus-visible"}),"): a pointer press leaves no lasting focus styling, while a keyboard focus keeps its position and its halo."]}),"\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 buzzer:"}),"\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:"animate"}),": (Input) The type of animation to apply. Available options: 'pulse', 'rotate', or null."]}),"\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:"fillParent"}),": (Input) When true, the buzzer takes the size of its parent instead of its own 12rem minimum. The parent needs a size of its own."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"the-three-states",children:"The three states"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The buzzer answers in shadow, not in outlines — the same halo throughout, only\nits colour and its size change. Measured:"}),"\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:"State"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"box-shadow"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Reads as"})]})}),(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:"resting"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 0.25rem 1rem rgba(0,0,0,0.1)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Sitting above the surface."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"focused (keyboard)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 0.25rem 1rem rgba(var(--ui-c-focus-value), 0.2)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Same shape, tinted — keyboard-focused without losing its depth."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"pressed"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0 0 0.25rem 0.25rem rgba(0,0,0,0.4)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Halo pulled in and darkened: pushed down."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The focus rule carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":not(:active)"}),", and that is not decoration. It sits\nafter the pressed rule at equal specificity, so without it a focused buzzer\nwould keep the focus halo while being pressed and stop reacting to the press\naltogether — which is exactly what happened once."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The halo is the only focus mark there is: the library's global button rule\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"forms.css"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":focus-visible:is([class^='ui'])"}),") removes the outline, and the\nclass ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-buzzer"})," starts with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui"}),", so it is caught by that rule too. Both rules\nanswer ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":focus-visible"}),", so the halo shows for a keyboard focus and a pointer\npress leaves nothing behind — the buzzer no longer blurs itself to wipe a ring."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"css-variables",children:"CSS variables"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The tint is a CSS variable, not an input — set it from the outside:"}),"\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:"--ui-buzzer-color"}),": the fill behind the translucent sheen. Any CSS color or\ntoken (e.g. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"#ff0000"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-primary)"}),"). Defaults to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transparent"}),"."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The story below sets it per buzzer (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'[style.--ui-buzzer-color]="…"'}),"), so the\ncolour you see is the example."]}),"\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__.jsxs)(_components.p,{children:["In this example the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"animate"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fillParent"})," controls drive all five buzzers. The\ncolors are fixed — they are the point of this example, and each buzzer sets its\nown through the CSS variable."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Note what ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fillParent"}),' needs to work: a parent with a size of its own. Each buzzer\nhere sits in a cell of a fixed width and height, because "fill the parent" is a\nquestion a parent sized by its own content cannot answer.']}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__.Buzzer}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{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-buzzer style="--ui-buzzer-color: #ffcdff" [animate]="\'pulse\'">0</ui-buzzer>\n\n\x3c!-- fillParent needs a parent that has a size --\x3e\n<div style="width: 18rem; height: 18rem">\n <ui-buzzer [fillParent]="true">0</ui-buzzer>\n</div>\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:"animation-overview",children:"Animation Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"This overview shows available buzzer animations."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_buzzer_component_stories__WEBPACK_IMPORTED_MODULE_4__.BuzzerAnimate}),"\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:"component-details",children:"Component Details"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Selector:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-buzzer"})]}),"\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:"Encapsulation:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.Emulated"})," (default)"]}),"\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:"type-uibuzzeranimatetypes",children:"Type: UiBuzzerAnimateTypes"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Available animations:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'pulse' | 'rotate' | null"})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/buzzer/buzzer.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Buzzer:()=>Buzzer,BuzzerAnimate:()=>BuzzerAnimate,__namedExportsOrder:()=>__namedExportsOrder,default:()=>buzzer_component_stories});var _common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var buzzer_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/buzzer/buzzer.component.css?ngResource"),buzzer_componentngResource_default=__webpack_require__.n(buzzer_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiBuzzerComponent=class UiBuzzerComponent{animate=(0,core.input)(null);fillParent=(0,core.input)(!1);static propDecorators={animate:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"animate",required:!1,transform:void 0}]}],fillParent:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"fillParent",required:!1,transform:void 0}]}]}};UiBuzzerComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-buzzer",template:'<button\n class="ui-buzzer"\n [class]="animate() ?? \'\'"\n [class._-fill-parent]="fillParent()"\n>\n <ng-content></ng-content>\n</button>\n',styles:[buzzer_componentngResource_default()]})],UiBuzzerComponent);const buzzer_component_stories={title:"Atoms/Buzzer",component:UiBuzzerComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,_common_module_chunk.MD,UiBuzzerComponent]})],argTypes:{animate:{control:"select",options:["pulse","rotate",null]},fillParent:{control:"boolean"},colors:{table:{disable:!0},control:!1},cssVars:{table:{disable:!0},control:!1},cssVarsGlobal:{table:{disable:!0},control:!1}},args:{animate:null,fillParent:!1},parameters:{docs:{canvas:{sourceState:"none"}}}},data={colors:["#ffcdff","#cfcfff","#cfffcf","#ffcfcf","#cfcfcf"],cssVars:["var(--ui-c-default)","var(--ui-c-default-invert)","var(--ui-c-primary)","var(--ui-c-primary-invert)","var(--ui-c-secondary)","var(--ui-c-thirdly)","var(--ui-c-fourthly)","var(--ui-c-background)"],cssVarsGlobal:["var(--ui-c-success)","var(--ui-c-error)","var(--ui-c-warn)","var(--ui-c-focus)","var(--ui-c-static)","var(--ui-c-static-invert)"]},Buzzer={render:args=>({props:{...args,colors:data.colors},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_auto_auto_auto_1fr]">\n @for (item of colors; track item; let i = $index) {\n \x3c!-- The bordered box is the point of the `fillParent` control: it is\n deliberately larger than the buzzer\'s own 12rem, so the\n switch reads as the buzzer growing into its outline.\n\n The centering classes belong on the HOST, not on this box.\n `fillParent` sets min-width/min-height to 100%, which needs a\n parent with a size of its own; making the BOX a flex\n container turns the host into an auto-sized flex item, the\n percentage has nothing to resolve against, and the buzzer\n collapses to 27px. With h-full/w-full on the host the size\n is definite and the same flex centering works. --\x3e\n <div class="h-72 w-72 border border-[var(--ui-c-default)]">\n <ui-buzzer\n class="flex h-full w-full items-center justify-center"\n [title]="item"\n [style.--ui-buzzer-color]="item"\n [animate]="animate"\n [fillParent]="fillParent"\n >{{i}}</ui-buzzer>\n </div>\n }\n </div>\n </section>\n '})},BuzzerAnimate={parameters:{controls:{disable:!0}},render:args=>({props:{...args,colors:data.colors},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_1fr]">\n <ui-buzzer [style.--ui-buzzer-color]="colors[0]" [animate]="\'pulse\'">pulse</ui-buzzer>\n <ui-buzzer [style.--ui-buzzer-color]="colors[1]" [animate]="\'rotate\'">rotate</ui-buzzer>\n </div>\n </section>\n '})},__namedExportsOrder=["Buzzer","BuzzerAnimate"];Buzzer.parameters={...Buzzer.parameters,docs:{...Buzzer.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n colors: data.colors\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_auto_auto_auto_1fr]">\n @for (item of colors; track item; let i = $index) {\n \x3c!-- The bordered box is the point of the \\`fillParent\\` control: it is\n deliberately larger than the buzzer\'s own 12rem, so the\n switch reads as the buzzer growing into its outline.\n\n The centering classes belong on the HOST, not on this box.\n \\`fillParent\\` sets min-width/min-height to 100%, which needs a\n parent with a size of its own; making the BOX a flex\n container turns the host into an auto-sized flex item, the\n percentage has nothing to resolve against, and the buzzer\n collapses to 27px. With h-full/w-full on the host the size\n is definite and the same flex centering works. --\x3e\n <div class="h-72 w-72 border border-[var(--ui-c-default)]">\n <ui-buzzer\n class="flex h-full w-full items-center justify-center"\n [title]="item"\n [style.--ui-buzzer-color]="item"\n [animate]="animate"\n [fillParent]="fillParent"\n >{{i}}</ui-buzzer>\n </div>\n }\n </div>\n </section>\n `\n };\n }\n}',...Buzzer.parameters?.docs?.source}}},BuzzerAnimate.parameters={...BuzzerAnimate.parameters,docs:{...BuzzerAnimate.parameters?.docs,source:{originalSource:'{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: args => {\n return {\n props: {\n ...args,\n colors: data.colors\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 m-4 !grid-cols-[auto_auto_1fr]">\n <ui-buzzer [style.--ui-buzzer-color]="colors[0]" [animate]="\'pulse\'">pulse</ui-buzzer>\n <ui-buzzer [style.--ui-buzzer-color]="colors[1]" [animate]="\'rotate\'">rotate</ui-buzzer>\n </div>\n </section>\n `\n };\n }\n}',...BuzzerAnimate.parameters?.docs?.source},description:{story:"Both looping animations side by side. They are named in the template, not\ntaken from the args, so the Controls panel is removed here rather than left\nstanding with settings that move nothing — the interactive one is the story\nabove.",...BuzzerAnimate.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/buzzer/buzzer.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n@keyframes pulse {\n 0% {\n transform: scale(1);\n }\n\n 10% {\n transform: scale(0.9);\n }\n\n 20% {\n transform: scale(1);\n }\n\n 30% {\n transform: scale(0.9);\n }\n\n 40% {\n transform: scale(1);\n }\n}\n\n@keyframes rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.ui-buzzer {\n display: flex;\n border-radius: 50%;\n min-width: 12rem;\n min-height: 12rem;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n font-size: 2.4rem;\n transition: 0.05s;\n -webkit-appearance: none;\n -moz-appearance: none;\n box-shadow: 0 0 0.25rem 1rem rgba(0, 0, 0, 0.1);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.4) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n /* The tint sits BEHIND the translucent sheen. A CSS variable, not an input:\n it repeats in :active/:focus because their `background:` shorthand resets\n the color, and the tint must survive both states (tickets#183). */\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 0 rgba(255, 255, 255, 0.1);\n &._-fill-parent {\n min-width: 100%;\n min-height: 100%;\n }\n &.pulse,\n &.rotate {\n animation-duration: 2s;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n }\n &.pulse {\n animation-name: pulse;\n }\n &.rotate {\n animation-name: rotate;\n }\n}\n\n.ui-buzzer:active {\n box-shadow: 0 0 0.25rem 0.25rem rgba(0, 0, 0, 0.4);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.2) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 1rem rgba(255, 255, 255, 0.6);\n}\n\n/* `:not(:active)` is load-bearing: the pressed state below sets a tight, dark\n shadow — that is the push-down effect — and a focus rule of equal weight\n sitting later in the file would win over it, so a focused buzzer would stop\n reacting to being pressed. While it IS pressed, the press wins.\n\n `:focus-visible`, not `:focus`: the halo is a keyboard mark. A pointer press\n leaves no lasting focus ring — the buzzer used to blur itself after every\n click to wipe one (tickets#248) — so the keyboard keeps its position and the\n halo appears only for a keyboard focus. */\n.ui-buzzer:focus-visible:not(:active) {\n /* The resting halo STAYS and only changes colour. Two things fight over it:\n the global button rule in forms.css matches `:focus-visible:is([class^='ui'])` —\n and `ui-buzzer` starts with `ui` — replacing the shadow with a hard ring\n at spread 0, which makes the buzzer look flat exactly when it is active.\n A blue halo of the same shape says \"focused\" without taking the depth\n away, and it is the only focus mark left: the global rule also kills the\n outline. */\n border-color: transparent;\n box-shadow: 0 0 0.25rem 1rem rgba(var(--ui-c-focus-value), 0.2);\n background: radial-gradient(\n circle,\n rgba(255, 255, 255, 0.2) 0%,\n rgba(255, 255, 255, 0.1) 90%\n );\n background-color: var(--ui-buzzer-color, transparent);\n text-shadow: 0 0.1rem 1rem rgba(255, 255, 255, 0.6);\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[4947,8852],{"./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/card/card.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>UiCardComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var card_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/card/card.component.css?ngResource"),card_componentngResource_default=__webpack_require__.n(card_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiCardComponent=class UiCardComponent{headline=(0,core.input)(null);icon=(0,core.input)(null);iconSize=(0,core.input)(null);static propDecorators={headline:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"headline",required:!1,transform:void 0}]}],icon:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"icon",required:!1,transform:void 0}]}],iconSize:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"iconSize",required:!1,transform:void 0}]}]}};UiCardComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-card",template:'<div>\n <div class="_wrapper">\n @if (icon()) {\n \x3c!-- The ligature name is text content, so a screen reader would read out\n "lock_open" or "shopping_cart". The card offers a `headline` right\n next to it, which is where the meaning belongs — the icon here is\n decoration and says so. --\x3e\n <div\n class="ui-icon"\n aria-hidden="true"\n [class.x1]="iconSize() === \'x1\'"\n [class.x2]="iconSize() === \'x2\'"\n [class.x3]="iconSize() === \'x3\'"\n [class.x4]="iconSize() === \'x4\' || !iconSize()"\n >\n {{ icon() }}\n </div>\n }\n @if (headline()) {\n <div class="ui-h4">\n <strong>{{ headline() }}</strong>\n </div>\n }\n <ng-content></ng-content>\n </div>\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,styles:[card_componentngResource_default()]})],UiCardComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/card/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"),_card_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/card/card.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_card_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-card.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:_card_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"card",children:"Card"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A reusable and customizable card 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 presentational container: an optional headline and icon above projected\ncontent, coloured through ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-bg"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-text"}),". It is an atom\nand composes nothing — it does not copy, link, expand or collapse. A card that\nshould copy a value on click is wrapped in ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-copy-value"}),"; a card that should\nbe a link is placed inside one."]}),"\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-card",entry:_guide_ui_card_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:"UiCardComponent"})," provides a container for content with support for headlines and icons; its background and text colours come from the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-bg"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-text"})," CSS variables. It is designed to be a flexible building block for any UI layout."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The card is presentational: headline, icon and projected content, nothing\nelse. Colour and icon variant are CSS variables rather than inputs. It no longer copies. Click-to-copy used to be a second\njob baked in here — which meant anyone who wanted it around something that was\nnot a card had to reach for a card anyway. That behaviour lives in\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-copy-value"})," alone now. For a copyable card, wrap one:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'<ui-copy-value [value]="…"><ui-card …></ui-card></ui-copy-value>'}),"."]}),"\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 card:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Property"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"headline"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Input"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"An optional headline string to display at the top of the card."})]}),(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:"icon"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Input"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"An optional icon name string to display next to the headline."})]}),(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:"iconSize"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UiCardIconSize | null"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The icon size: 'x1', 'x2', 'x3', or 'x4'. Default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"null"}),", which renders as 'x4'."]})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"css-variables",children:"CSS variables"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Colours are CSS variables, not inputs — set them from the outside; both\ndefault to their ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-c-*"})," token:"]}),"\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:["\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:"--ui-card-bg"}),": the card background. Any CSS color or token. Default\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transparent"}),"."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["\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:"--ui-card-text"}),": the icon and headline colour. Default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-default)"}),"."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["\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:"--ui-icon-font"}),": the icon's ligature font — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'Material Icons'"})," (default) or\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'Material Icons Outlined'"}),"."]}),"\n"]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The story below binds them per card, so the colours you see are the example."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["This used to be an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"outline"})," input, and that name was wrong twice: it never\noutlined the CARD, it only swapped the icon's font, and which icon font to use\nis a property of icons rather than of cards. As a variable it also ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"inherits"}),"\n— set it once on a container and every icon inside follows, instead of\nrepeating a boolean on each card."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Worth knowing before reaching for it: the two fonts differ only where an icon\nhas a fill to leave out. Line-drawn glyphs — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"search"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"star"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"check"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"close"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"arrow_back"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"menu"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"add"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"refresh"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"favorite"})," — are\npixel-identical in both, so the variable appears to do nothing on them. The\ncontrol in the story therefore offers icons that do change: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"home"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"lock"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"visibility"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"mail"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"delete"}),"."]}),"\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:"sizing",children:"Sizing"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The tag itself has no box. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-card"})," is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"display: contents"}),", so the element the\ngrid places is the inner surface, not the tag — and a size set on ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-card"}),"\nfrom outside changes the computed value while moving no layout at all\n(measured: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"getBoundingClientRect()"})," on the tag is 0x0, whatever you set)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Size the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"cell"})," the card sits in, not the card:"]}),"\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:'<div class="h-64 w-64">\n <ui-card [icon]="\'home\'"></ui-card>\n</div>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["For the same reason the card cannot clip: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"overflow"})," on a tag with no box does\nnothing. Content that must not spill is the caller's job — the headline is the\none exception, it is cut with an ellipsis by the card itself."]}),"\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__.jsxs)(_components.p,{children:["In this example you can change headline, icon, icon size, text colour and the\nicon font. The background colours are fixed — they are the point of this\nexample, and each card sets its own through ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-card-bg"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_card_component_stories__WEBPACK_IMPORTED_MODULE_4__.Card}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:"<ui-card\n style=\"--ui-card-bg: #ffcdff; --ui-card-text: #000000; --ui-icon-font: 'Material Icons Outlined'\"\n [headline]=\"'Card Title'\"\n [icon]=\"'home'\"\n [iconSize]=\"'x4'\">\n <span>Card content goes here.</span>\n</ui-card>\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:"component-details",children:"Component Details"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Selector:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-card"})]}),"\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:"Encapsulation:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.None"})]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component uses ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.None"}),", which means its styles are applied globally and can affect elements outside the component's scope if not properly scoped."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/card/card.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Card:()=>Card,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_forms__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"),_card_component__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/card/card.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Atoms/Card",component:_card_component__WEBPACK_IMPORTED_MODULE_4__.O,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({providers:[],imports:[_angular_forms__WEBPACK_IMPORTED_MODULE_0__.YN,_card_component__WEBPACK_IMPORTED_MODULE_4__.O,_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_2__.b,_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_3__.o]})],argTypes:{headline:{control:"text"},icon:{control:"select",options:["home","lock","visibility","mail","delete"]},iconFont:{control:"select",options:["Material Icons","Material Icons Outlined"]},textColor:{control:"color"},iconSize:{control:"select",options:["x1","x2","x3","x4"]}},args:{headline:"Card Headline",icon:"home",iconFont:"Material Icons",textColor:"var(--ui-c-default)",iconSize:"x4"},parameters:{docs:{canvas:{sourceState:"none"}}}},Card={render:args=>({props:{...args,colors:["#ffcdff","#cfcfff","#cfffcf","#ffcfcf","#cfcfcf"]},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr_1fr]">\n @for (item of colors; track item; let i = $index) {\n <ui-card\n [style.--ui-card-bg]="item"\n [style.--ui-card-text]="textColor"\n [style.--ui-icon-font]="iconFont"\n [headline]="headline"\n [icon]="icon"\n [iconSize]="iconSize">\n <span>Content {{i}}</span>\n </ui-card>\n }\n </div>\n </section>\n '})},__namedExportsOrder=["Card"];Card.parameters={...Card.parameters,docs:{...Card.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n colors: [\'#ffcdff\', \'#cfcfff\', \'#cfffcf\', \'#ffcfcf\', \'#cfcfcf\']\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr_1fr]">\n @for (item of colors; track item; let i = $index) {\n <ui-card\n [style.--ui-card-bg]="item"\n [style.--ui-card-text]="textColor"\n [style.--ui-icon-font]="iconFont"\n [headline]="headline"\n [icon]="icon"\n [iconSize]="iconSize">\n <span>Content {{i}}</span>\n </ui-card>\n }\n </div>\n </section>\n `\n };\n }\n}',...Card.parameters?.docs?.source}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/card/card.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-card {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n\n /* `display: contents` is deliberate: the inner div below is what joins the\n consumer's grid, not this tag. The consequence is that the tag generates\n NO BOX — measured 0x0 — so it can neither be positioned, nor clip, nor be\n sized from outside; a width set on `ui-card` changes the computed value\n and moves no layout. It used to carry `position: relative` and\n `overflow: hidden`, and both were inert for exactly that reason. They are\n gone rather than moved onto the inner div: moving them would START\n clipping content that is not clipped today, and apps arrange cards across\n a seam (see the note on selector weight below). Size the card through the\n cell you place it in. */\n display: contents;\n\n /* The card surface. ui-card is display:contents, so this div is the box the\n app's grid places directly, and it takes the full cell. */\n > div {\n display: flex;\n width: 100%;\n height: 100%;\n padding: calc(var(--ui-spacer) * 0.5);\n justify-content: center;\n align-items: center;\n border-radius: var(--ui-border-radius);\n filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07))\n drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));\n /* Colours are CSS variables, not inline styles: no `[style]` binding from\n the component means the consumer's cascade wins (tickets#183). */\n background-color: var(--ui-card-bg, transparent);\n color: var(--ui-card-text, var(--ui-c-default));\n }\n\n /* Deliberately NOT nested inside the block above. Nesting would raise the\n selector weight beyond the layouts apps place on the grid from outside\n (media's start page arranges icon and label side by side and mirrors them\n across a seam), so a library detail would silently overrule a consumer.\n Kept flat at `ui-card ._wrapper`, lighter than anything an app writes to\n address the same element. */\n ._wrapper {\n position: relative;\n display: grid;\n width: 100%;\n height: 100%;\n /* The single column must be allowed to fall below its content width,\n or the ellipsis on the headline never gets a chance to trigger. */\n grid-template-columns: minmax(0, 1fr);\n grid-gap: calc(var(--ui-spacer) * 0.25);\n justify-content: center;\n text-align: center;\n > * {\n display: flex;\n align-self: center;\n justify-self: center;\n text-align: center;\n outline-style: none;\n }\n\n /* Text color for icon and headline; the `--ui-card-text` variable overrides\n it, the token is the default. */\n > .ui-icon,\n > .ui-h4 {\n color: var(--ui-card-text, var(--ui-c-default));\n }\n\n /* A headline longer than the card is cut, not spilled. The host carries\n `display: contents`, so its `overflow: hidden` never applies — it\n produces no box to clip against. And `justify-self: center` above\n sizes this cell to its text, so a long word simply grew past the card\n and overlapped its neighbours (icon names are the honest test case).\n\n Stretching the cell hands it the column width, `min-width: 0` lets it\n shrink below the intrinsic width of its content — without it a grid\n item refuses to go narrower than its longest word — and the ellipsis\n does the rest. */\n > .ui-h4 {\n justify-self: stretch;\n justify-content: center;\n min-width: 0;\n\n strong {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2425,6978],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/chart/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"),_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/chart/chart.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_chart_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-chart.json");function _createMdxContent(props){const _components={code:"code",em:"em",h3:"h3",h4:"h4",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:_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"chart",children:"Chart"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A flexible and customizable chart 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__.jsx)(_components.p,{children:"Draws one value set as a pie, a donut or a linear bar from up to three segment\nboundaries and their colours — CSS gradients, no chart library, no axes, no\nlegend, no tooltips. It draws what it is handed: the values are boundaries in\npercent, the number of colours decides the number of rings, and it neither sums,\nsorts nor labels anything. A series with more than three parts, or one that\nneeds a scale, is not its job."}),"\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-chart",entry:_guide_ui_chart_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:"UiChartComponent"})," provides various chart types like pie, donut, and linear charts. It allows for detailed configuration of values, colors, and sizing to visualize data effectively."]}),"\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 chart:"}),"\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:"type"}),": (Input) The type of chart to display ('pie', 'donut', 'linear-vertical', 'linear-horizontal')."]}),"\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:"size"}),": (Input) The size of the chart in rem units."]}),"\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:"valueFirst"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"valueSecond"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"valueThird"}),": (Input) The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"end"}),' of each segment in percent (0-100), not its width — see "One ring, two, or three" below.']}),"\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:"colorFirst"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"colorSecond"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"colorThird"}),": (Input) Colors for the respective segments. Left unset, every segment after the first is transparent."]}),"\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:"colorBackground"}),": (Input) Colour of the remainder after the third segment. Unset, it stays transparent and the circle is left open."]}),"\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 chart type and its data values."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__.Chart}),"\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:"one-ring-two-or-three",children:"One ring, two, or three"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Leaving a colour out is a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"feature"}),", not an omission: every segment after the\nfirst falls back to ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transparent"}),", so the number of colours you hand over is\nthe number of rings you get. The same component draws a single arc, a two-part\nring or a full circle — nothing needs to be switched on for it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__.Rings}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["All four above use the same values (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"25 / 50 / 75"}),"); only the number of colours\ndiffers. The last one hands over ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"colorBackground"})," as well and therefore closes\nthe circle."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Two things are worth knowing before relying on it:"}),"\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:"The values are boundaries, not sizes."})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"valueFirst"})," is where the first\nsegment ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"ends"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"valueSecond"})," where the second ends, and so on — so ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"25/50/75"}),"\ngives four equal quarters, while ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"25/25/25"})," gives one quarter and nothing else."]}),"\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:'Do not pass an empty string where you mean "no colour" — pass nothing.'})," The\ncomponent leaves an unset colour out of the style it writes, and that is what\nmakes the fallback work. Writing the property with an empty value would make\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var()"})," substitute ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.em,{children:"emptiness"})," into the gradient, which invalidates the whole\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"background"})," declaration: the chart then draws nothing at all, not even the\nsegments that do have a colour."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'\x3c!-- three rings --\x3e\n<ui-chart\n [type]="\'donut\'"\n [size]="10"\n [valueFirst]="20"\n [valueSecond]="50"\n [valueThird]="80"\n [colorFirst]="\'#ff0000\'">\n</ui-chart>\n\n\x3c!-- one ring: give one colour, leave the rest alone --\x3e\n<ui-chart [type]="\'donut\'" [valueFirst]="35" [colorFirst]="\'#00c853\'"></ui-chart>\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:"type-overview",children:"Type Overview"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"This overview shows all available chart types with the current configuration."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_chart_component_stories__WEBPACK_IMPORTED_MODULE_4__.ChartOverview}),"\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:"component-details",children:"Component Details"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Selector:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-chart"})]}),"\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:"Encapsulation:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.Emulated"})," (default)"]}),"\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",children:"Types"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"uicharttype",children:"UiChartType"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Available chart types:\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"'pie' | 'donut' | 'linear-vertical' | 'linear-horizontal'"})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/chart/chart.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Chart:()=>Chart,ChartOverview:()=>ChartOverview,Rings:()=>Rings,__namedExportsOrder:()=>__namedExportsOrder,default:()=>chart_component_stories});var _common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var chart_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/chart/chart.component.css?ngResource"),chart_componentngResource_default=__webpack_require__.n(chart_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiChartComponent=class UiChartComponent{type=(0,core.input)("pie");size=(0,core.input)(10);valueFirst=(0,core.input)(0);valueSecond=(0,core.input)(0);valueThird=(0,core.input)(0);colorFirst=(0,core.input)("");colorSecond=(0,core.input)("");colorThird=(0,core.input)("");colorBackground=(0,core.input)("");generateStyleValue(){const given=[["first",this.colorFirst()],["second",this.colorSecond()],["third",this.colorThird()],["background",this.colorBackground()]].filter(([,value])=>value).map(([name,value])=>`--value-color-${name}:${value};`).join("");return`--value-first:${this.valueFirst()}%;--value-second:${this.valueSecond()}%;--value-third:${this.valueThird()}%;--value-size:${this.size()}rem;${given}`}styleValue=(0,_resource_chunk.EW)(()=>this.generateStyleValue());classValue=(0,_resource_chunk.EW)(()=>`_${this.type()}`);static propDecorators={type:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"type",required:!1,transform:void 0}]}],size:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"size",required:!1,transform:void 0}]}],valueFirst:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"valueFirst",required:!1,transform:void 0}]}],valueSecond:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"valueSecond",required:!1,transform:void 0}]}],valueThird:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"valueThird",required:!1,transform:void 0}]}],colorFirst:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colorFirst",required:!1,transform:void 0}]}],colorSecond:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colorSecond",required:!1,transform:void 0}]}],colorThird:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colorThird",required:!1,transform:void 0}]}],colorBackground:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"colorBackground",required:!1,transform:void 0}]}]}};UiChartComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-chart",template:"\x3c!-- Deliberately empty: the whole chart is drawn on the HOST element by the\n stylesheet, from the custom properties the component writes. There is\n nothing to project and nothing to render. --\x3e\n",standalone:!0,host:{"[style]":"styleValue()","[class]":"classValue()"},styles:[chart_componentngResource_default()]})],UiChartComponent);const chart_component_stories={title:"Atoms/Chart",component:UiChartComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,_common_module_chunk.MD,UiChartComponent]})],argTypes:{type:{control:"select",options:["pie","donut","linear-vertical","linear-horizontal"]},size:{control:{type:"range",min:1,max:50,step:1}},valueFirst:{control:{type:"range",min:0,max:100}},valueSecond:{control:{type:"range",min:0,max:100}},valueThird:{control:{type:"range",min:0,max:100}},colorFirst:{control:"color"},colorSecond:{control:"color"},colorThird:{control:"color"},colorBackground:{control:"color"},types:{table:{disable:!0},control:!1}},args:{type:"donut",size:10,valueFirst:10,valueSecond:40,valueThird:80,colorFirst:"var(--ui-c-primary)",colorSecond:"var(--ui-c-secondary)",colorThird:"var(--ui-c-thirdly)",colorBackground:"var(--ui-c-background)",types:["pie","donut","linear-vertical","linear-horizontal"]},parameters:{docs:{canvas:{sourceState:"none"}}}},Chart={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-chart\n [type]="type"\n [size]="size"\n [valueFirst]="valueFirst"\n [valueSecond]="valueSecond"\n [valueThird]="valueThird"\n [colorFirst]="colorFirst"\n [colorSecond]="colorSecond"\n [colorThird]="colorThird"\n [colorBackground]="colorBackground"\n >\n </ui-chart>\n </section>\n '})},ChartOverview={argTypes:{type:{table:{disable:!0}}},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr]">\n @for (value of types; track value) {\n <div class="flex flex-col items-center">\n <h3>{{value}}</h3>\n <ui-chart\n [type]="value"\n [size]="size"\n [valueFirst]="valueFirst"\n [valueSecond]="valueSecond"\n [valueThird]="valueThird"\n [colorFirst]="colorFirst"\n [colorSecond]="colorSecond"\n [colorThird]="colorThird"\n [colorBackground]="colorBackground"\n >\n </ui-chart>\n </div>\n }\n </div>\n </section>\n '})},Rings={parameters:{controls:{disable:!0}},render:()=>({props:{rings:[{first:"#00c853",second:"",third:"",background:""},{first:"#00c853",second:"#ffe000",third:"",background:""},{first:"#00c853",second:"#ffe000",third:"#ff3d00",background:""},{first:"#00c853",second:"#ffe000",third:"#ff3d00",background:"#cfcfcf"}]},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-row flex-wrap gap-16 p-4">\n @for (ring of rings; track ring.first + ring.second + ring.third + ring.background) {\n <ui-chart\n [type]="\'donut\'"\n [size]="10"\n [valueFirst]="25"\n [valueSecond]="50"\n [valueThird]="75"\n [colorFirst]="ring.first"\n [colorSecond]="ring.second"\n [colorThird]="ring.third"\n [colorBackground]="ring.background"\n ></ui-chart>\n }\n </section>\n '})},__namedExportsOrder=["Chart","ChartOverview","Rings"];Chart.parameters={...Chart.parameters,docs:{...Chart.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-chart\n [type]="type"\n [size]="size"\n [valueFirst]="valueFirst"\n [valueSecond]="valueSecond"\n [valueThird]="valueThird"\n [colorFirst]="colorFirst"\n [colorSecond]="colorSecond"\n [colorThird]="colorThird"\n [colorBackground]="colorBackground"\n >\n </ui-chart>\n </section>\n `\n };\n }\n}',...Chart.parameters?.docs?.source}}},ChartOverview.parameters={...ChartOverview.parameters,docs:{...ChartOverview.parameters?.docs,source:{originalSource:'{\n argTypes: {\n type: {\n table: {\n disable: true\n }\n }\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col">\n <div class="grid gap-16 grid-cols-1 !grid-cols-[1fr_1fr_1fr_1fr]">\n @for (value of types; track value) {\n <div class="flex flex-col items-center">\n <h3>{{value}}</h3>\n <ui-chart\n [type]="value"\n [size]="size"\n [valueFirst]="valueFirst"\n [valueSecond]="valueSecond"\n [valueThird]="valueThird"\n [colorFirst]="colorFirst"\n [colorSecond]="colorSecond"\n [colorThird]="colorThird"\n [colorBackground]="colorBackground"\n >\n </ui-chart>\n </div>\n }\n </div>\n </section>\n `\n };\n }\n}',...ChartOverview.parameters?.docs?.source},description:{story:"All four variants side by side. Every one of them takes its `type` from the\nlist, so that control is removed from the panel entirely — the others still\ndrive all four charts at once.",...ChartOverview.parameters?.docs?.description}}},Rings.parameters={...Rings.parameters,docs:{...Rings.parameters?.docs,source:{originalSource:"{\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n props: {\n rings: [{\n first: '#00c853',\n second: '',\n third: '',\n background: ''\n }, {\n first: '#00c853',\n second: '#ffe000',\n third: '',\n background: ''\n }, {\n first: '#00c853',\n second: '#ffe000',\n third: '#ff3d00',\n background: ''\n }, {\n first: '#00c853',\n second: '#ffe000',\n third: '#ff3d00',\n background: '#cfcfcf'\n }]\n },\n template: `\n <ui-intern-header theme=\"theme-light\"></ui-intern-header>\n <section class=\"relative flex flex-row flex-wrap gap-16 p-4\">\n @for (ring of rings; track ring.first + ring.second + ring.third + ring.background) {\n <ui-chart\n [type]=\"'donut'\"\n [size]=\"10\"\n [valueFirst]=\"25\"\n [valueSecond]=\"50\"\n [valueThird]=\"75\"\n [colorFirst]=\"ring.first\"\n [colorSecond]=\"ring.second\"\n [colorThird]=\"ring.third\"\n [colorBackground]=\"ring.background\"\n ></ui-chart>\n }\n </section>\n `\n })\n}",...Rings.parameters?.docs?.source},description:{story:"One ring, two, or three — decided by how many colours you hand over.\n\nEvery segment after the first falls back to `transparent`, so a colour you\ndo not give is a ring that is not there. The values still mark the same\nboundaries; only the paint stops earlier. The rightmost chart hands over all\nfour and closes the circle with a background colour.\n\nThe colours are the example here, so concrete values are allowed.",...Rings.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/chart/chart.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n --value-size: 10rem;\n\n /* Every segment after the first falls back to `transparent`, not to a token.\n A colour the caller did not give means \"this ring is not there\", so the\n same component draws one, two or three rings depending on how many colours\n it was handed. The first keeps its token, so a chart with no colours at\n all still shows something. The component omits colours it was not given\n rather than writing them empty — see generateStyleValue(). */\n\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 2px solid var(--ui-c-primary);\n\n &._pie,\n &._donut {\n height: var(--value-size);\n width: var(--value-size);\n border-radius: 50%;\n background: conic-gradient(\n var(--value-color-first, var(--ui-c-primary)) 0% var(--value-first),\n var(--value-color-second, transparent) var(--value-first)\n var(--value-second),\n var(--value-color-third, transparent) var(--value-second)\n var(--value-third),\n var(--value-color-background, transparent) var(--value-third)\n 100%\n );\n }\n\n &._linear-vertical {\n height: calc(var(--value-size) * 2);\n width: calc(var(--value-size) * 0.2);\n background: linear-gradient(\n 0deg,\n var(--value-color-first, var(--ui-c-primary)) 0% var(--value-first),\n var(--value-color-second, transparent) var(--value-first)\n var(--value-second),\n var(--value-color-third, transparent) var(--value-second)\n var(--value-third),\n var(--value-color-background, transparent) var(--value-third)\n 100%\n );\n }\n &._linear-horizontal {\n height: calc(var(--value-size) * 0.2);\n width: calc(var(--value-size) * 2);\n background: linear-gradient(\n 90deg,\n var(--value-color-first, var(--ui-c-primary)) 0% var(--value-first),\n var(--value-color-second, transparent) var(--value-first)\n var(--value-second),\n var(--value-color-third, transparent) var(--value-second)\n var(--value-third),\n var(--value-color-background, transparent) var(--value-third)\n 100%\n );\n }\n\n &._donut::after {\n content: '';\n position: absolute;\n border: 2px solid var(--ui-c-primary);\n height: calc(var(--value-size) * 0.62);\n width: calc(var(--value-size) * 0.62);\n border-radius: 50%;\n background-color: var(--ui-c-background);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1809,5084],{"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/clock/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"),_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/clock/clock.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_clock_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-clock.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:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"clock",children:"Clock"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A digital seven-segment clock with faintly glowing ghost segments, a blinking\ncolon and a solid, borderless casing."}),"\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 seven-segment digital clock drawn in CSS: the current system time, or a fixed\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"time"})," handed in, with ghost segments, a blinking colon and a visually hidden\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<time>"})," for assistive technology. It shows time and does nothing with it — no\nalarms, no time zones, no formats beyond 12/24 hours and the optional seconds.\nIts size is a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale"})," transform, so the layout box keeps the base size."]}),"\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-clock",entry:_guide_ui_clock_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:"UiClockComponent"})," renders the current system time (or a fixed time passed\nvia ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"time"}),") as CSS-drawn seven-segment digits. Every segment is always\nrendered: unlit segments shine faintly (the classic ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"88:88"})," LCD ghost look),\nlit segments are drawn in full color on top."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The clock has a fixed base size; the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale"})," input scales the whole component\nvia CSS ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"transform"}),". Note that a transform does not affect layout — the\nreserved layout box keeps the base size. Colors fall back to theme-aware ui\ntokens when no inputs are set, so the component works in light and dark themes\nout of the box."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["For accessibility the time is additionally rendered as a visually hidden\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<time>"})," element with a machine-readable 24h ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"datetime"})," attribute; the segment\ndisplay itself is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"aria-hidden"}),"."]}),"\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",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Property"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"time"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<Date | null>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Fixed time to display; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"null"})," (default) shows the live system time, ticking every second."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"showSeconds"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<boolean>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Display seconds (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"HH:MM:SS"})," instead of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"HH:MM"}),", default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"false"}),")."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"format"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<12 | 24>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Hour format of the display (default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"24"}),"). The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"datetime"})," attribute always stays 24h."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"blink"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<boolean>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Blink the colon separators once per second (default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"true"}),")."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"scale"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Input<number>"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Scale factor applied to the whole component via CSS transform (default: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"2"}),")."]})]})]})]}),"\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:"live-clock",children:"Live Clock"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The default story shows the live system time with the blinking colon."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\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:"fixed-time",children:"Fixed Time"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A fixed ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"time"})," stops the live interval — useful for deterministic displays and\ntests."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.FixedTime}),"\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:"seconds",children:"Seconds"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.Seconds}),"\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:"twelve-hour-format",children:"Twelve Hour Format"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The display shows ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"01:37"}),", while the hidden ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"datetime"})," attribute keeps the\nmachine-readable 24h value ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"13:37"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.TwelveHour}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"css-variables",children:"CSS variables"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Colours are CSS variables, not inputs — set them from the outside, each\ndefaulting to its ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-c-*"})," token:"]}),"\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:"--ui-clock-bg"}),": the solid casing. Default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-secondary)"}),"."]}),"\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:"--ui-clock-color"}),": the lit segments. Default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-default)"}),"."]}),"\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:"--ui-clock-off"}),": the unlit ghost segments. Unset, they are the lit colour at\n10% (via ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"color-mix"}),"); set it to any colour for full-strength segments."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"custom-colors",children:"Custom Colors"}),"\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:"--ui-clock-bg"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-color"})," accept any CSS colour value; the ghost\nsegments derive from ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-color"})," automatically. The story sets them, so\nthe colours are the example."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.CustomColors}),"\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-off-color",children:"Custom Off Color"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Setting ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-clock-off"})," replaces the derived ghost colour with a full-strength\none."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.CustomOffColor}),"\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:"sizing",children:"Sizing"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The clock has a fixed base size; the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scale"})," input scales the whole component\nvia CSS transform."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_clock_component_stories__WEBPACK_IMPORTED_MODULE_4__.Sizing}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-clock></ui-clock>\n\n<ui-clock\n style="--ui-clock-bg: #101010; --ui-clock-color: #7dffb3"\n [time]="someDate"\n [showSeconds]="true"\n [format]="12"\n [blink]="false"\n [scale]="0.5"\n></ui-clock>\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:"component-details",children:"Component Details"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Selector:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-clock"})]}),"\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:"Encapsulation:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ViewEncapsulation.None"})," (styles scoped via a nested ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-clock"})," block)"]}),"\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:"State:"})," Angular Signals; the live interval is cleared on destroy"]}),"\n"]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/clock/clock.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColors:()=>CustomColors,CustomOffColor:()=>CustomOffColor,Default:()=>Default,FixedTime:()=>FixedTime,Seconds:()=>Seconds,Sizing:()=>Sizing,TwelveHour:()=>TwelveHour,__namedExportsOrder:()=>__namedExportsOrder,default:()=>clock_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var clock_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/clock/clock.component.css?ngResource"),clock_componentngResource_default=__webpack_require__.n(clock_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_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");const SEGMENT_MAP=[["a","b","c","d","e","f"],["b","c"],["a","b","g","e","d"],["a","b","g","c","d"],["f","g","b","c"],["a","f","g","c","d"],["a","f","g","e","d","c"],["a","b","c"],["a","b","c","d","e","f","g"],["a","b","c","d","f","g"]];let UiClockComponent=class UiClockComponent{time=(0,core.input)(null);showSeconds=(0,core.input)(!1);format=(0,core.input)(24);blink=(0,core.input)(!0);scale=(0,core.input)(2);displayTime=(0,_effect_chunk2.vPA)(new Date);timer=null;segments=["a","b","c","d","e","f","g"];hourDigits=(0,_resource_chunk.EW)(()=>{let hours=this.displayTime().getHours();return 12===this.format()&&(hours=hours%12||12),this.toDigits(hours)});minuteDigits=(0,_resource_chunk.EW)(()=>this.toDigits(this.displayTime().getMinutes()));secondDigits=(0,_resource_chunk.EW)(()=>this.toDigits(this.displayTime().getSeconds()));isoTime=(0,_resource_chunk.EW)(()=>{const date=this.displayTime(),pad=value=>value.toString().padStart(2,"0"),base=`${pad(date.getHours())}:${pad(date.getMinutes())}`;return this.showSeconds()?`${base}:${pad(date.getSeconds())}`:base});constructor(){(0,_effect_chunk2.QZP)(()=>{const override=this.time();override?(this.stopTimer(),this.displayTime.set(override)):(this.displayTime.set(new Date),this.startTimer())})}isOn(digit,segment){return SEGMENT_MAP[digit].includes(segment)}toDigits(value){return[Math.floor(value/10),value%10]}startTimer(){this.stopTimer(),this.timer=setInterval(()=>this.displayTime.set(new Date),1e3)}stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}ngOnDestroy(){this.stopTimer()}static ctorParameters=()=>[];static propDecorators={time:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"time",required:!1,transform:void 0}]}],showSeconds:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"showSeconds",required:!1,transform:void 0}]}],format:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"format",required:!1,transform:void 0}]}],blink:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"blink",required:!1,transform:void 0}]}],scale:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"scale",required:!1,transform:void 0}]}]}};UiClockComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-clock",template:'<ng-template #digitTpl let-digit>\n <span class="_digit">\n @for (seg of segments; track seg) {\n <i class="_seg _seg-{{ seg }}" [class.on]="isOn(digit, seg)"></i>\n }\n </span>\n</ng-template>\n\n<div class="ui-clock">\n <time class="_time" [attr.datetime]="isoTime()">{{ isoTime() }}</time>\n <span class="_display" aria-hidden="true">\n @for (digit of hourDigits(); track $index) {\n <ng-container\n *ngTemplateOutlet="digitTpl; context: { $implicit: digit }"\n ></ng-container>\n }\n <span class="_colon" [class._blink]="blink()"><i></i><i></i></span>\n @for (digit of minuteDigits(); track $index) {\n <ng-container\n *ngTemplateOutlet="digitTpl; context: { $implicit: digit }"\n ></ng-container>\n }\n @if (showSeconds()) {\n <span class="_colon" [class._blink]="blink()"><i></i><i></i></span>\n @for (digit of secondDigits(); track $index) {\n <ng-container\n *ngTemplateOutlet="digitTpl; context: { $implicit: digit }"\n ></ng-container>\n }\n }\n </span>\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,imports:[_common_module_chunk.T3],host:{"[style.--_clock-scale]":"scale()"},styles:[clock_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiClockComponent);const clock_component_stories={title:"Atoms/Clock",component:UiClockComponent,decorators:[(0,dist.Iz)({imports:[UiClockComponent]})],argTypes:{scale:{control:{type:"range",min:.5,max:6,step:.1},description:"Scale factor applied to the whole component via transform"},time:{control:"date",description:"Fixed time to display; empty shows the live system time"},background:{control:"color",description:"Background color of the solid casing"},color:{control:"color",description:"Color of the lit segments"},offColor:{control:"color",description:"Color of the unlit ghost segments"},showSeconds:{control:"boolean",description:"Display seconds (HH:MM:SS)"},format:{control:"radio",options:[24,12],description:"Hour format of the display"},blink:{control:"boolean",description:"Blink the colon separators once per second"}},args:{time:null,showSeconds:!1,format:24,blink:!0,scale:2},render:args=>({props:{...args,time:args.time?new Date(args.time):null},template:'\n <div class="p-4">\n <ui-clock\n class="origin-top-left"\n [time]="time"\n [style.--ui-clock-bg]="background"\n [style.--ui-clock-color]="color"\n [style.--ui-clock-off]="offColor"\n [showSeconds]="showSeconds"\n [format]="format"\n [blink]="blink"\n [scale]="scale"\n ></ui-clock>\n </div>\n '})},withoutColors={background:{table:{disable:!0}},color:{table:{disable:!0}},offColor:{table:{disable:!0}}},Default={},FixedTime={argTypes:withoutColors,args:{time:new Date(2026,6,21,13,37),blink:!1}},Seconds={argTypes:withoutColors,args:{showSeconds:!0}},TwelveHour={argTypes:withoutColors,args:{time:new Date(2026,6,21,13,37),format:12}},CustomColors={args:{background:"#101010",color:"#7dffb3"}},CustomOffColor={args:{time:new Date(2026,6,21,8,8),background:"#1c1c1c",color:"#ff5533",offColor:"#3a2a26"}},Sizing={parameters:{controls:{disable:!0}},render:()=>({template:'\n <div class="flex flex-col items-start gap-4 p-4">\n <ui-clock class="origin-top-left" [scale]="0.5"></ui-clock>\n <ui-clock class="origin-top-left" [scale]="1"></ui-clock>\n <ui-clock class="origin-top-left" [scale]="2"></ui-clock>\n </div>\n '})},__namedExportsOrder=["Default","FixedTime","Seconds","TwelveHour","CustomColors","CustomOffColor","Sizing"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{}",...Default.parameters?.docs?.source}}},FixedTime.parameters={...FixedTime.parameters,docs:{...FixedTime.parameters?.docs,source:{originalSource:"{\n argTypes: withoutColors,\n args: {\n time: new Date(2026, 6, 21, 13, 37),\n blink: false\n }\n}",...FixedTime.parameters?.docs?.source}}},Seconds.parameters={...Seconds.parameters,docs:{...Seconds.parameters?.docs,source:{originalSource:"{\n argTypes: withoutColors,\n args: {\n showSeconds: true\n }\n}",...Seconds.parameters?.docs?.source}}},TwelveHour.parameters={...TwelveHour.parameters,docs:{...TwelveHour.parameters?.docs,source:{originalSource:"{\n argTypes: withoutColors,\n args: {\n time: new Date(2026, 6, 21, 13, 37),\n format: 12\n }\n}",...TwelveHour.parameters?.docs?.source}}},CustomColors.parameters={...CustomColors.parameters,docs:{...CustomColors.parameters?.docs,source:{originalSource:"{\n args: {\n background: '#101010',\n color: '#7dffb3'\n }\n}",...CustomColors.parameters?.docs?.source},description:{story:"The colours are the subject here, so their controls are switched back on for\nthis story alone. They are CSS variables on the outside — `--ui-clock-bg`\nand `--ui-clock-color` — not component inputs.",...CustomColors.parameters?.docs?.description}}},CustomOffColor.parameters={...CustomOffColor.parameters,docs:{...CustomOffColor.parameters?.docs,source:{originalSource:"{\n args: {\n time: new Date(2026, 6, 21, 8, 8),\n background: '#1c1c1c',\n color: '#ff5533',\n offColor: '#3a2a26'\n }\n}",...CustomOffColor.parameters?.docs?.source},description:{story:"Same again, with the unlit ghost segments given a colour of their own.",...CustomOffColor.parameters?.docs?.description}}},Sizing.parameters={...Sizing.parameters,docs:{...Sizing.parameters?.docs,source:{originalSource:'{\n // The three clocks carry their scale in the template, so the panel would\n // only mislead here.\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n template: `\n <div class="flex flex-col items-start gap-4 p-4">\n <ui-clock class="origin-top-left" [scale]="0.5"></ui-clock>\n <ui-clock class="origin-top-left" [scale]="1"></ui-clock>\n <ui-clock class="origin-top-left" [scale]="2"></ui-clock>\n </div>\n `\n })\n}',...Sizing.parameters?.docs?.source}}}},"./libs/ui/src/lib/atoms/clock/clock.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n@keyframes ui-clock-blink {\n 0%,\n 49.9% {\n opacity: 1;\n }\n\n 50%,\n 100% {\n opacity: 0.1;\n }\n}\n\n/*\n * Scope anchor: everything nested inside the element selector so the styles\n * stay scoped despite ViewEncapsulation.None. All geometry is em-based on a\n * fixed base size, multiplied by the `scale` input. Colors resolve input\n * custom properties first and fall back to theme-aware ui tokens.\n */\nui-clock {\n display: inline-block;\n transform: scale(var(--_clock-scale, 1));\n\n .ui-clock {\n position: relative;\n display: inline-flex;\n align-items: center;\n font-size: 2rem;\n padding: 0.22em 0.3em;\n border: none;\n border-radius: 0.12em;\n background: var(--ui-clock-bg, var(--ui-c-secondary));\n -webkit-user-select: none;\n user-select: none;\n\n /* Visually hidden but readable time for screen readers. */\n ._time {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n ._display {\n display: inline-flex;\n align-items: center;\n gap: 0.12em;\n }\n\n ._digit {\n position: relative;\n width: 0.62em;\n height: 1em;\n }\n\n /* Ghost look: every segment is always rendered; unlit segments shine\n faintly in the off color (derived from the on color by default). */\n ._seg {\n position: absolute;\n /* Ghost by default (10% of the lit colour), solid when the consumer sets\n --ui-clock-off. The alpha lives in the colour now, so no opacity toggle\n is needed — set the variable to any colour for full-strength segments\n (tickets#183). */\n background: var(\n --ui-clock-off,\n color-mix(in srgb, var(--ui-clock-color, var(--ui-c-default)) 10%, transparent)\n );\n\n &.on {\n background: var(--ui-clock-color, var(--ui-c-default));\n opacity: 1;\n }\n }\n\n ._seg-a,\n ._seg-g,\n ._seg-d {\n left: 0.05em;\n right: 0.05em;\n height: 0.12em;\n clip-path: polygon(\n 0 50%,\n 12% 0,\n 88% 0,\n 100% 50%,\n 88% 100%,\n 12% 100%\n );\n }\n\n ._seg-a {\n top: 0;\n }\n\n ._seg-g {\n top: 50%;\n transform: translateY(-50%);\n }\n\n ._seg-d {\n bottom: 0;\n }\n\n ._seg-b,\n ._seg-c,\n ._seg-e,\n ._seg-f {\n width: 0.12em;\n height: calc(50% - 0.08em);\n clip-path: polygon(\n 50% 0,\n 100% 12%,\n 100% 88%,\n 50% 100%,\n 0 88%,\n 0 12%\n );\n }\n\n ._seg-f {\n left: 0;\n top: 0.04em;\n }\n\n ._seg-b {\n right: 0;\n top: 0.04em;\n }\n\n ._seg-e {\n left: 0;\n bottom: 0.04em;\n }\n\n ._seg-c {\n right: 0;\n bottom: 0.04em;\n }\n\n ._colon {\n position: relative;\n width: 0.18em;\n height: 1em;\n\n i {\n position: absolute;\n left: 50%;\n width: 0.12em;\n height: 0.12em;\n transform: translateX(-50%);\n border-radius: 0.02em;\n background: var(--ui-clock-color, var(--ui-c-default));\n\n &:first-child {\n top: 0.24em;\n }\n\n &:last-child {\n bottom: 0.24em;\n }\n }\n\n &._blink i {\n animation: ui-clock-blink 1s linear infinite;\n }\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[3007,3853],{"./libs/ui/src/lib/atoms/copy-value/copy-value.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>UiCopyValueComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var copy_value_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/copy-value/copy-value.component.css?ngResource"),copy_value_componentngResource_default=__webpack_require__.n(copy_value_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiCopyValueComponent=class UiCopyValueComponent{get roleAttr(){return this.value()?"button":null}get tabIndexAttr(){return this.value()?"0":null}get ariaLabelAttr(){return this.value()?this.ariaLabel():null}value=(0,core.input)("");copiedLabel=(0,core.input)(null);copiedIcon=(0,core.input)(null);ariaLabel=(0,core.input)(null);copied=(0,_effect_chunk2.vPA)(!1);onClick(){this.copy()}onKeydown(event){"Enter"!==event.key&&" "!==event.key||(event.preventDefault(),this.copy())}copy(){const value=this.value();value&&navigator.clipboard.writeText(value).then(()=>{this.copied.set(!0),setTimeout(()=>this.copied.set(!1),2e3)})}static propDecorators={roleAttr:[{type:_debug_node_chunk.g$6,args:["attr.role"]}],tabIndexAttr:[{type:_debug_node_chunk.g$6,args:["attr.tabindex"]}],ariaLabelAttr:[{type:_debug_node_chunk.g$6,args:["attr.aria-label"]}],value:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"value",required:!1,transform:void 0}]}],copiedLabel:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"copiedLabel",required:!1,transform:void 0}]}],copiedIcon:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"copiedIcon",required:!1,transform:void 0}]}],ariaLabel:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"ariaLabel",required:!1,transform:void 0}]}],onClick:[{type:_debug_node_chunk.Z$l,args:["click"]}],onKeydown:[{type:_debug_node_chunk.Z$l,args:["keydown",["$event"]]}]}};UiCopyValueComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-copy-value",template:'<ng-content></ng-content>\n\n@if (copied()) {\n <div class="_copied">\n @if (copiedIcon(); as icon) {\n <span class="ui-icon">{{ icon }}</span>\n } @else {\n <strong>{{ copiedLabel() ?? (\'actions.copied\' | transloco) }}</strong>\n }\n </div>\n}\n',encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[copy_value_componentngResource_default()]})],UiCopyValueComponent)},"./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:()=>UiPlaceholderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var placeholder_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.css?ngResource"),placeholder_componentngResource_default=__webpack_require__.n(placeholder_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiPlaceholderComponent=class UiPlaceholderComponent{label=(0,core.input)(null);static propDecorators={label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}]}};UiPlaceholderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-placeholder",template:"<span class=\"_label\">{{ label() ?? ('placeholder.label' | transloco) }}</span>\n",encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[placeholder_componentngResource_default()]})],UiPlaceholderComponent)},"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/copy-value/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"),_copy_value_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/copy-value/copy-value.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_copy_value_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-copy-value.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:_copy_value_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"copy-value",children:"Copy Value"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Wraps anything and makes it copy a value on click."}),"\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:["What is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"shown"})," and what is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"copied"})," have nothing to do with each other. A\ncolour swatch shows a colour and copies ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"var(--ui-c-…)"}),". A barcode shows bars\nand copies digits. A truncated label shows three dots and copies the whole\nstring."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"So the component brings no appearance — the content does that — and no opinion\nabout what the value means. What it does bring is the part that is tedious to\nwrite again every time: the clipboard call, a confirmation that does not move\nthe layout, and keyboard access."}),"\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-copy-value [value]="\'var(--ui-c-focus)\'">\n <div class="my-swatch"></div>\n</ui-copy-value>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_copy_value_component_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\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-copy-value",entry:_guide_ui_copy_value_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:"shown-and-copied-are-separate",children:"Shown and copied are separate"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_copy_value_component_stories__WEBPACK_IMPORTED_MODULE_4__.Swatches}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:['Click one: the confirmation is a tick, not "Copied!". These targets are 40px\nwide and the default wording is 63 — it used to hang over both edges and paint\non the neighbours. That is what ',(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"copiedIcon"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"copiedLabel"})," are for. The\ncomponent does not shorten anything on its own: it cannot tell a word that is\ntoo long from one that is meant, and only the caller knows how much room there\nis. Where even a short word does not fit, an icon does — and unlike an\nabbreviation it is read without being learned."]}),"\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:"own-confirmation",children:"Own confirmation"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_copy_value_component_stories__WEBPACK_IMPORTED_MODULE_4__.OwnConfirmation}),"\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:"notes",children:"Notes"}),"\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:["The host is a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"button while it has a value"}),": ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"role"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tabindex"}),", and\nEnter/Space act like a click. A clickable wrapper without that simply does\nnot exist for anyone who does not use a mouse. With an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"empty value"})," the\ncomponent removes role and tabindex entirely — it leaves the tab order and\nstops presenting itself as a control, so a host can render it\nunconditionally and switch it on by simply supplying a value."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["The confirmation lies ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"over"})," the content (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"position: absolute"}),"), so nothing\njumps while it shows — a list of copyable things would otherwise twitch on\nevery click. It ignores pointer events, so a click meant for the content\nnever lands on the message."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["An ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"empty value copies nothing and confirms nothing"}),". A confirmation for a\nblank clipboard is a lie the reader would only discover on pasting."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:["The host is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"inline-block"}),", not ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"contents"}),": the confirmation needs a box to\nposition against, and wrapping something must not silently turn it into a\nfull-width block."]}),"\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 confirmation takes its corner radius from the host"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"border-radius: inherit"}),"), because it cannot know how the content it covers is rounded. Give\nthe tag the same radius as the thing inside it — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'class="rounded"'})," in the\nswatches above — or the covered corners peek out from behind the message. It\nalso carries a border in its own fill colour, so a border on the content does\nnot show through the translucent background as a grey line."]}),"\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:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"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:"value"})}),(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:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"''"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The text placed in the clipboard. Independent of what is displayed."})]}),(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:"copiedLabel"})}),(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:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Wording of the confirmation — keep it short where the target is\nsmall. Without one the library's own translated\nwording is used (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"actions.copied"}),"), so it speaks the\nreader's language without the caller doing anything."]})})]}),(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:"copiedIcon"})}),(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:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Confirmation as a classic Material icon ligature\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"done"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"check"}),"), rendered with the\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:".ui-icon"})," class. Wins over ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"copiedLabel"}),". It is\nan input of its own because a label is a string and can carry no\nclass — nothing could turn it into an icon from outside."]})})]}),(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:"ariaLabel"})}),(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:"Accessible name of the button."})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/copy-value/copy-value.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,OwnConfirmation:()=>OwnConfirmation,Swatches:()=>Swatches,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_placeholder_placeholder_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"),_copy_value_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/src/lib/atoms/copy-value/copy-value.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Atoms/Copy Value",component:_copy_value_component__WEBPACK_IMPORTED_MODULE_2__.y,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[_copy_value_component__WEBPACK_IMPORTED_MODULE_2__.y,_placeholder_placeholder_component__WEBPACK_IMPORTED_MODULE_1__.F]})],argTypes:{value:{control:"text"},copiedLabel:{control:{type:"select",labels:{null:"(none — the library's own wording)"}},options:[null,"ISBN taken","Value copied"]},copiedIcon:{control:{type:"select",labels:{null:"(none — a word, not an icon)"}},options:[null,"done","check","inventory"]}},args:{value:"var(--ui-c-focus)",copiedLabel:null,copiedIcon:null}},Default={render:args=>({props:{...args},template:'\n <ui-copy-value [value]="value" [copiedLabel]="copiedLabel" [copiedIcon]="copiedIcon">\n <ui-placeholder class="h-24 w-64"></ui-placeholder>\n </ui-copy-value>\n '})},Swatches={parameters:{controls:{disable:!0}},render:()=>({props:{copiedIcon:"done"},template:'\n <section class="flex gap-2">\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-primary)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-primary"></div>\n </ui-copy-value>\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-secondary)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-secondary"></div>\n </ui-copy-value>\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-success)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-success"></div>\n </ui-copy-value>\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-warn)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-warn"></div>\n </ui-copy-value>\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-error)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-error"></div>\n </ui-copy-value>\n </section>\n '})},OwnConfirmation={args:{value:"9783462033748",copiedLabel:"ISBN taken"},render:args=>({props:{...args},template:'\n <ui-copy-value [value]="value" [copiedLabel]="copiedLabel">\n <ui-placeholder class="h-16 w-72" [label]="value"></ui-placeholder>\n </ui-copy-value>\n '})},__namedExportsOrder=["Default","Swatches","OwnConfirmation"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'{\n render: args => ({\n props: {\n ...args\n },\n template: `\n <ui-copy-value [value]="value" [copiedLabel]="copiedLabel" [copiedIcon]="copiedIcon">\n <ui-placeholder class="h-24 w-64"></ui-placeholder>\n </ui-copy-value>\n `\n })\n}',...Default.parameters?.docs?.source},description:{story:"Around anything. Click it — the confirmation lies over the content instead\nof taking space, so nothing moves.",...Default.parameters?.docs?.description}}},Swatches.parameters={...Swatches.parameters,docs:{...Swatches.parameters?.docs,source:{originalSource:'{\n // Five values are named in the template, so neither control would move\n // anything here — the interactive one is the story above.\n parameters: {\n controls: {\n disable: true\n }\n },\n render: () => ({\n props: {\n // A tick, because the target is 40px wide and "Copied!" is 63. The\n // confirmation has to fit the thing it lies on, and only the caller\n // knows how big that is — the library deliberately does not shorten\n // anything on its own, it cannot tell a word that is too long from one\n // that is meant. A single letter would fit too and say nothing; an icon\n // fits AND is read without being learned.\n copiedIcon: \'done\'\n },\n template: `\n <section class="flex gap-2">\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-primary)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-primary"></div>\n </ui-copy-value>\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-secondary)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-secondary"></div>\n </ui-copy-value>\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-success)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-success"></div>\n </ui-copy-value>\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-warn)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-warn"></div>\n </ui-copy-value>\n <ui-copy-value class="rounded" [value]="\'var(--ui-c-error)\'" [copiedIcon]="copiedIcon">\n <div class="h-16 w-16 rounded border bg-c-error"></div>\n </ui-copy-value>\n </section>\n `\n })\n}',...Swatches.parameters?.docs?.source},description:{story:"Shown and copied are two different things. Each square shows a colour and\ncopies the token behind it — which is the whole reason the value is an input\nrather than something read off the content.",...Swatches.parameters?.docs?.description}}},OwnConfirmation.parameters={...OwnConfirmation.parameters,docs:{...OwnConfirmation.parameters?.docs,source:{originalSource:'{\n args: {\n value: \'9783462033748\',\n copiedLabel: \'ISBN taken\'\n },\n render: args => ({\n props: {\n ...args\n },\n template: `\n <ui-copy-value [value]="value" [copiedLabel]="copiedLabel">\n <ui-placeholder class="h-16 w-72" [label]="value"></ui-placeholder>\n </ui-copy-value>\n `\n })\n}',...OwnConfirmation.parameters?.docs?.source},description:{story:'A wording of its own, for cases where "copied" is not what happened in the\nreader\'s head.',...OwnConfirmation.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/copy-value/copy-value.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n/* Encapsulation.None — one nested block anchored on the tag. */\nui-copy-value {\n /* `contents` would be the tempting choice (the wrapper adds no box of its\n own), but the confirmation has to be positioned against something, and a\n host with `display: contents` generates no box to position against. So it\n stays a box — and an inline-block one, so wrapping something does not\n silently turn it into a full-width block. */\n position: relative;\n display: inline-block;\n\n /* Only a wrapper that actually has something to copy looks clickable — the\n role attribute is the single source of that truth (see the host binding). */\n &[role='button'] {\n cursor: pointer;\n }\n\n &:focus-visible {\n outline: var(--ui-border-width) solid var(--ui-c-focus);\n outline-offset: calc(var(--ui-border-width) * 2);\n }\n\n /* Lies OVER the content instead of taking space: nothing may move while the\n confirmation shows, or a list of copyable things twitches on every click. */\n ._copied {\n position: absolute;\n inset: 0;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(var(--ui-c-background-value), 0.9);\n /* The confirmation cannot know how its content is rounded, so it stops\n guessing: it takes the radius from the HOST, which is the caller's to\n set alongside whatever is wrapped. It used to impose 4px on content\n rounded at 2.5px, and the four corners of that content stuck out past\n the overlay — visible as dark specks at 4x zoom.\n\n The border is the same colour as the fill and covers the content's own\n border, which would otherwise show through the 90% background as a grey\n line all the way round. */\n border: var(--ui-border-width) solid\n rgba(var(--ui-c-background-value), 0.9);\n border-radius: inherit;\n animation: uiCopyValueIn calc(var(--ui-time) * 0.25) ease-in-out;\n /* The confirmation is a message, not a target — a click meant for the\n content must not land on it. */\n pointer-events: none;\n }\n}\n\n/* No leading underscore in the keyframes name — Angular would detach it. */\n@keyframes uiCopyValueIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/placeholder/placeholder.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n/* Encapsulation.None — one nested block anchored on the tag, so the rules\n cannot leak while the host itself stays styleable from outside. */\nui-placeholder {\n display: flex;\n align-items: center;\n justify-content: center;\n\n /* A floor, not a size: width and height come from wherever it is used.\n Without one an empty stand-in collapses to a text line and stops being\n the mass it exists to be. The floor is a named hook with a fallback, so a\n consumer who deliberately wants a smaller stand-in can set\n `--ui-placeholder-min-width` / `--ui-placeholder-min-height` without a\n cascade fight — an unlayered host rule otherwise beats a width utility in\n `@layer utilities` (tickets#241, tickets#251, tickets#253). */\n min-width: var(--ui-placeholder-min-width, calc(var(--ui-spacer) * 3));\n min-height: var(--ui-placeholder-min-height, calc(var(--ui-spacer) * 3));\n padding: calc(var(--ui-spacer) * 0.25);\n\n /* The overlay header's pair: filled enough to read as chrome rather than\n content, and theme-aware through the tokens. */\n background-color: var(--ui-c-primary);\n color: var(--ui-c-default);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-radius: var(--ui-border-radius);\n\n /* It is scenery, never the subject: nothing here should invite a click or\n land in a text selection. */\n -webkit-user-select: none;\n user-select: none;\n\n ._label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);