@schemx/vue 1.0.0-next.3 → 1.0.0-next.5
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 +288 -283
- package/dist/analyze.html +1 -1
- package/dist/bridge/fieldBridge.d.ts +5 -18
- package/dist/bridge/fieldBridge.d.ts.map +1 -1
- package/dist/bridge/formBridge.d.ts +8 -76
- package/dist/bridge/formBridge.d.ts.map +1 -1
- package/dist/bridge/formInstance.d.ts +18 -0
- package/dist/bridge/formInstance.d.ts.map +1 -0
- package/dist/bridge/helpers.d.ts +9 -1
- package/dist/bridge/helpers.d.ts.map +1 -1
- package/dist/bridge/index.d.ts +7 -5
- package/dist/bridge/index.d.ts.map +1 -1
- package/dist/bridge/types.d.ts +37 -77
- package/dist/bridge/types.d.ts.map +1 -1
- package/dist/bridge/viewSchemaBridge.d.ts +5 -0
- package/dist/bridge/viewSchemaBridge.d.ts.map +1 -0
- package/dist/components/Button/index.vue.d.ts +1 -1
- package/dist/components/Button/index.vue.d.ts.map +1 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Col/index.d.ts +31 -0
- package/dist/components/Col/index.d.ts.map +1 -0
- package/dist/components/ConfigProvider/index.d.ts +78 -0
- package/dist/components/ConfigProvider/index.d.ts.map +1 -0
- package/dist/components/Dynamic/index.d.ts +46 -0
- package/dist/components/Dynamic/index.d.ts.map +1 -0
- package/dist/components/Field/index.d.ts +47 -0
- package/dist/components/Field/index.d.ts.map +1 -0
- package/dist/components/Field/slot.d.ts +40 -0
- package/dist/components/Field/slot.d.ts.map +1 -0
- package/dist/components/Group/index.d.ts +61 -0
- package/dist/components/Group/index.d.ts.map +1 -0
- package/dist/components/Group/slot.d.ts +34 -0
- package/dist/components/Group/slot.d.ts.map +1 -0
- package/dist/components/SchemaList/index.d.ts +58 -0
- package/dist/components/SchemaList/index.d.ts.map +1 -0
- package/dist/components/Wrapper/index.vue.d.ts +29 -0
- package/dist/components/Wrapper/index.vue.d.ts.map +1 -0
- package/dist/config/appConfig.d.ts +3 -3
- package/dist/config/appConfig.d.ts.map +1 -1
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/providerConfig.d.ts +22 -0
- package/dist/config/providerConfig.d.ts.map +1 -0
- package/dist/config/vueConfig.d.ts +12 -0
- package/dist/config/vueConfig.d.ts.map +1 -0
- package/dist/form.d.ts +4 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/hocs/withRemoteOptions.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/provideFieldContext.d.ts +2 -2
- package/dist/hooks/provideFormContext.d.ts +13 -46
- package/dist/hooks/provideFormContext.d.ts.map +1 -1
- package/dist/hooks/useDictionary.d.ts.map +1 -1
- package/dist/hooks/useField.d.ts.map +1 -1
- package/dist/hooks/useForm.d.ts +2 -2
- package/dist/hooks/useForm.d.ts.map +1 -1
- package/dist/hooks/useFormSelector.d.ts +4 -0
- package/dist/hooks/useFormSelector.d.ts.map +1 -1
- package/dist/hooks/useViewSchemas.d.ts +2 -34
- package/dist/hooks/useViewSchemas.d.ts.map +1 -1
- package/dist/hooks/useWatch.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1125 -521
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/dictionary.d.ts +1 -1
- package/dist/types/dictionary.d.ts.map +1 -1
- package/dist/types/field.d.ts +38 -2
- package/dist/types/field.d.ts.map +1 -1
- package/dist/types/form.d.ts +12 -7
- package/dist/types/form.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/layout.d.ts +26 -0
- package/dist/types/layout.d.ts.map +1 -0
- package/dist/utils/colProvider.d.ts +20 -0
- package/dist/utils/colProvider.d.ts.map +1 -0
- package/dist/utils/helpers.d.ts +4 -0
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/presetRuleProvider.d.ts +16 -0
- package/dist/utils/presetRuleProvider.d.ts.map +1 -0
- package/dist/utils/rendererProvider.d.ts.map +1 -1
- package/package.json +5 -6
- package/dist/bridge/formFacade.d.ts +0 -65
- package/dist/bridge/formFacade.d.ts.map +0 -1
- package/dist/components/FormGroup/index.d.ts +0 -16
- package/dist/components/FormGroup/index.d.ts.map +0 -1
- package/dist/components/FormItem/index.d.ts +0 -22
- package/dist/components/FormItem/index.d.ts.map +0 -1
- package/dist/components/FormItem/slot.d.ts +0 -48
- package/dist/components/FormItem/slot.d.ts.map +0 -1
- package/dist/utils/rulesProvider.d.ts +0 -16
- package/dist/utils/rulesProvider.d.ts.map +0 -1
package/dist/analyze.html
CHANGED
|
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
|
|
|
4929
4929
|
</script>
|
|
4930
4930
|
<script>
|
|
4931
4931
|
/*<!--*/
|
|
4932
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.cjs","children":[{"name":"src","children":[{"name":"styles/index.css","uid":"48c3f3fa-1"},{"name":"bridge","children":[{"uid":"48c3f3fa-3","name":"helpers.ts"},{"uid":"48c3f3fa-5","name":"fieldBridge.ts"},{"uid":"48c3f3fa-7","name":"formFacade.ts"},{"uid":"48c3f3fa-9","name":"formBridge.ts"}]},{"name":"config/appConfig.ts","uid":"48c3f3fa-11"},{"name":"utils","children":[{"uid":"48c3f3fa-13","name":"rendererProvider.ts"},{"uid":"48c3f3fa-15","name":"rulesProvider.ts"},{"uid":"48c3f3fa-31","name":"equal.ts"},{"uid":"48c3f3fa-39","name":"validation.ts"},{"uid":"48c3f3fa-41","name":"slot.ts"},{"uid":"48c3f3fa-53","name":"helpers.ts"}]},{"name":"hooks","children":[{"uid":"48c3f3fa-17","name":"useForm.ts"},{"uid":"48c3f3fa-19","name":"provideFormContext.ts"},{"uid":"48c3f3fa-21","name":"useField.ts"},{"uid":"48c3f3fa-23","name":"provideFieldContext.ts"},{"uid":"48c3f3fa-25","name":"useWatch.ts"},{"uid":"48c3f3fa-27","name":"useDictionary.ts"},{"uid":"48c3f3fa-29","name":"provideFormConfigContext.ts"},{"uid":"48c3f3fa-33","name":"useStableRef.ts"},{"uid":"48c3f3fa-35","name":"useViewSchemas.ts"},{"uid":"48c3f3fa-37","name":"useFormSelector.ts"}]},{"name":"components","children":[{"name":"FormGroup/index.tsx","uid":"48c3f3fa-43"},{"name":"FormItem","children":[{"uid":"48c3f3fa-45","name":"slot.tsx"},{"uid":"48c3f3fa-47","name":"index.tsx"}]},{"name":"Button","children":[{"uid":"48c3f3fa-49","name":"index.vue?vue&type=script&setup=true&lang.ts"},{"uid":"48c3f3fa-51","name":"index.vue?vue&type=style&index=0&lang.css"}]}]},{"uid":"48c3f3fa-55","name":"form.vue?vue&type=script&setup=true&lang.ts"},{"uid":"48c3f3fa-57","name":"form.ts"},{"name":"hocs/withRemoteOptions.ts","uid":"48c3f3fa-59"},{"uid":"48c3f3fa-61","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"48c3f3fa-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"48c3f3fa-0"},"48c3f3fa-3":{"renderedLength":221,"gzipLength":161,"brotliLength":119,"metaUid":"48c3f3fa-2"},"48c3f3fa-5":{"renderedLength":1253,"gzipLength":416,"brotliLength":362,"metaUid":"48c3f3fa-4"},"48c3f3fa-7":{"renderedLength":2380,"gzipLength":463,"brotliLength":393,"metaUid":"48c3f3fa-6"},"48c3f3fa-9":{"renderedLength":3540,"gzipLength":827,"brotliLength":751,"metaUid":"48c3f3fa-8"},"48c3f3fa-11":{"renderedLength":1317,"gzipLength":489,"brotliLength":422,"metaUid":"48c3f3fa-10"},"48c3f3fa-13":{"renderedLength":65,"gzipLength":72,"brotliLength":52,"metaUid":"48c3f3fa-12"},"48c3f3fa-15":{"renderedLength":67,"gzipLength":68,"brotliLength":53,"metaUid":"48c3f3fa-14"},"48c3f3fa-17":{"renderedLength":1079,"gzipLength":482,"brotliLength":400,"metaUid":"48c3f3fa-16"},"48c3f3fa-19":{"renderedLength":628,"gzipLength":340,"brotliLength":290,"metaUid":"48c3f3fa-18"},"48c3f3fa-21":{"renderedLength":1038,"gzipLength":344,"brotliLength":307,"metaUid":"48c3f3fa-20"},"48c3f3fa-23":{"renderedLength":410,"gzipLength":249,"brotliLength":198,"metaUid":"48c3f3fa-22"},"48c3f3fa-25":{"renderedLength":564,"gzipLength":229,"brotliLength":192,"metaUid":"48c3f3fa-24"},"48c3f3fa-27":{"renderedLength":2879,"gzipLength":953,"brotliLength":814,"metaUid":"48c3f3fa-26"},"48c3f3fa-29":{"renderedLength":483,"gzipLength":288,"brotliLength":239,"metaUid":"48c3f3fa-28"},"48c3f3fa-31":{"renderedLength":206,"gzipLength":156,"brotliLength":122,"metaUid":"48c3f3fa-30"},"48c3f3fa-33":{"renderedLength":240,"gzipLength":168,"brotliLength":143,"metaUid":"48c3f3fa-32"},"48c3f3fa-35":{"renderedLength":1781,"gzipLength":706,"brotliLength":590,"metaUid":"48c3f3fa-34"},"48c3f3fa-37":{"renderedLength":594,"gzipLength":306,"brotliLength":266,"metaUid":"48c3f3fa-36"},"48c3f3fa-39":{"renderedLength":788,"gzipLength":325,"brotliLength":267,"metaUid":"48c3f3fa-38"},"48c3f3fa-41":{"renderedLength":1278,"gzipLength":491,"brotliLength":404,"metaUid":"48c3f3fa-40"},"48c3f3fa-43":{"renderedLength":3726,"gzipLength":1330,"brotliLength":1126,"metaUid":"48c3f3fa-42"},"48c3f3fa-45":{"renderedLength":4194,"gzipLength":1528,"brotliLength":1268,"metaUid":"48c3f3fa-44"},"48c3f3fa-47":{"renderedLength":5674,"gzipLength":2071,"brotliLength":1707,"metaUid":"48c3f3fa-46"},"48c3f3fa-49":{"renderedLength":2486,"gzipLength":913,"brotliLength":789,"metaUid":"48c3f3fa-48"},"48c3f3fa-51":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"48c3f3fa-50"},"48c3f3fa-53":{"renderedLength":1052,"gzipLength":382,"brotliLength":332,"metaUid":"48c3f3fa-52"},"48c3f3fa-55":{"renderedLength":10221,"gzipLength":2767,"brotliLength":2328,"metaUid":"48c3f3fa-54"},"48c3f3fa-57":{"renderedLength":384,"gzipLength":269,"brotliLength":214,"metaUid":"48c3f3fa-56"},"48c3f3fa-59":{"renderedLength":1052,"gzipLength":455,"brotliLength":378,"metaUid":"48c3f3fa-58"},"48c3f3fa-61":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"48c3f3fa-60"}},"nodeMetas":{"48c3f3fa-0":{"id":"/src/styles/index.css","moduleParts":{"index.cjs":"48c3f3fa-1"},"imported":[],"importedBy":[{"uid":"48c3f3fa-60"},{"uid":"48c3f3fa-54"}]},"48c3f3fa-2":{"id":"/src/bridge/helpers.ts","moduleParts":{"index.cjs":"48c3f3fa-3"},"imported":[{"uid":"48c3f3fa-70"}],"importedBy":[{"uid":"48c3f3fa-8"},{"uid":"48c3f3fa-4"}]},"48c3f3fa-4":{"id":"/src/bridge/fieldBridge.ts","moduleParts":{"index.cjs":"48c3f3fa-5"},"imported":[{"uid":"48c3f3fa-2"}],"importedBy":[{"uid":"48c3f3fa-69"},{"uid":"48c3f3fa-8"}]},"48c3f3fa-6":{"id":"/src/bridge/formFacade.ts","moduleParts":{"index.cjs":"48c3f3fa-7"},"imported":[],"importedBy":[{"uid":"48c3f3fa-8"}]},"48c3f3fa-8":{"id":"/src/bridge/formBridge.ts","moduleParts":{"index.cjs":"48c3f3fa-9"},"imported":[{"uid":"48c3f3fa-68"},{"uid":"48c3f3fa-4"},{"uid":"48c3f3fa-6"},{"uid":"48c3f3fa-2"}],"importedBy":[{"uid":"48c3f3fa-69"}]},"48c3f3fa-10":{"id":"/src/config/appConfig.ts","moduleParts":{"index.cjs":"48c3f3fa-11"},"imported":[{"uid":"48c3f3fa-70"}],"importedBy":[{"uid":"48c3f3fa-66"}]},"48c3f3fa-12":{"id":"/src/utils/rendererProvider.ts","moduleParts":{"index.cjs":"48c3f3fa-13"},"imported":[{"uid":"48c3f3fa-68"}],"importedBy":[{"uid":"48c3f3fa-60"},{"uid":"48c3f3fa-16"}]},"48c3f3fa-14":{"id":"/src/utils/rulesProvider.ts","moduleParts":{"index.cjs":"48c3f3fa-15"},"imported":[{"uid":"48c3f3fa-64"}],"importedBy":[{"uid":"48c3f3fa-60"},{"uid":"48c3f3fa-16"}]},"48c3f3fa-16":{"id":"/src/hooks/useForm.ts","moduleParts":{"index.cjs":"48c3f3fa-17"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-64"},{"uid":"48c3f3fa-69"},{"uid":"48c3f3fa-66"},{"uid":"48c3f3fa-12"},{"uid":"48c3f3fa-14"}],"importedBy":[{"uid":"48c3f3fa-62"}]},"48c3f3fa-18":{"id":"/src/hooks/provideFormContext.ts","moduleParts":{"index.cjs":"48c3f3fa-19"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-69"}],"importedBy":[{"uid":"48c3f3fa-62"},{"uid":"48c3f3fa-20"},{"uid":"48c3f3fa-24"},{"uid":"48c3f3fa-26"}]},"48c3f3fa-20":{"id":"/src/hooks/useField.ts","moduleParts":{"index.cjs":"48c3f3fa-21"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-64"},{"uid":"48c3f3fa-69"},{"uid":"48c3f3fa-18"}],"importedBy":[{"uid":"48c3f3fa-62"}]},"48c3f3fa-22":{"id":"/src/hooks/provideFieldContext.ts","moduleParts":{"index.cjs":"48c3f3fa-23"},"imported":[{"uid":"48c3f3fa-70"}],"importedBy":[{"uid":"48c3f3fa-62"},{"uid":"48c3f3fa-58"}]},"48c3f3fa-24":{"id":"/src/hooks/useWatch.ts","moduleParts":{"index.cjs":"48c3f3fa-25"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-64"},{"uid":"48c3f3fa-69"},{"uid":"48c3f3fa-18"}],"importedBy":[{"uid":"48c3f3fa-62"},{"uid":"48c3f3fa-26"}]},"48c3f3fa-26":{"id":"/src/hooks/useDictionary.ts","moduleParts":{"index.cjs":"48c3f3fa-27"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-18"},{"uid":"48c3f3fa-24"}],"importedBy":[{"uid":"48c3f3fa-62"},{"uid":"48c3f3fa-58"}]},"48c3f3fa-28":{"id":"/src/hooks/provideFormConfigContext.ts","moduleParts":{"index.cjs":"48c3f3fa-29"},"imported":[{"uid":"48c3f3fa-70"}],"importedBy":[{"uid":"48c3f3fa-62"}]},"48c3f3fa-30":{"id":"/src/utils/equal.ts","moduleParts":{"index.cjs":"48c3f3fa-31"},"imported":[],"importedBy":[{"uid":"48c3f3fa-32"}]},"48c3f3fa-32":{"id":"/src/hooks/useStableRef.ts","moduleParts":{"index.cjs":"48c3f3fa-33"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-30"}],"importedBy":[{"uid":"48c3f3fa-62"}]},"48c3f3fa-34":{"id":"/src/hooks/useViewSchemas.ts","moduleParts":{"index.cjs":"48c3f3fa-35"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-64"},{"uid":"48c3f3fa-69"}],"importedBy":[{"uid":"48c3f3fa-62"},{"uid":"48c3f3fa-46"}]},"48c3f3fa-36":{"id":"/src/hooks/useFormSelector.ts","moduleParts":{"index.cjs":"48c3f3fa-37"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-69"}],"importedBy":[{"uid":"48c3f3fa-62"}]},"48c3f3fa-38":{"id":"/src/utils/validation.ts","moduleParts":{"index.cjs":"48c3f3fa-39"},"imported":[],"importedBy":[{"uid":"48c3f3fa-72"}]},"48c3f3fa-40":{"id":"/src/utils/slot.ts","moduleParts":{"index.cjs":"48c3f3fa-41"},"imported":[],"importedBy":[{"uid":"48c3f3fa-72"}]},"48c3f3fa-42":{"id":"/src/components/FormGroup/index.tsx","moduleParts":{"index.cjs":"48c3f3fa-43"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-71"},{"uid":"48c3f3fa-46"}],"importedBy":[{"uid":"48c3f3fa-60"},{"uid":"48c3f3fa-46"}]},"48c3f3fa-44":{"id":"/src/components/FormItem/slot.tsx","moduleParts":{"index.cjs":"48c3f3fa-45"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-72"}],"importedBy":[{"uid":"48c3f3fa-46"}]},"48c3f3fa-46":{"id":"/src/components/FormItem/index.tsx","moduleParts":{"index.cjs":"48c3f3fa-47"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-64"},{"uid":"48c3f3fa-71"},{"uid":"48c3f3fa-62"},{"uid":"48c3f3fa-34"},{"uid":"48c3f3fa-72"},{"uid":"48c3f3fa-42"},{"uid":"48c3f3fa-44"}],"importedBy":[{"uid":"48c3f3fa-60"},{"uid":"48c3f3fa-56"},{"uid":"48c3f3fa-42"},{"uid":"48c3f3fa-54"}]},"48c3f3fa-48":{"id":"/src/components/Button/index.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"48c3f3fa-49"},"imported":[{"uid":"48c3f3fa-70"}],"importedBy":[{"uid":"48c3f3fa-82"}]},"48c3f3fa-50":{"id":"/src/components/Button/index.vue?vue&type=style&index=0&lang.css","moduleParts":{"index.cjs":"48c3f3fa-51"},"imported":[],"importedBy":[{"uid":"48c3f3fa-82"}]},"48c3f3fa-52":{"id":"/src/utils/helpers.ts","moduleParts":{"index.cjs":"48c3f3fa-53"},"imported":[{"uid":"48c3f3fa-64"}],"importedBy":[{"uid":"48c3f3fa-54"}]},"48c3f3fa-54":{"id":"/src/form.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"48c3f3fa-55"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-64"},{"uid":"48c3f3fa-79"},{"uid":"48c3f3fa-81"},{"uid":"48c3f3fa-46"},{"uid":"48c3f3fa-62"},{"uid":"48c3f3fa-52"},{"uid":"48c3f3fa-0"}],"importedBy":[{"uid":"48c3f3fa-76"}]},"48c3f3fa-56":{"id":"/src/form.ts","moduleParts":{"index.cjs":"48c3f3fa-57"},"imported":[{"uid":"48c3f3fa-46"},{"uid":"48c3f3fa-66"},{"uid":"48c3f3fa-67"}],"importedBy":[{"uid":"48c3f3fa-60"}]},"48c3f3fa-58":{"id":"/src/hocs/withRemoteOptions.ts","moduleParts":{"index.cjs":"48c3f3fa-59"},"imported":[{"uid":"48c3f3fa-70"},{"uid":"48c3f3fa-22"},{"uid":"48c3f3fa-26"}],"importedBy":[{"uid":"48c3f3fa-63"}]},"48c3f3fa-60":{"id":"/src/index.ts","moduleParts":{"index.cjs":"48c3f3fa-61"},"imported":[{"uid":"48c3f3fa-0"},{"uid":"48c3f3fa-56"},{"uid":"48c3f3fa-12"},{"uid":"48c3f3fa-14"},{"uid":"48c3f3fa-62"},{"uid":"48c3f3fa-63"},{"uid":"48c3f3fa-46"},{"uid":"48c3f3fa-42"},{"uid":"48c3f3fa-64"},{"uid":"48c3f3fa-65"}],"importedBy":[],"isEntry":true},"48c3f3fa-62":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"48c3f3fa-16"},{"uid":"48c3f3fa-69"},{"uid":"48c3f3fa-18"},{"uid":"48c3f3fa-20"},{"uid":"48c3f3fa-22"},{"uid":"48c3f3fa-24"},{"uid":"48c3f3fa-26"},{"uid":"48c3f3fa-28"},{"uid":"48c3f3fa-32"},{"uid":"48c3f3fa-34"},{"uid":"48c3f3fa-36"}],"importedBy":[{"uid":"48c3f3fa-60"},{"uid":"48c3f3fa-46"},{"uid":"48c3f3fa-54"}]},"48c3f3fa-63":{"id":"/src/hocs/index.ts","moduleParts":{},"imported":[{"uid":"48c3f3fa-58"}],"importedBy":[{"uid":"48c3f3fa-60"}]},"48c3f3fa-64":{"id":"@schemx/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"48c3f3fa-60"},{"uid":"48c3f3fa-14"},{"uid":"48c3f3fa-46"},{"uid":"48c3f3fa-16"},{"uid":"48c3f3fa-20"},{"uid":"48c3f3fa-24"},{"uid":"48c3f3fa-34"},{"uid":"48c3f3fa-54"},{"uid":"48c3f3fa-52"}],"isExternal":true},"48c3f3fa-65":{"id":"/src/types/index.ts","moduleParts":{},"imported":[{"uid":"48c3f3fa-73"},{"uid":"48c3f3fa-74"},{"uid":"48c3f3fa-75"}],"importedBy":[{"uid":"48c3f3fa-60"}]},"48c3f3fa-66":{"id":"/src/config/index.ts","moduleParts":{},"imported":[{"uid":"48c3f3fa-10"}],"importedBy":[{"uid":"48c3f3fa-56"},{"uid":"48c3f3fa-16"}]},"48c3f3fa-67":{"id":"/src/formRuntime.js","moduleParts":{},"imported":[{"uid":"48c3f3fa-76"}],"importedBy":[{"uid":"48c3f3fa-56"}]},"48c3f3fa-68":{"id":"@schemx/core/adapter","moduleParts":{},"imported":[],"importedBy":[{"uid":"48c3f3fa-12"},{"uid":"48c3f3fa-8"}],"isExternal":true},"48c3f3fa-69":{"id":"/src/bridge/index.ts","moduleParts":{},"imported":[{"uid":"48c3f3fa-8"},{"uid":"48c3f3fa-4"}],"importedBy":[{"uid":"48c3f3fa-62"},{"uid":"48c3f3fa-16"},{"uid":"48c3f3fa-18"},{"uid":"48c3f3fa-20"},{"uid":"48c3f3fa-24"},{"uid":"48c3f3fa-34"},{"uid":"48c3f3fa-36"}]},"48c3f3fa-70":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"48c3f3fa-46"},{"uid":"48c3f3fa-42"},{"uid":"48c3f3fa-16"},{"uid":"48c3f3fa-18"},{"uid":"48c3f3fa-20"},{"uid":"48c3f3fa-22"},{"uid":"48c3f3fa-24"},{"uid":"48c3f3fa-26"},{"uid":"48c3f3fa-28"},{"uid":"48c3f3fa-32"},{"uid":"48c3f3fa-34"},{"uid":"48c3f3fa-36"},{"uid":"48c3f3fa-58"},{"uid":"48c3f3fa-44"},{"uid":"48c3f3fa-10"},{"uid":"48c3f3fa-54"},{"uid":"48c3f3fa-2"},{"uid":"48c3f3fa-48"}],"isExternal":true},"48c3f3fa-71":{"id":"classnames","moduleParts":{},"imported":[],"importedBy":[{"uid":"48c3f3fa-46"},{"uid":"48c3f3fa-42"}],"isExternal":true},"48c3f3fa-72":{"id":"/src/utils/index.ts","moduleParts":{},"imported":[{"uid":"48c3f3fa-77"},{"uid":"48c3f3fa-38"},{"uid":"48c3f3fa-40"},{"uid":"48c3f3fa-78"}],"importedBy":[{"uid":"48c3f3fa-46"},{"uid":"48c3f3fa-44"}]},"48c3f3fa-73":{"id":"/src/types/dictionary.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"48c3f3fa-65"}]},"48c3f3fa-74":{"id":"/src/types/form.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"48c3f3fa-65"}]},"48c3f3fa-75":{"id":"/src/types/field.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"48c3f3fa-65"}]},"48c3f3fa-76":{"id":"/src/form.vue","moduleParts":{},"imported":[{"uid":"48c3f3fa-54"}],"importedBy":[{"uid":"48c3f3fa-67"}]},"48c3f3fa-77":{"id":"/src/utils/dynamic.ts","moduleParts":{},"imported":[{"uid":"48c3f3fa-79"}],"importedBy":[{"uid":"48c3f3fa-72"}]},"48c3f3fa-78":{"id":"/src/utils/diff.ts","moduleParts":{},"imported":[{"uid":"48c3f3fa-80"}],"importedBy":[{"uid":"48c3f3fa-72"}]},"48c3f3fa-79":{"id":"es-toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"48c3f3fa-77"},{"uid":"48c3f3fa-54"}],"isExternal":true},"48c3f3fa-80":{"id":"es-toolkit/compat","moduleParts":{},"imported":[],"importedBy":[{"uid":"48c3f3fa-78"}],"isExternal":true},"48c3f3fa-81":{"id":"/src/components/Button/index.ts","moduleParts":{},"imported":[{"uid":"48c3f3fa-82"}],"importedBy":[{"uid":"48c3f3fa-54"}]},"48c3f3fa-82":{"id":"/src/components/Button/index.vue","moduleParts":{},"imported":[{"uid":"48c3f3fa-48"},{"uid":"48c3f3fa-50"}],"importedBy":[{"uid":"48c3f3fa-81"}]}},"env":{"rollup":"4.14.3"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.cjs","children":[{"name":"src","children":[{"name":"styles/index.css","uid":"b6818bdf-1"},{"name":"bridge","children":[{"uid":"b6818bdf-3","name":"helpers.ts"},{"uid":"b6818bdf-5","name":"fieldBridge.ts"},{"uid":"b6818bdf-7","name":"formInstance.ts"},{"uid":"b6818bdf-9","name":"viewSchemaBridge.ts"},{"uid":"b6818bdf-11","name":"formBridge.ts"}]},{"name":"config","children":[{"uid":"b6818bdf-13","name":"appConfig.ts"},{"uid":"b6818bdf-15","name":"providerConfig.ts"},{"uid":"b6818bdf-21","name":"vueConfig.ts"}]},{"name":"utils","children":[{"uid":"b6818bdf-17","name":"presetRuleProvider.ts"},{"uid":"b6818bdf-19","name":"rendererProvider.ts"},{"uid":"b6818bdf-37","name":"equal.ts"},{"uid":"b6818bdf-45","name":"validation.ts"},{"uid":"b6818bdf-47","name":"slot.ts"},{"uid":"b6818bdf-49","name":"helpers.ts"},{"uid":"b6818bdf-59","name":"colProvider.ts"}]},{"name":"hooks","children":[{"uid":"b6818bdf-23","name":"useForm.ts"},{"uid":"b6818bdf-25","name":"provideFormContext.ts"},{"uid":"b6818bdf-27","name":"useField.ts"},{"uid":"b6818bdf-29","name":"provideFieldContext.ts"},{"uid":"b6818bdf-31","name":"useWatch.ts"},{"uid":"b6818bdf-33","name":"useDictionary.ts"},{"uid":"b6818bdf-35","name":"provideFormConfigContext.ts"},{"uid":"b6818bdf-39","name":"useStableRef.ts"},{"uid":"b6818bdf-41","name":"useViewSchemas.ts"},{"uid":"b6818bdf-43","name":"useFormSelector.ts"}]},{"name":"components","children":[{"name":"Field","children":[{"uid":"b6818bdf-51","name":"slot.tsx"},{"uid":"b6818bdf-53","name":"index.tsx"}]},{"name":"Button","children":[{"uid":"b6818bdf-55","name":"index.vue?vue&type=script&setup=true&lang.ts"},{"uid":"b6818bdf-57","name":"index.vue?vue&type=style&index=0&lang.css"}]},{"name":"Col/index.tsx","uid":"b6818bdf-61"},{"name":"Group","children":[{"uid":"b6818bdf-63","name":"slot.tsx"},{"uid":"b6818bdf-65","name":"index.tsx"}]},{"name":"Dynamic/index.tsx","uid":"b6818bdf-67"},{"name":"SchemaList/index.tsx","uid":"b6818bdf-69"},{"name":"Wrapper","children":[{"uid":"b6818bdf-77","name":"index.vue?vue&type=script&setup=true&lang.ts"},{"uid":"b6818bdf-79","name":"index.vue?vue&type=style&index=0&lang.css"}]},{"name":"ConfigProvider/index.tsx","uid":"b6818bdf-81"}]},{"uid":"b6818bdf-71","name":"form.vue?vue&type=script&setup=true&lang.ts"},{"uid":"b6818bdf-73","name":"form.ts"},{"name":"hocs/withRemoteOptions.ts","uid":"b6818bdf-75"},{"uid":"b6818bdf-83","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"b6818bdf-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"b6818bdf-0"},"b6818bdf-3":{"renderedLength":409,"gzipLength":232,"brotliLength":188,"metaUid":"b6818bdf-2"},"b6818bdf-5":{"renderedLength":1163,"gzipLength":386,"brotliLength":331,"metaUid":"b6818bdf-4"},"b6818bdf-7":{"renderedLength":1626,"gzipLength":371,"brotliLength":307,"metaUid":"b6818bdf-6"},"b6818bdf-9":{"renderedLength":1042,"gzipLength":401,"brotliLength":371,"metaUid":"b6818bdf-8"},"b6818bdf-11":{"renderedLength":4071,"gzipLength":1009,"brotliLength":891,"metaUid":"b6818bdf-10"},"b6818bdf-13":{"renderedLength":1348,"gzipLength":504,"brotliLength":433,"metaUid":"b6818bdf-12"},"b6818bdf-15":{"renderedLength":772,"gzipLength":333,"brotliLength":281,"metaUid":"b6818bdf-14"},"b6818bdf-17":{"renderedLength":59,"gzipLength":64,"brotliLength":50,"metaUid":"b6818bdf-16"},"b6818bdf-19":{"renderedLength":65,"gzipLength":72,"brotliLength":52,"metaUid":"b6818bdf-18"},"b6818bdf-21":{"renderedLength":345,"gzipLength":189,"brotliLength":171,"metaUid":"b6818bdf-20"},"b6818bdf-23":{"renderedLength":820,"gzipLength":340,"brotliLength":310,"metaUid":"b6818bdf-22"},"b6818bdf-25":{"renderedLength":1044,"gzipLength":411,"brotliLength":348,"metaUid":"b6818bdf-24"},"b6818bdf-27":{"renderedLength":961,"gzipLength":333,"brotliLength":297,"metaUid":"b6818bdf-26"},"b6818bdf-29":{"renderedLength":410,"gzipLength":249,"brotliLength":198,"metaUid":"b6818bdf-28"},"b6818bdf-31":{"renderedLength":569,"gzipLength":226,"brotliLength":192,"metaUid":"b6818bdf-30"},"b6818bdf-33":{"renderedLength":4330,"gzipLength":1327,"brotliLength":1159,"metaUid":"b6818bdf-32"},"b6818bdf-35":{"renderedLength":483,"gzipLength":288,"brotliLength":239,"metaUid":"b6818bdf-34"},"b6818bdf-37":{"renderedLength":206,"gzipLength":156,"brotliLength":122,"metaUid":"b6818bdf-36"},"b6818bdf-39":{"renderedLength":240,"gzipLength":168,"brotliLength":143,"metaUid":"b6818bdf-38"},"b6818bdf-41":{"renderedLength":482,"gzipLength":209,"brotliLength":184,"metaUid":"b6818bdf-40"},"b6818bdf-43":{"renderedLength":593,"gzipLength":308,"brotliLength":288,"metaUid":"b6818bdf-42"},"b6818bdf-45":{"renderedLength":788,"gzipLength":325,"brotliLength":267,"metaUid":"b6818bdf-44"},"b6818bdf-47":{"renderedLength":1278,"gzipLength":491,"brotliLength":404,"metaUid":"b6818bdf-46"},"b6818bdf-49":{"renderedLength":1283,"gzipLength":490,"brotliLength":419,"metaUid":"b6818bdf-48"},"b6818bdf-51":{"renderedLength":4105,"gzipLength":1432,"brotliLength":1177,"metaUid":"b6818bdf-50"},"b6818bdf-53":{"renderedLength":5139,"gzipLength":1957,"brotliLength":1603,"metaUid":"b6818bdf-52"},"b6818bdf-55":{"renderedLength":2486,"gzipLength":914,"brotliLength":795,"metaUid":"b6818bdf-54"},"b6818bdf-57":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"b6818bdf-56"},"b6818bdf-59":{"renderedLength":128,"gzipLength":105,"brotliLength":91,"metaUid":"b6818bdf-58"},"b6818bdf-61":{"renderedLength":1428,"gzipLength":711,"brotliLength":580,"metaUid":"b6818bdf-60"},"b6818bdf-63":{"renderedLength":1535,"gzipLength":683,"brotliLength":555,"metaUid":"b6818bdf-62"},"b6818bdf-65":{"renderedLength":5048,"gzipLength":1600,"brotliLength":1377,"metaUid":"b6818bdf-64"},"b6818bdf-67":{"renderedLength":2267,"gzipLength":1046,"brotliLength":849,"metaUid":"b6818bdf-66"},"b6818bdf-69":{"renderedLength":2806,"gzipLength":1031,"brotliLength":838,"metaUid":"b6818bdf-68"},"b6818bdf-71":{"renderedLength":13897,"gzipLength":3476,"brotliLength":2981,"metaUid":"b6818bdf-70"},"b6818bdf-73":{"renderedLength":379,"gzipLength":270,"brotliLength":207,"metaUid":"b6818bdf-72"},"b6818bdf-75":{"renderedLength":1052,"gzipLength":455,"brotliLength":378,"metaUid":"b6818bdf-74"},"b6818bdf-77":{"renderedLength":1664,"gzipLength":634,"brotliLength":574,"metaUid":"b6818bdf-76"},"b6818bdf-79":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"b6818bdf-78"},"b6818bdf-81":{"renderedLength":1417,"gzipLength":559,"brotliLength":443,"metaUid":"b6818bdf-80"},"b6818bdf-83":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"b6818bdf-82"}},"nodeMetas":{"b6818bdf-0":{"id":"/src/styles/index.css","moduleParts":{"index.cjs":"b6818bdf-1"},"imported":[],"importedBy":[{"uid":"b6818bdf-82"},{"uid":"b6818bdf-70"}]},"b6818bdf-2":{"id":"/src/bridge/helpers.ts","moduleParts":{"index.cjs":"b6818bdf-3"},"imported":[{"uid":"b6818bdf-92"}],"importedBy":[{"uid":"b6818bdf-10"},{"uid":"b6818bdf-4"}]},"b6818bdf-4":{"id":"/src/bridge/fieldBridge.ts","moduleParts":{"index.cjs":"b6818bdf-5"},"imported":[{"uid":"b6818bdf-2"}],"importedBy":[{"uid":"b6818bdf-100"},{"uid":"b6818bdf-10"}]},"b6818bdf-6":{"id":"/src/bridge/formInstance.ts","moduleParts":{"index.cjs":"b6818bdf-7"},"imported":[],"importedBy":[{"uid":"b6818bdf-10"}]},"b6818bdf-8":{"id":"/src/bridge/viewSchemaBridge.ts","moduleParts":{"index.cjs":"b6818bdf-9"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"}],"importedBy":[{"uid":"b6818bdf-10"}]},"b6818bdf-10":{"id":"/src/bridge/formBridge.ts","moduleParts":{"index.cjs":"b6818bdf-11"},"imported":[{"uid":"b6818bdf-91"},{"uid":"b6818bdf-4"},{"uid":"b6818bdf-6"},{"uid":"b6818bdf-2"},{"uid":"b6818bdf-8"}],"importedBy":[{"uid":"b6818bdf-100"}]},"b6818bdf-12":{"id":"/src/config/appConfig.ts","moduleParts":{"index.cjs":"b6818bdf-13"},"imported":[{"uid":"b6818bdf-92"}],"importedBy":[{"uid":"b6818bdf-89"},{"uid":"b6818bdf-20"}]},"b6818bdf-14":{"id":"/src/config/providerConfig.ts","moduleParts":{"index.cjs":"b6818bdf-15"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"}],"importedBy":[{"uid":"b6818bdf-89"},{"uid":"b6818bdf-20"}]},"b6818bdf-16":{"id":"/src/utils/presetRuleProvider.ts","moduleParts":{"index.cjs":"b6818bdf-17"},"imported":[{"uid":"b6818bdf-87"}],"importedBy":[{"uid":"b6818bdf-82"},{"uid":"b6818bdf-20"}]},"b6818bdf-18":{"id":"/src/utils/rendererProvider.ts","moduleParts":{"index.cjs":"b6818bdf-19"},"imported":[{"uid":"b6818bdf-91"}],"importedBy":[{"uid":"b6818bdf-82"},{"uid":"b6818bdf-20"}]},"b6818bdf-20":{"id":"/src/config/vueConfig.ts","moduleParts":{"index.cjs":"b6818bdf-21"},"imported":[{"uid":"b6818bdf-87"},{"uid":"b6818bdf-16"},{"uid":"b6818bdf-18"},{"uid":"b6818bdf-12"},{"uid":"b6818bdf-14"}],"importedBy":[{"uid":"b6818bdf-89"}]},"b6818bdf-22":{"id":"/src/hooks/useForm.ts","moduleParts":{"index.cjs":"b6818bdf-23"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"},{"uid":"b6818bdf-100"},{"uid":"b6818bdf-89"}],"importedBy":[{"uid":"b6818bdf-84"}]},"b6818bdf-24":{"id":"/src/hooks/provideFormContext.ts","moduleParts":{"index.cjs":"b6818bdf-25"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-100"}],"importedBy":[{"uid":"b6818bdf-84"},{"uid":"b6818bdf-26"},{"uid":"b6818bdf-30"},{"uid":"b6818bdf-32"}]},"b6818bdf-26":{"id":"/src/hooks/useField.ts","moduleParts":{"index.cjs":"b6818bdf-27"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"},{"uid":"b6818bdf-24"}],"importedBy":[{"uid":"b6818bdf-84"}]},"b6818bdf-28":{"id":"/src/hooks/provideFieldContext.ts","moduleParts":{"index.cjs":"b6818bdf-29"},"imported":[{"uid":"b6818bdf-92"}],"importedBy":[{"uid":"b6818bdf-84"},{"uid":"b6818bdf-74"}]},"b6818bdf-30":{"id":"/src/hooks/useWatch.ts","moduleParts":{"index.cjs":"b6818bdf-31"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"},{"uid":"b6818bdf-24"}],"importedBy":[{"uid":"b6818bdf-84"},{"uid":"b6818bdf-32"}]},"b6818bdf-32":{"id":"/src/hooks/useDictionary.ts","moduleParts":{"index.cjs":"b6818bdf-33"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-24"},{"uid":"b6818bdf-30"}],"importedBy":[{"uid":"b6818bdf-84"},{"uid":"b6818bdf-74"}]},"b6818bdf-34":{"id":"/src/hooks/provideFormConfigContext.ts","moduleParts":{"index.cjs":"b6818bdf-35"},"imported":[{"uid":"b6818bdf-92"}],"importedBy":[{"uid":"b6818bdf-84"}]},"b6818bdf-36":{"id":"/src/utils/equal.ts","moduleParts":{"index.cjs":"b6818bdf-37"},"imported":[],"importedBy":[{"uid":"b6818bdf-38"}]},"b6818bdf-38":{"id":"/src/hooks/useStableRef.ts","moduleParts":{"index.cjs":"b6818bdf-39"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-36"}],"importedBy":[{"uid":"b6818bdf-84"}]},"b6818bdf-40":{"id":"/src/hooks/useViewSchemas.ts","moduleParts":{"index.cjs":"b6818bdf-41"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-100"}],"importedBy":[{"uid":"b6818bdf-84"},{"uid":"b6818bdf-52"}]},"b6818bdf-42":{"id":"/src/hooks/useFormSelector.ts","moduleParts":{"index.cjs":"b6818bdf-43"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-100"}],"importedBy":[{"uid":"b6818bdf-84"}]},"b6818bdf-44":{"id":"/src/utils/validation.ts","moduleParts":{"index.cjs":"b6818bdf-45"},"imported":[],"importedBy":[{"uid":"b6818bdf-94"}]},"b6818bdf-46":{"id":"/src/utils/slot.ts","moduleParts":{"index.cjs":"b6818bdf-47"},"imported":[],"importedBy":[{"uid":"b6818bdf-94"}]},"b6818bdf-48":{"id":"/src/utils/helpers.ts","moduleParts":{"index.cjs":"b6818bdf-49"},"imported":[{"uid":"b6818bdf-87"}],"importedBy":[{"uid":"b6818bdf-94"},{"uid":"b6818bdf-70"}]},"b6818bdf-50":{"id":"/src/components/Field/slot.tsx","moduleParts":{"index.cjs":"b6818bdf-51"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-94"}],"importedBy":[{"uid":"b6818bdf-52"}]},"b6818bdf-52":{"id":"/src/components/Field/index.tsx","moduleParts":{"index.cjs":"b6818bdf-53"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"},{"uid":"b6818bdf-93"},{"uid":"b6818bdf-84"},{"uid":"b6818bdf-40"},{"uid":"b6818bdf-94"},{"uid":"b6818bdf-50"}],"importedBy":[{"uid":"b6818bdf-82"},{"uid":"b6818bdf-72"},{"uid":"b6818bdf-64"},{"uid":"b6818bdf-68"},{"uid":"b6818bdf-66"}]},"b6818bdf-54":{"id":"/src/components/Button/index.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"b6818bdf-55"},"imported":[{"uid":"b6818bdf-92"}],"importedBy":[{"uid":"b6818bdf-106"}]},"b6818bdf-56":{"id":"/src/components/Button/index.vue?vue&type=style&index=0&lang.css","moduleParts":{"index.cjs":"b6818bdf-57"},"imported":[],"importedBy":[{"uid":"b6818bdf-106"}]},"b6818bdf-58":{"id":"/src/utils/colProvider.ts","moduleParts":{"index.cjs":"b6818bdf-59"},"imported":[{"uid":"b6818bdf-92"}],"importedBy":[{"uid":"b6818bdf-82"},{"uid":"b6818bdf-60"},{"uid":"b6818bdf-70"}]},"b6818bdf-60":{"id":"/src/components/Col/index.tsx","moduleParts":{"index.cjs":"b6818bdf-61"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-58"}],"importedBy":[{"uid":"b6818bdf-82"},{"uid":"b6818bdf-68"}]},"b6818bdf-62":{"id":"/src/components/Group/slot.tsx","moduleParts":{"index.cjs":"b6818bdf-63"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-93"},{"uid":"b6818bdf-94"}],"importedBy":[{"uid":"b6818bdf-64"}]},"b6818bdf-64":{"id":"/src/components/Group/index.tsx","moduleParts":{"index.cjs":"b6818bdf-65"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"},{"uid":"b6818bdf-93"},{"uid":"b6818bdf-94"},{"uid":"b6818bdf-52"},{"uid":"b6818bdf-62"}],"importedBy":[{"uid":"b6818bdf-82"},{"uid":"b6818bdf-68"},{"uid":"b6818bdf-66"}]},"b6818bdf-66":{"id":"/src/components/Dynamic/index.tsx","moduleParts":{"index.cjs":"b6818bdf-67"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"},{"uid":"b6818bdf-94"},{"uid":"b6818bdf-52"},{"uid":"b6818bdf-64"}],"importedBy":[{"uid":"b6818bdf-68"}]},"b6818bdf-68":{"id":"/src/components/SchemaList/index.tsx","moduleParts":{"index.cjs":"b6818bdf-69"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"},{"uid":"b6818bdf-94"},{"uid":"b6818bdf-60"},{"uid":"b6818bdf-66"},{"uid":"b6818bdf-52"},{"uid":"b6818bdf-64"}],"importedBy":[{"uid":"b6818bdf-70"}]},"b6818bdf-70":{"id":"/src/form.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"b6818bdf-71"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-87"},{"uid":"b6818bdf-103"},{"uid":"b6818bdf-105"},{"uid":"b6818bdf-68"},{"uid":"b6818bdf-89"},{"uid":"b6818bdf-84"},{"uid":"b6818bdf-58"},{"uid":"b6818bdf-48"},{"uid":"b6818bdf-0"}],"importedBy":[{"uid":"b6818bdf-99"}]},"b6818bdf-72":{"id":"/src/form.ts","moduleParts":{"index.cjs":"b6818bdf-73"},"imported":[{"uid":"b6818bdf-52"},{"uid":"b6818bdf-89"},{"uid":"b6818bdf-90"}],"importedBy":[{"uid":"b6818bdf-82"}]},"b6818bdf-74":{"id":"/src/hocs/withRemoteOptions.ts","moduleParts":{"index.cjs":"b6818bdf-75"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-28"},{"uid":"b6818bdf-32"}],"importedBy":[{"uid":"b6818bdf-85"}]},"b6818bdf-76":{"id":"/src/components/Wrapper/index.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"b6818bdf-77"},"imported":[{"uid":"b6818bdf-92"}],"importedBy":[{"uid":"b6818bdf-86"}]},"b6818bdf-78":{"id":"/src/components/Wrapper/index.vue?vue&type=style&index=0&lang.css","moduleParts":{"index.cjs":"b6818bdf-79"},"imported":[],"importedBy":[{"uid":"b6818bdf-86"}]},"b6818bdf-80":{"id":"/src/components/ConfigProvider/index.tsx","moduleParts":{"index.cjs":"b6818bdf-81"},"imported":[{"uid":"b6818bdf-92"},{"uid":"b6818bdf-89"}],"importedBy":[{"uid":"b6818bdf-82"}]},"b6818bdf-82":{"id":"/src/index.ts","moduleParts":{"index.cjs":"b6818bdf-83"},"imported":[{"uid":"b6818bdf-0"},{"uid":"b6818bdf-72"},{"uid":"b6818bdf-18"},{"uid":"b6818bdf-58"},{"uid":"b6818bdf-16"},{"uid":"b6818bdf-84"},{"uid":"b6818bdf-85"},{"uid":"b6818bdf-52"},{"uid":"b6818bdf-64"},{"uid":"b6818bdf-60"},{"uid":"b6818bdf-86"},{"uid":"b6818bdf-80"},{"uid":"b6818bdf-87"},{"uid":"b6818bdf-88"}],"importedBy":[],"isEntry":true},"b6818bdf-84":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"b6818bdf-22"},{"uid":"b6818bdf-24"},{"uid":"b6818bdf-26"},{"uid":"b6818bdf-28"},{"uid":"b6818bdf-30"},{"uid":"b6818bdf-32"},{"uid":"b6818bdf-34"},{"uid":"b6818bdf-38"},{"uid":"b6818bdf-40"},{"uid":"b6818bdf-42"}],"importedBy":[{"uid":"b6818bdf-82"},{"uid":"b6818bdf-52"},{"uid":"b6818bdf-70"}]},"b6818bdf-85":{"id":"/src/hocs/index.ts","moduleParts":{},"imported":[{"uid":"b6818bdf-74"}],"importedBy":[{"uid":"b6818bdf-82"}]},"b6818bdf-86":{"id":"/src/components/Wrapper/index.vue","moduleParts":{},"imported":[{"uid":"b6818bdf-76"},{"uid":"b6818bdf-78"}],"importedBy":[{"uid":"b6818bdf-82"}]},"b6818bdf-87":{"id":"@schemx/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-82"},{"uid":"b6818bdf-16"},{"uid":"b6818bdf-52"},{"uid":"b6818bdf-64"},{"uid":"b6818bdf-22"},{"uid":"b6818bdf-26"},{"uid":"b6818bdf-30"},{"uid":"b6818bdf-14"},{"uid":"b6818bdf-20"},{"uid":"b6818bdf-48"},{"uid":"b6818bdf-70"},{"uid":"b6818bdf-68"},{"uid":"b6818bdf-8"},{"uid":"b6818bdf-66"}],"isExternal":true},"b6818bdf-88":{"id":"/src/types/index.ts","moduleParts":{},"imported":[{"uid":"b6818bdf-95"},{"uid":"b6818bdf-96"},{"uid":"b6818bdf-97"},{"uid":"b6818bdf-98"}],"importedBy":[{"uid":"b6818bdf-82"}]},"b6818bdf-89":{"id":"/src/config/index.ts","moduleParts":{},"imported":[{"uid":"b6818bdf-12"},{"uid":"b6818bdf-14"},{"uid":"b6818bdf-20"}],"importedBy":[{"uid":"b6818bdf-72"},{"uid":"b6818bdf-80"},{"uid":"b6818bdf-22"},{"uid":"b6818bdf-70"}]},"b6818bdf-90":{"id":"/src/formRuntime.js","moduleParts":{},"imported":[{"uid":"b6818bdf-99"}],"importedBy":[{"uid":"b6818bdf-72"}]},"b6818bdf-91":{"id":"@schemx/core/adapter","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-18"},{"uid":"b6818bdf-10"}],"isExternal":true},"b6818bdf-92":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-58"},{"uid":"b6818bdf-52"},{"uid":"b6818bdf-64"},{"uid":"b6818bdf-60"},{"uid":"b6818bdf-80"},{"uid":"b6818bdf-22"},{"uid":"b6818bdf-24"},{"uid":"b6818bdf-26"},{"uid":"b6818bdf-28"},{"uid":"b6818bdf-30"},{"uid":"b6818bdf-32"},{"uid":"b6818bdf-34"},{"uid":"b6818bdf-38"},{"uid":"b6818bdf-40"},{"uid":"b6818bdf-42"},{"uid":"b6818bdf-74"},{"uid":"b6818bdf-50"},{"uid":"b6818bdf-62"},{"uid":"b6818bdf-76"},{"uid":"b6818bdf-12"},{"uid":"b6818bdf-14"},{"uid":"b6818bdf-70"},{"uid":"b6818bdf-68"},{"uid":"b6818bdf-2"},{"uid":"b6818bdf-8"},{"uid":"b6818bdf-66"},{"uid":"b6818bdf-54"}],"isExternal":true},"b6818bdf-93":{"id":"classnames","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-52"},{"uid":"b6818bdf-64"},{"uid":"b6818bdf-62"}],"isExternal":true},"b6818bdf-94":{"id":"/src/utils/index.ts","moduleParts":{},"imported":[{"uid":"b6818bdf-101"},{"uid":"b6818bdf-44"},{"uid":"b6818bdf-46"},{"uid":"b6818bdf-48"},{"uid":"b6818bdf-102"}],"importedBy":[{"uid":"b6818bdf-52"},{"uid":"b6818bdf-64"},{"uid":"b6818bdf-50"},{"uid":"b6818bdf-62"},{"uid":"b6818bdf-68"},{"uid":"b6818bdf-66"}]},"b6818bdf-95":{"id":"/src/types/dictionary.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-88"}]},"b6818bdf-96":{"id":"/src/types/form.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-88"}]},"b6818bdf-97":{"id":"/src/types/field.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-88"}]},"b6818bdf-98":{"id":"/src/types/layout.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-88"}]},"b6818bdf-99":{"id":"/src/form.vue","moduleParts":{},"imported":[{"uid":"b6818bdf-70"}],"importedBy":[{"uid":"b6818bdf-90"}]},"b6818bdf-100":{"id":"/src/bridge/index.ts","moduleParts":{},"imported":[{"uid":"b6818bdf-10"},{"uid":"b6818bdf-4"}],"importedBy":[{"uid":"b6818bdf-22"},{"uid":"b6818bdf-24"},{"uid":"b6818bdf-40"},{"uid":"b6818bdf-42"}]},"b6818bdf-101":{"id":"/src/utils/dynamic.ts","moduleParts":{},"imported":[{"uid":"b6818bdf-103"}],"importedBy":[{"uid":"b6818bdf-94"}]},"b6818bdf-102":{"id":"/src/utils/diff.ts","moduleParts":{},"imported":[{"uid":"b6818bdf-104"}],"importedBy":[{"uid":"b6818bdf-94"}]},"b6818bdf-103":{"id":"es-toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-101"},{"uid":"b6818bdf-70"}],"isExternal":true},"b6818bdf-104":{"id":"es-toolkit/compat","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6818bdf-102"}],"isExternal":true},"b6818bdf-105":{"id":"/src/components/Button/index.ts","moduleParts":{},"imported":[{"uid":"b6818bdf-106"}],"importedBy":[{"uid":"b6818bdf-70"}]},"b6818bdf-106":{"id":"/src/components/Button/index.vue","moduleParts":{},"imported":[{"uid":"b6818bdf-54"},{"uid":"b6818bdf-56"}],"importedBy":[{"uid":"b6818bdf-105"}]}},"env":{"rollup":"4.14.3"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VueFieldState, VueFormResources } from './types';
|
|
2
2
|
import { NamePath, Values } from '@schemx/core';
|
|
3
3
|
/**
|
|
4
|
-
* 获取一个字段的共享 Vue
|
|
4
|
+
* 获取一个字段的共享 Vue 状态投影。
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @typeParam TValues - Form 的值类型。
|
|
10
|
-
* @typeParam TName - 字段路径类型。
|
|
11
|
-
* @param bridge - 所属 Form Bridge。
|
|
12
|
-
* @param name - 字段路径。
|
|
13
|
-
* @returns 对应字段的共享 Vue Bridge。
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const bridge = getVueFormBridge(form)
|
|
18
|
-
* const field = getVueFieldBridge(bridge, "email")
|
|
19
|
-
* watchEffect(() => console.log(field.value.value))
|
|
20
|
-
* ```
|
|
6
|
+
* FormStateAdapter 按规范化路径缓存 Source;Source 身份作为当前资源中的
|
|
7
|
+
* 稳定 key,确保同一字段不会重复创建订阅。
|
|
21
8
|
*/
|
|
22
|
-
export declare function
|
|
9
|
+
export declare function getVueFieldState<TValues extends Values = Values, TName extends NamePath<TValues> = NamePath<TValues>>(resources: VueFormResources<TValues>, name: TName): VueFieldState<TValues, TName>;
|
|
23
10
|
//# sourceMappingURL=fieldBridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/fieldBridge.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"fieldBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/fieldBridge.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC9D,OAAO,KAAK,EAAc,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAEhE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,KAAK,SAAS,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,EACnD,SAAS,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAqDlF"}
|
|
@@ -1,81 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VueFormRuntime, VueSchemxInstance } from './types';
|
|
2
2
|
import { SchemxInstance, Values } from '@schemx/core';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 获取并保留指定 Form 的共享 Runtime。
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const coreForm = getCoreForm(form)
|
|
12
|
-
* const snapshot = coreForm.getFieldsSnapshot()
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare function getCoreForm<TValues extends Values = Values>(form: SchemxInstance<TValues> | VueSchemxInstance<TValues>): SchemxInstance<TValues>;
|
|
16
|
-
/**
|
|
17
|
-
* 获取指定 Form 的共享 Vue Bridge。
|
|
18
|
-
*
|
|
19
|
-
* @param form - Core Form 或 Vue Facade。
|
|
20
|
-
* @returns 对应的共享 Bridge。
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* 首次调用会创建 SnapshotSource 订阅;调用方应使用
|
|
24
|
-
* `retainVueFormBridge()` 持有 Bridge,并在 owner 销毁时释放。
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const bridge = getVueFormBridge(form)
|
|
29
|
-
* const release = retainVueFormBridge(bridge)
|
|
30
|
-
* onScopeDispose(release)
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare function getVueFormBridge<TValues extends Values = Values>(form: SchemxInstance<TValues> | VueSchemxInstance<TValues>): VueFormBridge<TValues>;
|
|
34
|
-
/**
|
|
35
|
-
* 获取指定 Form 的唯一 Vue Facade。
|
|
36
|
-
*
|
|
37
|
-
* @param form - Core Form 或已有 Vue Facade。
|
|
38
|
-
* @returns 可被 Vue effect 追踪的 Facade。
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const reactiveForm = getVueFormFacade(form)
|
|
43
|
-
* watchEffect(() => {
|
|
44
|
-
* console.log(reactiveForm.getFieldsValue())
|
|
45
|
-
* })
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
export declare function getVueFormFacade<TValues extends Values = Values>(form: SchemxInstance<TValues> | VueSchemxInstance<TValues>): VueSchemxInstance<TValues>;
|
|
49
|
-
/**
|
|
50
|
-
* 为一个 Vue owner 保留 Bridge,并返回对应的幂等释放函数。
|
|
51
|
-
*
|
|
52
|
-
* @param bridge - 要保留的共享 Bridge。
|
|
53
|
-
* @returns 释放当前 owner 的函数。
|
|
54
|
-
*
|
|
55
|
-
* @remarks
|
|
56
|
-
* 返回的释放函数可安全重复调用;最后一个 owner 释放后,Bridge 会自动销毁。
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const bridge = getVueFormBridge(form)
|
|
61
|
-
* const release = retainVueFormBridge(bridge)
|
|
62
|
-
* onScopeDispose(release)
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function retainVueFormBridge<TValues extends Values>(bridge: VueFormBridge<TValues>): () => void;
|
|
66
|
-
/**
|
|
67
|
-
* 销毁共享 Bridge、全部字段订阅与 Core 状态适配器。
|
|
68
|
-
*
|
|
69
|
-
* @param bridge - 要销毁的共享 Form Bridge。
|
|
70
|
-
*
|
|
71
|
-
* @remarks
|
|
72
|
-
* 销毁后 Bridge、字段 Ref 投影和状态适配器均不可继续使用;通常由
|
|
73
|
-
* `retainVueFormBridge()` 返回的最后一个释放函数自动触发。
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* disposeVueFormBridge(bridge)
|
|
78
|
-
* ```
|
|
6
|
+
* 返回的 release 函数必须绑定到当前 owner 的 Vue scope;最后一个 owner
|
|
7
|
+
* 释放后只销毁响应式资源,Runtime 和 Instance 身份保持稳定。
|
|
79
8
|
*/
|
|
80
|
-
export declare function
|
|
9
|
+
export declare function acquireVueFormRuntime<TValues extends Values = Values>(form: SchemxInstance<TValues> | VueSchemxInstance<TValues>): {
|
|
10
|
+
runtime: VueFormRuntime<TValues>;
|
|
11
|
+
release: () => void;
|
|
12
|
+
};
|
|
81
13
|
//# sourceMappingURL=formBridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/formBridge.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"formBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/formBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH,OAAO,KAAK,EAKV,cAAc,EACd,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAY,cAAc,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAQpE;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,EACnE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,GACzD;IACD,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CASA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VueFieldDependency, VueFormDependency, VueSchemxInstance } from './types';
|
|
2
|
+
import { NamePath, SchemxInstance, Values } from '@schemx/core';
|
|
3
|
+
/** 创建 Instance 所需的 Runtime 追踪能力。 */
|
|
4
|
+
export interface VueFormInstanceDependencies<TValues extends Values> {
|
|
5
|
+
trackField<TName extends NamePath<TValues>>(name: TName, dependency: VueFieldDependency): void;
|
|
6
|
+
trackFieldsValue(names?: NamePath<TValues>[]): void;
|
|
7
|
+
trackForm(dependency: VueFormDependency): void;
|
|
8
|
+
destroy(): void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 为 Core Form 创建保持完整 API 的 Vue Instance。
|
|
12
|
+
*
|
|
13
|
+
* @param form - 要包装的原始 Core Form。
|
|
14
|
+
* @param dependencies - 所属 Runtime 提供的依赖追踪与销毁能力。
|
|
15
|
+
* @returns 可被 Vue effect 追踪的 Instance。
|
|
16
|
+
*/
|
|
17
|
+
export declare function createVueFormInstance<TValues extends Values>(form: SchemxInstance<TValues>, dependencies: VueFormInstanceDependencies<TValues>): VueSchemxInstance<TValues>;
|
|
18
|
+
//# sourceMappingURL=formInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formInstance.d.ts","sourceRoot":"","sources":["../../src/bridge/formInstance.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AACvF,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAEpE,oCAAoC;AACpC,MAAM,WAAW,2BAA2B,CAAC,OAAO,SAAS,MAAM;IACjE,UAAU,CAAC,KAAK,SAAS,QAAQ,CAAC,OAAO,CAAC,EACxC,IAAI,EAAE,KAAK,EACX,UAAU,EAAE,kBAAkB,GAC7B,IAAI,CAAA;IACP,gBAAgB,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAA;IACnD,SAAS,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9C,OAAO,IAAI,IAAI,CAAA;CAChB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,SAAS,MAAM,EAC1D,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,EAC7B,YAAY,EAAE,2BAA2B,CAAC,OAAO,CAAC,GACjD,iBAAiB,CAAC,OAAO,CAAC,CAyF5B"}
|
package/dist/bridge/helpers.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ShallowRef } from 'vue';
|
|
2
|
+
import { SnapshotSource } from '@schemx/core/adapter';
|
|
2
3
|
/**
|
|
3
4
|
* 创建类型为 `ShallowRef` 的 Vue 浅层 Ref。
|
|
4
5
|
*
|
|
5
|
-
* 运行时直接委托 Vue 的 `shallowRef
|
|
6
|
+
* 运行时直接委托 Vue 的 `shallowRef`,类型断言用于保留 Runtime 对快照引用的控制。
|
|
6
7
|
*
|
|
7
8
|
* @typeParam TValue - Ref 中保存的值类型。
|
|
8
9
|
* @param value - 要包装为 shallow Ref 的当前值。
|
|
@@ -15,6 +16,13 @@ import { ShallowRef } from 'vue';
|
|
|
15
16
|
* ```
|
|
16
17
|
*/
|
|
17
18
|
export declare function createVueShallowRef<TValue>(value: TValue): ShallowRef<TValue>;
|
|
19
|
+
/**
|
|
20
|
+
* 将 Core SnapshotSource 绑定为 Vue shallow Ref。
|
|
21
|
+
*
|
|
22
|
+
* SnapshotSource 的生命周期由所属 FormStateAdapter 统一管理;这里仅保留
|
|
23
|
+
* 同步逻辑,避免每个 Form 级来源重复声明一套订阅函数。
|
|
24
|
+
*/
|
|
25
|
+
export declare function bindSnapshotSource<TValue>(source: SnapshotSource<TValue>): ShallowRef<TValue>;
|
|
18
26
|
/**
|
|
19
27
|
* 比较两份错误消息列表,避免无变化时写入 Vue Ref。
|
|
20
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/bridge/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAErC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAE7E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,IAAI,EAAE,SAAS,MAAM,EAAE,GACtB,OAAO,CAKT"}
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/bridge/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAE7E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EACvC,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,GAC7B,UAAU,CAAC,MAAM,CAAC,CAQpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,IAAI,EAAE,SAAS,MAAM,EAAE,GACtB,OAAO,CAKT"}
|
package/dist/bridge/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Vue
|
|
2
|
+
* Vue Runtime 的内部统一入口。
|
|
3
3
|
*
|
|
4
|
-
* 该目录消费 Core 的 `FormStateAdapter
|
|
4
|
+
* 该目录消费 Core 的 `FormStateAdapter`,并将快照投影为 Vue Instance、字段
|
|
5
|
+
* 状态和 ViewSchema 状态。除 `VueSchemxInstance` 外不形成
|
|
6
|
+
* 包根公开 API。
|
|
5
7
|
*
|
|
6
8
|
* @module vue/bridge
|
|
7
9
|
*/
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export type {
|
|
10
|
+
export { acquireVueFormRuntime } from './formBridge';
|
|
11
|
+
export { getVueFieldState } from './fieldBridge';
|
|
12
|
+
export type { VueFieldState, VueFormRuntime, VueSchemxInstance } from './types';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bridge/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bridge/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/bridge/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ShallowRef } from 'vue';
|
|
2
|
-
import { FieldValue, NamePath, SchemxInstance, Values } from '@schemx/core';
|
|
3
|
-
import {
|
|
1
|
+
import { ComputedRef, ShallowRef } from 'vue';
|
|
2
|
+
import { FieldValue, NamePath, SchemxInstance, SchemxViewSchema, Values } from '@schemx/core';
|
|
3
|
+
import { FormStateAdapter } from '@schemx/core/adapter';
|
|
4
4
|
/**
|
|
5
5
|
* 可在 Vue effect 中直接读取 Form 方法的结构兼容实例类型。
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Instance 与 Core Form 不是同一引用,但保留完整的 `SchemxInstance` API。
|
|
8
8
|
*
|
|
9
9
|
* @typeParam TValues - Form 的值类型。
|
|
10
10
|
*/
|
|
@@ -15,95 +15,55 @@ export type VueSchemxInstance<TValues extends Values = Values> = SchemxInstance<
|
|
|
15
15
|
* @typeParam TValues - Form 的值类型。
|
|
16
16
|
*/
|
|
17
17
|
export type PendingFieldsSnapshot<TValues extends Values> = readonly ReturnType<SchemxInstance<TValues>["getPendingFields"]>[number][];
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
* @typeParam TValues - Form 的值类型。
|
|
22
|
-
* @typeParam TName - 字段路径类型。
|
|
23
|
-
*/
|
|
24
|
-
export interface VueFieldBridge<TValues extends Values = Values, TName extends NamePath<TValues> = NamePath<TValues>> {
|
|
25
|
-
/**
|
|
26
|
-
* 对应的 Core 字段快照来源。
|
|
27
|
-
*/
|
|
28
|
-
readonly source: FieldSnapshotSource<TValues, TName>;
|
|
29
|
-
/**
|
|
30
|
-
* 当前字段值。
|
|
31
|
-
*/
|
|
18
|
+
/** Vue 中单个字段状态的 Ref 投影。 */
|
|
19
|
+
export interface VueFieldState<TValues extends Values = Values, TName extends NamePath<TValues> = NamePath<TValues>> {
|
|
32
20
|
readonly value: ShallowRef<FieldValue<TValues, TName> | undefined>;
|
|
33
|
-
/**
|
|
34
|
-
* 当前字段错误消息。
|
|
35
|
-
*/
|
|
36
21
|
readonly errors: ShallowRef<readonly string[]>;
|
|
37
|
-
/**
|
|
38
|
-
* 当前字段 touched 状态。
|
|
39
|
-
*/
|
|
40
22
|
readonly touched: ShallowRef<boolean>;
|
|
41
|
-
/**
|
|
42
|
-
* 当前字段 pending 状态。
|
|
43
|
-
*/
|
|
44
23
|
readonly pending: ShallowRef<boolean>;
|
|
45
24
|
}
|
|
25
|
+
/** Vue 中 ViewSchema 列表及其索引的共享投影。 */
|
|
26
|
+
export interface VueViewSchemaState<TValues extends Values = Values> {
|
|
27
|
+
readonly schemasByKey: ComputedRef<ReadonlyMap<string, SchemxViewSchema<TValues>>>;
|
|
28
|
+
readonly viewSchemas: ShallowRef<readonly SchemxViewSchema<TValues>[]>;
|
|
29
|
+
dispose(): void;
|
|
30
|
+
}
|
|
46
31
|
/**
|
|
47
|
-
*
|
|
32
|
+
* 一个 Runtime 当前激活的响应式资源。
|
|
48
33
|
*
|
|
49
|
-
*
|
|
34
|
+
* 资源在首个 owner acquire 时创建,在最后一个 owner release 时释放;
|
|
35
|
+
* Runtime 和 Instance 外壳本身保持稳定,以保证 Instance 身份不变。
|
|
50
36
|
*/
|
|
51
|
-
export interface
|
|
52
|
-
/**
|
|
53
|
-
* 原始 Core Form。
|
|
54
|
-
*/
|
|
55
|
-
readonly form: SchemxInstance<TValues>;
|
|
56
|
-
/**
|
|
57
|
-
* 该 Form 的 Core 状态适配器。
|
|
58
|
-
*/
|
|
37
|
+
export interface VueFormResources<TValues extends Values> {
|
|
59
38
|
readonly stateAdapter: FormStateAdapter<TValues>;
|
|
60
|
-
/**
|
|
61
|
-
* 全表值 Ref。
|
|
62
|
-
*/
|
|
63
39
|
readonly values: ShallowRef<TValues>;
|
|
64
|
-
/**
|
|
65
|
-
* 已 touched 字段 Ref。
|
|
66
|
-
*/
|
|
67
40
|
readonly touchedFields: ShallowRef<readonly NamePath<TValues>[]>;
|
|
68
|
-
/**
|
|
69
|
-
* pending 字段 Ref。
|
|
70
|
-
*/
|
|
71
41
|
readonly pendingFields: ShallowRef<PendingFieldsSnapshot<TValues>>;
|
|
72
|
-
/**
|
|
73
|
-
* 当前表单提交状态的 Vue Ref 投影。
|
|
74
|
-
*/
|
|
75
42
|
readonly loading: ShallowRef<boolean>;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
readonly fieldBridges: Map<object, ManagedVueFieldBridge<TValues>>;
|
|
80
|
-
/**
|
|
81
|
-
* 正在使用当前 Bridge 的 Vue owner 数量。
|
|
82
|
-
*/
|
|
83
|
-
refCount: number;
|
|
84
|
-
/**
|
|
85
|
-
* Bridge 是否已被手动或自动释放。
|
|
86
|
-
*/
|
|
87
|
-
destroyed: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* 取消 Form 级状态适配器订阅。
|
|
90
|
-
*/
|
|
91
|
-
readonly unsubscribe: () => void;
|
|
92
|
-
/**
|
|
93
|
-
* 与原始 Core Form 对应的唯一 Vue Facade。
|
|
94
|
-
*/
|
|
95
|
-
readonly facade: VueSchemxInstance<TValues>;
|
|
43
|
+
readonly fieldStates: Map<object, VueFieldState<TValues>>;
|
|
44
|
+
viewSchemaState?: VueViewSchemaState<TValues>;
|
|
45
|
+
dispose(): void;
|
|
96
46
|
}
|
|
47
|
+
/** Instance 需要追踪的字段级 Vue 依赖。 */
|
|
48
|
+
export type VueFieldDependency = "value" | "errors" | "touched" | "pending";
|
|
49
|
+
/** Instance 需要追踪的 Form 级 Vue 依赖。 */
|
|
50
|
+
export type VueFormDependency = "values" | "touchedFields" | "pendingFields" | "loading";
|
|
97
51
|
/**
|
|
98
|
-
*
|
|
52
|
+
* 每个 Core Form 唯一的 Vue Runtime。
|
|
99
53
|
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
54
|
+
* Runtime 是 bridge 内部唯一的聚合边界;外部 Hook 不再接触 Adapter、Map
|
|
55
|
+
* 或引用计数,只通过下列状态读取和投影方法消费资源。
|
|
102
56
|
*/
|
|
103
|
-
export interface
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
57
|
+
export interface VueFormRuntime<TValues extends Values = Values> {
|
|
58
|
+
readonly core: SchemxInstance<TValues>;
|
|
59
|
+
readonly instance: VueSchemxInstance<TValues>;
|
|
60
|
+
retain(): () => void;
|
|
61
|
+
trackField<TName extends NamePath<TValues>>(name: TName, dependency: VueFieldDependency): void;
|
|
62
|
+
trackFieldsValue(names?: NamePath<TValues>[]): void;
|
|
63
|
+
trackForm(dependency: VueFormDependency): void;
|
|
64
|
+
getValuesRef(): ShallowRef<TValues>;
|
|
65
|
+
getFieldState<TName extends NamePath<TValues>>(name: TName): VueFieldState<TValues, TName>;
|
|
66
|
+
getViewSchemaState(): VueViewSchemaState<TValues>;
|
|
67
|
+
destroy(): void;
|
|
108
68
|
}
|
|
109
69
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/bridge/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/bridge/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAElD,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,MAAM,EACP,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IAAI,cAAc,CAAC,OAAO,CAAC,CAAA;AAExF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,CAAC,OAAO,SAAS,MAAM,IAAI,SAAS,UAAU,CAC7E,cAAc,CAAC,OAAO,CAAC,CAAC,kBAAkB,CAAC,CAC5C,CAAC,MAAM,CAAC,EAAE,CAAA;AAEX,2BAA2B;AAC3B,MAAM,WAAW,aAAa,CAC5B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,KAAK,SAAS,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC;IAEnD,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,SAAS,CAAC,CAAA;IAClE,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,MAAM,EAAE,CAAC,CAAA;IAC9C,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACrC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;CACtC;AAED,oCAAoC;AACpC,MAAM,WAAW,kBAAkB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACjE,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAClF,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,SAAS,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IACtE,OAAO,IAAI,IAAI,CAAA;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAAC,OAAO,SAAS,MAAM;IACtD,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAChD,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACpC,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC,SAAS,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IAChE,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAA;IAClE,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACrC,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,CAAA;IACzD,eAAe,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAA;IAC7C,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,gCAAgC;AAChC,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAA;AAE3E,oCAAoC;AACpC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,eAAe,GAAG,eAAe,GAAG,SAAS,CAAA;AAExF;;;;;GAKG;AACH,MAAM,WAAW,cAAc,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IAC7D,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IACtC,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAA;IAC7C,MAAM,IAAI,MAAM,IAAI,CAAA;IACpB,UAAU,CAAC,KAAK,SAAS,QAAQ,CAAC,OAAO,CAAC,EACxC,IAAI,EAAE,KAAK,EACX,UAAU,EAAE,kBAAkB,GAC7B,IAAI,CAAA;IACP,gBAAgB,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAA;IACnD,SAAS,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9C,YAAY,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;IACnC,aAAa,CAAC,KAAK,SAAS,QAAQ,CAAC,OAAO,CAAC,EAC3C,IAAI,EAAE,KAAK,GACV,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAChC,kBAAkB,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACjD,OAAO,IAAI,IAAI,CAAA;CAChB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VueViewSchemaState } from './types';
|
|
2
|
+
import { SchemxInstance, Values } from '@schemx/core';
|
|
3
|
+
/** 创建一个 Form 的共享 ViewSchema 状态。 */
|
|
4
|
+
export declare function createVueViewSchemaState<TValues extends Values>(form: SchemxInstance<TValues>): VueViewSchemaState<TValues>;
|
|
5
|
+
//# sourceMappingURL=viewSchemaBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewSchemaBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/viewSchemaBridge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,EAAE,MAAM,cAAc,CAAA;AAE5E,mCAAmC;AACnC,wBAAgB,wBAAwB,CAAC,OAAO,SAAS,MAAM,EAC7D,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,GAC5B,kBAAkB,CAAC,OAAO,CAAC,CA6B7B"}
|
|
@@ -15,8 +15,8 @@ type __VLS_Slots = {} & {
|
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
17
|
disabled: boolean;
|
|
18
|
-
size: SchemxButtonSize;
|
|
19
18
|
loading: boolean;
|
|
19
|
+
size: SchemxButtonSize;
|
|
20
20
|
loadingText: string;
|
|
21
21
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.vue"],"names":[],"mappings":"AAuJE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACxB;AAiHH,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;cA5HD,OAAO;
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.vue"],"names":[],"mappings":"AAuJE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACxB;AAiHH,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;cA5HD,OAAO;aAFR,OAAO;UAGV,gBAAgB;iBAFT,MAAM;6EAgItB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,KAAK,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3D;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,KAAK,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3D;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAC7C,oBAAoB,EACpB,UAAU,GAAG,MAAM,CACpB;IACC,YAAY;IACZ,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACrC,0BAA0B;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,sBAAsB;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY;IACZ,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACxB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { SchemxColComponent } from '../../types/layout';
|
|
3
|
+
import { SchemxLayout } from '@schemx/core';
|
|
4
|
+
declare const Col: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
layout: {
|
|
6
|
+
type: PropType<SchemxLayout>;
|
|
7
|
+
required: false;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
component: {
|
|
11
|
+
type: PropType<SchemxColComponent>;
|
|
12
|
+
required: false;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
}>, () => VNodeChild, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
layout: {
|
|
17
|
+
type: PropType<SchemxLayout>;
|
|
18
|
+
required: false;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
component: {
|
|
22
|
+
type: PropType<SchemxColComponent>;
|
|
23
|
+
required: false;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{}>, {
|
|
27
|
+
layout: SchemxLayout;
|
|
28
|
+
component: SchemxColComponent;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export default Col;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Col/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAyC,KAAK,QAAQ,EAAS,MAAM,KAAK,CAAA;AACjF,OAAO,KAAK,EAA0B,UAAU,EAAE,MAAM,KAAK,CAAA;AAI7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,QAAA,MAAM,GAAG;;cAMa,QAAQ,CAAC,YAAY,CAAC;;;;;cAKV,QAAQ,CAAC,kBAAkB,CAAC;;;;UAa/C,UAAU;;cAlBH,QAAQ,CAAC,YAAY,CAAC;;;;;cAKV,QAAQ,CAAC,kBAAkB,CAAC;;;;;;;4EAyC5D,CAAA;AAEF,eAAe,GAAG,CAAA"}
|