@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([[4713],{"./node_modules/css-loader/dist/runtime/api.js"(module){"use strict";module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){"use strict";module.exports=function(i){return i[1]}},"./libs/ui/src/lib/atoms/typewriter/typewriter.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Typewriter:()=>Typewriter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>typewriter_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var typewriter_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/typewriter/typewriter.component.css?ngResource"),typewriter_componentngResource_default=__webpack_require__.n(typewriter_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");let UiTypewriterComponent=class UiTypewriterComponent{text=core.input.required();speed=(0,core.input)(50);volume=(0,core.input)(.2);sound=(0,core.input)(!0,{transform:core.booleanAttribute});src=(0,core.input)("https://moja.work/content/_assets/sounds/type.mp3");typingFinish=(0,core.output)();currentIndex=(0,_effect_chunk2.vPA)(0);audioHit=new Audio;displayedText=(0,_resource_chunk.EW)(()=>this.text().slice(0,Math.max(0,this.currentIndex())));constructor(){(0,_effect_chunk2.QZP)(onCleanup=>{const length=this.text().length,speed=this.speed();(0,_resource_chunk.O8)(()=>this.currentIndex.set(0));const timer=setInterval(()=>{if(this.currentIndex()<length)return this.currentIndex.update(i=>i+1),void this.playAudio();clearInterval(timer),this.typingFinish.emit()},speed);onCleanup(()=>clearInterval(timer))}),(0,_effect_chunk2.QZP)(()=>{if(!this.sound())return;const src=this.src();this.audioHit.src.includes(src)&&this.audioHit.readyState>=3||(this.audioHit.src=src,this.audioHit.load())}),(0,_effect_chunk2.QZP)(()=>{this.audioHit.volume=this.volume()})}playAudio(){if(!this.sound())return;const audio=this.audioHit.cloneNode();audio.volume=this.audioHit.volume,Promise.resolve(audio.play()).catch(()=>{})}static ctorParameters=()=>[];static propDecorators={text:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"text",required:!0,transform:void 0}]}],speed:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"speed",required:!1,transform:void 0}]}],volume:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"volume",required:!1,transform:void 0}]}],sound:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"sound",required:!1,transform:void 0}]}],src:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"src",required:!1,transform:void 0}]}],typingFinish:[{type:_debug_node_chunk.k7i,args:["typingFinish"]}]}};UiTypewriterComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-typewriter",template:'<span aria-hidden="true">{{ displayedText() }}</span><span class="_text">{{ text() }}</span>\n',styles:[typewriter_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiTypewriterComponent);const typewriter_component_stories={title:"Atoms/Typewriter",component:UiTypewriterComponent,decorators:[(0,dist.Iz)({imports:[UiTypewriterComponent]})],argTypes:{text:{control:"text"},speed:{control:{type:"range",min:10,max:500,step:10}},volume:{control:{type:"range",min:0,max:1,step:.1}},sound:{control:"boolean"},typingFinish:{table:{disable:!0}},src:{table:{disable:!0}}},args:{text:"404: Internet not found",speed:50,volume:.2,sound:!0}},Typewriter={args:{speed:120},render:args=>({props:args,template:'\n <div class="p-4">\n <ui-typewriter\n [text]="text"\n [speed]="speed"\n [volume]="volume"\n [sound]="sound">\n </ui-typewriter>\n </div>\n '})},__namedExportsOrder=["Typewriter"];Typewriter.parameters={...Typewriter.parameters,docs:{...Typewriter.parameters?.docs,source:{originalSource:'{\n args: {\n speed: 120\n },\n render: args => ({\n props: args,\n template: `\n <div class="p-4">\n <ui-typewriter\n [text]="text"\n [speed]="speed"\n [volume]="volume"\n [sound]="sound">\n </ui-typewriter>\n </div>\n `\n })\n}',...Typewriter.parameters?.docs?.source}}}},"./libs/ui/src/lib/atoms/typewriter/typewriter.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n:host {\n display: inline-block;\n white-space: pre-wrap;\n}\n\n/* The whole text once, for assistive technology — the revealed part beside\n it is hidden from a reader, which would otherwise get a sentence in\n pieces. Visually removed, not `display: none`, so it is still read. */\n:host ._text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1327,4271],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_splitter_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_cdk_drag_drop_splitter_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-cdk-drag-drop-splitter.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_splitter_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"cdk-drag-and-drop-splitter",children:"CDK Drag and Drop Splitter"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-cdk-drag-drop-splitter"}),' is a versatile component designed to facilitate moving items between two lists (e.g., "To Do" and "Done") using Angular CDK Drag and Drop.']}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"what-it-does-and-what-it-does-not",children:"What it does, and what it does not"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Two lists side by side with drag and drop between them, each in a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"list"})," or\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cards"})," theme. It owns no state: it shows the two arrays it is given and, on\nevery drop, emits both as new arrays — the consumer hands them back, or nothing\nmoves. It does not persist, filter or sort, and it is not a layout splitter with\npanels; that is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-layout-splitter"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-cdk-drag-drop-splitter",entry:_guide_ui_cdk_drag_drop_splitter_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["In this example, you can drag items between the two columns and switch between ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"list"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cards"})," themes."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-interactive-drag-and-drop-splitter",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/cdk-drag-and-drop-splitter--drag-and-drop-splitter",children:"Open Interactive Drag and Drop Splitter"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"features",children:"Features"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Drag & Drop:"})," Seamlessly move items between two data sets."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Themeable Views:"})," Support for different visual representations like ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"list"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cards"})," for each side independently."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Output Events:"})," Emits both updated lists after every drop — reorder within a pane or transfer between panes."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"it-owns-no-state--bind-both-outputs",children:"It owns no state — bind both outputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component shows what it is given and reports what a drop would do. It\nchanges neither of the two arrays it receives: every drop produces ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"new"}),"\narrays and emits both sides, and the next render comes from whatever the\nconsumer hands back."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Bind both outputs, or nothing moves. That is not a quirk to work around: an\narray changed in place is the same array, a signal handed its own reference\nhas nothing to report, and the dropped item snaps back to where it was picked\nup while the data behind it has already moved. Which is worse than not moving\nat all — the picture and the model disagree, and only one of them is visible."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The component requires two input arrays and provides themes for both sides:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-cdk-drag-drop-splitter\n [todo]="todoList"\n [done]="doneList"\n [themeTodo]="\'list\'"\n [themeDone]="\'cards\'"\n (todoOutput)="onTodoUpdate($event)"\n (doneOutput)="onDoneUpdate($event)">\n</ui-cdk-drag-drop-splitter>\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DragAndDropSplitter:()=>DragAndDropSplitter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>splitter_component_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var splitter_componentngResource=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.css?ngResource"),splitter_componentngResource_default=__webpack_require__.n(splitter_componentngResource),drag_drop=__webpack_require__("./node_modules/@angular/cdk/fesm2022/drag-drop.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs");var cards_componentngResource=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/cards/cards.component.css?ngResource"),cards_componentngResource_default=__webpack_require__.n(cards_componentngResource);let UiCDKDragDropSplitterCardsComponent=class UiCDKDragDropSplitterCardsComponent{data=(0,core.input)(null);dropped=(0,core.output)();static propDecorators={data:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"data",required:!1,transform:void 0}]}],dropped:[{type:_debug_node_chunk.k7i,args:["dropped"]}]}};UiCDKDragDropSplitterCardsComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-splitter-cards",template:'<div\n cdkDropList\n cdkDropListOrientation="mixed"\n [cdkDropListData]="data()"\n class="_cards"\n (cdkDropListDropped)="dropped.emit($event)"\n>\n @for (item of data(); track item) {\n <div class="_item-box" cdkDrag>\n <div class="_placeholder" *cdkDragPlaceholder></div>\n {{ item.label }}\n </div>\n }\n</div>\n',imports:[drag_drop.O7,drag_drop.T1,drag_drop.EM],styles:[cards_componentngResource_default()]})],UiCDKDragDropSplitterCardsComponent);var list_componentngResource=__webpack_require__("./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/list/list.component.css?ngResource"),list_componentngResource_default=__webpack_require__.n(list_componentngResource);let UiCDKDragDropSplitterListComponent=class UiCDKDragDropSplitterListComponent{data=(0,core.input)(null);dropped=(0,core.output)();static propDecorators={data:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"data",required:!1,transform:void 0}]}],dropped:[{type:_debug_node_chunk.k7i,args:["dropped"]}]}};UiCDKDragDropSplitterListComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-splitter-list",template:'<div\n cdkDropList\n [cdkDropListData]="data()"\n class="_list"\n (cdkDropListDropped)="dropped.emit($event)"\n>\n @for (item of data(); track item) {\n <div class="_item-box" cdkDrag>\n <div class="_placeholder" *cdkDragPlaceholder></div>\n {{ item.label }}\n </div>\n }\n</div>\n',imports:[drag_drop.O7,drag_drop.T1,drag_drop.EM],styles:[list_componentngResource_default()]})],UiCDKDragDropSplitterListComponent);let UiCDKDragDropSplitterComponent=class UiCDKDragDropSplitterComponent{themeTodo=(0,core.input)("list");themeDone=(0,core.input)("list");todo=(0,core.input)(null);done=(0,core.input)(null);todoOutput=(0,core.output)();doneOutput=(0,core.output)();onDrop(event,pane){const todo=[...this.todo()??[]],done=[...this.done()??[]],target="todo"===pane?todo:done;event.previousContainer===event.container?(0,drag_drop.HD)(target,event.previousIndex,event.currentIndex):(0,drag_drop.eg)("todo"===pane?done:todo,target,event.previousIndex,event.currentIndex),this.todoOutput.emit(todo),this.doneOutput.emit(done)}static propDecorators={themeTodo:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"themeTodo",required:!1,transform:void 0}]}],themeDone:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"themeDone",required:!1,transform:void 0}]}],todo:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"todo",required:!1,transform:void 0}]}],done:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"done",required:!1,transform:void 0}]}],todoOutput:[{type:_debug_node_chunk.k7i,args:["todoOutput"]}],doneOutput:[{type:_debug_node_chunk.k7i,args:["doneOutput"]}]}};UiCDKDragDropSplitterComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-cdk-drag-drop-splitter",template:'<div class="_wrapper" cdkDropListGroup>\n \x3c!-- todo --\x3e\n @if (themeTodo() === \'cards\') {\n <ui-electron-splitter-cards\n [data]="todo() ?? []"\n (dropped)="onDrop($event, \'todo\')"\n ></ui-electron-splitter-cards>\n } @else {\n <ui-electron-splitter-list\n [data]="todo() ?? []"\n (dropped)="onDrop($event, \'todo\')"\n ></ui-electron-splitter-list>\n }\n\n \x3c!-- done --\x3e\n @if (themeDone() === \'cards\') {\n <ui-electron-splitter-cards\n [data]="done() ?? []"\n (dropped)="onDrop($event, \'done\')"\n ></ui-electron-splitter-cards>\n } @else {\n <ui-electron-splitter-list\n [data]="done() ?? []"\n (dropped)="onDrop($event, \'done\')"\n ></ui-electron-splitter-list>\n }\n</div>\n',imports:[drag_drop.RK,UiCDKDragDropSplitterCardsComponent,UiCDKDragDropSplitterListComponent],styles:[splitter_componentngResource_default()]})],UiCDKDragDropSplitterComponent);const dragSplitterMockDataToDo=[{label:"ToDo 1"},{label:"ToDo 2"},{label:"ToDo 3"},{label:"ToDo 4"},{label:"ToDo 5"}],dragSplitterMockDataDone=[{label:"Done 1"},{label:"Done 2"},{label:"Done 3"},{label:"Done 4"},{label:"Done 5"}],splitter_component_stories={title:"CDK/Drag And Drop Splitter",component:UiCDKDragDropSplitterComponent,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,UiCDKDragDropSplitterComponent]})],argTypes:{todoTheme:{control:"select",options:["list","cards"]},doneTheme:{control:"select",options:["list","cards"]}}},DragAndDropSplitter={args:{todoTheme:"cards",doneTheme:"list"},render:args=>({props:{...args,todo:[...dragSplitterMockDataToDo],done:[...dragSplitterMockDataDone]},template:'\n <section class="flex flex-col gap-[var(--ui-spacer)]">\n <div class="grid grid-cols-2 gap-[var(--ui-spacer)]">\n @for (pane of [\'todo\', \'done\']; track pane) {\n <div class="flex flex-row items-center gap-2">\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'list\'"\n (click)="pane === \'todo\' ? todoTheme = \'list\' : doneTheme = \'list\'"\n >list</button>\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'cards\'"\n (click)="pane === \'todo\' ? todoTheme = \'cards\' : doneTheme = \'cards\'"\n >cards</button>\n </div>\n }\n </div>\n\n <ui-cdk-drag-drop-splitter\n [themeTodo]="todoTheme"\n [themeDone]="doneTheme"\n [todo]="todo"\n [done]="done"\n (todoOutput)="todo = $event"\n (doneOutput)="done = $event"\n ></ui-cdk-drag-drop-splitter>\n </section>\n '})},__namedExportsOrder=["DragAndDropSplitter"];DragAndDropSplitter.parameters={...DragAndDropSplitter.parameters,docs:{...DragAndDropSplitter.parameters?.docs,source:{originalSource:'{\n args: {\n todoTheme: \'cards\',\n doneTheme: \'list\'\n },\n render: args => {\n return {\n props: {\n ...args,\n todo: [...dragSplitterMockDataToDo],\n done: [...dragSplitterMockDataDone]\n },\n template: `\n <section class="flex flex-col gap-[var(--ui-spacer)]">\n <div class="grid grid-cols-2 gap-[var(--ui-spacer)]">\n @for (pane of [\'todo\', \'done\']; track pane) {\n <div class="flex flex-row items-center gap-2">\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'list\'"\n (click)="pane === \'todo\' ? todoTheme = \'list\' : doneTheme = \'list\'"\n >list</button>\n <button\n class="ui"\n type="button"\n [attr.aria-pressed]="(pane === \'todo\' ? todoTheme : doneTheme) === \'cards\'"\n (click)="pane === \'todo\' ? todoTheme = \'cards\' : doneTheme = \'cards\'"\n >cards</button>\n </div>\n }\n </div>\n\n <ui-cdk-drag-drop-splitter\n [themeTodo]="todoTheme"\n [themeDone]="doneTheme"\n [todo]="todo"\n [done]="done"\n (todoOutput)="todo = $event"\n (doneOutput)="done = $event"\n ></ui-cdk-drag-drop-splitter>\n </section>\n `\n };\n }\n}',...DragAndDropSplitter.parameters?.docs?.source},description:{story:"Both outputs are bound back to the props here, and that is not decoration:\nthe component owns no state. It hands out two new arrays after every drop\nand shows whatever it is given next — a consumer that binds neither output\nwatches every item snap back to where it was picked up.",...DragAndDropSplitter.parameters?.docs?.description}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/cards/cards.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n/* Fills its pane, and keeps filling it when the last card is dragged out:\n an empty drop list of height 0 cannot be dropped into, and the items\n would have no way back. */\n._cards {\n flex: 1;\n display: flex;\n flex-flow: row wrap;\n align-content: flex-start;\n padding: calc(var(--ui-spacer) * 0.5);\n gap: calc(var(--ui-spacer) * 0.5);\n}\n\n._item-box,\n._placeholder,\n.cdk-drag-preview {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 6rem;\n min-width: calc(6rem * 3);\n padding: calc(var(--ui-spacer) * 0.5);\n border-radius: var(--ui-border-radius);\n}\n\n._item-box {\n cursor: move;\n background: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n transition: var(--ui-transition);\n\n &:hover {\n background-color: var(--ui-c-fourthly);\n }\n}\n\n._placeholder {\n border: calc(var(--ui-border-width) * 2) dotted var(--ui-c-secondary);\n background-color: rgba(var(--ui-c-default-value), 0.1);\n}\n\n/* The tile that flies is the tile you grabbed, lifted: an opaque surface and\n the shadow that says it is above the page. It used to be filled with 80%\n of the page background ON the page background — invisible on a light\n theme, with a border in the same transparent colour. */\n.cdk-drag-preview {\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-background);\n box-shadow: var(--ui-box-shadow);\n cursor: grabbing;\n}\n\n/* --- cdk overwrites --- */\n.cdk-drag-animating,\n._cards.cdk-drop-list-dragging ._item-box:not(.cdk-drag-placeholder) {\n transition: var(--ui-transition);\n}\n/* --- cdk overwrites --- */\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/list/list.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n/* Fills its pane, and keeps filling it when the last item is dragged out:\n an empty drop list of height 0 cannot be dropped into, and the items would\n have no way back. */\n._list {\n flex: 1;\n width: 100%;\n display: flex;\n flex-flow: column;\n align-content: flex-start;\n}\n\n._item-box,\n._placeholder,\n.cdk-drag-preview {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-width: calc(6rem * 3);\n min-height: 6rem;\n padding: calc(var(--ui-spacer) * 0.25);\n}\n\n._item-box {\n cursor: move;\n background: var(--ui-c-background);\n border-bottom: var(--ui-border-width) solid var(--ui-c-secondary);\n transition: var(--ui-transition);\n &:hover {\n background-color: var(--ui-c-fourthly);\n }\n &:last-child:not(.cdk-drag-preview) {\n border: none;\n }\n}\n._placeholder {\n border: calc(var(--ui-border-width) * 2) dotted var(--ui-c-secondary);\n background-color: rgba(var(--ui-c-default-value), 0.1);\n}\n/* The tile that flies is the tile you grabbed, lifted: an opaque surface and\n the shadow that says it is above the page. It used to be filled with 80%\n of the page background ON the page background — invisible on a light\n theme, with a border in the same transparent colour. */\n.cdk-drag-preview {\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-background);\n box-shadow: var(--ui-box-shadow);\n cursor: grabbing;\n}\n\n/* --- cdk overwrites --- */\n.cdk-drag-animating,\n._list.cdk-drop-list-dragging ._item-box:not(.cdk-drag-placeholder) {\n transition: var(--ui-transition);\n}\n/* --- cdk overwrites --- */\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/cdk/components/drag-and-drop-splitter/splitter.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n._wrapper {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--ui-spacer);\n height: 30rem;\n\n /* The two panes. `--c-background` and `--c-secondary` stood here and are\n no tokens of this library — the panes had no surface at all and the\n placeholder no fill. */\n > * {\n display: flex;\n border: var(--ui-border-width) solid var(--ui-c-secondary);\n border-radius: var(--ui-border-radius);\n background-color: var(--ui-c-background);\n overflow: auto;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[6212,6569],{"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/cdk/components/table/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_table_component_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/cdk/components/table/table.component.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_ui_cdk_table_wrapper_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/ui-cdk-table-wrapper.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_table_component_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"cdk-table-wrapper",children:"CDK Table Wrapper"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-cdk-table-wrapper"})," is a layout component that extends standard CDK tables with essential features like loading states, interactive rows, and fixed layouts."]}),"\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 wrapper around a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cdk-table"})," that adds what the CDK leaves out: a loading\nskeleton, row hover and focus states, the header colours, a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fixed"})," or\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"content"})," layout, column measurement for drag previews, and the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"inline"})," editor\nmode in which text and field share one box and the focused control is scrolled\ninto view. It renders no columns and holds no data — the table inside it is\nyours. Keyboard movement between cells is not in here either: that is the\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiTableEditFocus"})," directive, which it is built to be paired with."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"ui-cdk-table-wrapper",entry:_guide_ui_cdk_table_wrapper_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:"features",children:"Features"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Boolean Attributes:"})," Supports simple use of boolean inputs as attributes (e.g., ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"loading"})," instead of ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'[loading]="true"'}),")."]}),"\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:"Loading State:"})," Integrated skeleton animations for table rows."]}),"\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:"Interactivity:"})," Hover and focus states for table rows."]}),"\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:"Header row:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-c-secondary"})," as background with the theme-independent ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-c-static"})," text color."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Drag & Drop Support:"})," Measures the columns when a row is grabbed and publishes them as CSS variables, so the detached drag preview mirrors the table it came from (see below)."]}),"\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:"Flexible Layouts:"})," Options for content adaptation (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"content"}),") and fixed column widths (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fixed"}),")."]}),"\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:"Edge padding:"})," the first column (left) and the last column (right) get 1.5× the cell padding against the table edge."]}),"\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:"Inline Editor Mode:"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"inline"})," removes the outer frame and the wrapper padding and keeps only the horizontal row separators; the host itself scrolls horizontally and smoothly centers focused controls (form fields, buttons, links — the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiTableEditFocus"})," control set) for keyboard, mouse and programmatic focus alike. The focused row additionally stays visible ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"vertically"}),": the page scrolls just enough to keep it in view (nearest edge, no centering), honouring the row's CSS ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"scroll-margin-top"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"-bottom"})," — set those to the height of any sticky chrome (nav, detached header, footer) the row must stay clear of. The wrapper is the single source of truth for the cell metrics: display texts and edit fields share the exact same box (no layout shifts when a cell toggles between text and field), header texts align to the same content inset, and the outer columns keep the 1.5× edge padding of the default mode. Pair it with the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiTableEditFocus"})," directive for clicked-cell focusing, Shift+Arrow cell navigation and select-all suppression."]}),"\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:"Only reachable controls are navigation stations:"})," the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiTableEditFocus"})," control set counts a form field, button or link only while it can actually take focus — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"disabled"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"hidden"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:'tabindex="-1"'})," are skipped, exactly as the browser skips them. A cell may therefore hold a different number of stations from one moment to the next (a button gated on pending changes, say) without anything having to be registered: the list is derived from the DOM on every key press. Counting unreachable controls would let the directive and the native tab order drift apart — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"focus()"})," on a disabled control does nothing, so the focus would stay put and the next key press would pick the same dead target again."]}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component is used as a wrapper around a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cdk-table"}),":"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"open-default-table",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/cdk-table--default",children:"Open Default Table"})}),"\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-cdk-table-wrapper loading content interactive>\n <table cdk-table [dataSource]="dataSource">\n \x3c!-- Your column definitions --\x3e\n </table>\n</ui-cdk-table-wrapper>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h3,{id:"keyboard-navigation-uitableeditfocus",children:["Keyboard navigation (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiTableEditFocus"}),")"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The directive knows one chain of stations per row: every control a cell holds,\nin DOM order, filtered to what can actually take focus. Tab and Shift+Arrow\nwalk that same chain — they differ only in how far they reach."}),"\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:"Key"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Does"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"At the edge"})]})}),(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__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Shift"})," + ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"←"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"→"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Offers the step to the app as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"uiRowStep"})," (before moving), then walks the controls of the current row — the remaining ones in the cell, then the nearest cell that has any, entered from the approached side."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Stops."})," The row is never left sideways."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Tab"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Shift"})," + ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Tab"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Same chain, same order."}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Wraps"})," to the neighbour row via ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"uiRowNavigate"})," — forwards into its first control, backwards into its last, never into the middle."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Shift"})," + ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"↑"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"↓"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Emits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"uiRowNavigate"})," with the current column. The ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("em",{children:"app"})," decides what happens — which rows are eligible is domain knowledge the directive does not have."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Whatever the app does with it."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Because left/right and Tab share one chain, a user only has to learn a single\norder. Left/right is then the tool for working ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"inside"})," a row, Tab the tool\nfor travelling through the table — and stopping at the edge is itself feedback:\nyou notice the row has ended without losing your place."]}),"\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 focus has to be in the table first."}),' The arrows have no row to count\nfrom otherwise, so the keys go to the page instead — it scrolls, or nothing\nhappens at all. That is indistinguishable from a defect for the person at the\nkeyboard, and it is the single most common reason for "the arrow keys don\'t\nwork". Get in by clicking a cell, or by tabbing into the table.']}),"\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:"A sideways step is offered before it is taken."})," A row rendered as plain text\nmay well be an editable row that is simply closed — and the directive cannot\nknow. So every Shift+Left/Right is announced as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiRowStep"})," first, carrying the\ndirection and the control it starts from. An app that ignores the event sees no\nchange at all. An app that sets ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"handled = true"})," takes the step over: the\ndirective leaves the focus alone, and the app can open the row and put the\nfocus where the step was heading. That is what turns a closed row from a\ndetour through its buttons into a door."]}),"\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:"Where the line runs:"})," the directive owns the mechanics — which controls are\nreachable, in what order, where the cell ends. The app owns the policy — which\nrow may be entered at all. Exactly two signals cross that line,\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiRowNavigate"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiRowStep"}),'. Concepts like "locked" or "signed in" belong\nto the application, never in here.']}),"\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:"inputs",children:"Inputs"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component uses Angular Signals and the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"booleanAttribute"})," transformer for a clean API."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.ov,{of:_table_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:"inline-editor-mode",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/cdk-table--inline",children:"Inline Editor Mode"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The default example table in inline mode: frameless, padding-free, horizontal row separators only. A fully editable table pairs this mode with the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiTableEditFocus"})," directive (click-to-edit, Shift+Arrow, auto-centering)."]}),"\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:"combined-tables-cross-table-drag--drop",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/cdk-table--content-inter-active-drag-and-drop-combine",children:"Combined Tables (Cross-Table Drag & Drop)"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Demonstrates the interaction between multiple tables within a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cdkDropListGroup"}),"."]}),"\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-is-checked-in-a-browser",children:"What is checked in a browser"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A drag is the one interaction no other net here can see: nobody photographs a\npreview hanging on the pointer, and a unit test has neither layout nor cascade\nlayers. ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"npm run e2e:storybook"})," builds the Storybook and drags in a real\nbrowser, asking the two questions a screenshot cannot — does the flying thing\nhave a surface, and does it carry the columns of the table it came from. It\ncarries the row across a NEIGHBOURING table on the way, because that is where\nthe geometry used to be rewritten under it."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"the-column-geometry",children:"The column geometry"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A drag preview is a clone the CDK hangs on the pointer, outside the table it\ncame from — so it has no columns of its own. It gets them from two CSS\nvariables the wrapper publishes:"}),"\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:"Variable"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"What it holds"})]})}),(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:"--preview-grid-cols"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The column widths, one after another, ready for ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"grid-template-columns"}),"."]})]}),(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:"--table-width"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The table's rendered width — the drag placeholder uses it too."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Both are written on the host ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"and"})," on ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:":root"}),", because the things that\nalign to a table do not all live inside it: a detached sticky header sits\nabove the wrapper and reads them from the document."]}),"\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:"They are measured when a row is grabbed, and the grabbed row is what gets\nmeasured."})," That matters as soon as two tables share a page, which is what\nthe combined example is about: the variables are global, so a measurement\ntaken while the pointer crosses a neighbouring table would rewrite them under\na preview that is already in the air — and the flying row would re-lay itself\nout on foreign columns. So the publication freezes for as long as a preview\nexists, and a resize during a drag cannot move it either."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A row that does not span the whole table — an expanded detail row across a\nsingle cell — is not asked; the header answers instead. Otherwise its one\nwide track would land on everything else that aligns to these variables."})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/cdk/components/table/table.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ContentInterActiveDragAndDropCombine:()=>ContentInterActiveDragAndDropCombine,Default:()=>Default,Inline:()=>Inline,__namedExportsOrder:()=>__namedExportsOrder,default:()=>table_component_stories});var drag_drop=__webpack_require__("./node_modules/@angular/cdk/fesm2022/drag-drop.mjs"),dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var _data_source_chunk=__webpack_require__("./node_modules/@angular/cdk/fesm2022/_data-source-chunk.mjs"),table=__webpack_require__("./node_modules/@angular/cdk/fesm2022/table.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"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");const gameData=[{id:1,name:"Mario",nameShortCut:"DK",type:"Jump n run",value:!1},{id:2,name:"Turrican",nameShortCut:"TU",type:"Shooter",value:!1},{id:3,name:"Crash",nameShortCut:"CB",type:"Jump n run",value:!1},{id:4,name:"Tetris",nameShortCut:"TE",type:"Puzzle",value:!1},{id:5,name:"Frogger",nameShortCut:"FR",type:"Arcade",value:!1},{id:6,name:"Lemmings",nameShortCut:"LE",type:"Puzzle",value:!1}],gameDataOne=[{id:1,name:"Super Mario",nameShortCut:"SM",type:"Jump n run",value:!1},{id:2,name:"Turrican",nameShortCut:"TU",type:"Shoot em up",value:!1},{id:3,name:"Crash",nameShortCut:"CB",type:"Jump n run",value:!1}],gameDataTwo=[{id:4,name:"Tetris",nameShortCut:"TE",type:"Puzzle",value:!1},{id:5,name:"Frogger",nameShortCut:"FR",type:"Arcade",value:!1},{id:6,name:"Lemmings",nameShortCut:"LE",type:"Puzzle",value:!1}],gameDataThree=[{id:7,name:"Double Dragon",nameShortCut:"DD",type:"Arcade",value:!1},{id:8,name:"Street Fighter",nameShortCut:"SF",type:"Beat n up",value:!1},{id:9,name:"Age Of Empire",nameShortCut:"AOE",type:"Strategy",value:!1}],gameDataFour=[{id:10,name:"Maniac Mansion",nameShortCut:"MM",type:"Point-and-Click-Adventure ",value:!1},{id:11,name:"Lionheartr",nameShortCut:"SF",type:"Jump n run",value:!1},{id:12,name:"Gears Of War",nameShortCut:"AOE",type:"Shooter",value:!1}];let UiExampleCDKTableComponent=class UiExampleCDKTableComponent{renderer=(0,_effect_chunk2.WQX)(_debug_node_chunk.sFG);debug=(0,core.input)(!1,{transform:core.booleanAttribute});draggable=(0,core.input)(!0);interactive=!1;gameDataValue=(0,core.input)(null);displayedColumns=["check","id","name","type","action"];dataSource=new GameDataSource([]);ngOnInit(){this.dataSource.updateDataValue(this.gameDataValue()??gameData)}buttonClick(element){alert(`buttonClick: ${element.id}`)}ngOnDestroy(){this.dataSource.disconnect()}onDrop(event){(0,drag_drop.eg)(event.previousContainer.data.dataValue(),event.container.data.dataValue(),event.previousIndex,event.currentIndex),event.previousContainer.data.updateDataValue(event.previousContainer.data.dataValue()),event.container.data.updateDataValue(event.container.data.dataValue())}selectItem(row){this.interactive&&this.dataSource.dataValue().map(item=>{item.id===row.id&&(item.value=!item.value)})}static propDecorators={debug:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"debug",required:!1,transform:void 0}]}],draggable:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"draggable",required:!1,transform:void 0}]}],interactive:[{type:_debug_node_chunk.pde,args:[{transform:core.booleanAttribute}]}],gameDataValue:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"gameDataValue",required:!1,transform:void 0}]}]}};UiExampleCDKTableComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-cdk-table",template:'<table\n [dataSource]="dataSource"\n [cdkDropListData]="dataSource"\n (cdkDropListDropped)="onDrop($event)"\n cdkDropList\n cdk-table\n>\n <ng-container cdkColumnDef="check">\n <th class="w-20" *cdkHeaderCellDef cdk-header-cell>Check</th>\n <td class="w-20" *cdkCellDef="let element" cdk-cell>\n <input class="ui" [(ngModel)]="element.value" type="checkbox" />\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="id">\n <th class="w-10" *cdkHeaderCellDef cdk-header-cell>Id</th>\n <td class="w-10 text-left" *cdkCellDef="let element" cdk-cell>\n <div>{{ element.id }}</div>\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="name">\n <th *cdkHeaderCellDef cdk-header-cell>Name</th>\n <td *cdkCellDef="let element" cdk-cell>\n <div>{{ element.name }}</div>\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="type">\n <th *cdkHeaderCellDef cdk-header-cell>Type</th>\n <td *cdkCellDef="let element" cdk-cell>\n <div>{{ element.type }}</div>\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="action">\n <th *cdkHeaderCellDef cdk-header-cell>Actions</th>\n <td *cdkCellDef="let element" cdk-cell>\n <div class="mr-2 flex gap-2">\n <button class="ui-success" (click)="buttonClick(element)" type="button">\n click\n </button>\n <button class="ui-danger" (click)="buttonClick(element)" type="button">\n delete\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr *cdkHeaderRowDef="displayedColumns" cdk-header-row></tr>\n <tr\n *cdkRowDef="let row; columns: displayedColumns"\n [class.active]="row.value"\n (click)="selectItem(row)"\n cdkDrag\n [cdkDragDisabled]="!draggable()"\n [cdkDragData]="row"\n cdk-row\n >\n <div *cdkDragPlaceholder><span></span></div>\n </tr>\n</table>\n',imports:[table.N0,fesm2022_forms.YN,drag_drop.T1,drag_drop.O7,drag_drop.EM]})],UiExampleCDKTableComponent);class GameDataSource extends _data_source_chunk.q{data;$data=new BehaviorSubject.t([]);constructor(data){super(),this.data=data,this.updateDataValue(data)}swapIndex(array,from,to){const newArray=[...array],temp=newArray[from];return newArray[from]=newArray[to],newArray[to]=temp,newArray}dataValue(){return this.$data.value}updateDataValue(newData){this.$data.next(newData)}connect(){return this.$data}disconnect(){this.$data.complete()}}var header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),table_component=__webpack_require__("./libs/ui/src/lib/cdk/components/table/table.component.ts");const table_component_stories={title:"CDK/Table",component:table_component.N,decorators:[(0,dist.Iz)({providers:[],imports:[header_component.b,UiExampleCDKTableComponent,table_component.N,drag_drop.RK]})],argTypes:{loading:{control:"boolean"},content:{control:"boolean"},fixed:{control:"boolean"},interactive:{control:"boolean"},draggable:{control:"boolean"},inline:{control:"boolean"}},args:{loading:!1,content:!1,fixed:!1,interactive:!1,draggable:!1,inline:!1},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-cdk-table-wrapper\n [loading]="loading"\n [content]="content"\n [fixed]="fixed"\n [interactive]="interactive"\n [draggable]="draggable"\n >\n <ui-examples-cdk-table [draggable]="draggable"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n </section>\n '})},Default={render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-cdk-table-wrapper\n [loading]="loading"\n [content]="content"\n [fixed]="fixed"\n [interactive]="interactive"\n [draggable]="draggable"\n >\n <ui-examples-cdk-table [draggable]="draggable"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n </section>\n '})},Inline={args:{inline:!0},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-cdk-table-wrapper\n [loading]="loading"\n [content]="content"\n [fixed]="fixed"\n [interactive]="interactive"\n [draggable]="draggable"\n [inline]="inline"\n >\n <ui-examples-cdk-table [draggable]="draggable"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n </section>\n '})},ContentInterActiveDragAndDropCombine={argTypes:{loading:{control:!1},content:{control:!1},fixed:{control:!1},interactive:{control:!1},draggable:{control:!1}},parameters:{controls:{disable:!1}},render:args=>({props:{...args,gameDataOne,gameDataTwo,gameDataThree,gameDataFour},template:'\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col p-4 [&_th.cdk-column-check]:text-transparent!" cdkDropListGroup>\n <div class="grid grid-cols-[1fr_1fr] gap-4 mb-4">\n <ui-cdk-table-wrapper content interactive fixed [draggable]="true">\n <ui-examples-cdk-table class="w-min-[400px]" [debug]="\'true\'" [gameDataValue]="gameDataOne"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n <ui-cdk-table-wrapper content interactive fixed [draggable]="true">\n <ui-examples-cdk-table class="w-min-[400px]" [debug]="\'true\'" [gameDataValue]="gameDataTwo"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n </div>\n <div class="grid grid-cols-[1fr_1fr] gap-4">\n <ui-cdk-table-wrapper content interactive fixed [draggable]="true">\n <ui-examples-cdk-table class="w-min-[400px]" [debug]="\'true\'" [gameDataValue]="gameDataThree"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n <ui-cdk-table-wrapper content interactive fixed [draggable]="true">\n <ui-examples-cdk-table class="w-min-[400px]" [debug]="\'true\'" [gameDataValue]="gameDataFour"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n </div>\n </section>\n '})},__namedExportsOrder=["Default","Inline","ContentInterActiveDragAndDropCombine"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-cdk-table-wrapper\n [loading]="loading"\n [content]="content"\n [fixed]="fixed"\n [interactive]="interactive"\n [draggable]="draggable"\n >\n <ui-examples-cdk-table [draggable]="draggable"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n </section>\n `\n };\n }\n}',...Default.parameters?.docs?.source}}},Inline.parameters={...Inline.parameters,docs:{...Inline.parameters?.docs,source:{originalSource:'{\n args: {\n inline: true\n },\n render: args => {\n return {\n props: {\n ...args\n },\n template: `\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-cdk-table-wrapper\n [loading]="loading"\n [content]="content"\n [fixed]="fixed"\n [interactive]="interactive"\n [draggable]="draggable"\n [inline]="inline"\n >\n <ui-examples-cdk-table [draggable]="draggable"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n </section>\n `\n };\n }\n}',...Inline.parameters?.docs?.source}}},ContentInterActiveDragAndDropCombine.parameters={...ContentInterActiveDragAndDropCombine.parameters,docs:{...ContentInterActiveDragAndDropCombine.parameters?.docs,source:{originalSource:'{\n argTypes: {\n loading: {\n control: false\n },\n content: {\n control: false\n },\n fixed: {\n control: false\n },\n interactive: {\n control: false\n },\n draggable: {\n control: false\n }\n },\n parameters: {\n controls: {\n disable: false\n }\n },\n render: args => {\n return {\n props: {\n ...args,\n gameDataOne,\n gameDataTwo,\n gameDataThree,\n gameDataFour\n },\n template: `\n <ui-intern-header theme="theme-light" [onTop]="true" [display]="true"></ui-intern-header>\n <section class="relative flex flex-col p-4 [&_th.cdk-column-check]:text-transparent!" cdkDropListGroup>\n <div class="grid grid-cols-[1fr_1fr] gap-4 mb-4">\n <ui-cdk-table-wrapper content interactive fixed [draggable]="true">\n <ui-examples-cdk-table class="w-min-[400px]" [debug]="\'true\'" [gameDataValue]="gameDataOne"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n <ui-cdk-table-wrapper content interactive fixed [draggable]="true">\n <ui-examples-cdk-table class="w-min-[400px]" [debug]="\'true\'" [gameDataValue]="gameDataTwo"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n </div>\n <div class="grid grid-cols-[1fr_1fr] gap-4">\n <ui-cdk-table-wrapper content interactive fixed [draggable]="true">\n <ui-examples-cdk-table class="w-min-[400px]" [debug]="\'true\'" [gameDataValue]="gameDataThree"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n <ui-cdk-table-wrapper content interactive fixed [draggable]="true">\n <ui-examples-cdk-table class="w-min-[400px]" [debug]="\'true\'" [gameDataValue]="gameDataFour"></ui-examples-cdk-table>\n </ui-cdk-table-wrapper>\n </div>\n </section>\n `\n };\n }\n}',...ContentInterActiveDragAndDropCombine.parameters?.docs?.source}}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1296,9652],{"./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/examples/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"),_burger_menu_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/examples/burger-menu.stories.ts"),_storybook_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_burger_menu_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/burger-menu.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",p:"p",...(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:_burger_menu_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"examples-burger-menu",children:"Examples: Burger Menu"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A copy-ready recipe composed from ui building blocks — not a component 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:"burger-menu",entry:_guide_burger_menu_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 burger pattern used by the consuming apps (e.g. the bookmarket navigation): a header row with a burger button that opens a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutOverlayComponent"})," sliding in from the right, carrying a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiLayoutOverlayHeaderComponent"})," and a link list. Every link click closes the menu again; backdrop and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("kbd",{children:"Escape"})," close it too (built into the overlay)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["While the menu is open, the page behind it is scroll-locked by the overlay itself — see the scroll containment notes in ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/layout-overlay--docs",children:"Layout: Overlay"}),"."]}),"\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:"recipe",children:"Recipe"}),"\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:"Part"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Building block"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Notes"})]})}),(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:"Trigger"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"button.ui-flat"})," with a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"menu"})," icon"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Carries ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"aria-expanded"})," (the open state) and an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"aria-label"}),"; sets the open flag."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Panel"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UiLayoutOverlayComponent"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'direction="right"'}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'maxWidth="ms-1"'}),"; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"activeOutput"})," keeps the open flag in sync."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Header"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"UiLayoutOverlayHeaderComponent"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Headline plus the built-in close button."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Links"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Plain ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ul"})," in the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"overlay-content"})," slot"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Each click resets the open flag so the menu closes after navigating."})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example",children:"Example"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_burger_menu_stories__WEBPACK_IMPORTED_MODULE_4__.BurgerMenu})]})}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/examples/burger-menu.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BurgerMenu:()=>BurgerMenu,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_atoms_placeholder_placeholder_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"),_layout_overlay_header_header_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/src/lib/layout/overlay/header/header.component.ts"),_layout_overlay_overlay_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/layout/overlay/overlay.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Examples/Burger Menu",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[_layout_overlay_overlay_component__WEBPACK_IMPORTED_MODULE_3__.o,_layout_overlay_header_header_component__WEBPACK_IMPORTED_MODULE_2__.t,_atoms_placeholder_placeholder_component__WEBPACK_IMPORTED_MODULE_1__.F]})],parameters:{docs:{description:{component:"Examples: recipes composed from ui building blocks — not components of\ntheir own, but copy-ready patterns as used in the consuming apps."}}}},BurgerMenu={render:()=>({props:{menuOpen:!1},template:'\n \x3c!-- translate-x-0 adds a transform, making this box the\n containing block for the overlay\'s fixed positioning — the\n drawer fills exactly this 32rem stage, docs canvas included. --\x3e\n <div class="relative flex h-[44rem] translate-x-0 flex-col overflow-hidden">\n <header class="flex w-full items-center justify-end border-b border-[color:var(--ui-c-default)] pb-6">\n <button\n class="ui"\n type="button"\n [attr.aria-expanded]="menuOpen"\n aria-label="menu"\n (click)="menuOpen = true"\n >\n <span class="ui-icon">menu</span>\n </button>\n </header>\n <section class="flex flex-col gap-4 pt-4">\n <ui-placeholder class="h-24"></ui-placeholder>\n <ui-placeholder class="h-24"></ui-placeholder>\n </section>\n <ui-layout-overlay\n [direction]="\'right\'"\n [maxWidth]="\'ms-1\'"\n [active]="menuOpen"\n (activeOutput)="menuOpen = $event"\n >\n <ui-layout-overlay-header\n overlay-header\n [headline]="\'Menu\'"\n (activeOutput)="menuOpen = $event"\n ></ui-layout-overlay-header>\n <ul overlay-content class="flex flex-col gap-2">\n <li><a href="#link01" (click)="menuOpen = false">link01</a></li>\n <li><a href="#link02" (click)="menuOpen = false">link02</a></li>\n <li><a href="#link03" (click)="menuOpen = false">link03</a></li>\n <li><a href="#link04" (click)="menuOpen = false">link04</a></li>\n </ul>\n </ui-layout-overlay>\n </div>\n'})},__namedExportsOrder=["BurgerMenu"];BurgerMenu.parameters={...BurgerMenu.parameters,docs:{...BurgerMenu.parameters?.docs,source:{originalSource:'{\n render: () => {\n return {\n props: {\n menuOpen: false\n },\n template: `\n \x3c!-- translate-x-0 adds a transform, making this box the\n containing block for the overlay\'s fixed positioning — the\n drawer fills exactly this 32rem stage, docs canvas included. --\x3e\n <div class="relative flex h-[44rem] translate-x-0 flex-col overflow-hidden">\n <header class="flex w-full items-center justify-end border-b border-[color:var(--ui-c-default)] pb-6">\n <button\n class="ui"\n type="button"\n [attr.aria-expanded]="menuOpen"\n aria-label="menu"\n (click)="menuOpen = true"\n >\n <span class="ui-icon">menu</span>\n </button>\n </header>\n <section class="flex flex-col gap-4 pt-4">\n <ui-placeholder class="h-24"></ui-placeholder>\n <ui-placeholder class="h-24"></ui-placeholder>\n </section>\n <ui-layout-overlay\n [direction]="\'right\'"\n [maxWidth]="\'ms-1\'"\n [active]="menuOpen"\n (activeOutput)="menuOpen = $event"\n >\n <ui-layout-overlay-header\n overlay-header\n [headline]="\'Menu\'"\n (activeOutput)="menuOpen = $event"\n ></ui-layout-overlay-header>\n <ul overlay-content class="flex flex-col gap-2">\n <li><a href="#link01" (click)="menuOpen = false">link01</a></li>\n <li><a href="#link02" (click)="menuOpen = false">link02</a></li>\n <li><a href="#link03" (click)="menuOpen = false">link03</a></li>\n <li><a href="#link04" (click)="menuOpen = false">link04</a></li>\n </ul>\n </ui-layout-overlay>\n </div>\n`\n };\n }\n}',...BurgerMenu.parameters?.docs?.source},description:{story:"The burger recipe (as used by the bookmarket navigation): a header row\nwith a burger button that opens a `ui-layout-overlay` sliding in from the\nright (`ms-1` width) with a `ui-layout-overlay-header` and a link list —\nevery link click closes the menu again. While the menu is open the page\nbehind it is scroll-locked by the overlay itself (#112).",...BurgerMenu.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/placeholder/placeholder.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n/* Encapsulation.None — one nested block anchored on the tag, so the rules\n cannot leak while the host itself stays styleable from outside. */\nui-placeholder {\n display: flex;\n align-items: center;\n justify-content: center;\n\n /* A floor, not a size: width and height come from wherever it is used.\n Without one an empty stand-in collapses to a text line and stops being\n the mass it exists to be. The floor is a named hook with a fallback, so a\n consumer who deliberately wants a smaller stand-in can set\n `--ui-placeholder-min-width` / `--ui-placeholder-min-height` without a\n cascade fight — an unlayered host rule otherwise beats a width utility in\n `@layer utilities` (tickets#241, tickets#251, tickets#253). */\n min-width: var(--ui-placeholder-min-width, calc(var(--ui-spacer) * 3));\n min-height: var(--ui-placeholder-min-height, calc(var(--ui-spacer) * 3));\n padding: calc(var(--ui-spacer) * 0.25);\n\n /* The overlay header's pair: filled enough to read as chrome rather than\n content, and theme-aware through the tokens. */\n background-color: var(--ui-c-primary);\n color: var(--ui-c-default);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-radius: var(--ui-border-radius);\n\n /* It is scenery, never the subject: nothing here should invite a click or\n land in a text selection. */\n -webkit-user-select: none;\n user-select: none;\n\n ._label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[943,8938],{"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/.storybook/demos/examples/image-grid-slider/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_image_grid_slider_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/examples/image-grid-slider/image-grid-slider.stories.ts"),_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_image_gallery_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/image-gallery.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_image_grid_slider_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example-image-gallery",children:"Example Image Gallery"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Two atoms, one index: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-image-grid"})," for the overview, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-image-slider"}),"\nfor the single picture. This page shows the two ways they are wired; what\neach of them takes and emits is on their own pages —\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/atoms-image-grid--docs",children:"Image Grid"})," and\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/atoms-image-slider--docs",children:"Image Slider"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"image-gallery",entry:_guide_image_gallery_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:"open-story-side-by-side",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/examples-image-gallery--image-gallery",children:"Open story: side by side"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Both are visible, and both read and write the same index: a click in the\ngrid moves the slider, a step in the slider moves the grid's selection."}),"\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-image-slider\n [data]="data"\n [setIndex]="currentIndex"\n (currentIndex)="currentIndex=$event"\n [zoom]="false">\n</ui-image-slider>\n\n<ui-image-grid\n [data]="data"\n [setIndex]="currentIndex"\n (currentIndex)="currentIndex=$event"\n [action]="true"\n [loaded]="true"\n [height]="400"\n [cols]="3"\n [gap]="10">\n</ui-image-grid>\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:"open-story-zoom-on-demand",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/examples-image-gallery--image-gallery-zoom",children:"Open story: zoom on demand"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The slider exists only while it is open. It takes two clicks, by design of\nthe grid: the first click ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"selects"})," a tile, the second — on the selected\ntile's click area, the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<ng-template uiImageGridClickArea>"})," projected into the grid and stamped\ninto every tile with the tile's item — emits ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"clickIndex"}),". That creates the\nslider in zoom; the slider's own close hands ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"currentZoom"})," back as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"false"}),",\nand the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@if"})," removes it again."]}),"\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-image-grid\n [data]="data"\n [setIndex]="index"\n (clickIndex)="index=$event; zoom=true"\n [action]="true"\n [loaded]="true"\n overlayType="doors"\n [height]="480"\n [cols]="3"\n [gap]="10">\n <ng-template uiImageGridClickArea let-item>\n <div>{{ item.title }}</div>\n </ng-template>\n</ui-image-grid>\n\n@if (zoom) {\n <ui-image-slider\n [data]="data"\n [setIndex]="index"\n (currentIndex)="index=$event"\n (currentZoom)="zoom=$event"\n [zoom]="zoom">\n </ui-image-slider>\n}\n'})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/.storybook/demos/examples/image-grid-slider/image-grid-slider.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ImageGallery:()=>ImageGallery,ImageGalleryZoom:()=>ImageGalleryZoom,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_src_lib_atoms_image_grid_image_grid_click_area_directive__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./libs/ui/src/lib/atoms/image-grid/image-grid-click-area.directive.ts"),_src_lib_atoms_image_grid_image_grid_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/src/lib/atoms/image-grid/image-grid.component.ts"),_src_lib_atoms_image_slider_image_slider_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/atoms/image-slider/image-slider.component.ts"),_src_lib_atoms_image_mock__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/image.mock.ts"),_header_header_component__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Examples/Image Gallery",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[_header_header_component__WEBPACK_IMPORTED_MODULE_5__.b,_src_lib_atoms_image_grid_image_grid_component__WEBPACK_IMPORTED_MODULE_2__.p,_src_lib_atoms_image_grid_image_grid_click_area_directive__WEBPACK_IMPORTED_MODULE_1__.u,_src_lib_atoms_image_slider_image_slider_component__WEBPACK_IMPORTED_MODULE_3__.u]})]},ImageGallery={render:args=>({props:{...args,data:(0,_src_lib_atoms_image_mock__WEBPACK_IMPORTED_MODULE_4__.W)(),currentIndex:0},template:'\n <ui-intern-header theme="theme-light" display onTop></ui-intern-header>\n <section class="flex flex-col">\n <ui-image-slider\n [data]="data"\n [setIndex]="currentIndex"\n (currentIndex)="currentIndex=$event"\n [zoom]="false">\n </ui-image-slider>\n <div class="relative h-[400px] mt-(--ui-spacer)">\n <ui-image-grid\n [data]="data"\n [setIndex]="currentIndex"\n (currentIndex)="currentIndex=$event"\n [action]="true"\n [loaded]="true"\n [height]="400"\n [cols]="3"\n [gap]="10">\n </ui-image-grid>\n </div>\n </section>\n '})},ImageGalleryZoom={render:args=>({props:{...args,data:(0,_src_lib_atoms_image_mock__WEBPACK_IMPORTED_MODULE_4__.W)(),index:0,zoom:!1},template:'\n <ui-intern-header theme="theme-light" display onTop></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-image-grid\n [data]="data"\n [setIndex]="index"\n (clickIndex)="index=$event;zoom=true"\n [action]="true"\n [loaded]="true"\n overlayType="doors"\n [height]="480"\n [cols]="3"\n [gap]="10">\n <ng-template uiImageGridClickArea let-item>\n <div class="bg-c-background p-2">{{ item.title }}</div>\n </ng-template>\n </ui-image-grid>\n @if(zoom) {\n <ui-image-slider\n [data]="data"\n [setIndex]="index"\n (currentIndex)="index=$event"\n (currentZoom)="zoom=$event"\n [zoom]="zoom"></ui-image-slider>\n }\n </section>\n '})},__namedExportsOrder=["ImageGallery","ImageGalleryZoom"];ImageGallery.parameters={...ImageGallery.parameters,docs:{...ImageGallery.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n data: uiImageMock(),\n currentIndex: 0\n },\n template: `\n <ui-intern-header theme="theme-light" display onTop></ui-intern-header>\n <section class="flex flex-col">\n <ui-image-slider\n [data]="data"\n [setIndex]="currentIndex"\n (currentIndex)="currentIndex=$event"\n [zoom]="false">\n </ui-image-slider>\n <div class="relative h-[400px] mt-(--ui-spacer)">\n <ui-image-grid\n [data]="data"\n [setIndex]="currentIndex"\n (currentIndex)="currentIndex=$event"\n [action]="true"\n [loaded]="true"\n [height]="400"\n [cols]="3"\n [gap]="10">\n </ui-image-grid>\n </div>\n </section>\n `\n };\n }\n}',...ImageGallery.parameters?.docs?.source},description:{story:"Grid and slider side by side, sharing one index: a click in the grid moves\nthe slider, a step in the slider moves the grid's selection.",...ImageGallery.parameters?.docs?.description}}},ImageGalleryZoom.parameters={...ImageGalleryZoom.parameters,docs:{...ImageGalleryZoom.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n data: uiImageMock(),\n index: 0,\n zoom: false\n },\n template: `\n <ui-intern-header theme="theme-light" display onTop></ui-intern-header>\n <section class="relative flex flex-col">\n <ui-image-grid\n [data]="data"\n [setIndex]="index"\n (clickIndex)="index=$event;zoom=true"\n [action]="true"\n [loaded]="true"\n overlayType="doors"\n [height]="480"\n [cols]="3"\n [gap]="10">\n <ng-template uiImageGridClickArea let-item>\n <div class="bg-c-background p-2">{{ item.title }}</div>\n </ng-template>\n </ui-image-grid>\n @if(zoom) {\n <ui-image-slider\n [data]="data"\n [setIndex]="index"\n (currentIndex)="index=$event"\n (currentZoom)="zoom=$event"\n [zoom]="zoom"></ui-image-slider>\n }\n </section>\n `\n };\n }\n}',...ImageGalleryZoom.parameters?.docs?.source},description:{story:"The slider exists only while it is open. A click selects a tile; a click on\nthe selected tile's click area — the projected template, stamped per tile\nwith the tile's item — emits `clickIndex`, which creates the slider in zoom;\nthe slider's own close hands `currentZoom` back and removes it.",...ImageGalleryZoom.parameters?.docs?.description}}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1481,5684],{"./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:()=>UiPlaceholderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var placeholder_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.css?ngResource"),placeholder_componentngResource_default=__webpack_require__.n(placeholder_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiPlaceholderComponent=class UiPlaceholderComponent{label=(0,core.input)(null);static propDecorators={label:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"label",required:!1,transform:void 0}]}]}};UiPlaceholderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-placeholder",template:"<span class=\"_label\">{{ label() ?? ('placeholder.label' | transloco) }}</span>\n",encapsulation:_debug_node_chunk.gXe.None,imports:[ngneat_transloco.Kj],styles:[placeholder_componentngResource_default()]})],UiPlaceholderComponent)},"./libs/ui/src/lib/layout/splitter/splitter.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>UiLayoutSplitterComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var splitter_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/splitter/splitter.component.css?ngResource"),splitter_componentngResource_default=__webpack_require__.n(splitter_componentngResource),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs"),ngx_pwa_local_storage=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");const DIRECTIONS=new Set(["left","center","right","split"]),PANEL_ORDERS=new Set(["left-first","right-first"]);let UiLayoutSplitterComponent=class UiLayoutSplitterComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);storage=(0,_effect_chunk2.WQX)(ngx_pwa_local_storage.AX);id=(0,core.input)();defaultDirection=(0,core.input)("center");defaultPanelOrder=(0,core.input)("left-first");layoutAction=(0,core.input)(!0);themeAction=(0,core.input)(!0);animating=(0,core.output)();directionChange=(0,core.output)();direction=(0,_effect_chunk2.vPA)("center");panelOrder=(0,_effect_chunk2.vPA)("left-first");locked=(0,_effect_chunk2.vPA)(!1);zoomActive=(0,_effect_chunk2.vPA)(!1);fullscreenActive=(0,_effect_chunk2.vPA)(!1);syncActionStates(){this.zoomActive.set("zoom"===this.layoutService.settings.zoom),this.fullscreenActive.set("fullscreen"===this.layoutService.settings.fullscreen)}animate=(0,_effect_chunk2.vPA)(!1);ngOnInit(){this.direction.set(this.defaultDirection()),this.panelOrder.set(this.defaultPanelOrder());const key=this.storageKey();if(!key)return this.directionChange.emit(this.direction()),this.syncActionStates(),void this.enableAnimations();this.storage.get(key).subscribe(value=>{const state=value??{};state.direction&&DIRECTIONS.has(state.direction)&&this.direction.set(state.direction),state.panelOrder&&PANEL_ORDERS.has(state.panelOrder)&&(this.panelOrder.set(state.panelOrder),this.applyPanelOrder()),this.directionChange.emit(this.direction()),state.zoom&&this.layoutService.handleZoom(state.zoom),state.fullscreen&&this.layoutService.handleFullScreen(state.fullscreen),this.syncActionStates(),this.enableAnimations()})}enableAnimations(){setTimeout(()=>this.animate.set(!0))}leftPanel=(0,core.viewChild)("leftPanel");rightPanel=(0,core.viewChild)("rightPanel");panelObserver=null;ngAfterViewInit(){const left=this.leftPanel()?.nativeElement,right=this.rightPanel()?.nativeElement;left&&right&&(this.applyPanelOrder(),this.publishPanelWidths(left,right),"undefined"!=typeof ResizeObserver&&(this.panelObserver=new ResizeObserver(()=>this.publishPanelWidths(left,right)),this.panelObserver.observe(left),this.panelObserver.observe(right)))}ngOnDestroy(){this.panelObserver?.disconnect(),this.resumeTimer&&clearTimeout(this.resumeTimer)}publishPanelWidths(left,right){if(this.directionAnimating())return;const id=this.id(),write=(side,element)=>{const width=`${element.getBoundingClientRect().width}px`;document.body.style.setProperty(`--ui-splitter-${side}-width`,width),id&&document.body.style.setProperty(`--ui-splitter-${id}-${side}-width`,width)};write("left",left),write("right",right)}applyPanelOrder(){const left=this.leftPanel()?.nativeElement,right=this.rightPanel()?.nativeElement;if(!left||!right)return;const parent=left.parentElement;if(!parent)return;const rightFirst="right-first"===this.panelOrder(),first=rightFirst?right:left,second=rightFirst?left:right;if(first.nextElementSibling===second)return;const focused=document.activeElement instanceof HTMLElement&&parent.contains(document.activeElement)?document.activeElement:null;second.before(first),focused?.focus()}onSwapClick(){this.locked()||this.swapPanels()}onDirectionClick(type){this.locked()||this.setDirection(type)}onFullscreenClick(){this.locked()||this.fullscreen()}onZoomClick(){this.locked()||this.zoom()}onThemeClick(){this.locked()||this.theme()}swapPanels(){this.panelOrder.update(order=>"left-first"===order?"right-first":"left-first"),this.applyPanelOrder(),this.persist()}setDirection(type){this.direction.set(type),this.directionChange.emit(type),this.pauseMeasuring(),this.persist()}directionAnimating=(0,_effect_chunk2.vPA)(!1);resumeTimer=null;pauseMeasuring(){this.directionAnimating.set(!0),this.animating.emit(!0),this.resumeTimer&&clearTimeout(this.resumeTimer),this.resumeTimer=setTimeout(()=>this.resumeMeasuring(),1e3)}onDirectionSettled(event){event.target===event.currentTarget&&this.resumeMeasuring()}resumeMeasuring(){if(this.resumeTimer&&(clearTimeout(this.resumeTimer),this.resumeTimer=null),!this.directionAnimating())return;this.directionAnimating.set(!1),this.animating.emit(!1);const left=this.leftPanel()?.nativeElement,right=this.rightPanel()?.nativeElement;left&&right&&this.publishPanelWidths(left,right)}fullscreen(){this.layoutService.handleFullScreen(),this.syncActionStates(),this.persist()}zoom(){this.layoutService.handleZoom(),this.syncActionStates(),this.persist()}theme(){this.layoutService.handleTheme(null,null)}persist(){const key=this.storageKey();if(!key)return;const state={direction:this.direction(),panelOrder:this.panelOrder(),zoom:this.layoutService.settings.zoom,fullscreen:this.layoutService.settings.fullscreen};this.storage.set(key,state).subscribe()}storageKey(){const id=this.id();return id?`ui-layout-splitter:${id}`:null}static propDecorators={id:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"id",required:!1,transform:void 0}]}],defaultDirection:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"defaultDirection",required:!1,transform:void 0}]}],defaultPanelOrder:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"defaultPanelOrder",required:!1,transform:void 0}]}],layoutAction:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"layoutAction",required:!1,transform:void 0}]}],themeAction:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"themeAction",required:!1,transform:void 0}]}],animating:[{type:_debug_node_chunk.k7i,args:["animating"]}],directionChange:[{type:_debug_node_chunk.k7i,args:["directionChange"]}],leftPanel:[{type:core.ViewChild,args:["leftPanel",{isSignal:!0}]}],rightPanel:[{type:core.ViewChild,args:["rightPanel",{isSignal:!0}]}]}};UiLayoutSplitterComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-splitter",template:'<div class="_splitter">\n <nav class="_navigation">\n <div class="_actions">\n <ng-content select="[splitter-header]"></ng-content>\n </div>\n <div class="_display">\n <button\n class="ui-icon"\n [class.active]="direction() === \'right\'"\n [title]="\'splitter.direction.right\' | transloco"\n (click)="onDirectionClick(\'right\')"\n >\n border_right\n </button>\n <button\n class="ui-icon"\n [class.active]="direction() === \'center\'"\n [title]="\'splitter.direction.center\' | transloco"\n (click)="onDirectionClick(\'center\')"\n >\n border_vertical\n </button>\n <button\n class="ui-icon"\n [class.active]="direction() === \'left\'"\n [title]="\'splitter.direction.left\' | transloco"\n (click)="onDirectionClick(\'left\')"\n >\n border_left\n </button>\n <button\n class="ui-icon"\n [class.active]="direction() === \'split\'"\n [title]="\'splitter.direction.split\' | transloco"\n (click)="onDirectionClick(\'split\')"\n >\n border_horizontal\n </button>\n <button\n class="ui-icon"\n [class.active]="panelOrder() === \'right-first\'"\n [title]="\'splitter.swap\' | transloco"\n (click)="onSwapClick()"\n >\n swap_horiz\n </button>\n @if (layoutAction()) {\n <button\n class="ui-icon"\n [class.active]="fullscreenActive()"\n [title]="\'splitter.fullscreen\' | transloco"\n (click)="onFullscreenClick()"\n >\n zoom_out_map\n </button>\n }\n @if (layoutAction()) {\n <button\n class="ui-icon"\n [class.active]="zoomActive()"\n [title]="\'splitter.zoom\' | transloco"\n (click)="onZoomClick()"\n >\n center_focus_strong\n </button>\n }\n @if (themeAction()) {\n <button\n class="ui-icon"\n [title]="\'splitter.theme\' | transloco"\n (click)="onThemeClick()"\n >\n invert_colors\n </button>\n }\n </div>\n </nav>\n <div\n class="_bottom"\n [class]="\'_-\' + direction()"\n [class._-animate]="animate()"\n (transitionend)="onDirectionSettled($event)"\n >\n <section #leftPanel>\n <ng-content select="[splitter-left]"></ng-content>\n </section>\n <section #rightPanel>\n <ng-content select="[splitter-right]"></ng-content>\n </section>\n </div>\n</div>\n',imports:[ngneat_transloco.Kj],styles:[splitter_componentngResource_default()]})],UiLayoutSplitterComponent)},"./libs/ui/src/lib/layout/tabs/tabs.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:()=>UiLayoutTabsComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var tabs_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/tabs/tabs.component.css?ngResource"),tabs_componentngResource_default=__webpack_require__.n(tabs_componentngResource),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs");let UiLayoutTabsComponent=class UiLayoutTabsComponent{el=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);tabNames=(0,core.input)([]);activeTab=(0,core.input)(0);activeTabChange=(0,core.output)();activeTabValue=0;tabNamesValue=[];ngOnInit(){this.activeTabValue=this.activeTab(),this.tabNamesValue=[...this.tabNames()],this.activeContent(this.activeTabValue)}ngOnChanges(){this.activeTabValue=this.activeTab(),this.tabNamesValue=[...this.tabNames()],this.activeContent(this.activeTabValue)}active(index){this.activeTabValue=index,this.activeContent(index),this.activeTabChange.emit(index)}defaultLabels(count){0===this.tabNamesValue.length&&(this.tabNamesValue=[...Array.from({length:count}).keys()].map(key=>`0${(key+1).toString()}`))}activeContent(index){const contents=this.el.nativeElement.querySelectorAll("._bottom")[0].childNodes;this.defaultLabels(contents.length),contents.forEach((content,contentIndex)=>{const element=content;element.classList.remove("_-active"),contentIndex===index&&element.classList.add("_-active")})}static propDecorators={tabNames:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tabNames",required:!1,transform:void 0}]}],activeTab:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"activeTab",required:!1,transform:void 0}]}],activeTabChange:[{type:_debug_node_chunk.k7i,args:["activeTabChange"]}]}};UiLayoutTabsComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-tabs",template:'\x3c!-- Real buttons, not clickable divs: Tab reaches them, Enter and Space\n switch natively — no synthetic key handling. `role="tab"` and\n `aria-selected` say which one is open. Tracked by index, not by name:\n two tabs may carry the same label. --\x3e\n<header role="tablist">\n @for (name of tabNamesValue; track $index; let i = $index) {\n <button\n type="button"\n role="tab"\n class="_tab-selector"\n [class._-active]="i === activeTabValue"\n [attr.aria-selected]="i === activeTabValue"\n (click)="active(i)"\n >\n {{ name }}\n </button>\n }\n</header>\n<div class="_bottom">\n <ng-content></ng-content>\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,styles:[tabs_componentngResource_default()]})],UiLayoutTabsComponent)},"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/.storybook/demos/examples/layout/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"),_layout_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/examples/layout/layout.stories.ts"),_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_app_shell_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/app-shell.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_layout_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"example-layout",children:"Example Layout"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Four layout components nested into one application shell. Each of them\nworks by ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"content projection"}),": you put your own elements into named\nslots, and the component arranges them. What each component takes is on\nits own page — this page shows how they sit inside one another."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"app-shell",entry:_guide_app_shell_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:"the-parts",children:"The parts"}),"\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.a,{href:"?path=/docs/layout-main--docs",children:"Main"})," — the outer container with the\nslots ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[main-header]"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[main-content]"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[main-footer]"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/layout-nav--docs",children:"Nav"})," — the navigation, here in the\nheader. In the story it runs in ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"debug"}),' mode, which means nothing more\nthan "take the list from the ',(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"navList"}),' input"; in an app the nav service\nprovides it.']}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/layout-splitter--docs",children:"Splitter"})," — two panels and a header\nfor actions: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[splitter-header]"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[splitter-left]"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"[splitter-right]"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.li,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/layout-tabs--docs",children:"Tabs"})," — one ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<section>"})," per name in\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"tabNames"}),", projected as plain content."]}),"\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:"open-story-composition",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/story/examples-layout--layout",children:"Open story: composition"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The nesting, as the story renders it. The header buttons and the tab bodies\nare stand-ins for the slots they occupy; the right panel shows the nav's\nown data, so the header and the panel describe each other."}),"\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-layout-main [cssPrefix]="prefix" [zoom]="false" [fullScreen]="false">\n <div main-header>\n <h1 class="px-[calc(var(--ui-spacer)*0.5)]">Header</h1>\n <ui-layout-nav [theme]="\'tab\'" [debug]="true" [navList]="navMock"></ui-layout-nav>\n </div>\n <div main-content class="p-4 pt-24">\n <ui-layout-splitter [layoutAction]="true">\n <div splitter-header>\n <button class="ui-icon" type="button">star</button>\n </div>\n <div splitter-left>\n <ui-layout-tabs [tabNames]="[\'one\', \'two\']">\n <section><ui-placeholder class="h-32 w-64"></ui-placeholder></section>\n <section><ui-placeholder class="h-48 w-80"></ui-placeholder></section>\n </ui-layout-tabs>\n </div>\n <div splitter-right>\n <code class="ui"><pre>{{ navMock | json }}</pre></code>\n </div>\n </ui-layout-splitter>\n </div>\n <div main-footer class="p-4">footer</div>\n</ui-layout-main>\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/.storybook/demos/examples/layout/layout.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Layout:()=>Layout,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_common__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_src_config_ui_config_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),_src_lib_atoms_placeholder_placeholder_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/atoms/placeholder/placeholder.component.ts"),_src_lib_layout_main_main_component__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/layout/main/main.component.ts"),_src_lib_layout_nav_nav_component__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/src/lib/layout/nav/nav.component.ts"),_src_lib_layout_splitter_splitter_component__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/src/lib/layout/splitter/splitter.component.ts"),_src_lib_layout_tabs_tabs_component__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./libs/ui/src/lib/layout/tabs/tabs.component.ts");const navMock=[{label:"link01",route:"link01",title:"link01"},{label:"link02",route:"link02",title:"link02",subNav:[{label:"link01",route:"link01",title:"link02"}]},{label:"link03",route:"link03",title:"link03"}],__WEBPACK_DEFAULT_EXPORT__={title:"Examples/Layout",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({imports:[_angular_common__WEBPACK_IMPORTED_MODULE_0__.TG,_src_lib_layout_main_main_component__WEBPACK_IMPORTED_MODULE_4__.z,_src_lib_layout_nav_nav_component__WEBPACK_IMPORTED_MODULE_5__.L,_src_lib_layout_splitter_splitter_component__WEBPACK_IMPORTED_MODULE_6__.J,_src_lib_layout_tabs_tabs_component__WEBPACK_IMPORTED_MODULE_7__.q,_src_lib_atoms_placeholder_placeholder_component__WEBPACK_IMPORTED_MODULE_3__.F]})]},Layout={render:args=>({props:{...args,prefix:_src_config_ui_config_types__WEBPACK_IMPORTED_MODULE_2__.Q,navMock},template:'\n <ui-layout-main [cssPrefix]="prefix" [zoom]="false" [fullScreen]="false">\n <div class="app-header" main-header>\n <h1 class="py-4 px-[calc(var(--ui-spacer)*0.5)]">Header</h1>\n <ui-layout-nav\n [theme]="\'tab\'"\n [debug]="true"\n [navList]="navMock"\n ></ui-layout-nav>\n </div>\n <div main-content class="p-4 pt-24">\n <ui-layout-splitter [layoutAction]="true" >\n <div splitter-header>\n <div class="flex gap-4 p-4">\n <button class="ui-icon" type="button">star</button>\n <button class="ui-icon" type="button">favorite</button>\n <button class="ui-icon" type="button">pets</button>\n </div>\n </div>\n <div splitter-left>\n <div class="p-4">\n <ui-layout-tabs [tabNames]="[\'one\', \'two\', \'three\', \'four\']">\n <section><ui-placeholder class="h-32 w-64"></ui-placeholder></section>\n <section><ui-placeholder class="h-48 w-80"></ui-placeholder></section>\n <section><ui-placeholder class="h-32 w-64"></ui-placeholder></section>\n <section><ui-placeholder class="h-64 w-64"></ui-placeholder></section>\n </ui-layout-tabs>\n </div>\n </div>\n <div splitter-right>\n <div class="flex flex-col gap-2 p-4">\n <strong>navMock</strong>\n <code class="ui"><pre>{{ navMock | json }}</pre></code>\n </div>\n </div>\n </ui-layout-splitter>\n </div>\n <div main-footer class="p-4">footer</div>\n </ui-layout-main>\n '})},__namedExportsOrder=["Layout"];Layout.parameters={...Layout.parameters,docs:{...Layout.parameters?.docs,source:{originalSource:'{\n render: args => {\n return {\n props: {\n ...args,\n prefix: uiConfigStorybookCssPrefix,\n navMock\n },\n template: `\n <ui-layout-main [cssPrefix]="prefix" [zoom]="false" [fullScreen]="false">\n <div class="app-header" main-header>\n <h1 class="py-4 px-[calc(var(--ui-spacer)*0.5)]">Header</h1>\n <ui-layout-nav\n [theme]="\'tab\'"\n [debug]="true"\n [navList]="navMock"\n ></ui-layout-nav>\n </div>\n <div main-content class="p-4 pt-24">\n <ui-layout-splitter [layoutAction]="true" >\n <div splitter-header>\n <div class="flex gap-4 p-4">\n <button class="ui-icon" type="button">star</button>\n <button class="ui-icon" type="button">favorite</button>\n <button class="ui-icon" type="button">pets</button>\n </div>\n </div>\n <div splitter-left>\n <div class="p-4">\n <ui-layout-tabs [tabNames]="[\'one\', \'two\', \'three\', \'four\']">\n <section><ui-placeholder class="h-32 w-64"></ui-placeholder></section>\n <section><ui-placeholder class="h-48 w-80"></ui-placeholder></section>\n <section><ui-placeholder class="h-32 w-64"></ui-placeholder></section>\n <section><ui-placeholder class="h-64 w-64"></ui-placeholder></section>\n </ui-layout-tabs>\n </div>\n </div>\n <div splitter-right>\n <div class="flex flex-col gap-2 p-4">\n <strong>navMock</strong>\n <code class="ui"><pre>{{ navMock | json }}</pre></code>\n </div>\n </div>\n </ui-layout-splitter>\n </div>\n <div main-footer class="p-4">footer</div>\n </ui-layout-main>\n `\n };\n }\n}',...Layout.parameters?.docs?.source},description:{story:'The shell, composed: main with its three slots, the nav in the header, a\nsplitter in the content with tabs on the left and the nav\'s own data on the\nright. The nav runs in `debug` mode, which here means nothing more than\n"take the list from the input" — outside a story the nav service provides\nit. The header buttons and the tab bodies are stand-ins for the slots they\noccupy, nothing else.',...Layout.parameters?.docs?.description}}}},"./libs/ui/src/lib/atoms/placeholder/placeholder.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n/* Encapsulation.None — one nested block anchored on the tag, so the rules\n cannot leak while the host itself stays styleable from outside. */\nui-placeholder {\n display: flex;\n align-items: center;\n justify-content: center;\n\n /* A floor, not a size: width and height come from wherever it is used.\n Without one an empty stand-in collapses to a text line and stops being\n the mass it exists to be. The floor is a named hook with a fallback, so a\n consumer who deliberately wants a smaller stand-in can set\n `--ui-placeholder-min-width` / `--ui-placeholder-min-height` without a\n cascade fight — an unlayered host rule otherwise beats a width utility in\n `@layer utilities` (tickets#241, tickets#251, tickets#253). */\n min-width: var(--ui-placeholder-min-width, calc(var(--ui-spacer) * 3));\n min-height: var(--ui-placeholder-min-height, calc(var(--ui-spacer) * 3));\n padding: calc(var(--ui-spacer) * 0.25);\n\n /* The overlay header's pair: filled enough to read as chrome rather than\n content, and theme-aware through the tokens. */\n background-color: var(--ui-c-primary);\n color: var(--ui-c-default);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-radius: var(--ui-border-radius);\n\n /* It is scenery, never the subject: nothing here should invite a click or\n land in a text selection. */\n -webkit-user-select: none;\n user-select: none;\n\n ._label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/splitter/splitter.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n._splitter {\n display: flex;\n flex-flow: column;\n\n ._navigation {\n display: flex;\n justify-content: space-between;\n /* padding: $spacer * 0.25; */\n margin-bottom: calc(var(--ui-spacer) * 0.5);\n padding-bottom: calc(var(--ui-spacer) * 0.5);\n\n border-bottom: var(--ui-border-width) solid var(--ui-c-fourthly);\n\n ._actions {\n display: flex;\n justify-content: flex-end;\n button {\n margin-right: calc(var(--ui-spacer) * 0.5);\n }\n }\n\n ._display {\n display: flex;\n justify-content: flex-start;\n button {\n margin-left: calc(var(--ui-spacer) * 0.5);\n\n &.active {\n color: var(--ui-c-focus);\n }\n }\n }\n\n @media (max-width: 1024px) {\n display: none;\n }\n }\n\n ._bottom {\n display: grid;\n\n grid-template-columns: 1fr 1fr;\n grid-gap: calc(var(--ui-spacer) * 0.25);\n\n /* Animate direction changes only after the initial (persisted) state has\n been restored — the `_-animate` modifier is added once the component is\n ready, so a restored layout appears instantly. */\n &._-animate {\n transition: var(--ui-time) ease-in;\n }\n\n > section {\n /* background-color: var(--ui-cb-secondary); */\n border-radius: var(--ui-border-radius);\n /* padding: $spacer * 0.25; */\n /* Grid items default to min-width: auto and never shrink below their\n content — wide content (e.g. tables) would blow the panel out of\n the viewport instead of scrolling inside it. */\n min-width: 0;\n }\n\n &._-left {\n grid-template-columns: 3fr 1fr;\n }\n\n &._-center {\n grid-template-columns: 1fr 1fr;\n }\n\n &._-right {\n grid-template-columns: 1fr 3fr;\n }\n\n &._-split {\n grid-template-columns: 1fr;\n }\n\n /* --- breakpoint 01 - 03 --- */\n @media (max-width: 1024px) {\n &._-left,\n &._-center,\n &._-right {\n grid-template-columns: 1fr;\n }\n }\n\n /* The panel order is deliberately NOT expressed here. `order` would move\n the pixels and leave the focus behind, so reading order and tab order\n would disagree; the component moves the two sections in the DOM instead\n and this grid simply lays out whatever it finds. */\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/tabs/tabs.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\nui-layout-tabs {\n /* scope only for component - encapsulation is set to ViewEncapsulation.None */\n display: flex;\n flex-flow: column;\n\n header {\n display: flex;\n padding: calc(var(--ui-spacer) * 0.25);\n padding-bottom: 0;\n /* background-color: var(--ui-cb-secondary); */\n\n ._tab-selector {\n display: flex;\n /* A button now (it always acted like one) — strip the native face so\n the class keeps the exact look the div had. */\n appearance: none;\n border: 0;\n font: inherit;\n color: inherit;\n cursor: pointer;\n background-color: var(--ui-c-fourthly);\n padding: calc(var(--ui-spacer) * 0.2);\n border-radius: var(--ui-border-radius) var(--ui-border-radius) 0 0;\n margin: calc(var(--ui-spacer) * 0.08);\n margin-bottom: 0;\n line-height: 0.8;\n\n &:first-of-type {\n margin-left: 0;\n }\n\n &:last-of-type {\n margin-right: 0;\n }\n\n &._-active {\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-bottom: 0;\n transform: translateY(var(--ui-border-width));\n }\n\n /* The house focus ring — the underscore class is outside the global\n button rules, so the ring is declared here. */\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 calc(var(--ui-button-shadow) * 2) 0 var(--ui-c-focus);\n }\n }\n }\n\n ._bottom {\n display: flex;\n flex-flow: column;\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-fourthly);\n border-radius: var(--ui-border-radius);\n padding: calc(var(--ui-spacer) * 0.25);\n height: 100%;\n\n > * {\n display: none;\n }\n\n > *._-active {\n display: flex;\n }\n }\n}\n\n/* --- breakpoint 01 - 03 --- */\n@media (max-width: 768px) {\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[5493,9836],{"./libs/ui/.storybook/blocks/guide.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ay:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_guide_entries__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/blocks/guide.entries.js"),_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.model.mjs");const Link=({href,children})=>href?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.zE,{href,children}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children}),Sentences=({items})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ul",{children:items.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("li",{children:s},i))}),Block=({of,entry})=>{const m=(0,_guide_model_mjs__WEBPACK_IMPORTED_MODULE_5__.Cc)(entry,_guide_entries__WEBPACK_IMPORTED_MODULE_4__.H,of);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section",{className:"ui-guide",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("h4",{children:["Guide — a recommendation, not the truth",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[" · reviewed ",m.reviewed]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:["Written by an agent from the sources below, only for what runs in the house."," ","component"===m.kind?"The section above is what the component does; this is what to reach for it for.":"The pages of the parts say what each does; this is what they are for together."," ","Where the two disagree, the page wins."]}),m.uses.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Builds on"})," ",m.uses.map((u,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:u.href,children:u.selector})]},u.selector))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Use it for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.useFor}),m.notFor.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Not for"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Sentences,{items:m.notFor})]}),m.instead.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Instead"})," ",m.instead.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.selector})]},s.selector))]}),m.note&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Note"})," ",m.note]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Shown in"})," ",m.shownIn.map((s,i)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span",{children:[i>0&&" · ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Link,{href:s.href,children:s.label})]},s.label))]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("small",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Sources"})," ",m.sources.join(" · ")]})})]})};function _createMdxContent(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["\n","\n","\n","\n","\n","\n","\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Block,{of:props.of,entry:props.entry})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/.storybook/demos/examples/table-edit-focus/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_table_edit_focus_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts"),_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./libs/ui/.storybook/blocks/guide.mdx"),_guide_table_edit_focus_json__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./libs/ui/guide/table-edit-focus.json");function _createMdxContent(props){const _components={a:"a",code:"code",h3:"h3",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_table_edit_focus_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"table-edit-focus",children:"Table Edit Focus"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiTableEditFocusDirective"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"uiTableEditFocus"}),") bundles the focus behaviour of\ninline-editing CDK tables. Place it on the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-cdk-table-wrapper"})," (or any\ncontainer around a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"cdk-table"}),"):"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("thead",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Behaviour"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tbody",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"No select-all"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Focusing a form field never selects its content — the caret goes to the\nend (number inputs included). Disable via\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'[clearSelection]="false"'}),"."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Clicked cell"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Clicks remember the clicked column; calling ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"focusCell()"}),"\nafter the app re-rendered its edit row focuses exactly that cell —\nalways with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"preventScroll"}),", so the wrapper's smooth\nfollowing (horizontal centering plus the vertical row follow;\nkeyboard, mouse and programmatic focus alike) is the only scrolling\nthat happens."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"No layout jumps"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["In the wrapper's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"inline"})," mode, display texts\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"td > div"})," without interactive content) and edit fields\nshare the exact same box metrics — same padding plus a border of the\nsame width — so toggling a cell between text and field never shifts\nthe table. The metrics come from the wrapper, the behaviour from this\ndirective."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Tab row wrapping"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Tab walks all controls of the row — form fields and buttons alike.\nOn the row's last control (Shift+Tab: first) it wraps to the\nneighbour row via ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"uiRowNavigate"}),". A read-only row (no\nform fields, e.g. a locked one) wraps too, with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"column: null"})," — the app is asked for its default entry\npoint instead of a specific column. Without that, the native Tab\nwould carry the focus into the neighbour row behind the app's back,\nwhich then never learns that it should open that row. At the table\nedges Tab leaves the table natively. No app-side key handlers\nneeded."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Sideways step, offered first"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Every Shift+Left/Right is announced as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"uiRowStep"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("em",{children:"before"})," the walk moves, and the app may take the step over\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"handled = true"}),') — a row rendered read-only can be an\neditable row that is merely closed, and "let me in" beats walking its\nremaining buttons. Only the app knows which of the two it is; the\ndirective never learns what "locked" means. The reasoning is on the\n',(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a",{href:"?path=/docs/cdk-table--docs",children:"CDK/Table"})," page."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Shift+Arrow navigation"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Shift+Left/Right focuses the next control — fields and buttons: first\nthe remaining controls of the current cell, then the nearest cell\nthat has any (DOM based, skips empty cells). Shift+Up/Down emits\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"uiRowNavigate"})," (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"{ column, delta }"}),") —\nthe app switches its edit row and calls ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"focusCell()"}),"\nagain; the directive keeps the column AND the control position\nwithin the cell (the lock button stays the lock button, not the\ncell's first button)."]})})]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The directive is meant for wrappers ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.strong,{children:["with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"inline"})," mode"]}),": only there do all\ncells share the same box metrics. Without ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"inline"})," the cells keep their regular\npadding and toggling text ↔ field shifts the layout — that combination is\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"not recommended"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Usage:"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<ui-cdk-table-wrapper inline uiTableEditFocus (uiRowNavigate)="onRowNavigate($event)">\n <table cdk-table [dataSource]="rows()">...</table>\n</ui-cdk-table-wrapper>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"private readonly editFocus = viewChild(UiTableEditFocusDirective);\n\nprotected onRowClick(id: number, event: Event): void {\n this.editedId.set(id);\n event.stopPropagation();\n this.editFocus()?.focusCell();\n}\n\nprotected onRowNavigate({ delta }: UiRowNavigateEvent): void {\n // switch the edited row by delta, then:\n this.editFocus()?.focusCell();\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_blocks_guide_mdx__WEBPACK_IMPORTED_MODULE_5__.Ay,{of:"table-edit-focus",entry:_guide_table_edit_focus_json__WEBPACK_IMPORTED_MODULE_6__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Click a cell to edit exactly that field — the wrapper smoothly centers\nevery focused field (mouse, Tab, Shift+Arrow alike). Tab walks the fields —\nthe table is wider than its container, so the smooth auto-scrolling is\nvisible — and wraps to the next row after the last field (Shift+Tab: back to\nthe previous row's last field), all built into the directive. The fixed\nlayout keeps the column widths stable while cells toggle between text and\nfield, and the table reserves bottom space for the horizontal scrollbar:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_table_edit_focus_stories__WEBPACK_IMPORTED_MODULE_4__.TableEditFocus}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The wrapper also follows the focus ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"vertically"}),": the page scrolls just\nenough to keep the edit row in view (nearest edge, no centering). A row's\nCSS ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"scroll-margin-top"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"-bottom"})," declares sticky\nchrome (nav, detached header, footer) the row must stay clear of. The tall\nvariant makes it visible — enter a row and walk down with Shift+ArrowDown\nor Tab:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_table_edit_focus_stories__WEBPACK_IMPORTED_MODULE_4__.TableEditFocusTall}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["See also: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"?path=/docs/cdk-table--docs",children:"CDK/Table"})," — the wrapper with the\ninline mode and the focus auto-centering."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/.storybook/demos/examples/table-edit-focus/table-edit-focus.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TableEditFocus:()=>TableEditFocus,TableEditFocusTall:()=>TableEditFocusTall,__namedExportsOrder:()=>__namedExportsOrder,default:()=>table_edit_focus_stories});var dist=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),header_component=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var table=__webpack_require__("./node_modules/@angular/cdk/fesm2022/table.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),fesm2022_forms=__webpack_require__("./node_modules/@angular/forms/fesm2022/forms.mjs");const CONTROL_SELECTOR=':is(input, select, textarea, button, a):not(:disabled):not([hidden]):not([tabindex="-1"])',FIELD_SELECTOR=':is(input, select, textarea):not(:disabled):not([hidden]):not([tabindex="-1"])';let UiTableEditFocusDirective=class UiTableEditFocusDirective{element=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);clearSelection=(0,core.input)(!0);uiRowNavigate=(0,core.output)();uiRowStep=(0,core.output)();lastColumn=null;lastControlIndex=0;focusCell(column=this.lastColumn){column!==this.lastColumn&&(this.lastControlIndex=0),this.lastColumn=column,setTimeout(()=>{const host=this.element.nativeElement,editRow=host.querySelector(`td ${FIELD_SELECTOR}`)?.closest("tr")??null,cell=column?(editRow??host).querySelector(`td.cdk-column-${column}`):null,controls=cell?this.controlsOf(cell):[],target=controls[Math.min(this.lastControlIndex,controls.length-1)]??host.querySelector(`td ${FIELD_SELECTOR}`);target?.focus({preventScroll:!0})})}onFocusIn(event){const el=event.target;this.clearSelection()&&el instanceof HTMLInputElement&&setTimeout(()=>{if("number"===el.type){const value=el.value;return el.value="",void(el.value=value)}const end=el.value.length;el.setSelectionRange(end,end)})}captureColumn(event){const column=this.columnOf(event.target);if(null===column)return;this.lastColumn=column;const control=event.target instanceof Element?event.target.closest(CONTROL_SELECTOR):null;this.lastControlIndex=control?this.controlIndexOf(control):0}onKeydown(event){const el=event.target;if("Tab"===event.key)return void(el.matches(CONTROL_SELECTOR)&&this.onTabKey(event,el));if(!el.matches(CONTROL_SELECTOR))return;const horizontal={ArrowLeft:-1,ArrowRight:1},vertical={ArrowUp:-1,ArrowDown:1};if(!event.shiftKey||!(event.key in horizontal)&&!(event.key in vertical))return;const cell=el.closest("td");if(!cell)return;if(event.key in horizontal){event.preventDefault(),event.stopPropagation();const step={direction:horizontal[event.key]>0?1:-1,from:el,handled:!1};if(this.uiRowStep.emit(step),step.handled)return;return void this.focusSibling(cell,horizontal[event.key],el)}const column=this.columnOf(el);null!==column&&(event.preventDefault(),event.stopPropagation(),this.rememberControl(el),this.uiRowNavigate.emit({column,delta:vertical[event.key]}))}onTabKey(event,el){const row=el.closest("tr");if(!row)return;const focusables=[],fields=[];row.querySelectorAll(`td ${CONTROL_SELECTOR}`).forEach(control=>{focusables.push(control),control.matches(FIELD_SELECTOR)&&fields.push(control)});const index=focusables.indexOf(el),forward=!event.shiftKey;if(-1===index||index!==(forward?focusables.length-1:0))return;const neighbour=forward?row.nextElementSibling:row.previousElementSibling;if(!neighbour?.matches("tr"))return;const target=(forward?fields[0]:fields.at(-1))??null,column=this.columnOf(target);null!==target&&null!==column&&this.rememberControl(target),event.preventDefault(),event.stopPropagation(),this.uiRowNavigate.emit({column,delta:forward?1:-1})}focusSibling(cell,direction,from){const inCell=this.controlsOf(cell),nextInCell=inCell[inCell.indexOf(from)+direction];if(nextInCell)return this.rememberControl(nextInCell),void nextInCell.focus({preventScroll:!0});let sibling=cell;for(;;){const next=direction>0?sibling.nextElementSibling:sibling.previousElementSibling;if(!next)return;const candidates=this.controlsOf(next),target=direction>0?candidates[0]:candidates.at(-1);if(target)return this.rememberControl(target),void target.focus({preventScroll:!0});sibling=next}}controlsOf(cell){const controls=[];return cell.querySelectorAll(CONTROL_SELECTOR).forEach(control=>controls.push(control)),controls}controlIndexOf(control){const cell=control.closest("td"),index=cell?this.controlsOf(cell).indexOf(control):-1;return Math.max(index,0)}rememberControl(control){this.lastColumn=this.columnOf(control),this.lastControlIndex=this.controlIndexOf(control)}columnOf(target){const cell=target instanceof Element?target.closest("td"):null;return cell?.className.split(/\s+/).find(cls=>cls.startsWith("cdk-column-"))?.replace("cdk-column-","")??null}static propDecorators={clearSelection:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"clearSelection",required:!1,transform:void 0}]}],uiRowNavigate:[{type:_debug_node_chunk.k7i,args:["uiRowNavigate"]}],uiRowStep:[{type:_debug_node_chunk.k7i,args:["uiRowStep"]}]}};UiTableEditFocusDirective=(0,tslib_es6.Cg)([(0,_debug_node_chunk.WLR)({selector:"[uiTableEditFocus]",host:{"(focusin)":"onFocusIn($event)","(pointerdown)":"captureColumn($event)","(keydown)":"onKeydown($event)"}})],UiTableEditFocusDirective);var table_component=__webpack_require__("./libs/ui/src/lib/cdk/components/table/table.component.ts");let UiExampleTableEditFocusComponent=class UiExampleTableEditFocusComponent{editFocus=(0,core.viewChild)(UiTableEditFocusDirective);tall=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.tall()&&this.rows.update(seed=>Array.from({length:10},(_,round)=>seed.map(row=>({...row,id:round*seed.length+row.id,code:`${row.code}-${round+1}`}))).flat())}displayedColumns=["name","publisher","year","type","rating","code","action"];rows=(0,_effect_chunk2.vPA)([{id:1,name:"Mario",publisher:"Nintendo",year:1985,type:"Jump n run",rating:9.2,code:"NES-SM"},{id:2,name:"Turrican",publisher:"Rainbow Arts",year:1990,type:"Run and gun",rating:8.7,code:"AMI-TU"},{id:3,name:"Wipeout",publisher:"Psygnosis",year:1995,type:"Racing",rating:8.9,code:"PSX-WO"},{id:4,name:"Frogger",publisher:"Konami",year:1981,type:"Arcade",rating:7.8,code:"ARC-FR"}]);editedId=(0,_effect_chunk2.vPA)(null);onDocumentClick(){this.editedId.set(null)}onRowClick(id,event){this.editedId.set(id),event.stopPropagation(),this.editFocus()?.focusCell()}editRow(id,event){event.stopPropagation(),this.editedId.set(id),this.editFocus()?.focusCell("name")}deleteRow(id,event){event.stopPropagation(),this.rows.update(rows=>rows.filter(row=>row.id!==id)),this.editedId()===id&&this.editedId.set(null)}onRowNavigate({delta}){const ids=this.rows().map(row=>row.id),index=ids.indexOf(this.editedId()??-1),next=Math.min(Math.max(index+delta,0),ids.length-1);-1!==index&&next!==index&&(this.editedId.set(ids[next]),this.editFocus()?.focusCell())}static propDecorators={editFocus:[{type:core.ViewChild,args:[UiTableEditFocusDirective,{isSignal:!0}]}],tall:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"tall",required:!1,transform:void 0}]}],onDocumentClick:[{type:_debug_node_chunk.Z$l,args:["document:click"]}]}};UiExampleTableEditFocusComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-examples-table-edit-focus",template:'<ui-cdk-table-wrapper\n inline\n fixed\n uiTableEditFocus\n class="w-full rounded-[var(--ui-border-radius)]! border! border-solid! border-[var(--ui-c-secondary)]!"\n (uiRowNavigate)="onRowNavigate($event)"\n (click)="$event.stopPropagation()"\n>\n <table cdk-table class="mb-6 min-w-[160rem]" [dataSource]="rows()">\n <ng-container cdkColumnDef="name">\n <th cdk-header-cell *cdkHeaderCellDef class="w-56">Name</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.name" />\n } @else {\n <div>{{ game.name }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="publisher">\n <th cdk-header-cell *cdkHeaderCellDef class="w-56">Publisher</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.publisher" />\n } @else {\n <div>{{ game.publisher }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="year">\n <th cdk-header-cell *cdkHeaderCellDef class="w-36">Year</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" type="number" [(ngModel)]="game.year" />\n } @else {\n <div>{{ game.year }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="type">\n <th cdk-header-cell *cdkHeaderCellDef class="w-56">Type</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.type" />\n } @else {\n <div>{{ game.type }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="rating">\n <th cdk-header-cell *cdkHeaderCellDef class="w-36">Rating</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" type="number" [(ngModel)]="game.rating" />\n } @else {\n <div>{{ game.rating }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="code">\n <th cdk-header-cell *cdkHeaderCellDef class="w-44">Code</th>\n <td cdk-cell *cdkCellDef="let game">\n @if (game.id === editedId()) {\n <input class="ui-flat w-full" [(ngModel)]="game.code" />\n } @else {\n <div>{{ game.code }}</div>\n }\n </td>\n </ng-container>\n\n <ng-container cdkColumnDef="action">\n <th cdk-header-cell *cdkHeaderCellDef class="w-36">Action</th>\n <td cdk-cell *cdkCellDef="let game">\n <div class="flex justify-end gap-2">\n <button class="ui-flat" type="button" (click)="editRow(game.id, $event)">\n <span class="ui-icon text-c-focus/80">edit</span>\n </button>\n <button class="ui-flat" type="button" (click)="deleteRow(game.id, $event)">\n <span class="ui-icon text-c-error/80">delete</span>\n </button>\n </div>\n </td>\n </ng-container>\n\n <tr cdk-header-row *cdkHeaderRowDef="displayedColumns"></tr>\n <tr cdk-row *cdkRowDef="let row; columns: displayedColumns" (click)="onRowClick(row.id, $event)"></tr>\n </table>\n</ui-cdk-table-wrapper>\n',host:{class:"block w-full"},imports:[table.N0,fesm2022_forms.YN,table_component.N,UiTableEditFocusDirective]})],UiExampleTableEditFocusComponent);const table_edit_focus_stories={title:"Examples/Table Edit Focus",decorators:[(0,dist.Iz)({imports:[header_component.b,UiExampleTableEditFocusComponent]})]},TableEditFocusTall={parameters:{docs:{canvas:{sourceState:"none"}}},render:()=>({template:'\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus tall></ui-examples-table-edit-focus>\n </div>\n '})},TableEditFocus={parameters:{docs:{canvas:{sourceState:"none"}}},render:()=>({template:'\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus></ui-examples-table-edit-focus>\n </div>\n '})},__namedExportsOrder=["TableEditFocusTall","TableEditFocus"];TableEditFocusTall.parameters={...TableEditFocusTall.parameters,docs:{...TableEditFocusTall.parameters?.docs,source:{originalSource:'{\n parameters: {\n docs: {\n canvas: {\n sourceState: \'none\'\n }\n }\n },\n render: () => ({\n template: `\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus tall></ui-examples-table-edit-focus>\n </div>\n `\n })\n}',...TableEditFocusTall.parameters?.docs?.source},description:{story:"Tall variant: 40 rows, the table exceeds the viewport. Enter a row and\nwalk down with Shift+ArrowDown (or Tab through the fields) — the page\nscrolls along so the edit row stays visible; horizontally the focused\ncell keeps centering as usual.",...TableEditFocusTall.parameters?.docs?.description}}},TableEditFocus.parameters={...TableEditFocus.parameters,docs:{...TableEditFocus.parameters?.docs,source:{originalSource:'{\n parameters: {\n docs: {\n canvas: {\n sourceState: \'none\'\n }\n }\n },\n render: () => ({\n template: `\n <ui-intern-header [display]="true" theme="theme-light" [onTop]="true"></ui-intern-header>\n <div class="flex w-[80%] flex-col gap-4 p-4">\n <ui-examples-table-edit-focus></ui-examples-table-edit-focus>\n </div>\n `\n })\n}',...TableEditFocus.parameters?.docs?.source}}}}}]);