@schema-engine/forms-radiant 0.0.0-stage → 0.5.1
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/LICENSE +21 -0
- package/README.md +74 -2
- package/dist/adapters/index.d.ts +2 -0
- package/dist/adapters/index.js +19 -0
- package/dist/adapters/index.js.map +7 -0
- package/dist/adapters/radiant/controller/form-controller.d.ts +62 -0
- package/dist/adapters/radiant/controller/form-controller.js +8 -0
- package/dist/adapters/radiant/controller/form-controller.js.map +7 -0
- package/dist/adapters/radiant/controller/form-engine-controller.d.ts +13 -0
- package/dist/adapters/radiant/controller/form-engine-controller.js +10 -0
- package/dist/adapters/radiant/controller/form-engine-controller.js.map +7 -0
- package/dist/adapters/radiant/controller/index.d.ts +2 -0
- package/dist/adapters/radiant/controller/index.js +16 -0
- package/dist/adapters/radiant/controller/index.js.map +7 -0
- package/dist/adapters/radiant/index.d.ts +1 -0
- package/dist/adapters/radiant/index.js +17 -0
- package/dist/adapters/radiant/index.js.map +7 -0
- package/dist/adapters/radiant/rui-form-shell.d.ts +19 -0
- package/dist/adapters/radiant/rui-form-shell.js +9 -0
- package/dist/adapters/radiant/rui-form-shell.js.map +7 -0
- package/dist/adapters/types.d.ts +11 -0
- package/dist/adapters/types.js +1 -0
- package/dist/adapters/types.js.map +7 -0
- package/dist/chunk-27TSETGJ.js +58 -0
- package/dist/chunk-27TSETGJ.js.map +7 -0
- package/dist/chunk-2PYB72CX.js +0 -0
- package/dist/chunk-2PYB72CX.js.map +7 -0
- package/dist/chunk-362U4YBN.js +0 -0
- package/dist/chunk-362U4YBN.js.map +7 -0
- package/dist/chunk-3BGAFK3V.js +18 -0
- package/dist/chunk-3BGAFK3V.js.map +7 -0
- package/dist/chunk-4JYXJYVD.js +50 -0
- package/dist/chunk-4JYXJYVD.js.map +7 -0
- package/dist/chunk-4K2WI4QW.js +52 -0
- package/dist/chunk-4K2WI4QW.js.map +7 -0
- package/dist/chunk-4LAZI7C4.js +26 -0
- package/dist/chunk-4LAZI7C4.js.map +7 -0
- package/dist/chunk-5XIIWHVW.js +27 -0
- package/dist/chunk-5XIIWHVW.js.map +7 -0
- package/dist/chunk-63WXFVJ4.js +64 -0
- package/dist/chunk-63WXFVJ4.js.map +7 -0
- package/dist/chunk-643DH3YN.js +13 -0
- package/dist/chunk-643DH3YN.js.map +7 -0
- package/dist/chunk-6BONJDNL.js +26 -0
- package/dist/chunk-6BONJDNL.js.map +7 -0
- package/dist/chunk-6YYC6GI7.js +294 -0
- package/dist/chunk-6YYC6GI7.js.map +7 -0
- package/dist/chunk-7GOBAL4G.js +0 -0
- package/dist/chunk-7GOBAL4G.js.map +7 -0
- package/dist/chunk-7VW5FEGO.js +112 -0
- package/dist/chunk-7VW5FEGO.js.map +7 -0
- package/dist/chunk-A5MWHHAZ.js +18 -0
- package/dist/chunk-A5MWHHAZ.js.map +7 -0
- package/dist/chunk-ALED4QSO.js +35 -0
- package/dist/chunk-ALED4QSO.js.map +7 -0
- package/dist/chunk-BB36KW6N.js +34 -0
- package/dist/chunk-BB36KW6N.js.map +7 -0
- package/dist/chunk-BFY4LHEG.js +25 -0
- package/dist/chunk-BFY4LHEG.js.map +7 -0
- package/dist/chunk-BI2IVSXH.js +37 -0
- package/dist/chunk-BI2IVSXH.js.map +7 -0
- package/dist/chunk-BNT4RRD6.js +138 -0
- package/dist/chunk-BNT4RRD6.js.map +7 -0
- package/dist/chunk-C27EGCLO.js +80 -0
- package/dist/chunk-C27EGCLO.js.map +7 -0
- package/dist/chunk-CIKIFVWO.js +108 -0
- package/dist/chunk-CIKIFVWO.js.map +7 -0
- package/dist/chunk-CJYPRHUB.js +49 -0
- package/dist/chunk-CJYPRHUB.js.map +7 -0
- package/dist/chunk-CQG7AUEG.js +11 -0
- package/dist/chunk-CQG7AUEG.js.map +7 -0
- package/dist/chunk-CRAGTCCF.js +0 -0
- package/dist/chunk-CRAGTCCF.js.map +7 -0
- package/dist/chunk-DOK7KJEJ.js +69 -0
- package/dist/chunk-DOK7KJEJ.js.map +7 -0
- package/dist/chunk-EF2CVOUK.js +23 -0
- package/dist/chunk-EF2CVOUK.js.map +7 -0
- package/dist/chunk-EOGEJI3D.js +13 -0
- package/dist/chunk-EOGEJI3D.js.map +7 -0
- package/dist/chunk-F57ZZSP4.js +26 -0
- package/dist/chunk-F57ZZSP4.js.map +7 -0
- package/dist/chunk-F5DXZJMH.js +37 -0
- package/dist/chunk-F5DXZJMH.js.map +7 -0
- package/dist/chunk-FMA2OC5V.js +29 -0
- package/dist/chunk-FMA2OC5V.js.map +7 -0
- package/dist/chunk-FREP6CYY.js +81 -0
- package/dist/chunk-FREP6CYY.js.map +7 -0
- package/dist/chunk-FWGGDZGI.js +26 -0
- package/dist/chunk-FWGGDZGI.js.map +7 -0
- package/dist/chunk-G2GVYPBS.js +100 -0
- package/dist/chunk-G2GVYPBS.js.map +7 -0
- package/dist/chunk-G4M6646U.js +11 -0
- package/dist/chunk-G4M6646U.js.map +7 -0
- package/dist/chunk-G6IJ5JRQ.js +26 -0
- package/dist/chunk-G6IJ5JRQ.js.map +7 -0
- package/dist/chunk-GB4ETJCS.js +9 -0
- package/dist/chunk-GB4ETJCS.js.map +7 -0
- package/dist/chunk-GGYVU5PD.js +142 -0
- package/dist/chunk-GGYVU5PD.js.map +7 -0
- package/dist/chunk-GI7QPTA6.js +26 -0
- package/dist/chunk-GI7QPTA6.js.map +7 -0
- package/dist/chunk-GME6PPB2.js +26 -0
- package/dist/chunk-GME6PPB2.js.map +7 -0
- package/dist/chunk-GRYYXYUC.js +7 -0
- package/dist/chunk-GRYYXYUC.js.map +7 -0
- package/dist/chunk-GUCH7BGJ.js +26 -0
- package/dist/chunk-GUCH7BGJ.js.map +7 -0
- package/dist/chunk-GWVIHO3R.js +7 -0
- package/dist/chunk-GWVIHO3R.js.map +7 -0
- package/dist/chunk-HIDI5WS7.js +17 -0
- package/dist/chunk-HIDI5WS7.js.map +7 -0
- package/dist/chunk-HLWV3EKQ.js +62 -0
- package/dist/chunk-HLWV3EKQ.js.map +7 -0
- package/dist/chunk-HXWAAIA4.js +58 -0
- package/dist/chunk-HXWAAIA4.js.map +7 -0
- package/dist/chunk-HYMMEGK3.js +12 -0
- package/dist/chunk-HYMMEGK3.js.map +7 -0
- package/dist/chunk-IGV5F6AC.js +26 -0
- package/dist/chunk-IGV5F6AC.js.map +7 -0
- package/dist/chunk-IWA6ES3O.js +26 -0
- package/dist/chunk-IWA6ES3O.js.map +7 -0
- package/dist/chunk-JGMWBGY2.js +126 -0
- package/dist/chunk-JGMWBGY2.js.map +7 -0
- package/dist/chunk-K7MOCD53.js +402 -0
- package/dist/chunk-K7MOCD53.js.map +7 -0
- package/dist/chunk-KEA2XEQI.js +154 -0
- package/dist/chunk-KEA2XEQI.js.map +7 -0
- package/dist/chunk-KHIVOTMG.js +281 -0
- package/dist/chunk-KHIVOTMG.js.map +7 -0
- package/dist/chunk-L3LBJQYB.js +0 -0
- package/dist/chunk-L3LBJQYB.js.map +7 -0
- package/dist/chunk-LEMSXM37.js +49 -0
- package/dist/chunk-LEMSXM37.js.map +7 -0
- package/dist/chunk-LZJ3UDK7.js +23 -0
- package/dist/chunk-LZJ3UDK7.js.map +7 -0
- package/dist/chunk-LZNPJGFX.js +91 -0
- package/dist/chunk-LZNPJGFX.js.map +7 -0
- package/dist/chunk-M7TZPONS.js +57 -0
- package/dist/chunk-M7TZPONS.js.map +7 -0
- package/dist/chunk-MIAUDZGK.js +244 -0
- package/dist/chunk-MIAUDZGK.js.map +7 -0
- package/dist/chunk-MJOW3X36.js +33 -0
- package/dist/chunk-MJOW3X36.js.map +7 -0
- package/dist/chunk-MYFG673N.js +21 -0
- package/dist/chunk-MYFG673N.js.map +7 -0
- package/dist/chunk-NHZSKPKZ.js +21 -0
- package/dist/chunk-NHZSKPKZ.js.map +7 -0
- package/dist/chunk-NP7HH6IT.js +20 -0
- package/dist/chunk-NP7HH6IT.js.map +7 -0
- package/dist/chunk-NVIRGEQU.js +25 -0
- package/dist/chunk-NVIRGEQU.js.map +7 -0
- package/dist/chunk-OCKLBWOI.js +180 -0
- package/dist/chunk-OCKLBWOI.js.map +7 -0
- package/dist/chunk-PD3G4JDD.js +24 -0
- package/dist/chunk-PD3G4JDD.js.map +7 -0
- package/dist/chunk-PDYPUAZ5.js +45 -0
- package/dist/chunk-PDYPUAZ5.js.map +7 -0
- package/dist/chunk-PFJRNIDY.js +242 -0
- package/dist/chunk-PFJRNIDY.js.map +7 -0
- package/dist/chunk-PJ7NMKHV.js +59 -0
- package/dist/chunk-PJ7NMKHV.js.map +7 -0
- package/dist/chunk-PPL3NENE.js +26 -0
- package/dist/chunk-PPL3NENE.js.map +7 -0
- package/dist/chunk-QPLWIKBU.js +117 -0
- package/dist/chunk-QPLWIKBU.js.map +7 -0
- package/dist/chunk-QVX4Q6AT.js +26 -0
- package/dist/chunk-QVX4Q6AT.js.map +7 -0
- package/dist/chunk-REDMBMJ5.js +137 -0
- package/dist/chunk-REDMBMJ5.js.map +7 -0
- package/dist/chunk-RLDRCHT4.js +24 -0
- package/dist/chunk-RLDRCHT4.js.map +7 -0
- package/dist/chunk-RP4PAGBV.js +25 -0
- package/dist/chunk-RP4PAGBV.js.map +7 -0
- package/dist/chunk-RRBVMVHP.js +51 -0
- package/dist/chunk-RRBVMVHP.js.map +7 -0
- package/dist/chunk-RY2I6GBB.js +79 -0
- package/dist/chunk-RY2I6GBB.js.map +7 -0
- package/dist/chunk-S5VUGF7M.js +17 -0
- package/dist/chunk-S5VUGF7M.js.map +7 -0
- package/dist/chunk-SEOQGZ53.js +0 -0
- package/dist/chunk-SEOQGZ53.js.map +7 -0
- package/dist/chunk-SJ44RSNG.js +35 -0
- package/dist/chunk-SJ44RSNG.js.map +7 -0
- package/dist/chunk-SJ62JN3K.js +116 -0
- package/dist/chunk-SJ62JN3K.js.map +7 -0
- package/dist/chunk-SLV6UP6W.js +380 -0
- package/dist/chunk-SLV6UP6W.js.map +7 -0
- package/dist/chunk-SN7RRH7N.js +104 -0
- package/dist/chunk-SN7RRH7N.js.map +7 -0
- package/dist/chunk-T5UN2BZP.js +20 -0
- package/dist/chunk-T5UN2BZP.js.map +7 -0
- package/dist/chunk-TDJF3RSM.js +106 -0
- package/dist/chunk-TDJF3RSM.js.map +7 -0
- package/dist/chunk-TM2P4ICL.js +61 -0
- package/dist/chunk-TM2P4ICL.js.map +7 -0
- package/dist/chunk-TRU673W5.js +56 -0
- package/dist/chunk-TRU673W5.js.map +7 -0
- package/dist/chunk-TTTD6WXJ.js +26 -0
- package/dist/chunk-TTTD6WXJ.js.map +7 -0
- package/dist/chunk-TXOSFNQT.js +35 -0
- package/dist/chunk-TXOSFNQT.js.map +7 -0
- package/dist/chunk-U2Z4AIO2.js +99 -0
- package/dist/chunk-U2Z4AIO2.js.map +7 -0
- package/dist/chunk-UAJQCYDA.js +149 -0
- package/dist/chunk-UAJQCYDA.js.map +7 -0
- package/dist/chunk-UYNK56NL.js +22 -0
- package/dist/chunk-UYNK56NL.js.map +7 -0
- package/dist/chunk-VJH7TDR6.js +37 -0
- package/dist/chunk-VJH7TDR6.js.map +7 -0
- package/dist/chunk-VJN3SBME.js +47 -0
- package/dist/chunk-VJN3SBME.js.map +7 -0
- package/dist/chunk-VKKA7RZK.js +101 -0
- package/dist/chunk-VKKA7RZK.js.map +7 -0
- package/dist/chunk-VMCK5D33.js +30 -0
- package/dist/chunk-VMCK5D33.js.map +7 -0
- package/dist/chunk-VTSS2USV.js +0 -0
- package/dist/chunk-VTSS2USV.js.map +7 -0
- package/dist/chunk-WBLO2CCZ.js +81 -0
- package/dist/chunk-WBLO2CCZ.js.map +7 -0
- package/dist/chunk-WNRR7VQX.js +32 -0
- package/dist/chunk-WNRR7VQX.js.map +7 -0
- package/dist/chunk-WVMXFJZ6.js +25 -0
- package/dist/chunk-WVMXFJZ6.js.map +7 -0
- package/dist/chunk-WYNF44JO.js +140 -0
- package/dist/chunk-WYNF44JO.js.map +7 -0
- package/dist/chunk-XBLX66UW.js +31 -0
- package/dist/chunk-XBLX66UW.js.map +7 -0
- package/dist/chunk-XI2JGRAD.js +0 -0
- package/dist/chunk-XI2JGRAD.js.map +7 -0
- package/dist/chunk-XYUTMBYZ.js +59 -0
- package/dist/chunk-XYUTMBYZ.js.map +7 -0
- package/dist/chunk-ZGYRAC4S.js +33 -0
- package/dist/chunk-ZGYRAC4S.js.map +7 -0
- package/dist/chunk-ZHCQCFRT.js +114 -0
- package/dist/chunk-ZHCQCFRT.js.map +7 -0
- package/dist/chunk-ZMEOUKRS.js +23 -0
- package/dist/chunk-ZMEOUKRS.js.map +7 -0
- package/dist/chunk-ZNICU3KW.js +0 -0
- package/dist/chunk-ZNICU3KW.js.map +7 -0
- package/dist/chunk-ZSYE5AS5.js +30 -0
- package/dist/chunk-ZSYE5AS5.js.map +7 -0
- package/dist/chunk-ZWVPEYU4.js +0 -0
- package/dist/chunk-ZWVPEYU4.js.map +7 -0
- package/dist/components/blocks/form-actions.d.ts +25 -0
- package/dist/components/blocks/form-actions.js +10 -0
- package/dist/components/blocks/form-actions.js.map +7 -0
- package/dist/components/blocks/index.d.ts +6 -0
- package/dist/components/blocks/index.js +26 -0
- package/dist/components/blocks/index.js.map +7 -0
- package/dist/components/blocks/minimal-progress.d.ts +25 -0
- package/dist/components/blocks/minimal-progress.js +11 -0
- package/dist/components/blocks/minimal-progress.js.map +7 -0
- package/dist/components/blocks/step-header.d.ts +17 -0
- package/dist/components/blocks/step-header.js +11 -0
- package/dist/components/blocks/step-header.js.map +7 -0
- package/dist/components/blocks/step-indicators.d.ts +26 -0
- package/dist/components/blocks/step-indicators.js +11 -0
- package/dist/components/blocks/step-indicators.js.map +7 -0
- package/dist/components/blocks/wizard-actions.d.ts +30 -0
- package/dist/components/blocks/wizard-actions.js +11 -0
- package/dist/components/blocks/wizard-actions.js.map +7 -0
- package/dist/components/form-debugger/form-debugger.d.ts +29 -0
- package/dist/components/form-debugger/form-debugger.js +17 -0
- package/dist/components/form-debugger/form-debugger.js.map +7 -0
- package/dist/components/form-debugger/index.d.ts +2 -0
- package/dist/components/form-debugger/index.js +18 -0
- package/dist/components/form-debugger/index.js.map +7 -0
- package/dist/components/form-instance.d.ts +34 -0
- package/dist/components/form-instance.js +31 -0
- package/dist/components/form-instance.js.map +7 -0
- package/dist/components/form-instance.script.d.ts +171 -0
- package/dist/components/form-instance.script.js +16 -0
- package/dist/components/form-instance.script.js.map +7 -0
- package/dist/components/form-step.d.ts +48 -0
- package/dist/components/form-step.js +10 -0
- package/dist/components/form-step.js.map +7 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +53 -0
- package/dist/components/index.js.map +7 -0
- package/dist/components/internals/constraint-element.d.ts +31 -0
- package/dist/components/internals/constraint-element.js +8 -0
- package/dist/components/internals/constraint-element.js.map +7 -0
- package/dist/components/internals/element-error.d.ts +9 -0
- package/dist/components/internals/element-error.js +7 -0
- package/dist/components/internals/element-error.js.map +7 -0
- package/dist/components/internals/field-renderer.d.ts +23 -0
- package/dist/components/internals/field-renderer.js +20 -0
- package/dist/components/internals/field-renderer.js.map +7 -0
- package/dist/components/internals/form-elements.d.ts +16 -0
- package/dist/components/internals/form-elements.js +18 -0
- package/dist/components/internals/form-elements.js.map +7 -0
- package/dist/components/internals/form-renderer.d.ts +16 -0
- package/dist/components/internals/form-renderer.js +33 -0
- package/dist/components/internals/form-renderer.js.map +7 -0
- package/dist/components/internals/form-renderer.script.d.ts +103 -0
- package/dist/components/internals/form-renderer.script.js +10 -0
- package/dist/components/internals/form-renderer.script.js.map +7 -0
- package/dist/components/internals/recipe-renderer.d.ts +23 -0
- package/dist/components/internals/recipe-renderer.js +22 -0
- package/dist/components/internals/recipe-renderer.js.map +7 -0
- package/dist/components/internals/render-registered-element.d.ts +24 -0
- package/dist/components/internals/render-registered-element.js +11 -0
- package/dist/components/internals/render-registered-element.js.map +7 -0
- package/dist/components/provider.d.ts +11 -0
- package/dist/components/provider.js +7 -0
- package/dist/components/provider.js.map +7 -0
- package/dist/components/shells/index.d.ts +1 -0
- package/dist/components/shells/index.js +18 -0
- package/dist/components/shells/index.js.map +7 -0
- package/dist/components/shells/shells.d.ts +28 -0
- package/dist/components/shells/shells.js +19 -0
- package/dist/components/shells/shells.js.map +7 -0
- package/dist/contexts/form-engine-owner.d.ts +10 -0
- package/dist/contexts/form-engine-owner.js +21 -0
- package/dist/contexts/form-engine-owner.js.map +7 -0
- package/dist/contexts/form-instance-context.d.ts +38 -0
- package/dist/contexts/form-instance-context.js +7 -0
- package/dist/contexts/form-instance-context.js.map +7 -0
- package/dist/contexts/index.d.ts +2 -0
- package/dist/contexts/index.js +11 -0
- package/dist/contexts/index.js.map +7 -0
- package/dist/contexts/resolve-form-engine.d.ts +20 -0
- package/dist/contexts/resolve-form-engine.js +11 -0
- package/dist/contexts/resolve-form-engine.js.map +7 -0
- package/dist/elements/actions/submit-button.d.ts +2 -0
- package/dist/elements/actions/submit-button.js +7 -0
- package/dist/elements/actions/submit-button.js.map +7 -0
- package/dist/elements/actions/submit-button.registration.d.ts +376 -0
- package/dist/elements/actions/submit-button.registration.js +9 -0
- package/dist/elements/actions/submit-button.registration.js.map +7 -0
- package/dist/elements/actions/submit-button.types.d.ts +382 -0
- package/dist/elements/actions/submit-button.types.js +7 -0
- package/dist/elements/actions/submit-button.types.js.map +7 -0
- package/dist/elements/content/form-submission-alert.d.ts +17 -0
- package/dist/elements/content/form-submission-alert.js +13 -0
- package/dist/elements/content/form-submission-alert.js.map +7 -0
- package/dist/elements/content/form-submission-alert.registration.d.ts +504 -0
- package/dist/elements/content/form-submission-alert.registration.js +13 -0
- package/dist/elements/content/form-submission-alert.registration.js.map +7 -0
- package/dist/elements/content/form-submission-alert.types.d.ts +402 -0
- package/dist/elements/content/form-submission-alert.types.js +9 -0
- package/dist/elements/content/form-submission-alert.types.js.map +7 -0
- package/dist/elements/field-group.d.ts +47 -0
- package/dist/elements/field-group.js +15 -0
- package/dist/elements/field-group.js.map +7 -0
- package/dist/elements/form-field.d.ts +57 -0
- package/dist/elements/form-field.js +14 -0
- package/dist/elements/form-field.js.map +7 -0
- package/dist/elements/inputs/form-array-elements.d.ts +97 -0
- package/dist/elements/inputs/form-array-elements.js +23 -0
- package/dist/elements/inputs/form-array-elements.js.map +7 -0
- package/dist/elements/inputs/form-array-elements.registration.d.ts +385 -0
- package/dist/elements/inputs/form-array-elements.registration.js +23 -0
- package/dist/elements/inputs/form-array-elements.registration.js.map +7 -0
- package/dist/elements/inputs/form-array-elements.types.d.ts +398 -0
- package/dist/elements/inputs/form-array-elements.types.js +7 -0
- package/dist/elements/inputs/form-array-elements.types.js.map +7 -0
- package/dist/elements/inputs/form-checkbox-group.d.ts +21 -0
- package/dist/elements/inputs/form-checkbox-group.js +21 -0
- package/dist/elements/inputs/form-checkbox-group.js.map +7 -0
- package/dist/elements/inputs/form-checkbox-group.registration.d.ts +506 -0
- package/dist/elements/inputs/form-checkbox-group.registration.js +21 -0
- package/dist/elements/inputs/form-checkbox-group.registration.js.map +7 -0
- package/dist/elements/inputs/form-checkbox-group.types.d.ts +410 -0
- package/dist/elements/inputs/form-checkbox-group.types.js +13 -0
- package/dist/elements/inputs/form-checkbox-group.types.js.map +7 -0
- package/dist/elements/inputs/form-checkbox.d.ts +3 -0
- package/dist/elements/inputs/form-checkbox.js +15 -0
- package/dist/elements/inputs/form-checkbox.js.map +7 -0
- package/dist/elements/inputs/form-checkbox.registration.d.ts +497 -0
- package/dist/elements/inputs/form-checkbox.registration.js +17 -0
- package/dist/elements/inputs/form-checkbox.registration.js.map +7 -0
- package/dist/elements/inputs/form-checkbox.types.d.ts +392 -0
- package/dist/elements/inputs/form-checkbox.types.js +11 -0
- package/dist/elements/inputs/form-checkbox.types.js.map +7 -0
- package/dist/elements/inputs/form-combobox.d.ts +22 -0
- package/dist/elements/inputs/form-combobox.js +21 -0
- package/dist/elements/inputs/form-combobox.js.map +7 -0
- package/dist/elements/inputs/form-combobox.registration.d.ts +505 -0
- package/dist/elements/inputs/form-combobox.registration.js +21 -0
- package/dist/elements/inputs/form-combobox.registration.js.map +7 -0
- package/dist/elements/inputs/form-combobox.types.d.ts +406 -0
- package/dist/elements/inputs/form-combobox.types.js +13 -0
- package/dist/elements/inputs/form-combobox.types.js.map +7 -0
- package/dist/elements/inputs/form-drop-zone.d.ts +29 -0
- package/dist/elements/inputs/form-drop-zone.js +19 -0
- package/dist/elements/inputs/form-drop-zone.js.map +7 -0
- package/dist/elements/inputs/form-drop-zone.registration.d.ts +497 -0
- package/dist/elements/inputs/form-drop-zone.registration.js +19 -0
- package/dist/elements/inputs/form-drop-zone.registration.js.map +7 -0
- package/dist/elements/inputs/form-drop-zone.types.d.ts +393 -0
- package/dist/elements/inputs/form-drop-zone.types.js +13 -0
- package/dist/elements/inputs/form-drop-zone.types.js.map +7 -0
- package/dist/elements/inputs/form-fieldset.d.ts +13 -0
- package/dist/elements/inputs/form-fieldset.js +19 -0
- package/dist/elements/inputs/form-fieldset.js.map +7 -0
- package/dist/elements/inputs/form-fieldset.registration.d.ts +380 -0
- package/dist/elements/inputs/form-fieldset.registration.js +21 -0
- package/dist/elements/inputs/form-fieldset.registration.js.map +7 -0
- package/dist/elements/inputs/form-fieldset.types.d.ts +388 -0
- package/dist/elements/inputs/form-fieldset.types.js +7 -0
- package/dist/elements/inputs/form-fieldset.types.js.map +7 -0
- package/dist/elements/inputs/form-input-otp.d.ts +36 -0
- package/dist/elements/inputs/form-input-otp.js +19 -0
- package/dist/elements/inputs/form-input-otp.js.map +7 -0
- package/dist/elements/inputs/form-input-otp.registration.d.ts +734 -0
- package/dist/elements/inputs/form-input-otp.registration.js +19 -0
- package/dist/elements/inputs/form-input-otp.registration.js.map +7 -0
- package/dist/elements/inputs/form-input-otp.types.d.ts +633 -0
- package/dist/elements/inputs/form-input-otp.types.js +11 -0
- package/dist/elements/inputs/form-input-otp.types.js.map +7 -0
- package/dist/elements/inputs/form-input.d.ts +2 -0
- package/dist/elements/inputs/form-input.js +15 -0
- package/dist/elements/inputs/form-input.js.map +7 -0
- package/dist/elements/inputs/form-input.registration.d.ts +516 -0
- package/dist/elements/inputs/form-input.registration.js +17 -0
- package/dist/elements/inputs/form-input.registration.js.map +7 -0
- package/dist/elements/inputs/form-input.types.d.ts +429 -0
- package/dist/elements/inputs/form-input.types.js +13 -0
- package/dist/elements/inputs/form-input.types.js.map +7 -0
- package/dist/elements/inputs/form-masked-input.d.ts +53 -0
- package/dist/elements/inputs/form-masked-input.js +20 -0
- package/dist/elements/inputs/form-masked-input.js.map +7 -0
- package/dist/elements/inputs/form-masked-input.registration.d.ts +516 -0
- package/dist/elements/inputs/form-masked-input.registration.js +20 -0
- package/dist/elements/inputs/form-masked-input.registration.js.map +7 -0
- package/dist/elements/inputs/form-masked-input.types.d.ts +420 -0
- package/dist/elements/inputs/form-masked-input.types.js +13 -0
- package/dist/elements/inputs/form-masked-input.types.js.map +7 -0
- package/dist/elements/inputs/form-number.d.ts +2 -0
- package/dist/elements/inputs/form-number.js +15 -0
- package/dist/elements/inputs/form-number.js.map +7 -0
- package/dist/elements/inputs/form-number.registration.d.ts +510 -0
- package/dist/elements/inputs/form-number.registration.js +17 -0
- package/dist/elements/inputs/form-number.registration.js.map +7 -0
- package/dist/elements/inputs/form-number.types.d.ts +414 -0
- package/dist/elements/inputs/form-number.types.js +11 -0
- package/dist/elements/inputs/form-number.types.js.map +7 -0
- package/dist/elements/inputs/form-phone-input.d.ts +51 -0
- package/dist/elements/inputs/form-phone-input.js +20 -0
- package/dist/elements/inputs/form-phone-input.js.map +7 -0
- package/dist/elements/inputs/form-phone-input.registration.d.ts +495 -0
- package/dist/elements/inputs/form-phone-input.registration.js +24 -0
- package/dist/elements/inputs/form-phone-input.registration.js.map +7 -0
- package/dist/elements/inputs/form-phone-input.types.d.ts +389 -0
- package/dist/elements/inputs/form-phone-input.types.js +13 -0
- package/dist/elements/inputs/form-phone-input.types.js.map +7 -0
- package/dist/elements/inputs/form-radio.d.ts +20 -0
- package/dist/elements/inputs/form-radio.js +21 -0
- package/dist/elements/inputs/form-radio.js.map +7 -0
- package/dist/elements/inputs/form-radio.registration.d.ts +506 -0
- package/dist/elements/inputs/form-radio.registration.js +21 -0
- package/dist/elements/inputs/form-radio.registration.js.map +7 -0
- package/dist/elements/inputs/form-radio.types.d.ts +410 -0
- package/dist/elements/inputs/form-radio.types.js +13 -0
- package/dist/elements/inputs/form-radio.types.js.map +7 -0
- package/dist/elements/inputs/form-select.d.ts +21 -0
- package/dist/elements/inputs/form-select.js +21 -0
- package/dist/elements/inputs/form-select.js.map +7 -0
- package/dist/elements/inputs/form-select.registration.d.ts +507 -0
- package/dist/elements/inputs/form-select.registration.js +21 -0
- package/dist/elements/inputs/form-select.registration.js.map +7 -0
- package/dist/elements/inputs/form-select.types.d.ts +408 -0
- package/dist/elements/inputs/form-select.types.js +13 -0
- package/dist/elements/inputs/form-select.types.js.map +7 -0
- package/dist/elements/inputs/form-slider.d.ts +24 -0
- package/dist/elements/inputs/form-slider.js +19 -0
- package/dist/elements/inputs/form-slider.js.map +7 -0
- package/dist/elements/inputs/form-slider.registration.d.ts +502 -0
- package/dist/elements/inputs/form-slider.registration.js +19 -0
- package/dist/elements/inputs/form-slider.registration.js.map +7 -0
- package/dist/elements/inputs/form-slider.types.d.ts +400 -0
- package/dist/elements/inputs/form-slider.types.js +11 -0
- package/dist/elements/inputs/form-slider.types.js.map +7 -0
- package/dist/elements/inputs/form-switch.d.ts +2 -0
- package/dist/elements/inputs/form-switch.js +15 -0
- package/dist/elements/inputs/form-switch.js.map +7 -0
- package/dist/elements/inputs/form-switch.registration.d.ts +497 -0
- package/dist/elements/inputs/form-switch.registration.js +17 -0
- package/dist/elements/inputs/form-switch.registration.js.map +7 -0
- package/dist/elements/inputs/form-switch.types.d.ts +396 -0
- package/dist/elements/inputs/form-switch.types.js +11 -0
- package/dist/elements/inputs/form-switch.types.js.map +7 -0
- package/dist/elements/inputs/form-textarea.d.ts +2 -0
- package/dist/elements/inputs/form-textarea.js +15 -0
- package/dist/elements/inputs/form-textarea.js.map +7 -0
- package/dist/elements/inputs/form-textarea.registration.d.ts +507 -0
- package/dist/elements/inputs/form-textarea.registration.js +17 -0
- package/dist/elements/inputs/form-textarea.registration.js.map +7 -0
- package/dist/elements/inputs/form-textarea.types.d.ts +410 -0
- package/dist/elements/inputs/form-textarea.types.js +13 -0
- package/dist/elements/inputs/form-textarea.types.js.map +7 -0
- package/dist/hooks/bind-field.d.ts +1 -0
- package/dist/hooks/bind-field.js +7 -0
- package/dist/hooks/bind-field.js.map +7 -0
- package/dist/hooks/grid-styles.d.ts +32 -0
- package/dist/hooks/grid-styles.js +12 -0
- package/dist/hooks/grid-styles.js.map +7 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +16 -0
- package/dist/hooks/index.js.map +7 -0
- package/dist/index.css +1088 -0
- package/dist/index.css.map +7 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +174 -0
- package/dist/index.js.map +7 -0
- package/dist/lib/choice-host.d.ts +18 -0
- package/dist/lib/choice-host.js +10 -0
- package/dist/lib/choice-host.js.map +7 -0
- package/dist/lib/choice-value.d.ts +27 -0
- package/dist/lib/choice-value.js +13 -0
- package/dist/lib/choice-value.js.map +7 -0
- package/dist/lib/control-host.d.ts +85 -0
- package/dist/lib/control-host.js +10 -0
- package/dist/lib/control-host.js.map +7 -0
- package/dist/lib/csrf-field.d.ts +11 -0
- package/dist/lib/csrf-field.js +7 -0
- package/dist/lib/csrf-field.js.map +7 -0
- package/dist/lib/field-control.d.ts +13 -0
- package/dist/lib/field-control.js +9 -0
- package/dist/lib/field-control.js.map +7 -0
- package/dist/lib/field-rules.d.ts +25 -0
- package/dist/lib/field-rules.js +9 -0
- package/dist/lib/field-rules.js.map +7 -0
- package/dist/lib/instance-callbacks.d.ts +22 -0
- package/dist/lib/instance-callbacks.js +9 -0
- package/dist/lib/instance-callbacks.js.map +7 -0
- package/dist/lib/instance-view.d.ts +37 -0
- package/dist/lib/instance-view.js +15 -0
- package/dist/lib/instance-view.js.map +7 -0
- package/dist/lib/logger.d.ts +2 -0
- package/dist/lib/logger.js +7 -0
- package/dist/lib/logger.js.map +7 -0
- package/dist/lib/mask-options.d.ts +28 -0
- package/dist/lib/mask-options.js +17 -0
- package/dist/lib/mask-options.js.map +7 -0
- package/dist/lib/native-form-data.d.ts +23 -0
- package/dist/lib/native-form-data.js +9 -0
- package/dist/lib/native-form-data.js.map +7 -0
- package/dist/lib/participation-snapshot.d.ts +26 -0
- package/dist/lib/participation-snapshot.js +9 -0
- package/dist/lib/participation-snapshot.js.map +7 -0
- package/dist/lib/phone-number.d.ts +28 -0
- package/dist/lib/phone-number.js +25 -0
- package/dist/lib/phone-number.js.map +7 -0
- package/dist/lib/phone-validation.d.ts +2 -0
- package/dist/lib/phone-validation.js +8 -0
- package/dist/lib/phone-validation.js.map +7 -0
- package/dist/lib/rui-form-utils.d.ts +1 -0
- package/dist/lib/rui-form-utils.js +20 -0
- package/dist/lib/rui-form-utils.js.map +7 -0
- package/dist/primitives.d.ts +5 -0
- package/dist/primitives.js +23 -0
- package/dist/primitives.js.map +7 -0
- package/dist/recipes/bind-recipes.d.ts +1829 -0
- package/dist/recipes/index.d.ts +6 -0
- package/dist/recipes/types.d.ts +34 -0
- package/dist/registrations/elements.d.ts +19 -0
- package/dist/registrations/elements.js +133 -0
- package/dist/registrations/elements.js.map +7 -0
- package/dist/registrations/index.d.ts +46 -0
- package/dist/registrations/index.js +137 -0
- package/dist/registrations/index.js.map +7 -0
- package/dist/registries/builder-registry.d.ts +1822 -0
- package/dist/registries/builder-registry.js +17 -0
- package/dist/registries/builder-registry.js.map +7 -0
- package/dist/registries/index.d.ts +1 -0
- package/dist/registries/index.js +18 -0
- package/dist/registries/index.js.map +7 -0
- package/package.json +123 -3
- package/skill/SKILL.md +79 -0
- package/skill/reference/forms-radiant-widgets.md +243 -0
- package/skill/reference/forms-radiant.md +72 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { FormRenderer, FormRendererElement } from './internals/form-renderer.js';
|
|
2
|
+
export { FormElements } from './internals/form-elements.js';
|
|
3
|
+
export type { FormElementsProps } from './internals/form-elements.js';
|
|
4
|
+
export { FormInstance } from './form-instance.js';
|
|
5
|
+
export { FormDebugger, FormDebuggerElement } from './form-debugger/index.js';
|
|
6
|
+
export type { FormDebuggerProps } from './form-debugger/index.js';
|
|
7
|
+
export { RecipeRenderer } from './internals/recipe-renderer.js';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import "../chunk-2PYB72CX.js";
|
|
2
|
+
import {
|
|
3
|
+
FormRenderer
|
|
4
|
+
} from "../chunk-TM2P4ICL.js";
|
|
5
|
+
import {
|
|
6
|
+
FormRendererElement
|
|
7
|
+
} from "../chunk-27TSETGJ.js";
|
|
8
|
+
import "../chunk-L3LBJQYB.js";
|
|
9
|
+
import {
|
|
10
|
+
FormDebugger,
|
|
11
|
+
FormDebuggerElement
|
|
12
|
+
} from "../chunk-6YYC6GI7.js";
|
|
13
|
+
import {
|
|
14
|
+
FormInstance
|
|
15
|
+
} from "../chunk-DOK7KJEJ.js";
|
|
16
|
+
import {
|
|
17
|
+
RecipeRenderer
|
|
18
|
+
} from "../chunk-VKKA7RZK.js";
|
|
19
|
+
import "../chunk-SLV6UP6W.js";
|
|
20
|
+
import "../chunk-EOGEJI3D.js";
|
|
21
|
+
import "../chunk-GRYYXYUC.js";
|
|
22
|
+
import "../chunk-ALED4QSO.js";
|
|
23
|
+
import "../chunk-ZMEOUKRS.js";
|
|
24
|
+
import "../chunk-WBLO2CCZ.js";
|
|
25
|
+
import "../chunk-ZGYRAC4S.js";
|
|
26
|
+
import "../chunk-4JYXJYVD.js";
|
|
27
|
+
import {
|
|
28
|
+
FormElements
|
|
29
|
+
} from "../chunk-4K2WI4QW.js";
|
|
30
|
+
import "../chunk-SN7RRH7N.js";
|
|
31
|
+
import "../chunk-WVMXFJZ6.js";
|
|
32
|
+
import "../chunk-HLWV3EKQ.js";
|
|
33
|
+
import "../chunk-G2GVYPBS.js";
|
|
34
|
+
import "../chunk-MYFG673N.js";
|
|
35
|
+
import "../chunk-T5UN2BZP.js";
|
|
36
|
+
import "../chunk-S5VUGF7M.js";
|
|
37
|
+
import "../chunk-XI2JGRAD.js";
|
|
38
|
+
import "../chunk-WYNF44JO.js";
|
|
39
|
+
import "../chunk-GB4ETJCS.js";
|
|
40
|
+
import "../chunk-M7TZPONS.js";
|
|
41
|
+
import "../chunk-SJ44RSNG.js";
|
|
42
|
+
import "../chunk-GWVIHO3R.js";
|
|
43
|
+
import "../chunk-63WXFVJ4.js";
|
|
44
|
+
import "../chunk-TRU673W5.js";
|
|
45
|
+
export {
|
|
46
|
+
FormDebugger,
|
|
47
|
+
FormDebuggerElement,
|
|
48
|
+
FormElements,
|
|
49
|
+
FormInstance,
|
|
50
|
+
FormRenderer,
|
|
51
|
+
FormRendererElement,
|
|
52
|
+
RecipeRenderer
|
|
53
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { RadiantElement } from '@ecopages/radiant';
|
|
2
|
+
import type { JSX_PROPS } from '@ecopages/jsx';
|
|
3
|
+
import { type FormStateContainer } from '@schema-engine/forms/state-container';
|
|
4
|
+
/**
|
|
5
|
+
* Shows or hides one element as the form's constraints say.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* The state is the container's: `selectFieldState` at this host's path says whether the element is hidden, from
|
|
9
|
+
* the one ordered evaluation of the form's constraints, with the constraints of the containers around it folded
|
|
10
|
+
* in. So the host evaluates nothing itself, and it agrees with validation and with the other renderer. The
|
|
11
|
+
* fields inside read their own `disabled` and `required` the same way. The view passes whether the element is hidden as the plain `hidden`
|
|
12
|
+
* attribute, which is the one source of truth until the instance has a container: the host writes the native
|
|
13
|
+
* `hidden` property and declares no binding for it, because a `@bindTo` on `hidden` would make the Radiant server
|
|
14
|
+
* bridge drop the attribute whenever the prop is false.
|
|
15
|
+
*
|
|
16
|
+
* @element se-constraint
|
|
17
|
+
*/
|
|
18
|
+
export declare class ConstraintElement extends RadiantElement {
|
|
19
|
+
readonly [JSX_PROPS]?: {
|
|
20
|
+
'data-se-constraint-field': string;
|
|
21
|
+
hidden?: boolean;
|
|
22
|
+
};
|
|
23
|
+
/** Rendered path of the constrained element, which the container's state is read at. */
|
|
24
|
+
fieldPath: string;
|
|
25
|
+
private container?;
|
|
26
|
+
private stopObserving?;
|
|
27
|
+
onContainer(container: FormStateContainer | undefined): void;
|
|
28
|
+
disconnectedCallback(): void;
|
|
29
|
+
onFieldPath(): void;
|
|
30
|
+
private apply;
|
|
31
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type JsxRenderable } from '@ecopages/jsx/jsx-runtime';
|
|
2
|
+
export interface ElementErrorProps {
|
|
3
|
+
title: string;
|
|
4
|
+
message: string;
|
|
5
|
+
componentType?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: Record<string, string | number | undefined>;
|
|
8
|
+
}
|
|
9
|
+
export declare function ElementError({ title, message, componentType, className, style }: ElementErrorProps): JsxRenderable;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { JsxRenderable } from '@ecopages/jsx/jsx-runtime';
|
|
2
|
+
import { type NormalizedElementConfig, type FormEngineRuntime as FormEngine } from '@schema-engine/forms';
|
|
3
|
+
import type { ConstraintEvaluationContext } from './render-registered-element.js';
|
|
4
|
+
export interface FormElementProps {
|
|
5
|
+
/**
|
|
6
|
+
* Element from a normalized form or `engine.validateElement`.
|
|
7
|
+
* This host does not re-parse registration schemas.
|
|
8
|
+
*/
|
|
9
|
+
config: NormalizedElementConfig;
|
|
10
|
+
engine?: FormEngine;
|
|
11
|
+
name?: string;
|
|
12
|
+
/** Path of the enclosing array row or object, which an element without a name resolves its sibling references in. */
|
|
13
|
+
scopePath?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
instanceId?: string;
|
|
16
|
+
initialValues?: Record<string, unknown>;
|
|
17
|
+
values?: Record<string, unknown>;
|
|
18
|
+
class?: string;
|
|
19
|
+
constraintContext?: ConstraintEvaluationContext;
|
|
20
|
+
style?: Record<string, string | number | undefined>;
|
|
21
|
+
}
|
|
22
|
+
export { renderRegisteredElement } from './render-registered-element.js';
|
|
23
|
+
export declare function FormElement({ config, engine, name, scopePath, id, instanceId, initialValues, values, class: className, style, constraintContext, }: FormElementProps): JsxRenderable;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FormElement
|
|
3
|
+
} from "../../chunk-SN7RRH7N.js";
|
|
4
|
+
import "../../chunk-WVMXFJZ6.js";
|
|
5
|
+
import "../../chunk-HLWV3EKQ.js";
|
|
6
|
+
import {
|
|
7
|
+
renderRegisteredElement
|
|
8
|
+
} from "../../chunk-G2GVYPBS.js";
|
|
9
|
+
import "../../chunk-MYFG673N.js";
|
|
10
|
+
import "../../chunk-T5UN2BZP.js";
|
|
11
|
+
import "../../chunk-S5VUGF7M.js";
|
|
12
|
+
import "../../chunk-GB4ETJCS.js";
|
|
13
|
+
import "../../chunk-SJ44RSNG.js";
|
|
14
|
+
import "../../chunk-GWVIHO3R.js";
|
|
15
|
+
import "../../chunk-63WXFVJ4.js";
|
|
16
|
+
import "../../chunk-TRU673W5.js";
|
|
17
|
+
export {
|
|
18
|
+
FormElement,
|
|
19
|
+
renderRegisteredElement
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type JsxRenderable } from '@ecopages/jsx/jsx-runtime';
|
|
2
|
+
import { type FormEngineRuntime as FormEngine, type FieldScope, type NormalizedElementConfig } from '@schema-engine/forms';
|
|
3
|
+
import type { ConstraintEvaluationContext } from './render-registered-element.js';
|
|
4
|
+
export interface FormElementsProps {
|
|
5
|
+
elements: ReadonlyArray<NormalizedElementConfig>;
|
|
6
|
+
engine?: FormEngine;
|
|
7
|
+
class?: string;
|
|
8
|
+
style?: Record<string, string | number | undefined>;
|
|
9
|
+
initialValues?: Record<string, unknown>;
|
|
10
|
+
values?: Record<string, unknown>;
|
|
11
|
+
namePrefix?: string;
|
|
12
|
+
nameStrategy?: FieldScope['nameStrategy'];
|
|
13
|
+
instanceId?: string;
|
|
14
|
+
constraintContext?: ConstraintEvaluationContext;
|
|
15
|
+
}
|
|
16
|
+
export declare function FormElements({ elements, engine, class: className, style, initialValues, values, namePrefix, nameStrategy, instanceId, constraintContext, }: FormElementsProps): JsxRenderable;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FormElements
|
|
3
|
+
} from "../../chunk-4K2WI4QW.js";
|
|
4
|
+
import "../../chunk-SN7RRH7N.js";
|
|
5
|
+
import "../../chunk-WVMXFJZ6.js";
|
|
6
|
+
import "../../chunk-HLWV3EKQ.js";
|
|
7
|
+
import "../../chunk-G2GVYPBS.js";
|
|
8
|
+
import "../../chunk-MYFG673N.js";
|
|
9
|
+
import "../../chunk-T5UN2BZP.js";
|
|
10
|
+
import "../../chunk-S5VUGF7M.js";
|
|
11
|
+
import "../../chunk-GB4ETJCS.js";
|
|
12
|
+
import "../../chunk-SJ44RSNG.js";
|
|
13
|
+
import "../../chunk-GWVIHO3R.js";
|
|
14
|
+
import "../../chunk-63WXFVJ4.js";
|
|
15
|
+
import "../../chunk-TRU673W5.js";
|
|
16
|
+
export {
|
|
17
|
+
FormElements
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { JsxRenderable } from '@ecopages/jsx';
|
|
2
|
+
import { type FormValues } from '@schema-engine/forms';
|
|
3
|
+
import { FormRendererElement, type FormRendererProps } from './form-renderer.script.js';
|
|
4
|
+
export { FormRendererElement, type FormRendererProps };
|
|
5
|
+
/**
|
|
6
|
+
* JSX view around `<se-form-renderer>`.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* View-owned shell: the form tree is authored here as light-DOM children so
|
|
10
|
+
* SSR expands it. The live `engine` is re-attached on the client.
|
|
11
|
+
*
|
|
12
|
+
* The typed props are the one way to receive what a form submits: a normalized config
|
|
13
|
+
* (`engine.defineForm` of a literal config, or `engine.validateForm(json, { values })`) types `onSubmit`,
|
|
14
|
+
* `onAction` and `defaultValues` by the values it carries.
|
|
15
|
+
*/
|
|
16
|
+
export declare function FormRenderer<TValues extends FormValues = FormValues>({ engine, class: className, style, children, ...props }: FormRendererProps<TValues>): JsxRenderable;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FormRenderer
|
|
3
|
+
} from "../../chunk-TM2P4ICL.js";
|
|
4
|
+
import {
|
|
5
|
+
FormRendererElement
|
|
6
|
+
} from "../../chunk-27TSETGJ.js";
|
|
7
|
+
import "../../chunk-DOK7KJEJ.js";
|
|
8
|
+
import "../../chunk-VKKA7RZK.js";
|
|
9
|
+
import "../../chunk-SLV6UP6W.js";
|
|
10
|
+
import "../../chunk-EOGEJI3D.js";
|
|
11
|
+
import "../../chunk-GRYYXYUC.js";
|
|
12
|
+
import "../../chunk-ALED4QSO.js";
|
|
13
|
+
import "../../chunk-ZMEOUKRS.js";
|
|
14
|
+
import "../../chunk-WBLO2CCZ.js";
|
|
15
|
+
import "../../chunk-ZGYRAC4S.js";
|
|
16
|
+
import "../../chunk-4JYXJYVD.js";
|
|
17
|
+
import "../../chunk-4K2WI4QW.js";
|
|
18
|
+
import "../../chunk-SN7RRH7N.js";
|
|
19
|
+
import "../../chunk-WVMXFJZ6.js";
|
|
20
|
+
import "../../chunk-HLWV3EKQ.js";
|
|
21
|
+
import "../../chunk-G2GVYPBS.js";
|
|
22
|
+
import "../../chunk-MYFG673N.js";
|
|
23
|
+
import "../../chunk-T5UN2BZP.js";
|
|
24
|
+
import "../../chunk-S5VUGF7M.js";
|
|
25
|
+
import "../../chunk-GB4ETJCS.js";
|
|
26
|
+
import "../../chunk-SJ44RSNG.js";
|
|
27
|
+
import "../../chunk-GWVIHO3R.js";
|
|
28
|
+
import "../../chunk-63WXFVJ4.js";
|
|
29
|
+
import "../../chunk-TRU673W5.js";
|
|
30
|
+
export {
|
|
31
|
+
FormRenderer,
|
|
32
|
+
FormRendererElement
|
|
33
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { RadiantElement } from '@ecopages/radiant';
|
|
2
|
+
import { type ContextProvider } from '@ecopages/radiant/context';
|
|
3
|
+
import type { JSX_PROPS, JsxRenderable } from '@ecopages/jsx';
|
|
4
|
+
import type { FormIssueFormatter } from '@schema-engine/forms/state-container';
|
|
5
|
+
import type { FormEngineRuntime as FormEngine, DefaultValuesOf, FormValues, NormalizedFormConfig, FormConfig, FormActionTrigger, SubmissionActionResult } from '@schema-engine/forms';
|
|
6
|
+
import type { FormAction, FormSubmitContext } from '../../adapters/types.js';
|
|
7
|
+
import { formEngineContext } from '../provider.js';
|
|
8
|
+
/**
|
|
9
|
+
* Props of the Radiant `FormRenderer` view.
|
|
10
|
+
*
|
|
11
|
+
* @template TValues - The values the form submits, which a normalized `config` carries (`engine.defineForm` of a literal config, or `engine.validateForm(json, { values })`): `onSubmit`, `onAction` and `defaultValues` are typed by it, with no annotation. A config passed as authoring input has none, so they are {@link FormValues}. `onChange` is always {@link FormValues}: live values may hold excluded and unfinished data.
|
|
12
|
+
*/
|
|
13
|
+
export interface FormRendererProps<TValues extends FormValues = FormValues> {
|
|
14
|
+
/**
|
|
15
|
+
* The form: the normalized config of `engine.defineForm` or `engine.validateForm`, or an authoring config.
|
|
16
|
+
*
|
|
17
|
+
* @remarks An authoring config carries no values type, so it is accepted only where `TValues` is {@link FormValues}: a callback typed by other values needs a normalized config that says so.
|
|
18
|
+
*/
|
|
19
|
+
config: NormalizedFormConfig<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, TValues> | (FormValues extends TValues ? FormConfig : never);
|
|
20
|
+
/** Values the form starts from, over the defaults of its fields. */
|
|
21
|
+
defaultValues?: DefaultValuesOf<NoInfer<TValues>>;
|
|
22
|
+
/** Native destination of the form: with no `onSubmit` the form posts to `action` with `method` once its actions succeed. */
|
|
23
|
+
action?: string;
|
|
24
|
+
method?: string;
|
|
25
|
+
/** Called with the values that passed validation and matched the form's value schemas, after the submit actions. */
|
|
26
|
+
onSubmit?: (data: TValues, context: FormSubmitContext) => void | Promise<void>;
|
|
27
|
+
onChange?: (data: FormValues) => void;
|
|
28
|
+
onAction?: (action: FormAction, data: TValues) => void | Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Called with the results of every trigger that ran actions, and once with those of the submit actions, as React's `onActionResults` is.
|
|
31
|
+
*
|
|
32
|
+
* @remarks The same results reach the `se-action-results` event, which also serves a page that has no `FormRenderer` callback, such as a form rendered on the server.
|
|
33
|
+
*/
|
|
34
|
+
onActionResults?: (results: readonly SubmissionActionResult[], trigger: FormActionTrigger) => void | Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Takes the page to the `redirectUrl` a submit action asked for, once the whole submission succeeded.
|
|
37
|
+
*
|
|
38
|
+
* @remarks Defaults to `location.assign` in a browser and does nothing on a server. It replaces the native post of a form with `action`, since the redirect is where the page goes next.
|
|
39
|
+
*/
|
|
40
|
+
navigate?: (url: string) => void;
|
|
41
|
+
class?: string;
|
|
42
|
+
style?: Record<string, string | number | undefined>;
|
|
43
|
+
engine?: FormEngine;
|
|
44
|
+
/**
|
|
45
|
+
* Turns an issue into the text to show, for the application's language, for every form of this renderer; it replaces the engine's `formatIssue`.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* It receives the issue (`type`, `ruleId`, `params`, `source` and any `message`) and the path of its field, and
|
|
49
|
+
* returns the text; `rui-form` falls back to the issue's own `message` when it returns nothing. Without a
|
|
50
|
+
* formatter an issue shows its `message` and otherwise nothing, never the rule type. The same function type
|
|
51
|
+
* serves the React renderer.
|
|
52
|
+
*/
|
|
53
|
+
formatIssue?: FormIssueFormatter;
|
|
54
|
+
/** Rendered inside the form after its fields, for opt-in tools such as FormDebugger. */
|
|
55
|
+
children?: JsxRenderable;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Behavior host for a composed form.
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* View-owned shell: the `FormRenderer` view authors the whole form tree as
|
|
62
|
+
* light-DOM children, so SSR expands it without any derived tree here. The host
|
|
63
|
+
* only publishes `formEngineContext`; the app binds `engine` (see `engine`).
|
|
64
|
+
* Submission belongs to `se-form-instance`.
|
|
65
|
+
*
|
|
66
|
+
* @element se-form-renderer
|
|
67
|
+
*/
|
|
68
|
+
export declare class FormRendererElement extends RadiantElement {
|
|
69
|
+
readonly [JSX_PROPS]?: {
|
|
70
|
+
engine?: FormEngine;
|
|
71
|
+
defaultValues?: Record<string, unknown>;
|
|
72
|
+
formatIssue?: FormIssueFormatter;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* The engine every host below this renderer reads from the context it publishes.
|
|
76
|
+
*
|
|
77
|
+
* @remarks
|
|
78
|
+
* The engine of a server-rendered form is not serialized, so the app binds it by
|
|
79
|
+
* assigning this property, before or after the renderer upgrades. Hosts below
|
|
80
|
+
* subscribe to the context, so an engine that arrives or changes later reaches them.
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* Property-only (`attribute: false`): a live engine is never serialized into the server markup.
|
|
84
|
+
*/
|
|
85
|
+
engine?: FormEngine;
|
|
86
|
+
defaultValues?: Record<string, unknown>;
|
|
87
|
+
/**
|
|
88
|
+
* Turns an issue into text for every form below this renderer, in place of the engine's `formatIssue`; the one override a form has.
|
|
89
|
+
*
|
|
90
|
+
* @remarks Property-only (`attribute: false`): a function is never serialized into the server markup.
|
|
91
|
+
*/
|
|
92
|
+
formatIssue?: FormIssueFormatter;
|
|
93
|
+
provider: ContextProvider<typeof formEngineContext>;
|
|
94
|
+
constructor();
|
|
95
|
+
protected onConnected(): void;
|
|
96
|
+
onEngineUpdated(): void;
|
|
97
|
+
private publishContext;
|
|
98
|
+
}
|
|
99
|
+
declare global {
|
|
100
|
+
interface HTMLElementTagNameMap {
|
|
101
|
+
'se-form-renderer': FormRendererElement;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { JsxRenderable } from '@ecopages/jsx';
|
|
2
|
+
import { type NormalizedFormConfig, type RecipeRegistration, type FormEngineRuntime as FormEngine } from '@schema-engine/forms';
|
|
3
|
+
/**
|
|
4
|
+
* Authors every step's fields once, inside the recipe chrome.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* View-owned shell: no per-step filtering and no slot projection. The
|
|
8
|
+
* `se-form-step` hosts bind their own `hidden` attribute to the instance's
|
|
9
|
+
* step state, so SSR emits the whole form and step switching is pure DOM.
|
|
10
|
+
*
|
|
11
|
+
* A step is hidden when its constraints skip it, and in a wizard when it is not the current one. The fields of a
|
|
12
|
+
* skipped step are authored with the participation of the step as if it were shown, so they are in the markup when
|
|
13
|
+
* the step opens; the step's host hides them, and the container's participation decides what takes part.
|
|
14
|
+
*/
|
|
15
|
+
export declare function RecipeRenderer({ config, engine, recipe, children, initialValues, rowIds, }: {
|
|
16
|
+
config: NormalizedFormConfig;
|
|
17
|
+
engine: FormEngine;
|
|
18
|
+
recipe: RecipeRegistration | undefined;
|
|
19
|
+
children?: JsxRenderable;
|
|
20
|
+
initialValues?: Record<string, unknown>;
|
|
21
|
+
/** The row ids the server's container gave each array, which the arrays render their rows with. */
|
|
22
|
+
rowIds?: Readonly<Record<string, readonly string[]>>;
|
|
23
|
+
}): JsxRenderable;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RecipeRenderer
|
|
3
|
+
} from "../../chunk-VKKA7RZK.js";
|
|
4
|
+
import "../../chunk-WBLO2CCZ.js";
|
|
5
|
+
import "../../chunk-ZGYRAC4S.js";
|
|
6
|
+
import "../../chunk-4JYXJYVD.js";
|
|
7
|
+
import "../../chunk-4K2WI4QW.js";
|
|
8
|
+
import "../../chunk-SN7RRH7N.js";
|
|
9
|
+
import "../../chunk-WVMXFJZ6.js";
|
|
10
|
+
import "../../chunk-HLWV3EKQ.js";
|
|
11
|
+
import "../../chunk-G2GVYPBS.js";
|
|
12
|
+
import "../../chunk-MYFG673N.js";
|
|
13
|
+
import "../../chunk-T5UN2BZP.js";
|
|
14
|
+
import "../../chunk-S5VUGF7M.js";
|
|
15
|
+
import "../../chunk-GB4ETJCS.js";
|
|
16
|
+
import "../../chunk-SJ44RSNG.js";
|
|
17
|
+
import "../../chunk-GWVIHO3R.js";
|
|
18
|
+
import "../../chunk-63WXFVJ4.js";
|
|
19
|
+
import "../../chunk-TRU673W5.js";
|
|
20
|
+
export {
|
|
21
|
+
RecipeRenderer
|
|
22
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type JsxRenderable } from '@ecopages/jsx/jsx-runtime';
|
|
2
|
+
import { type FormEngineRuntime as CoreFormEngine, type NormalizedElementConfig, type FieldOverlay, type Participation } from '@schema-engine/forms';
|
|
3
|
+
import { type RenderedConstraints } from '../../lib/participation-snapshot.js';
|
|
4
|
+
/** Live values the constraint snapshot is evaluated against. */
|
|
5
|
+
export interface ConstraintEvaluationContext {
|
|
6
|
+
values?: Record<string, unknown>;
|
|
7
|
+
initialValues?: Record<string, unknown>;
|
|
8
|
+
/** The server container's row ids by array path, for an array to render its rows with. */
|
|
9
|
+
rowIds?: Readonly<Record<string, readonly string[]>>;
|
|
10
|
+
/** The participation of the values the server rendered: what shows, is disabled and is required. */
|
|
11
|
+
participation?: Pick<Participation, 'fields'>;
|
|
12
|
+
fieldPath?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Renders a registered element. Config must already be normalized
|
|
16
|
+
* (from a form or `engine.validateElement`). Field path overlays are
|
|
17
|
+
* render-time only — the frozen config is not cloned.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* `disabled` and `required` compose with the values a container passed down,
|
|
21
|
+
* so a fieldset's or array's own and constraint-driven state reaches the fields
|
|
22
|
+
* inside it at render the way the constraint hosts compose it afterwards.
|
|
23
|
+
*/
|
|
24
|
+
export declare function renderRegisteredElement(config: NormalizedElementConfig, engine: CoreFormEngine, overlays?: FieldOverlay, constraintContext?: ConstraintEvaluationContext, renderWhenHidden?: boolean, snapshot?: RenderedConstraints): JsxRenderable;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
renderRegisteredElement
|
|
3
|
+
} from "../../chunk-G2GVYPBS.js";
|
|
4
|
+
import "../../chunk-MYFG673N.js";
|
|
5
|
+
import "../../chunk-T5UN2BZP.js";
|
|
6
|
+
import "../../chunk-S5VUGF7M.js";
|
|
7
|
+
import "../../chunk-63WXFVJ4.js";
|
|
8
|
+
import "../../chunk-TRU673W5.js";
|
|
9
|
+
export {
|
|
10
|
+
renderRegisteredElement
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FormIssueFormatter } from '@schema-engine/forms/state-container';
|
|
2
|
+
import type { FormEngineRuntime as CoreFormEngine } from '@schema-engine/forms';
|
|
3
|
+
export interface FormEngineContextValue {
|
|
4
|
+
/** Absent until the renderer has an engine to publish. */
|
|
5
|
+
engine?: CoreFormEngine;
|
|
6
|
+
/** The renderer's own issue formatter, which a form below it uses over the engine's. */
|
|
7
|
+
formatIssue?: FormIssueFormatter;
|
|
8
|
+
}
|
|
9
|
+
export declare const formEngineContext: {
|
|
10
|
+
__context__: FormEngineContextValue;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StackShell, SidebarShell, CardShell, HeroShell, SplitScreenShell } from './shells.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../../chunk-362U4YBN.js";
|
|
2
|
+
import {
|
|
3
|
+
CardShell,
|
|
4
|
+
HeroShell,
|
|
5
|
+
SidebarShell,
|
|
6
|
+
SplitScreenShell,
|
|
7
|
+
StackShell
|
|
8
|
+
} from "../../chunk-KEA2XEQI.js";
|
|
9
|
+
import "../../chunk-4JYXJYVD.js";
|
|
10
|
+
import "../../chunk-GB4ETJCS.js";
|
|
11
|
+
import "../../chunk-TRU673W5.js";
|
|
12
|
+
export {
|
|
13
|
+
CardShell,
|
|
14
|
+
HeroShell,
|
|
15
|
+
SidebarShell,
|
|
16
|
+
SplitScreenShell,
|
|
17
|
+
StackShell
|
|
18
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { JSX_PROPS, JsxRenderable } from '@ecopages/jsx';
|
|
2
|
+
import { RadiantElement } from '@ecopages/radiant';
|
|
3
|
+
import type { FormMeta } from '../../lib/instance-view.js';
|
|
4
|
+
import { type FormInstanceContextValue } from '../../contexts/form-instance-context.js';
|
|
5
|
+
import type { FormShellProps } from '../../recipes/types.d.ts';
|
|
6
|
+
import './card-shell.css';
|
|
7
|
+
import './hero-shell.css';
|
|
8
|
+
import './split-screen-shell.css';
|
|
9
|
+
export declare function StackShell({ slots }: FormShellProps): JsxRenderable;
|
|
10
|
+
export declare function SidebarShell({ slots, viewConfig }: FormShellProps): JsxRenderable;
|
|
11
|
+
export declare function CardShell({ slots, viewConfig }: FormShellProps): JsxRenderable;
|
|
12
|
+
export declare function HeroShell({ slots, viewConfig }: FormShellProps): JsxRenderable;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The panel shows the form title. When the recipe has a header slot, that header must set
|
|
16
|
+
* `fallbackToFormTitle: false` in its slot defaults, or the form title is repeated in the header
|
|
17
|
+
* for steps without a title. A custom recipe that reuses this shell with a header slot must set
|
|
18
|
+
* that default too.
|
|
19
|
+
*/
|
|
20
|
+
export declare function SplitScreenShell({ slots, viewConfig, meta }: FormShellProps): JsxRenderable;
|
|
21
|
+
export declare class SplitScreenSideElement extends RadiantElement {
|
|
22
|
+
readonly [JSX_PROPS]?: Partial<Pick<SplitScreenSideElement, 'sideContent' | 'hasHeader' | 'meta'>>;
|
|
23
|
+
sideContent: string;
|
|
24
|
+
hasHeader: boolean;
|
|
25
|
+
meta?: FormMeta;
|
|
26
|
+
protected instance?: FormInstanceContextValue;
|
|
27
|
+
render(): JsxRenderable;
|
|
28
|
+
}
|