@kerfjs/ui 5.0.0-beta.131 → 5.0.0-beta.132
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.
- package/README.md +0 -13
- package/ai/application-ui-profile-sync.cjs +5 -14
- package/ai/application-ui-profile.d.ts +0 -2
- package/ai/application-ui-profile.defaults.json +0 -4
- package/ai/application-ui-profile.mjs +5 -14
- package/ai/application-ui-profile.schema.json +0 -4
- package/ai/component-catalog.json +9 -7
- package/ai/component-composition-rules.json +2 -10
- package/ai/component-composition.d.ts +0 -17
- package/ai/component-composition.json +3 -11
- package/ai/component-composition.schema.json +0 -59
- package/ai/components/disclosure.md +2 -0
- package/ai/components/form.md +1 -2
- package/ai/components/tab-panel.md +0 -1
- package/ai/components/toolbar-control-group.md +2 -2
- package/ai/public-api-signatures-v1.md +170 -197
- package/ai/skill.md +3 -20
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/dist/backdrop-image.d.ts +1 -1
- package/dist/backdrop-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +1 -1
- package/dist/catalog-resources.d.ts +2 -2
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +16 -16
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chip.js +1 -1
- package/dist/choice-chips.d.ts +3 -3
- package/dist/choice-chips.js +1 -1
- package/dist/{chunk-Q5BPZPCO.js → chunk-22T7FFCL.js} +2 -2
- package/dist/{chunk-Q5BPZPCO.js.map → chunk-22T7FFCL.js.map} +1 -1
- package/dist/{chunk-BCHK33XL.js → chunk-27NEAPV7.js} +2 -2
- package/dist/{chunk-BCHK33XL.js.map → chunk-27NEAPV7.js.map} +1 -1
- package/dist/{chunk-76BLSFEA.js → chunk-2OYMXGW2.js} +6 -5
- package/dist/chunk-2OYMXGW2.js.map +1 -0
- package/dist/{chunk-EHR7R7YP.js → chunk-3DPHCZQB.js} +2 -2
- package/dist/{chunk-EHR7R7YP.js.map → chunk-3DPHCZQB.js.map} +1 -1
- package/dist/{chunk-RPJOLDSR.js → chunk-3UIZ36BP.js} +3 -3
- package/dist/{chunk-RPJOLDSR.js.map → chunk-3UIZ36BP.js.map} +1 -1
- package/dist/{chunk-QZA75NOK.js → chunk-42NLFCIN.js} +6 -6
- package/dist/{chunk-QZA75NOK.js.map → chunk-42NLFCIN.js.map} +1 -1
- package/dist/{chunk-UPHPFKAD.js → chunk-4GGIML4E.js} +2 -2
- package/dist/{chunk-UPHPFKAD.js.map → chunk-4GGIML4E.js.map} +1 -1
- package/dist/{chunk-LET362AM.js → chunk-4YXKDS6I.js} +2 -2
- package/dist/{chunk-LET362AM.js.map → chunk-4YXKDS6I.js.map} +1 -1
- package/dist/{chunk-5KWXM5O7.js → chunk-5C34PAUY.js} +2 -2
- package/dist/{chunk-5KWXM5O7.js.map → chunk-5C34PAUY.js.map} +1 -1
- package/dist/{chunk-S7QB5KMM.js → chunk-5L3MLWD5.js} +19 -55
- package/dist/chunk-5L3MLWD5.js.map +1 -0
- package/dist/{chunk-6PHG2DMG.js → chunk-6OH734CG.js} +2 -2
- package/dist/{chunk-6PHG2DMG.js.map → chunk-6OH734CG.js.map} +1 -1
- package/dist/{chunk-E7ZRBMVQ.js → chunk-7XIY7G4K.js} +3 -3
- package/dist/{chunk-E7ZRBMVQ.js.map → chunk-7XIY7G4K.js.map} +1 -1
- package/dist/{chunk-OKZTLRGG.js → chunk-B5Q3KE4Z.js} +2 -2
- package/dist/{chunk-OKZTLRGG.js.map → chunk-B5Q3KE4Z.js.map} +1 -1
- package/dist/{chunk-SGYBIKQA.js → chunk-BADEZQ3V.js} +4 -4
- package/dist/chunk-BADEZQ3V.js.map +1 -0
- package/dist/{chunk-CJAKN2KZ.js → chunk-BLBMUD2W.js} +2 -2
- package/dist/{chunk-CJAKN2KZ.js.map → chunk-BLBMUD2W.js.map} +1 -1
- package/dist/{chunk-TRJS7M2H.js → chunk-BNRH7XG5.js} +2 -2
- package/dist/{chunk-TRJS7M2H.js.map → chunk-BNRH7XG5.js.map} +1 -1
- package/dist/{chunk-NA4LKVPX.js → chunk-BNXJQB2Y.js} +2 -2
- package/dist/{chunk-NA4LKVPX.js.map → chunk-BNXJQB2Y.js.map} +1 -1
- package/dist/{chunk-CCPWJDRW.js → chunk-BQHGXQVA.js} +2 -2
- package/dist/{chunk-CCPWJDRW.js.map → chunk-BQHGXQVA.js.map} +1 -1
- package/dist/{chunk-COQI4OMZ.js → chunk-BRDTP3RT.js} +1 -1
- package/dist/chunk-BRDTP3RT.js.map +1 -0
- package/dist/{chunk-RGB4DPMN.js → chunk-DGYGRMES.js} +3 -3
- package/dist/chunk-DGYGRMES.js.map +1 -0
- package/dist/{chunk-V3IXAI4L.js → chunk-DNNHT7RB.js} +2 -2
- package/dist/{chunk-V3IXAI4L.js.map → chunk-DNNHT7RB.js.map} +1 -1
- package/dist/{chunk-UU37OR3D.js → chunk-DT7KOBQJ.js} +1 -1
- package/dist/chunk-DT7KOBQJ.js.map +1 -0
- package/dist/{chunk-CUUW57WB.js → chunk-DUKE3PLH.js} +2 -2
- package/dist/chunk-DUKE3PLH.js.map +1 -0
- package/dist/{chunk-IPYQYLSX.js → chunk-EWCTBJ5O.js} +6 -6
- package/dist/{chunk-IPYQYLSX.js.map → chunk-EWCTBJ5O.js.map} +1 -1
- package/dist/{chunk-4OH6JSGU.js → chunk-F25UMYDX.js} +2 -2
- package/dist/{chunk-4OH6JSGU.js.map → chunk-F25UMYDX.js.map} +1 -1
- package/dist/{chunk-C4FBYP2D.js → chunk-FJAAOIMP.js} +2 -2
- package/dist/{chunk-C4FBYP2D.js.map → chunk-FJAAOIMP.js.map} +1 -1
- package/dist/{chunk-RHMY45DK.js → chunk-H2XGWH4V.js} +5 -5
- package/dist/{chunk-RHMY45DK.js.map → chunk-H2XGWH4V.js.map} +1 -1
- package/dist/{chunk-76VCWWUA.js → chunk-HSMSTCNZ.js} +2 -2
- package/dist/{chunk-76VCWWUA.js.map → chunk-HSMSTCNZ.js.map} +1 -1
- package/dist/{chunk-ECVTRAXN.js → chunk-IQOO3ZQK.js} +2 -2
- package/dist/{chunk-ECVTRAXN.js.map → chunk-IQOO3ZQK.js.map} +1 -1
- package/dist/{chunk-DBP3N6E5.js → chunk-JBL6SCNN.js} +3 -3
- package/dist/{chunk-DBP3N6E5.js.map → chunk-JBL6SCNN.js.map} +1 -1
- package/dist/{chunk-7KN5OQVN.js → chunk-JNQBPRAA.js} +2 -2
- package/dist/{chunk-7KN5OQVN.js.map → chunk-JNQBPRAA.js.map} +1 -1
- package/dist/{chunk-CPTQABDQ.js → chunk-JNSPYECP.js} +2 -2
- package/dist/{chunk-CPTQABDQ.js.map → chunk-JNSPYECP.js.map} +1 -1
- package/dist/{chunk-E7Q6UNCB.js → chunk-KBDYXGYT.js} +2 -2
- package/dist/{chunk-E7Q6UNCB.js.map → chunk-KBDYXGYT.js.map} +1 -1
- package/dist/{chunk-WVQDIOD7.js → chunk-KKMZP3YL.js} +2 -2
- package/dist/{chunk-WVQDIOD7.js.map → chunk-KKMZP3YL.js.map} +1 -1
- package/dist/{chunk-WSPXSWFG.js → chunk-KZEHTRPC.js} +3 -3
- package/dist/chunk-KZEHTRPC.js.map +1 -0
- package/dist/{chunk-KACJOE2N.js → chunk-LH5V6XGH.js} +2 -2
- package/dist/{chunk-KACJOE2N.js.map → chunk-LH5V6XGH.js.map} +1 -1
- package/dist/{chunk-VBXKYT4O.js → chunk-LH7YRRY7.js} +2 -2
- package/dist/{chunk-VBXKYT4O.js.map → chunk-LH7YRRY7.js.map} +1 -1
- package/dist/{chunk-QXXLDY6I.js → chunk-LI7AQ5NQ.js} +4 -4
- package/dist/{chunk-QXXLDY6I.js.map → chunk-LI7AQ5NQ.js.map} +1 -1
- package/dist/{chunk-CAB5IWV7.js → chunk-LSFPZR52.js} +4 -4
- package/dist/{chunk-CAB5IWV7.js.map → chunk-LSFPZR52.js.map} +1 -1
- package/dist/{chunk-CRHKWHTA.js → chunk-LUWZ7UZQ.js} +4 -4
- package/dist/{chunk-CRHKWHTA.js.map → chunk-LUWZ7UZQ.js.map} +1 -1
- package/dist/{chunk-CMG4OZPV.js → chunk-LWWIBUDK.js} +2 -2
- package/dist/{chunk-CMG4OZPV.js.map → chunk-LWWIBUDK.js.map} +1 -1
- package/dist/{chunk-LOW7J7SE.js → chunk-MHF2NK7F.js} +4 -4
- package/dist/{chunk-LOW7J7SE.js.map → chunk-MHF2NK7F.js.map} +1 -1
- package/dist/{chunk-JHUEYWWI.js → chunk-MPM6YBOM.js} +2 -2
- package/dist/{chunk-JHUEYWWI.js.map → chunk-MPM6YBOM.js.map} +1 -1
- package/dist/{chunk-3UEMBHBK.js → chunk-MPT6Y7Z2.js} +2 -2
- package/dist/{chunk-3UEMBHBK.js.map → chunk-MPT6Y7Z2.js.map} +1 -1
- package/dist/{chunk-OZKBIPXU.js → chunk-NO2XO7S6.js} +3 -3
- package/dist/{chunk-OZKBIPXU.js.map → chunk-NO2XO7S6.js.map} +1 -1
- package/dist/{chunk-FQETQ7CM.js → chunk-NSNQWDJ4.js} +2 -2
- package/dist/{chunk-FQETQ7CM.js.map → chunk-NSNQWDJ4.js.map} +1 -1
- package/dist/{chunk-UOBC36FL.js → chunk-OW2ODKHN.js} +2 -2
- package/dist/{chunk-UOBC36FL.js.map → chunk-OW2ODKHN.js.map} +1 -1
- package/dist/{chunk-PVKAIVKE.js → chunk-P427MACE.js} +63 -74
- package/dist/chunk-P427MACE.js.map +1 -0
- package/dist/{chunk-FR5G77K5.js → chunk-PJKH2GZ3.js} +2 -2
- package/dist/{chunk-FR5G77K5.js.map → chunk-PJKH2GZ3.js.map} +1 -1
- package/dist/{chunk-FNJA4S6J.js → chunk-QNA27ABY.js} +3 -3
- package/dist/{chunk-FNJA4S6J.js.map → chunk-QNA27ABY.js.map} +1 -1
- package/dist/{chunk-6BXPN5SC.js → chunk-RO3TSZ5W.js} +3 -3
- package/dist/{chunk-6BXPN5SC.js.map → chunk-RO3TSZ5W.js.map} +1 -1
- package/dist/{chunk-4IXG6XCT.js → chunk-RUCUU7Z7.js} +2 -2
- package/dist/{chunk-4IXG6XCT.js.map → chunk-RUCUU7Z7.js.map} +1 -1
- package/dist/{chunk-2FA3SX57.js → chunk-RYBJ7OZB.js} +4 -4
- package/dist/{chunk-2FA3SX57.js.map → chunk-RYBJ7OZB.js.map} +1 -1
- package/dist/{chunk-QSJAIXLM.js → chunk-SDQZYSCA.js} +3 -3
- package/dist/{chunk-QSJAIXLM.js.map → chunk-SDQZYSCA.js.map} +1 -1
- package/dist/{chunk-3XSY5LAB.js → chunk-SXZTDJMG.js} +4 -4
- package/dist/{chunk-3XSY5LAB.js.map → chunk-SXZTDJMG.js.map} +1 -1
- package/dist/{chunk-LJV2FNOC.js → chunk-T7M5FKCE.js} +3 -3
- package/dist/{chunk-LJV2FNOC.js.map → chunk-T7M5FKCE.js.map} +1 -1
- package/dist/{chunk-KS7EXW4P.js → chunk-TIRBSPP2.js} +2 -2
- package/dist/{chunk-KS7EXW4P.js.map → chunk-TIRBSPP2.js.map} +1 -1
- package/dist/{chunk-XO5IOPM5.js → chunk-TNJGPG6R.js} +8 -8
- package/dist/{chunk-XO5IOPM5.js.map → chunk-TNJGPG6R.js.map} +1 -1
- package/dist/{chunk-2GEGIPDR.js → chunk-U5SQOZNK.js} +4 -4
- package/dist/{chunk-2GEGIPDR.js.map → chunk-U5SQOZNK.js.map} +1 -1
- package/dist/{chunk-Y4VR6VNM.js → chunk-UPOS666Q.js} +2 -2
- package/dist/{chunk-Y4VR6VNM.js.map → chunk-UPOS666Q.js.map} +1 -1
- package/dist/{chunk-YE6KCAIN.js → chunk-USSGJ3MD.js} +2 -2
- package/dist/{chunk-YE6KCAIN.js.map → chunk-USSGJ3MD.js.map} +1 -1
- package/dist/{chunk-4UWLHKNU.js → chunk-UWLJ7UEK.js} +3 -3
- package/dist/{chunk-4UWLHKNU.js.map → chunk-UWLJ7UEK.js.map} +1 -1
- package/dist/{chunk-SNUDT6AX.js → chunk-VHAYQGWR.js} +2 -2
- package/dist/{chunk-SNUDT6AX.js.map → chunk-VHAYQGWR.js.map} +1 -1
- package/dist/{chunk-DV6GE57V.js → chunk-VWGRAE2Q.js} +2 -2
- package/dist/chunk-VWGRAE2Q.js.map +1 -0
- package/dist/{chunk-4L5ZIKDZ.js → chunk-W7J3MQNV.js} +2 -2
- package/dist/{chunk-4L5ZIKDZ.js.map → chunk-W7J3MQNV.js.map} +1 -1
- package/dist/{chunk-MVWR5WRX.js → chunk-WWDDKUDW.js} +3 -3
- package/dist/{chunk-MVWR5WRX.js.map → chunk-WWDDKUDW.js.map} +1 -1
- package/dist/{chunk-WEQNPYVA.js → chunk-XXKRHKFH.js} +2 -2
- package/dist/{chunk-WEQNPYVA.js.map → chunk-XXKRHKFH.js.map} +1 -1
- package/dist/{chunk-OQFWF7Q7.js → chunk-XZ253TGP.js} +3 -3
- package/dist/{chunk-OQFWF7Q7.js.map → chunk-XZ253TGP.js.map} +1 -1
- package/dist/{chunk-3TBMGGTA.js → chunk-Y672Z7QY.js} +2 -2
- package/dist/{chunk-3TBMGGTA.js.map → chunk-Y672Z7QY.js.map} +1 -1
- package/dist/{chunk-MMOQR426.js → chunk-YS3H6DEQ.js} +2 -2
- package/dist/{chunk-MMOQR426.js.map → chunk-YS3H6DEQ.js.map} +1 -1
- package/dist/{chunk-QR7MGGOM.js → chunk-YVGHWCMY.js} +3 -3
- package/dist/{chunk-QR7MGGOM.js.map → chunk-YVGHWCMY.js.map} +1 -1
- package/dist/{chunk-4CYCJ3NY.js → chunk-Z4PGAYO7.js} +10 -10
- package/dist/{chunk-4CYCJ3NY.js.map → chunk-Z4PGAYO7.js.map} +1 -1
- package/dist/{chunk-JAC6AVZN.js → chunk-ZIZXXYXM.js} +3 -3
- package/dist/{chunk-JAC6AVZN.js.map → chunk-ZIZXXYXM.js.map} +1 -1
- package/dist/collapsible-panel.d.ts +5 -5
- package/dist/collapsible-panel.js +4 -4
- package/dist/collapsible-panel.js.map +1 -1
- package/dist/color-field.js +2 -2
- package/dist/color-picker.js +1 -1
- package/dist/color-swatches.js +1 -1
- package/dist/column-explorer.d.ts +2 -2
- package/dist/column-explorer.js +166 -21
- package/dist/column-explorer.js.map +1 -1
- package/dist/column-track.d.ts +1 -1
- package/dist/column-track.js +1 -1
- package/dist/combobox.d.ts +3 -3
- package/dist/combobox.js +1 -1
- package/dist/content-item.d.ts +1 -1
- package/dist/content-item.js +1 -1
- package/dist/content-swap.d.ts +3 -3
- package/dist/content-swap.js +1 -1
- package/dist/corner-status.d.ts +3 -3
- package/dist/corner-status.js +1 -1
- package/dist/device-class.js +101 -1
- package/dist/device-class.js.map +1 -1
- package/dist/disclosure-arrow.d.ts +3 -3
- package/dist/disclosure-arrow.js +1 -1
- package/dist/disclosure.d.ts +14 -2
- package/dist/disclosure.js +13 -4
- package/dist/disclosure.js.map +1 -1
- package/dist/edge-activity-indicator.d.ts +3 -3
- package/dist/edge-activity-indicator.js +1 -1
- package/dist/empty-state.d.ts +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/{extension-attributes-IJ4decoa.d.ts → extension-attributes-CnqvBmj3.d.ts} +1 -1
- package/dist/file-picker.d.ts +3 -3
- package/dist/file-picker.js +1 -1
- package/dist/floating-toolbar.d.ts +3 -3
- package/dist/floating-toolbar.js +1 -1
- package/dist/form.d.ts +3 -3
- package/dist/form.js +1 -1
- package/dist/framed-list.js +1 -1
- package/dist/gauge.js +1 -1
- package/dist/grid.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +68 -68
- package/dist/list-action-row.js +1 -1
- package/dist/list-detail-dialog.d.ts +3 -3
- package/dist/list-detail-dialog.js +7 -7
- package/dist/list-detail-dialog.js.map +1 -1
- package/dist/list-header.d.ts +1 -1
- package/dist/list-header.js +1 -1
- package/dist/list-inset-control.d.ts +3 -3
- package/dist/list-inset-control.js +1 -1
- package/dist/list-inset-text.js +1 -1
- package/dist/list-item.js +1 -1
- package/dist/list.d.ts +1 -1
- package/dist/list.js +1 -1
- package/dist/loading-spinner.d.ts +3 -3
- package/dist/loading-spinner.js +1 -1
- package/dist/lucide-icon.d.ts +3 -3
- package/dist/lucide-icon.js +1 -1
- package/dist/message-composer.js +1 -1
- package/dist/{nav-stack-DKrvqFjA.d.ts → nav-stack-IKSMxo2A.d.ts} +3 -3
- package/dist/nav-stack.d.ts +2 -2
- package/dist/nav-stack.js +1 -1
- package/dist/paged-view.d.ts +3 -3
- package/dist/paged-view.js +1 -1
- package/dist/paged-view.js.map +1 -1
- package/dist/pane.js +1 -1
- package/dist/popup-menu-register.js +1 -1
- package/dist/popup-menu.d.ts +1 -20
- package/dist/popup-menu.js +1 -1
- package/dist/progress-bar.js +1 -1
- package/dist/progress-ring.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/resizable-region.d.ts +3 -3
- package/dist/resizable-region.js +1 -1
- package/dist/row.d.ts +1 -1
- package/dist/row.js +1 -1
- package/dist/scroll-effect.d.ts +1 -1
- package/dist/scroll-effect.js +1 -1
- package/dist/{search-field-7wLt3Bd5.d.ts → search-field-BA48RaJY.d.ts} +3 -3
- package/dist/search-field-model.d.ts +2 -2
- package/dist/search-field.d.ts +2 -2
- package/dist/search-field.js +1 -1
- package/dist/segmented-control.d.ts +3 -3
- package/dist/segmented-control.js +1 -1
- package/dist/select-register.js +2 -2
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +3 -13
- package/dist/select.js +1 -1
- package/dist/sized-region.d.ts +3 -3
- package/dist/sized-region.js +1 -1
- package/dist/skeleton.d.ts +3 -3
- package/dist/skeleton.js +1 -1
- package/dist/slider.js +1 -1
- package/dist/spacer.d.ts +3 -3
- package/dist/spacer.js +1 -1
- package/dist/split-button.js +1 -1
- package/dist/split-view.d.ts +4 -4
- package/dist/split-view.js +1 -1
- package/dist/state-banner.js +1 -1
- package/dist/styles/components/actions/popup-menu/popup-menu.css +0 -124
- package/dist/styles/components/actions/toolbar/toolbar.css +0 -7
- package/dist/styles/components/forms/select/select.css +0 -60
- package/dist/styles/components/forms/text-field/text-field.css +1 -1
- package/dist/styles/components/surfaces/disclosure/disclosure.css +24 -4
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +1 -1
- package/dist/styles/disclosure.css +24 -4
- package/dist/styles/popup-menu.css +0 -124
- package/dist/styles/select.css +0 -60
- package/dist/styles/surface-scaffold.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/toolbar.css +0 -7
- package/dist/styles/webawesome.css +7 -0
- package/dist/summary-row.js +1 -1
- package/dist/sunken-panel.d.ts +3 -3
- package/dist/sunken-panel.js +1 -1
- package/dist/surface-scaffold.d.ts +9 -5
- package/dist/surface-scaffold.js +1 -1
- package/dist/switch.js +1 -1
- package/dist/tab-bar-item.js +1 -1
- package/dist/tab-bar.d.ts +3 -3
- package/dist/tab-bar.js +1 -1
- package/dist/tab-navigator.d.ts +3 -3
- package/dist/tab-navigator.js +2 -2
- package/dist/tab-navigator.js.map +1 -1
- package/dist/tab-panel.d.ts +3 -3
- package/dist/tab-panel.js +1 -1
- package/dist/tag-field.d.ts +3 -3
- package/dist/tag-field.js +1 -1
- package/dist/text-field.d.ts +2 -2
- package/dist/text-field.js +1 -1
- package/dist/text.d.ts +1 -1
- package/dist/text.js +1 -1
- package/dist/toolbar-control-group.d.ts +7 -7
- package/dist/toolbar-control-group.js +1 -1
- package/dist/toolbar-text.d.ts +3 -3
- package/dist/toolbar-text.js +1 -1
- package/dist/toolbar.d.ts +3 -3
- package/dist/toolbar.js +1 -1
- package/dist/tree-list.d.ts +3 -3
- package/dist/tree-list.js +151 -3
- package/dist/tree-list.js.map +1 -1
- package/dist/{tree-rows-Bms5QJvG.d.ts → tree-rows-BXChApji.d.ts} +1 -1
- package/dist/value-preview.d.ts +3 -3
- package/dist/value-preview.js +1 -1
- package/dist/value-table.d.ts +5 -5
- package/dist/value-table.js +1 -1
- package/dist/wire-catalog.d.ts +2 -2
- package/dist/wire-catalog.js +2 -2
- package/dist/wire-color-fields.js +73 -2
- package/dist/wire-color-fields.js.map +1 -1
- package/dist/wire-color-pickers.js +1 -1
- package/dist/wire-column-explorer.js +92 -1
- package/dist/wire-column-explorer.js.map +1 -1
- package/dist/wire-content-items.js +204 -1
- package/dist/wire-content-items.js.map +1 -1
- package/dist/wire-nav-stack.js +423 -1
- package/dist/wire-nav-stack.js.map +1 -1
- package/dist/wire-resizable-regions.js +1 -1
- package/dist/wire-search-fields.d.ts +2 -2
- package/dist/wire-search-fields.js +1 -1
- package/dist/wire-sidebar.js +228 -1
- package/dist/wire-sidebar.js.map +1 -1
- package/dist/wire-sliders.js +29 -1
- package/dist/wire-sliders.js.map +1 -1
- package/dist/wire-tab-bars.d.ts +1 -1
- package/dist/wire-tab-navigator.js +150 -1
- package/dist/wire-tab-navigator.js.map +1 -1
- package/dist/wire-tag-fields.js +252 -2
- package/dist/wire-tag-fields.js.map +1 -1
- package/dist/wire-tree-list.js +186 -1
- package/dist/wire-tree-list.js.map +1 -1
- package/dist/wire-workbench.js +1 -1
- package/dist/workbench-dialog.d.ts +3 -3
- package/dist/workbench-dialog.js +5 -5
- package/dist/workbench-dialog.js.map +1 -1
- package/dist/workbench.d.ts +4 -4
- package/dist/workbench.js +1 -1
- package/docs/accessibility.md +1 -1
- package/docs/component-contract.md +4 -3
- package/docs/component-selection.md +1 -1
- package/docs/disclosure.md +22 -0
- package/docs/list-detail-dialog.md +2 -3
- package/docs/scroll-effect.md +2 -2
- package/docs/surface-scaffold.md +5 -6
- package/docs/workbench-dialog.md +2 -3
- package/llms.txt +3 -44
- package/package.json +3 -33
- package/ux-demo/recipes/app-shell.tsx +141 -48
- package/ux-demo/recipes/collapsible-sidebar.tsx +169 -43
- package/ux-demo/recipes/compact-toolbar.tsx +114 -22
- package/ux-demo/recipes/composer-form.tsx +104 -14
- package/ux-demo/recipes/list-detail-dialog.tsx +84 -38
- package/ux-demo/recipes/list-workspace-states.tsx +152 -29
- package/ux-demo/recipes/loading-inspector.tsx +174 -30
- package/ux-demo/recipes/media-detail.tsx +146 -29
- package/ux-demo/recipes/navigation-sidebar.tsx +113 -24
- package/ux-demo/recipes/navigation-stack.tsx +43 -7
- package/ux-demo/recipes/workspace-header.tsx +66 -2
- package/ai/component-props-overlay.json +0 -8910
- package/ai/component-props-overlay.schema.json +0 -82
- package/ai/component-props.json +0 -34289
- package/ai/component-props.schema.json +0 -408
- package/ai/view-document.schema.json +0 -467
- package/dist/browser/editor.js +0 -50
- package/dist/chunk-3K5V3ZSD.js +0 -77
- package/dist/chunk-3K5V3ZSD.js.map +0 -1
- package/dist/chunk-63TJH2RF.js +0 -231
- package/dist/chunk-63TJH2RF.js.map +0 -1
- package/dist/chunk-6V6UHPJD.js +0 -153
- package/dist/chunk-6V6UHPJD.js.map +0 -1
- package/dist/chunk-76BLSFEA.js.map +0 -1
- package/dist/chunk-COQI4OMZ.js.map +0 -1
- package/dist/chunk-CUUW57WB.js.map +0 -1
- package/dist/chunk-D2KHQNJ6.js +0 -155
- package/dist/chunk-D2KHQNJ6.js.map +0 -1
- package/dist/chunk-DV6GE57V.js.map +0 -1
- package/dist/chunk-FCO7BT4P.js +0 -256
- package/dist/chunk-FCO7BT4P.js.map +0 -1
- package/dist/chunk-GHV36C6I.js +0 -94
- package/dist/chunk-GHV36C6I.js.map +0 -1
- package/dist/chunk-HPOXLOVC.js +0 -184
- package/dist/chunk-HPOXLOVC.js.map +0 -1
- package/dist/chunk-I2K4OQKB.js +0 -426
- package/dist/chunk-I2K4OQKB.js.map +0 -1
- package/dist/chunk-PVKAIVKE.js.map +0 -1
- package/dist/chunk-RGB4DPMN.js.map +0 -1
- package/dist/chunk-S7QB5KMM.js.map +0 -1
- package/dist/chunk-SGYBIKQA.js.map +0 -1
- package/dist/chunk-TXBNPEIJ.js +0 -31
- package/dist/chunk-TXBNPEIJ.js.map +0 -1
- package/dist/chunk-UU37OR3D.js.map +0 -1
- package/dist/chunk-WCMGPAY2.js +0 -103
- package/dist/chunk-WCMGPAY2.js.map +0 -1
- package/dist/chunk-WSPXSWFG.js.map +0 -1
- package/dist/chunk-X43QQWVC.js +0 -208
- package/dist/chunk-X43QQWVC.js.map +0 -1
- package/dist/chunk-YA6OAJY6.js +0 -155
- package/dist/chunk-YA6OAJY6.js.map +0 -1
- package/dist/editor.d.ts +0 -447
- package/dist/editor.js +0 -15608
- package/dist/editor.js.map +0 -1
- package/dist/styles/editor/editor.css +0 -585
- package/dist/styles/editor.css +0 -4
- package/dist/view-runtime.d.ts +0 -9
- package/dist/view-runtime.js +0 -8
- package/dist/view-runtime.js.map +0 -1
- package/docs/editor-host.md +0 -397
- package/docs/view.md +0 -314
- package/props/cli.d.mts +0 -1
- package/props/cli.mjs +0 -142
- package/props/component-props.d.mts +0 -180
- package/props/component-props.mjs +0 -1208
- package/view/catalog.mjs +0 -229
- package/view/child-kind.mjs +0 -22
- package/view/cli.d.mts +0 -18
- package/view/cli.mjs +0 -316
- package/view/contract.mjs +0 -418
- package/view/css-grammar.mjs +0 -93
- package/view/generate.d.mts +0 -16
- package/view/generate.mjs +0 -739
- package/view/index.d.mts +0 -491
- package/view/index.mjs +0 -36
- package/view/interpret.mjs +0 -339
- package/view/project-types-worker.mjs +0 -55
- package/view/project-types.d.mts +0 -43
- package/view/project-types.mjs +0 -618
- package/view/type-expression.d.mts +0 -15
- package/view/type-expression.mjs +0 -162
- package/view/types.mjs +0 -165
- package/view/validate-move.mjs +0 -353
- package/view/validate.mjs +0 -1649
- package/vite-editor.d.mts +0 -173
- package/vite-editor.mjs +0 -548
|
@@ -4,15 +4,20 @@ import '@kerfjs/ui/nav-stack.css';
|
|
|
4
4
|
import '@kerfjs/ui/split-view.css';
|
|
5
5
|
import '@kerfjs/ui/webawesome.css';
|
|
6
6
|
|
|
7
|
+
import { Button } from '@kerfjs/ui/button';
|
|
8
|
+
import { remify } from '@kerfjs/ui/css-values';
|
|
7
9
|
import { deviceClass } from '@kerfjs/ui/device-class';
|
|
10
|
+
import { List } from '@kerfjs/ui/list';
|
|
11
|
+
import { ListDetailDialog } from '@kerfjs/ui/list-detail-dialog';
|
|
12
|
+
import { ListItem } from '@kerfjs/ui/list-item';
|
|
13
|
+
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
14
|
+
import { Row } from '@kerfjs/ui/row';
|
|
15
|
+
import { Spacer } from '@kerfjs/ui/spacer';
|
|
8
16
|
import { openDialog } from '@kerfjs/ui/surface-scaffold';
|
|
17
|
+
import { ValueTable, ValueTableRow } from '@kerfjs/ui/value-table';
|
|
9
18
|
import { signal } from 'kerfjs';
|
|
19
|
+
import { ChevronRight, FileText } from 'lucide';
|
|
10
20
|
|
|
11
|
-
import { renderRecipeListDetailActions } from '../views/recipe-list-detail-actions.view.js';
|
|
12
|
-
import { renderRecipeListDetailDialog } from '../views/recipe-list-detail-dialog.view.js';
|
|
13
|
-
import { renderRecipeListDetailLauncher } from '../views/recipe-list-detail-launcher.view.js';
|
|
14
|
-
import { renderRecipeListDetailRows } from '../views/recipe-list-detail-rows.view.js';
|
|
15
|
-
import { renderRecipeListDetailValues } from '../views/recipe-list-detail-values.view.js';
|
|
16
21
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
17
22
|
|
|
18
23
|
const records = {
|
|
@@ -52,20 +57,44 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
52
57
|
|
|
53
58
|
const projectRows = (compact: boolean) => (
|
|
54
59
|
<section aria-label="Projects">
|
|
55
|
-
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
{Object.entries(records).map(([id, record]) => (
|
|
61
|
+
<ListItem
|
|
62
|
+
action="recipe-action"
|
|
63
|
+
itemId={id}
|
|
64
|
+
label={record.name}
|
|
65
|
+
description={`${record.owner} · ${record.state}`}
|
|
66
|
+
icon={<LucideIcon icon={FileText} name="file-text" />}
|
|
67
|
+
trailing={
|
|
68
|
+
compact ? (
|
|
69
|
+
<LucideIcon icon={ChevronRight} name="chevron-right" />
|
|
70
|
+
) : undefined
|
|
71
|
+
}
|
|
72
|
+
selected={!compact && selected.value === id}
|
|
73
|
+
multiline
|
|
74
|
+
/>
|
|
75
|
+
))}
|
|
65
76
|
</section>
|
|
66
77
|
);
|
|
67
78
|
|
|
68
|
-
const recordActions =
|
|
79
|
+
const recordActions = () => (
|
|
80
|
+
<Row gap="xs" wrap controlInsets="trbl">
|
|
81
|
+
<Spacer flex />
|
|
82
|
+
<Button
|
|
83
|
+
emphasis="secondary"
|
|
84
|
+
action="recipe-action"
|
|
85
|
+
rootAttributes={{ 'data-recipe-command': 'archive' }}
|
|
86
|
+
>
|
|
87
|
+
Archive
|
|
88
|
+
</Button>
|
|
89
|
+
<Button
|
|
90
|
+
tone="brand"
|
|
91
|
+
action="recipe-action"
|
|
92
|
+
rootAttributes={{ 'data-recipe-command': 'open-record' }}
|
|
93
|
+
>
|
|
94
|
+
Open Project
|
|
95
|
+
</Button>
|
|
96
|
+
</Row>
|
|
97
|
+
);
|
|
69
98
|
|
|
70
99
|
const render = () => {
|
|
71
100
|
const compact = device.value.compact;
|
|
@@ -75,29 +104,46 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
75
104
|
data-recipe="recipe-list-detail-dialog"
|
|
76
105
|
aria-label="Project Details Dialog"
|
|
77
106
|
>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
107
|
+
<Row hAlign="center">
|
|
108
|
+
<Button
|
|
109
|
+
tone="brand"
|
|
110
|
+
action="recipe-action"
|
|
111
|
+
rootAttributes={{ 'data-recipe-command': 'open' }}
|
|
112
|
+
>
|
|
113
|
+
Open Project Details
|
|
114
|
+
</Button>
|
|
115
|
+
{/* One dialog in both layouts, so crossing the compact breakpoint
|
|
116
|
+
while it is open morphs it in place and it stays open. */}
|
|
117
|
+
<ListDetailDialog
|
|
118
|
+
id="recipe-projects"
|
|
119
|
+
label="Project Details"
|
|
120
|
+
compact={compact}
|
|
121
|
+
detailActive={detailOpen.value}
|
|
122
|
+
backLabel="Back to Projects"
|
|
123
|
+
viewportGutter={remify(16)}
|
|
124
|
+
list={{
|
|
125
|
+
title: 'Recent Projects',
|
|
126
|
+
content: (
|
|
127
|
+
<List controlInsets={compact ? undefined : 'tb'}>
|
|
128
|
+
{projectRows(compact)}
|
|
129
|
+
</List>
|
|
130
|
+
),
|
|
131
|
+
}}
|
|
132
|
+
detail={{
|
|
133
|
+
title: record.name,
|
|
134
|
+
content: (
|
|
135
|
+
<List controlInsets="tb">
|
|
136
|
+
<ValueTable label="Project Details">
|
|
137
|
+
<ValueTableRow label="Owner" value={record.owner} />
|
|
138
|
+
<ValueTableRow label="Status" value={record.state} />
|
|
139
|
+
<ValueTableRow label="Updated" value={record.updated} />
|
|
140
|
+
</ValueTable>
|
|
141
|
+
</List>
|
|
98
142
|
),
|
|
99
|
-
|
|
100
|
-
|
|
143
|
+
footer: recordActions(),
|
|
144
|
+
}}
|
|
145
|
+
/>
|
|
146
|
+
</Row>
|
|
101
147
|
</section>
|
|
102
148
|
);
|
|
103
149
|
};
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import '@kerfjs/ui/layout.css';
|
|
2
2
|
|
|
3
|
+
import { Button } from '@kerfjs/ui/button';
|
|
4
|
+
import { EmptyState } from '@kerfjs/ui/empty-state';
|
|
5
|
+
import { ListItem } from '@kerfjs/ui/list-item';
|
|
6
|
+
import { LoadingSpinner } from '@kerfjs/ui/loading-spinner';
|
|
7
|
+
import { Pane } from '@kerfjs/ui/pane';
|
|
8
|
+
import { StateBanner } from '@kerfjs/ui/state-banner';
|
|
9
|
+
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
10
|
+
import {
|
|
11
|
+
ToolbarButton,
|
|
12
|
+
ToolbarControlGroup,
|
|
13
|
+
} from '@kerfjs/ui/toolbar-control-group';
|
|
14
|
+
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
3
15
|
import { signal } from 'kerfjs';
|
|
4
16
|
|
|
5
|
-
import { renderRecipeListWorkspaceEmpty } from '../views/recipe-list-workspace-empty.view.js';
|
|
6
|
-
import { renderRecipeListWorkspaceError } from '../views/recipe-list-workspace-error.view.js';
|
|
7
|
-
import { renderRecipeListWorkspaceLoading } from '../views/recipe-list-workspace-loading.view.js';
|
|
8
|
-
import { renderRecipeListWorkspacePopulated } from '../views/recipe-list-workspace-populated.view.js';
|
|
9
|
-
import { renderRecipeListWorkspaceShell } from '../views/recipe-list-workspace-shell.view.js';
|
|
10
|
-
import { renderRecipeListWorkspaceStale } from '../views/recipe-list-workspace-stale.view.js';
|
|
11
17
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
12
18
|
|
|
13
19
|
type ListState = 'loading' | 'empty' | 'populated' | 'stale' | 'error';
|
|
20
|
+
const items = [
|
|
21
|
+
['Audit keyboard focus order', 'In review · Mara'],
|
|
22
|
+
['Verify 200% zoom layout', 'Ready · Sam'],
|
|
23
|
+
['Publish package migration notes', 'Draft · Inez'],
|
|
24
|
+
] as const;
|
|
14
25
|
|
|
15
26
|
export const presentation: RecipePresentation = {
|
|
16
27
|
viewport: {
|
|
@@ -29,33 +40,145 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
29
40
|
const state = signal<ListState>('loading');
|
|
30
41
|
const populated = () => (
|
|
31
42
|
<section aria-label="Release Task List">
|
|
32
|
-
{
|
|
43
|
+
{items.map(([title, detail]) => (
|
|
44
|
+
<ListItem
|
|
45
|
+
action="recipe-action"
|
|
46
|
+
label={title}
|
|
47
|
+
description={detail}
|
|
48
|
+
rootAttributes={{ 'data-recipe-command': 'open-task' }}
|
|
49
|
+
/>
|
|
50
|
+
))}
|
|
33
51
|
</section>
|
|
34
52
|
);
|
|
35
53
|
const renderBody = () => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
if (state.value === 'loading')
|
|
55
|
+
return (
|
|
56
|
+
<EmptyState
|
|
57
|
+
title="Loading Release Tasks"
|
|
58
|
+
detail="The current workspace will appear when data is ready."
|
|
59
|
+
busy
|
|
60
|
+
action={
|
|
61
|
+
<Button
|
|
62
|
+
action="recipe-action"
|
|
63
|
+
rootAttributes={{ 'data-recipe-command': 'load' }}
|
|
64
|
+
>
|
|
65
|
+
Complete Load
|
|
66
|
+
</Button>
|
|
67
|
+
}
|
|
68
|
+
/>
|
|
69
|
+
);
|
|
70
|
+
if (state.value === 'empty')
|
|
71
|
+
return (
|
|
72
|
+
<EmptyState
|
|
73
|
+
title="No Release Tasks"
|
|
74
|
+
detail="Create the first task for this milestone."
|
|
75
|
+
action={
|
|
76
|
+
<Button
|
|
77
|
+
action="recipe-action"
|
|
78
|
+
rootAttributes={{ 'data-recipe-command': 'create' }}
|
|
79
|
+
>
|
|
80
|
+
Create Task
|
|
81
|
+
</Button>
|
|
82
|
+
}
|
|
83
|
+
/>
|
|
84
|
+
);
|
|
85
|
+
if (state.value === 'error')
|
|
86
|
+
return (
|
|
87
|
+
<StateBanner
|
|
88
|
+
title="Release Tasks Could Not Be Refreshed"
|
|
89
|
+
detail="Existing filters are preserved. Try again when the connection recovers."
|
|
90
|
+
tone="danger"
|
|
91
|
+
urgency="alert"
|
|
92
|
+
action={
|
|
93
|
+
<Button
|
|
94
|
+
size="compact"
|
|
95
|
+
shape="pill"
|
|
96
|
+
action="recipe-action"
|
|
97
|
+
rootAttributes={{ 'data-recipe-command': 'retry' }}
|
|
98
|
+
>
|
|
99
|
+
Retry
|
|
100
|
+
</Button>
|
|
101
|
+
}
|
|
102
|
+
/>
|
|
103
|
+
);
|
|
104
|
+
return (
|
|
105
|
+
<>
|
|
106
|
+
{state.value === 'stale' && (
|
|
107
|
+
<StateBanner
|
|
108
|
+
title="Showing Saved Results"
|
|
109
|
+
detail="Refreshing in the background."
|
|
110
|
+
tone="warning"
|
|
111
|
+
action={
|
|
112
|
+
<>
|
|
113
|
+
<LoadingSpinner label="Refreshing release tasks…" />
|
|
114
|
+
<Button
|
|
115
|
+
size="compact"
|
|
116
|
+
shape="pill"
|
|
117
|
+
action="recipe-action"
|
|
118
|
+
rootAttributes={{ 'data-recipe-command': 'finish' }}
|
|
119
|
+
>
|
|
120
|
+
Finish Refresh
|
|
121
|
+
</Button>
|
|
122
|
+
</>
|
|
123
|
+
}
|
|
124
|
+
/>
|
|
125
|
+
)}
|
|
126
|
+
{populated()}
|
|
127
|
+
</>
|
|
58
128
|
);
|
|
129
|
+
};
|
|
130
|
+
const render = () => (
|
|
131
|
+
<Pane
|
|
132
|
+
element="section"
|
|
133
|
+
label="Release Tasks"
|
|
134
|
+
rootAttributes={{
|
|
135
|
+
'data-recipe': 'recipe-list-workspace-states',
|
|
136
|
+
'data-list-state': state.value,
|
|
137
|
+
}}
|
|
138
|
+
header={
|
|
139
|
+
<Toolbar
|
|
140
|
+
label="Release Tasks"
|
|
141
|
+
responsive="stack"
|
|
142
|
+
responsiveAt="compact"
|
|
143
|
+
leading={
|
|
144
|
+
<ToolbarText
|
|
145
|
+
text="Release Tasks"
|
|
146
|
+
size="xlarge"
|
|
147
|
+
id="recipe-list-title"
|
|
148
|
+
/>
|
|
149
|
+
}
|
|
150
|
+
trailing={
|
|
151
|
+
<ToolbarControlGroup
|
|
152
|
+
appearance="borderless"
|
|
153
|
+
content="text"
|
|
154
|
+
buttonAppearance="push"
|
|
155
|
+
>
|
|
156
|
+
<ToolbarButton
|
|
157
|
+
action="recipe-action"
|
|
158
|
+
rootAttributes={{ 'data-recipe-command': 'empty' }}
|
|
159
|
+
>
|
|
160
|
+
Clear
|
|
161
|
+
</ToolbarButton>
|
|
162
|
+
<ToolbarButton
|
|
163
|
+
action="recipe-action"
|
|
164
|
+
rootAttributes={{ 'data-recipe-command': 'fail' }}
|
|
165
|
+
>
|
|
166
|
+
Simulate Failure
|
|
167
|
+
</ToolbarButton>
|
|
168
|
+
<ToolbarButton
|
|
169
|
+
action="recipe-action"
|
|
170
|
+
rootAttributes={{ 'data-recipe-command': 'refresh' }}
|
|
171
|
+
>
|
|
172
|
+
Refresh
|
|
173
|
+
</ToolbarButton>
|
|
174
|
+
</ToolbarControlGroup>
|
|
175
|
+
}
|
|
176
|
+
/>
|
|
177
|
+
}
|
|
178
|
+
>
|
|
179
|
+
{renderBody()}
|
|
180
|
+
</Pane>
|
|
181
|
+
);
|
|
59
182
|
return {
|
|
60
183
|
render,
|
|
61
184
|
action(command) {
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import '@kerfjs/ui/layout.css';
|
|
2
2
|
import '@kerfjs/ui/select/register';
|
|
3
3
|
|
|
4
|
+
import { Row } from '@kerfjs/ui';
|
|
5
|
+
import { em } from '@kerfjs/ui/css-values';
|
|
6
|
+
import { List } from '@kerfjs/ui/list';
|
|
7
|
+
import { ListItem } from '@kerfjs/ui/list-item';
|
|
8
|
+
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
9
|
+
import { Pane } from '@kerfjs/ui/pane';
|
|
10
|
+
import { SegmentedControl } from '@kerfjs/ui/segmented-control';
|
|
11
|
+
import { Select } from '@kerfjs/ui/select';
|
|
12
|
+
import { Skeleton } from '@kerfjs/ui/skeleton';
|
|
13
|
+
import { StateBanner } from '@kerfjs/ui/state-banner';
|
|
14
|
+
import { Text } from '@kerfjs/ui/text';
|
|
15
|
+
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
16
|
+
import {
|
|
17
|
+
ToolbarButton,
|
|
18
|
+
ToolbarControlGroup,
|
|
19
|
+
} from '@kerfjs/ui/toolbar-control-group';
|
|
20
|
+
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
21
|
+
import { ValueTable, ValueTableRow } from '@kerfjs/ui/value-table';
|
|
4
22
|
import { signal } from 'kerfjs';
|
|
23
|
+
import { Columns3, FileText, Inbox, List as ListIcon } from 'lucide';
|
|
5
24
|
|
|
6
|
-
import { renderRecipeInspectorIconColumns3 } from '../views/recipe-inspector-icon-columns-3.view.js';
|
|
7
|
-
import { renderRecipeInspectorIconFileText } from '../views/recipe-inspector-icon-file-text.view.js';
|
|
8
|
-
import { renderRecipeInspectorIconList } from '../views/recipe-inspector-icon-list.view.js';
|
|
9
|
-
import { renderRecipeLoadingInspector } from '../views/recipe-loading-inspector.view.js';
|
|
10
25
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
11
26
|
|
|
12
27
|
export const presentation: RecipePresentation = {
|
|
@@ -20,35 +35,164 @@ export const presentation: RecipePresentation = {
|
|
|
20
35
|
note: "Each value-bearing component's placeholder prop renders skeletons in its value slots while loading, so the recipe composes a faithful loading inspector from real chrome. The app owns the loading lifecycle and which values are still unknown.",
|
|
21
36
|
};
|
|
22
37
|
|
|
23
|
-
|
|
38
|
+
const icon = (node: Parameters<typeof LucideIcon>[0]['icon'], name: string) => (
|
|
39
|
+
<LucideIcon icon={node} name={name} />
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* A record inspector whose per-record values load asynchronously. Every
|
|
44
|
+
* value-bearing component takes `placeholder` from one loading flag, so the same
|
|
45
|
+
* chrome renders a faithful loading state and then the populated record — no
|
|
46
|
+
* separate skeleton markup. The composition is the point; `Skeleton` is the
|
|
47
|
+
* primitive it is built on (see the Skeleton component demo).
|
|
48
|
+
*/
|
|
24
49
|
export const createRecipe: RecipeFactory = (announce) => {
|
|
25
50
|
const loading = signal(true);
|
|
26
|
-
const viewChoices = [
|
|
27
|
-
{
|
|
28
|
-
value: 'details',
|
|
29
|
-
label: 'Details',
|
|
30
|
-
content: renderRecipeInspectorIconList({}),
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
value: 'activity',
|
|
34
|
-
label: 'Activity',
|
|
35
|
-
content: renderRecipeInspectorIconColumns3({}),
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
value: 'files',
|
|
39
|
-
label: 'Files',
|
|
40
|
-
content: renderRecipeInspectorIconFileText({}),
|
|
41
|
-
},
|
|
42
|
-
];
|
|
43
51
|
const render = () => {
|
|
44
|
-
const
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
const p = loading.value;
|
|
53
|
+
return (
|
|
54
|
+
<Pane
|
|
55
|
+
element="section"
|
|
56
|
+
label="Ticket Inspector"
|
|
57
|
+
rootAttributes={{
|
|
58
|
+
'data-recipe': 'recipe-loading-inspector',
|
|
59
|
+
'data-inspector-loading': String(p),
|
|
60
|
+
}}
|
|
61
|
+
header={
|
|
62
|
+
<>
|
|
63
|
+
<Toolbar
|
|
64
|
+
label="Ticket Inspector"
|
|
65
|
+
responsive="wrap"
|
|
66
|
+
leading={
|
|
67
|
+
<>
|
|
68
|
+
<ToolbarControlGroup appearance="borderless" single>
|
|
69
|
+
{icon(FileText, 'file-text')}
|
|
70
|
+
</ToolbarControlGroup>
|
|
71
|
+
<ToolbarText
|
|
72
|
+
text="Ticket · KF-2048"
|
|
73
|
+
size="xlarge"
|
|
74
|
+
id="recipe-inspector-title"
|
|
75
|
+
placeholder={p}
|
|
76
|
+
/>
|
|
77
|
+
</>
|
|
78
|
+
}
|
|
79
|
+
trailing={
|
|
80
|
+
<ToolbarControlGroup
|
|
81
|
+
appearance="borderless"
|
|
82
|
+
content="text"
|
|
83
|
+
single
|
|
84
|
+
>
|
|
85
|
+
<ToolbarButton
|
|
86
|
+
action="recipe-action"
|
|
87
|
+
rootAttributes={{ 'data-recipe-command': 'toggle' }}
|
|
88
|
+
>
|
|
89
|
+
{p ? 'Show Loaded' : 'Show Loading'}
|
|
90
|
+
</ToolbarButton>
|
|
91
|
+
</ToolbarControlGroup>
|
|
92
|
+
}
|
|
93
|
+
/>
|
|
94
|
+
<Row controlInsets="trbl">
|
|
95
|
+
<Text tone="quiet" id="recipe-inspector-summary">
|
|
96
|
+
{p ? (
|
|
97
|
+
<Skeleton width={em(18)} />
|
|
98
|
+
) : (
|
|
99
|
+
'Restore keyboard focus after a dialog closes'
|
|
100
|
+
)}
|
|
101
|
+
</Text>
|
|
102
|
+
</Row>
|
|
103
|
+
</>
|
|
104
|
+
}
|
|
105
|
+
>
|
|
106
|
+
<section>
|
|
107
|
+
<ValueTable label="Ticket Details">
|
|
108
|
+
<ValueTableRow
|
|
109
|
+
label="Status"
|
|
110
|
+
value="In review"
|
|
111
|
+
icon={icon(Inbox, 'inbox')}
|
|
112
|
+
placeholder={p}
|
|
113
|
+
/>
|
|
114
|
+
<ValueTableRow label="Owner" value="Mara Lopez" placeholder={p} />
|
|
115
|
+
<ValueTableRow label="Priority" value="High" placeholder={p} />
|
|
116
|
+
<ValueTableRow
|
|
117
|
+
label="Updated"
|
|
118
|
+
value="2 hours ago"
|
|
119
|
+
placeholder={p}
|
|
120
|
+
/>
|
|
121
|
+
</ValueTable>
|
|
122
|
+
</section>
|
|
123
|
+
<List gap="xs" controlInsets="rl">
|
|
124
|
+
<Select
|
|
125
|
+
name="recipe-inspector-status"
|
|
126
|
+
value="review"
|
|
127
|
+
label="Status"
|
|
128
|
+
hint="Where this ticket sits in the review workflow."
|
|
129
|
+
placeholder={p}
|
|
130
|
+
choices={[
|
|
131
|
+
{ value: 'review', label: 'In Review' },
|
|
132
|
+
{ value: 'ready', label: 'Ready' },
|
|
133
|
+
{ value: 'done', label: 'Done' },
|
|
134
|
+
]}
|
|
135
|
+
/>
|
|
136
|
+
<SegmentedControl
|
|
137
|
+
id="recipe-inspector-view"
|
|
138
|
+
label="Inspector View"
|
|
139
|
+
value="details"
|
|
140
|
+
appearance="toolbar"
|
|
141
|
+
shape="pill"
|
|
142
|
+
size="compact"
|
|
143
|
+
placeholder={p}
|
|
144
|
+
choices={[
|
|
145
|
+
{
|
|
146
|
+
value: 'details',
|
|
147
|
+
label: 'Details',
|
|
148
|
+
content: icon(ListIcon, 'list'),
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
value: 'activity',
|
|
152
|
+
label: 'Activity',
|
|
153
|
+
content: icon(Columns3, 'columns-3'),
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
value: 'files',
|
|
157
|
+
label: 'Files',
|
|
158
|
+
content: icon(FileText, 'file-text'),
|
|
159
|
+
},
|
|
160
|
+
]}
|
|
161
|
+
/>
|
|
162
|
+
</List>
|
|
163
|
+
<section>
|
|
164
|
+
<ListItem
|
|
165
|
+
action="recipe-action"
|
|
166
|
+
itemId="reassign"
|
|
167
|
+
label="Reassign Ticket"
|
|
168
|
+
icon={icon(Inbox, 'inbox')}
|
|
169
|
+
placeholder={p}
|
|
170
|
+
/>
|
|
171
|
+
<ListItem
|
|
172
|
+
action="recipe-action"
|
|
173
|
+
itemId="watch"
|
|
174
|
+
label="Watch for Changes"
|
|
175
|
+
placeholder={p}
|
|
176
|
+
/>
|
|
177
|
+
</section>
|
|
178
|
+
{p ? (
|
|
179
|
+
<StateBanner
|
|
180
|
+
tone="info"
|
|
181
|
+
title="Up to Date"
|
|
182
|
+
detail="All checks passed on the latest revision."
|
|
183
|
+
icon={icon(FileText, 'file-text')}
|
|
184
|
+
placeholder
|
|
185
|
+
/>
|
|
186
|
+
) : (
|
|
187
|
+
<StateBanner
|
|
188
|
+
tone="success"
|
|
189
|
+
title="Up to Date"
|
|
190
|
+
detail="All checks passed on the latest revision."
|
|
191
|
+
icon={icon(FileText, 'file-text')}
|
|
192
|
+
/>
|
|
193
|
+
)}
|
|
194
|
+
</Pane>
|
|
195
|
+
);
|
|
52
196
|
};
|
|
53
197
|
return {
|
|
54
198
|
render,
|