@schemx/vue 1.0.0-next.6 → 1.0.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/README.md +161 -141
- package/dist/analyze.html +1 -1
- package/dist/bridge/fieldBridge.d.ts +12 -0
- package/dist/bridge/fieldBridge.d.ts.map +1 -1
- package/dist/bridge/formBridge.d.ts +33 -0
- package/dist/bridge/formBridge.d.ts.map +1 -1
- package/dist/bridge/formInstance.d.ts +20 -1
- package/dist/bridge/formInstance.d.ts.map +1 -1
- package/dist/bridge/helpers.d.ts +8 -0
- package/dist/bridge/helpers.d.ts.map +1 -1
- package/dist/bridge/index.d.ts +1 -1
- package/dist/bridge/index.d.ts.map +1 -1
- package/dist/bridge/types.d.ts +94 -4
- package/dist/bridge/types.d.ts.map +1 -1
- package/dist/bridge/viewSchemaBridge.d.ts +14 -1
- package/dist/bridge/viewSchemaBridge.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.vue.d.ts +12 -0
- package/dist/components/Button/index.vue.d.ts.map +1 -1
- package/dist/components/Button/types.d.ts +15 -5
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Col/index.d.ts +4 -5
- package/dist/components/Col/index.d.ts.map +1 -1
- package/dist/components/ConfigProvider/index.d.ts +8 -2
- package/dist/components/ConfigProvider/index.d.ts.map +1 -1
- package/dist/components/Dynamic/index.d.ts +9 -3
- package/dist/components/Dynamic/index.d.ts.map +1 -1
- package/dist/components/Field/index.d.ts +13 -2
- package/dist/components/Field/index.d.ts.map +1 -1
- package/dist/components/Field/slot.d.ts +32 -9
- package/dist/components/Field/slot.d.ts.map +1 -1
- package/dist/components/Group/index.d.ts +15 -5
- package/dist/components/Group/index.d.ts.map +1 -1
- package/dist/components/Group/slot.d.ts +36 -9
- package/dist/components/Group/slot.d.ts.map +1 -1
- package/dist/components/SchemaList/index.d.ts +15 -5
- package/dist/components/SchemaList/index.d.ts.map +1 -1
- package/dist/components/Wrapper/index.vue.d.ts +6 -0
- package/dist/components/Wrapper/index.vue.d.ts.map +1 -1
- package/dist/config/appConfig.d.ts +10 -0
- package/dist/config/appConfig.d.ts.map +1 -1
- package/dist/config/defaultVueSchemaConfig.d.ts +40 -0
- package/dist/config/defaultVueSchemaConfig.d.ts.map +1 -0
- package/dist/config/index.d.ts +15 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/vueConfig.d.ts +7 -0
- package/dist/config/vueConfig.d.ts.map +1 -1
- package/dist/context/configProviderContext.d.ts +15 -0
- package/dist/context/configProviderContext.d.ts.map +1 -0
- package/dist/context/fieldContext.d.ts +11 -0
- package/dist/context/fieldContext.d.ts.map +1 -0
- package/dist/context/formContext.d.ts +76 -0
- package/dist/context/formContext.d.ts.map +1 -0
- package/dist/context/index.d.ts +18 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/form.d.ts +8 -0
- package/dist/form.d.ts.map +1 -1
- package/dist/hocs/withRemoteOptions.d.ts +6 -2
- package/dist/hocs/withRemoteOptions.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +24 -14
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useDictionary.d.ts +32 -9
- package/dist/hooks/useDictionary.d.ts.map +1 -1
- package/dist/hooks/useField.d.ts +7 -0
- package/dist/hooks/useField.d.ts.map +1 -1
- package/dist/hooks/useForm.d.ts.map +1 -1
- package/dist/hooks/useFormSelector.d.ts.map +1 -1
- package/dist/hooks/useViewSchemas.d.ts +26 -2
- package/dist/hooks/useViewSchemas.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +33 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +224 -164
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/definition.d.ts +153 -0
- package/dist/types/definition.d.ts.map +1 -0
- package/dist/types/dictionary.d.ts +9 -3
- package/dist/types/dictionary.d.ts.map +1 -1
- package/dist/types/field.d.ts +116 -21
- package/dist/types/field.d.ts.map +1 -1
- package/dist/types/form.d.ts +42 -1
- package/dist/types/form.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -15
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/layout.d.ts +31 -6
- package/dist/types/layout.d.ts.map +1 -1
- package/dist/utils/colProvider.d.ts +3 -1
- package/dist/utils/colProvider.d.ts.map +1 -1
- package/dist/utils/diff.d.ts +3 -6
- package/dist/utils/diff.d.ts.map +1 -1
- package/dist/utils/dynamic.d.ts +6 -2
- package/dist/utils/dynamic.d.ts.map +1 -1
- package/dist/utils/equal.d.ts +2 -2
- package/dist/utils/helpers.d.ts +26 -2
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/index.d.ts +15 -4
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/validation.d.ts +6 -2
- package/dist/utils/validation.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/config/providerConfig.d.ts +0 -22
- package/dist/config/providerConfig.d.ts.map +0 -1
- package/dist/hooks/provideFieldContext.d.ts +0 -40
- package/dist/hooks/provideFieldContext.d.ts.map +0 -1
- package/dist/hooks/provideFormConfigContext.d.ts +0 -71
- package/dist/hooks/provideFormConfigContext.d.ts.map +0 -1
- package/dist/hooks/provideFormContext.d.ts +0 -26
- package/dist/hooks/provideFormContext.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":"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}};
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.cjs","children":[{"name":"src","children":[{"name":"styles/index.css","uid":"a7708775-1"},{"name":"bridge","children":[{"uid":"a7708775-3","name":"helpers.ts"},{"uid":"a7708775-5","name":"fieldBridge.ts"},{"uid":"a7708775-7","name":"formInstance.ts"},{"uid":"a7708775-9","name":"viewSchemaBridge.ts"},{"uid":"a7708775-11","name":"formBridge.ts"}]},{"name":"context","children":[{"uid":"a7708775-13","name":"formContext.ts"},{"uid":"a7708775-15","name":"fieldContext.ts"},{"uid":"a7708775-17","name":"configProviderContext.ts"}]},{"name":"config","children":[{"uid":"a7708775-19","name":"appConfig.ts"},{"uid":"a7708775-25","name":"vueConfig.ts"},{"uid":"a7708775-27","name":"defaultVueSchemaConfig.ts"}]},{"name":"utils","children":[{"uid":"a7708775-21","name":"presetRuleProvider.ts"},{"uid":"a7708775-23","name":"rendererProvider.ts"},{"uid":"a7708775-37","name":"equal.ts"},{"uid":"a7708775-45","name":"validation.ts"},{"uid":"a7708775-47","name":"slot.ts"},{"uid":"a7708775-49","name":"helpers.ts"},{"uid":"a7708775-59","name":"colProvider.ts"}]},{"name":"hooks","children":[{"uid":"a7708775-29","name":"useForm.ts"},{"uid":"a7708775-31","name":"useField.ts"},{"uid":"a7708775-33","name":"useWatch.ts"},{"uid":"a7708775-35","name":"useDictionary.ts"},{"uid":"a7708775-39","name":"useStableRef.ts"},{"uid":"a7708775-41","name":"useViewSchemas.ts"},{"uid":"a7708775-43","name":"useFormSelector.ts"}]},{"name":"components","children":[{"name":"Field","children":[{"uid":"a7708775-51","name":"slot.tsx"},{"uid":"a7708775-53","name":"index.tsx"}]},{"name":"Button","children":[{"uid":"a7708775-55","name":"index.vue?vue&type=script&setup=true&lang.ts"},{"uid":"a7708775-57","name":"index.vue?vue&type=style&index=0&lang.css"}]},{"name":"Col/index.tsx","uid":"a7708775-61"},{"name":"Group","children":[{"uid":"a7708775-63","name":"slot.tsx"},{"uid":"a7708775-65","name":"index.tsx"}]},{"name":"Dynamic/index.tsx","uid":"a7708775-67"},{"name":"SchemaList/index.tsx","uid":"a7708775-69"},{"name":"Wrapper","children":[{"uid":"a7708775-77","name":"index.vue?vue&type=script&setup=true&lang.ts"},{"uid":"a7708775-79","name":"index.vue?vue&type=style&index=0&lang.css"}]},{"name":"ConfigProvider/index.tsx","uid":"a7708775-81"}]},{"uid":"a7708775-71","name":"form.vue?vue&type=script&setup=true&lang.ts"},{"uid":"a7708775-73","name":"form.ts"},{"name":"hocs/withRemoteOptions.ts","uid":"a7708775-75"},{"uid":"a7708775-83","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"a7708775-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"a7708775-0"},"a7708775-3":{"renderedLength":409,"gzipLength":232,"brotliLength":188,"metaUid":"a7708775-2"},"a7708775-5":{"renderedLength":1163,"gzipLength":386,"brotliLength":331,"metaUid":"a7708775-4"},"a7708775-7":{"renderedLength":1626,"gzipLength":371,"brotliLength":307,"metaUid":"a7708775-6"},"a7708775-9":{"renderedLength":1042,"gzipLength":401,"brotliLength":371,"metaUid":"a7708775-8"},"a7708775-11":{"renderedLength":4200,"gzipLength":1071,"brotliLength":946,"metaUid":"a7708775-10"},"a7708775-13":{"renderedLength":2262,"gzipLength":585,"brotliLength":485,"metaUid":"a7708775-12"},"a7708775-15":{"renderedLength":421,"gzipLength":253,"brotliLength":197,"metaUid":"a7708775-14"},"a7708775-17":{"renderedLength":775,"gzipLength":338,"brotliLength":295,"metaUid":"a7708775-16"},"a7708775-19":{"renderedLength":1348,"gzipLength":504,"brotliLength":433,"metaUid":"a7708775-18"},"a7708775-21":{"renderedLength":59,"gzipLength":64,"brotliLength":50,"metaUid":"a7708775-20"},"a7708775-23":{"renderedLength":65,"gzipLength":72,"brotliLength":52,"metaUid":"a7708775-22"},"a7708775-25":{"renderedLength":346,"gzipLength":193,"brotliLength":168,"metaUid":"a7708775-24"},"a7708775-27":{"renderedLength":636,"gzipLength":299,"brotliLength":227,"metaUid":"a7708775-26"},"a7708775-29":{"renderedLength":755,"gzipLength":322,"brotliLength":300,"metaUid":"a7708775-28"},"a7708775-31":{"renderedLength":965,"gzipLength":336,"brotliLength":296,"metaUid":"a7708775-30"},"a7708775-33":{"renderedLength":573,"gzipLength":228,"brotliLength":190,"metaUid":"a7708775-32"},"a7708775-35":{"renderedLength":4330,"gzipLength":1327,"brotliLength":1159,"metaUid":"a7708775-34"},"a7708775-37":{"renderedLength":206,"gzipLength":156,"brotliLength":122,"metaUid":"a7708775-36"},"a7708775-39":{"renderedLength":240,"gzipLength":168,"brotliLength":143,"metaUid":"a7708775-38"},"a7708775-41":{"renderedLength":320,"gzipLength":174,"brotliLength":145,"metaUid":"a7708775-40"},"a7708775-43":{"renderedLength":468,"gzipLength":261,"brotliLength":230,"metaUid":"a7708775-42"},"a7708775-45":{"renderedLength":788,"gzipLength":325,"brotliLength":267,"metaUid":"a7708775-44"},"a7708775-47":{"renderedLength":1278,"gzipLength":491,"brotliLength":404,"metaUid":"a7708775-46"},"a7708775-49":{"renderedLength":1283,"gzipLength":490,"brotliLength":419,"metaUid":"a7708775-48"},"a7708775-51":{"renderedLength":4882,"gzipLength":1680,"brotliLength":1379,"metaUid":"a7708775-50"},"a7708775-53":{"renderedLength":5623,"gzipLength":2059,"brotliLength":1684,"metaUid":"a7708775-52"},"a7708775-55":{"renderedLength":2486,"gzipLength":914,"brotliLength":795,"metaUid":"a7708775-54"},"a7708775-57":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"a7708775-56"},"a7708775-59":{"renderedLength":128,"gzipLength":105,"brotliLength":91,"metaUid":"a7708775-58"},"a7708775-61":{"renderedLength":1428,"gzipLength":711,"brotliLength":580,"metaUid":"a7708775-60"},"a7708775-63":{"renderedLength":1830,"gzipLength":779,"brotliLength":634,"metaUid":"a7708775-62"},"a7708775-65":{"renderedLength":5343,"gzipLength":1746,"brotliLength":1492,"metaUid":"a7708775-64"},"a7708775-67":{"renderedLength":2668,"gzipLength":1141,"brotliLength":931,"metaUid":"a7708775-66"},"a7708775-69":{"renderedLength":3618,"gzipLength":1285,"brotliLength":1064,"metaUid":"a7708775-68"},"a7708775-71":{"renderedLength":13258,"gzipLength":3408,"brotliLength":2923,"metaUid":"a7708775-70"},"a7708775-73":{"renderedLength":395,"gzipLength":274,"brotliLength":215,"metaUid":"a7708775-72"},"a7708775-75":{"renderedLength":1052,"gzipLength":455,"brotliLength":378,"metaUid":"a7708775-74"},"a7708775-77":{"renderedLength":1664,"gzipLength":634,"brotliLength":574,"metaUid":"a7708775-76"},"a7708775-79":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"a7708775-78"},"a7708775-81":{"renderedLength":1562,"gzipLength":650,"brotliLength":515,"metaUid":"a7708775-80"},"a7708775-83":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"a7708775-82"}},"nodeMetas":{"a7708775-0":{"id":"/src/styles/index.css","moduleParts":{"index.cjs":"a7708775-1"},"imported":[],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-70"}]},"a7708775-2":{"id":"/src/bridge/helpers.ts","moduleParts":{"index.cjs":"a7708775-3"},"imported":[{"uid":"a7708775-93"}],"importedBy":[{"uid":"a7708775-10"},{"uid":"a7708775-4"}]},"a7708775-4":{"id":"/src/bridge/fieldBridge.ts","moduleParts":{"index.cjs":"a7708775-5"},"imported":[{"uid":"a7708775-2"}],"importedBy":[{"uid":"a7708775-102"},{"uid":"a7708775-10"}]},"a7708775-6":{"id":"/src/bridge/formInstance.ts","moduleParts":{"index.cjs":"a7708775-7"},"imported":[],"importedBy":[{"uid":"a7708775-10"}]},"a7708775-8":{"id":"/src/bridge/viewSchemaBridge.ts","moduleParts":{"index.cjs":"a7708775-9"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"}],"importedBy":[{"uid":"a7708775-10"}]},"a7708775-10":{"id":"/src/bridge/formBridge.ts","moduleParts":{"index.cjs":"a7708775-11"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-92"},{"uid":"a7708775-4"},{"uid":"a7708775-6"},{"uid":"a7708775-2"},{"uid":"a7708775-8"}],"importedBy":[{"uid":"a7708775-102"}]},"a7708775-12":{"id":"/src/context/formContext.ts","moduleParts":{"index.cjs":"a7708775-13"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-102"}],"importedBy":[{"uid":"a7708775-85"},{"uid":"a7708775-30"},{"uid":"a7708775-32"},{"uid":"a7708775-34"}]},"a7708775-14":{"id":"/src/context/fieldContext.ts","moduleParts":{"index.cjs":"a7708775-15"},"imported":[{"uid":"a7708775-93"}],"importedBy":[{"uid":"a7708775-85"},{"uid":"a7708775-74"}]},"a7708775-16":{"id":"/src/context/configProviderContext.ts","moduleParts":{"index.cjs":"a7708775-17"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"}],"importedBy":[{"uid":"a7708775-85"},{"uid":"a7708775-24"}]},"a7708775-18":{"id":"/src/config/appConfig.ts","moduleParts":{"index.cjs":"a7708775-19"},"imported":[{"uid":"a7708775-93"}],"importedBy":[{"uid":"a7708775-90"},{"uid":"a7708775-24"}]},"a7708775-20":{"id":"/src/utils/presetRuleProvider.ts","moduleParts":{"index.cjs":"a7708775-21"},"imported":[{"uid":"a7708775-88"}],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-24"}]},"a7708775-22":{"id":"/src/utils/rendererProvider.ts","moduleParts":{"index.cjs":"a7708775-23"},"imported":[{"uid":"a7708775-92"}],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-24"}]},"a7708775-24":{"id":"/src/config/vueConfig.ts","moduleParts":{"index.cjs":"a7708775-25"},"imported":[{"uid":"a7708775-88"},{"uid":"a7708775-16"},{"uid":"a7708775-20"},{"uid":"a7708775-22"},{"uid":"a7708775-18"}],"importedBy":[{"uid":"a7708775-90"}]},"a7708775-26":{"id":"/src/config/defaultVueSchemaConfig.ts","moduleParts":{"index.cjs":"a7708775-27"},"imported":[],"importedBy":[{"uid":"a7708775-90"},{"uid":"a7708775-70"}]},"a7708775-28":{"id":"/src/hooks/useForm.ts","moduleParts":{"index.cjs":"a7708775-29"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"},{"uid":"a7708775-102"},{"uid":"a7708775-90"}],"importedBy":[{"uid":"a7708775-84"}]},"a7708775-30":{"id":"/src/hooks/useField.ts","moduleParts":{"index.cjs":"a7708775-31"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"},{"uid":"a7708775-12"}],"importedBy":[{"uid":"a7708775-84"}]},"a7708775-32":{"id":"/src/hooks/useWatch.ts","moduleParts":{"index.cjs":"a7708775-33"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"},{"uid":"a7708775-12"}],"importedBy":[{"uid":"a7708775-84"},{"uid":"a7708775-34"}]},"a7708775-34":{"id":"/src/hooks/useDictionary.ts","moduleParts":{"index.cjs":"a7708775-35"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-12"},{"uid":"a7708775-32"}],"importedBy":[{"uid":"a7708775-84"},{"uid":"a7708775-74"}]},"a7708775-36":{"id":"/src/utils/equal.ts","moduleParts":{"index.cjs":"a7708775-37"},"imported":[],"importedBy":[{"uid":"a7708775-38"}]},"a7708775-38":{"id":"/src/hooks/useStableRef.ts","moduleParts":{"index.cjs":"a7708775-39"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-36"}],"importedBy":[{"uid":"a7708775-84"}]},"a7708775-40":{"id":"/src/hooks/useViewSchemas.ts","moduleParts":{"index.cjs":"a7708775-41"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-102"}],"importedBy":[{"uid":"a7708775-84"},{"uid":"a7708775-52"}]},"a7708775-42":{"id":"/src/hooks/useFormSelector.ts","moduleParts":{"index.cjs":"a7708775-43"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-102"}],"importedBy":[{"uid":"a7708775-84"}]},"a7708775-44":{"id":"/src/utils/validation.ts","moduleParts":{"index.cjs":"a7708775-45"},"imported":[],"importedBy":[{"uid":"a7708775-95"}]},"a7708775-46":{"id":"/src/utils/slot.ts","moduleParts":{"index.cjs":"a7708775-47"},"imported":[],"importedBy":[{"uid":"a7708775-95"}]},"a7708775-48":{"id":"/src/utils/helpers.ts","moduleParts":{"index.cjs":"a7708775-49"},"imported":[{"uid":"a7708775-88"}],"importedBy":[{"uid":"a7708775-95"},{"uid":"a7708775-70"}]},"a7708775-50":{"id":"/src/components/Field/slot.tsx","moduleParts":{"index.cjs":"a7708775-51"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-95"}],"importedBy":[{"uid":"a7708775-52"}]},"a7708775-52":{"id":"/src/components/Field/index.tsx","moduleParts":{"index.cjs":"a7708775-53"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"},{"uid":"a7708775-94"},{"uid":"a7708775-85"},{"uid":"a7708775-84"},{"uid":"a7708775-40"},{"uid":"a7708775-95"},{"uid":"a7708775-50"}],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-72"},{"uid":"a7708775-64"},{"uid":"a7708775-68"},{"uid":"a7708775-66"}]},"a7708775-54":{"id":"/src/components/Button/index.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"a7708775-55"},"imported":[{"uid":"a7708775-93"}],"importedBy":[{"uid":"a7708775-108"}]},"a7708775-56":{"id":"/src/components/Button/index.vue?vue&type=style&index=0&lang.css","moduleParts":{"index.cjs":"a7708775-57"},"imported":[],"importedBy":[{"uid":"a7708775-108"}]},"a7708775-58":{"id":"/src/utils/colProvider.ts","moduleParts":{"index.cjs":"a7708775-59"},"imported":[{"uid":"a7708775-93"}],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-60"},{"uid":"a7708775-70"}]},"a7708775-60":{"id":"/src/components/Col/index.tsx","moduleParts":{"index.cjs":"a7708775-61"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-58"}],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-68"}]},"a7708775-62":{"id":"/src/components/Group/slot.tsx","moduleParts":{"index.cjs":"a7708775-63"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-94"},{"uid":"a7708775-95"}],"importedBy":[{"uid":"a7708775-64"}]},"a7708775-64":{"id":"/src/components/Group/index.tsx","moduleParts":{"index.cjs":"a7708775-65"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"},{"uid":"a7708775-94"},{"uid":"a7708775-95"},{"uid":"a7708775-52"},{"uid":"a7708775-62"}],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-68"},{"uid":"a7708775-66"}]},"a7708775-66":{"id":"/src/components/Dynamic/index.tsx","moduleParts":{"index.cjs":"a7708775-67"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"},{"uid":"a7708775-95"},{"uid":"a7708775-52"},{"uid":"a7708775-64"}],"importedBy":[{"uid":"a7708775-68"}]},"a7708775-68":{"id":"/src/components/SchemaList/index.tsx","moduleParts":{"index.cjs":"a7708775-69"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"},{"uid":"a7708775-95"},{"uid":"a7708775-60"},{"uid":"a7708775-66"},{"uid":"a7708775-52"},{"uid":"a7708775-64"}],"importedBy":[{"uid":"a7708775-70"}]},"a7708775-70":{"id":"/src/form.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"a7708775-71"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-88"},{"uid":"a7708775-105"},{"uid":"a7708775-107"},{"uid":"a7708775-68"},{"uid":"a7708775-90"},{"uid":"a7708775-26"},{"uid":"a7708775-85"},{"uid":"a7708775-84"},{"uid":"a7708775-58"},{"uid":"a7708775-48"},{"uid":"a7708775-0"}],"importedBy":[{"uid":"a7708775-101"}]},"a7708775-72":{"id":"/src/form.ts","moduleParts":{"index.cjs":"a7708775-73"},"imported":[{"uid":"a7708775-52"},{"uid":"a7708775-90"},{"uid":"a7708775-91"}],"importedBy":[{"uid":"a7708775-82"}]},"a7708775-74":{"id":"/src/hocs/withRemoteOptions.ts","moduleParts":{"index.cjs":"a7708775-75"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-14"},{"uid":"a7708775-34"}],"importedBy":[{"uid":"a7708775-86"}]},"a7708775-76":{"id":"/src/components/Wrapper/index.vue?vue&type=script&setup=true&lang.ts","moduleParts":{"index.cjs":"a7708775-77"},"imported":[{"uid":"a7708775-93"}],"importedBy":[{"uid":"a7708775-87"}]},"a7708775-78":{"id":"/src/components/Wrapper/index.vue?vue&type=style&index=0&lang.css","moduleParts":{"index.cjs":"a7708775-79"},"imported":[],"importedBy":[{"uid":"a7708775-87"}]},"a7708775-80":{"id":"/src/components/ConfigProvider/index.tsx","moduleParts":{"index.cjs":"a7708775-81"},"imported":[{"uid":"a7708775-93"},{"uid":"a7708775-85"}],"importedBy":[{"uid":"a7708775-82"}]},"a7708775-82":{"id":"/src/index.ts","moduleParts":{"index.cjs":"a7708775-83"},"imported":[{"uid":"a7708775-0"},{"uid":"a7708775-72"},{"uid":"a7708775-22"},{"uid":"a7708775-58"},{"uid":"a7708775-20"},{"uid":"a7708775-84"},{"uid":"a7708775-85"},{"uid":"a7708775-86"},{"uid":"a7708775-52"},{"uid":"a7708775-64"},{"uid":"a7708775-60"},{"uid":"a7708775-87"},{"uid":"a7708775-80"},{"uid":"a7708775-88"},{"uid":"a7708775-89"}],"importedBy":[],"isEntry":true},"a7708775-84":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"a7708775-28"},{"uid":"a7708775-30"},{"uid":"a7708775-32"},{"uid":"a7708775-34"},{"uid":"a7708775-38"},{"uid":"a7708775-40"},{"uid":"a7708775-42"}],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-52"},{"uid":"a7708775-70"}]},"a7708775-85":{"id":"/src/context/index.ts","moduleParts":{},"imported":[{"uid":"a7708775-12"},{"uid":"a7708775-14"},{"uid":"a7708775-16"}],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-52"},{"uid":"a7708775-80"},{"uid":"a7708775-70"}]},"a7708775-86":{"id":"/src/hocs/index.ts","moduleParts":{},"imported":[{"uid":"a7708775-74"}],"importedBy":[{"uid":"a7708775-82"}]},"a7708775-87":{"id":"/src/components/Wrapper/index.vue","moduleParts":{},"imported":[{"uid":"a7708775-76"},{"uid":"a7708775-78"}],"importedBy":[{"uid":"a7708775-82"}]},"a7708775-88":{"id":"@schemx/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-82"},{"uid":"a7708775-20"},{"uid":"a7708775-52"},{"uid":"a7708775-64"},{"uid":"a7708775-28"},{"uid":"a7708775-30"},{"uid":"a7708775-32"},{"uid":"a7708775-16"},{"uid":"a7708775-24"},{"uid":"a7708775-48"},{"uid":"a7708775-70"},{"uid":"a7708775-68"},{"uid":"a7708775-8"},{"uid":"a7708775-66"}],"isExternal":true},"a7708775-89":{"id":"/src/types/index.ts","moduleParts":{},"imported":[{"uid":"a7708775-96"},{"uid":"a7708775-97"},{"uid":"a7708775-98"},{"uid":"a7708775-99"},{"uid":"a7708775-100"}],"importedBy":[{"uid":"a7708775-82"}]},"a7708775-90":{"id":"/src/config/index.ts","moduleParts":{},"imported":[{"uid":"a7708775-18"},{"uid":"a7708775-24"},{"uid":"a7708775-26"}],"importedBy":[{"uid":"a7708775-72"},{"uid":"a7708775-28"},{"uid":"a7708775-70"}]},"a7708775-91":{"id":"/src/formRuntime.js","moduleParts":{},"imported":[{"uid":"a7708775-101"}],"importedBy":[{"uid":"a7708775-72"}]},"a7708775-92":{"id":"@schemx/core/adapter","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-22"},{"uid":"a7708775-10"}],"isExternal":true},"a7708775-93":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-58"},{"uid":"a7708775-52"},{"uid":"a7708775-64"},{"uid":"a7708775-60"},{"uid":"a7708775-80"},{"uid":"a7708775-28"},{"uid":"a7708775-30"},{"uid":"a7708775-32"},{"uid":"a7708775-34"},{"uid":"a7708775-38"},{"uid":"a7708775-40"},{"uid":"a7708775-42"},{"uid":"a7708775-12"},{"uid":"a7708775-14"},{"uid":"a7708775-16"},{"uid":"a7708775-74"},{"uid":"a7708775-50"},{"uid":"a7708775-62"},{"uid":"a7708775-76"},{"uid":"a7708775-18"},{"uid":"a7708775-70"},{"uid":"a7708775-10"},{"uid":"a7708775-68"},{"uid":"a7708775-2"},{"uid":"a7708775-8"},{"uid":"a7708775-66"},{"uid":"a7708775-54"}],"isExternal":true},"a7708775-94":{"id":"classnames","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-52"},{"uid":"a7708775-64"},{"uid":"a7708775-62"}],"isExternal":true},"a7708775-95":{"id":"/src/utils/index.ts","moduleParts":{},"imported":[{"uid":"a7708775-103"},{"uid":"a7708775-44"},{"uid":"a7708775-46"},{"uid":"a7708775-48"},{"uid":"a7708775-104"}],"importedBy":[{"uid":"a7708775-52"},{"uid":"a7708775-64"},{"uid":"a7708775-50"},{"uid":"a7708775-62"},{"uid":"a7708775-68"},{"uid":"a7708775-66"}]},"a7708775-96":{"id":"/src/types/definition.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-89"}]},"a7708775-97":{"id":"/src/types/dictionary.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-89"}]},"a7708775-98":{"id":"/src/types/form.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-89"}]},"a7708775-99":{"id":"/src/types/field.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-89"}]},"a7708775-100":{"id":"/src/types/layout.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-89"}]},"a7708775-101":{"id":"/src/form.vue","moduleParts":{},"imported":[{"uid":"a7708775-70"}],"importedBy":[{"uid":"a7708775-91"}]},"a7708775-102":{"id":"/src/bridge/index.ts","moduleParts":{},"imported":[{"uid":"a7708775-10"},{"uid":"a7708775-4"}],"importedBy":[{"uid":"a7708775-28"},{"uid":"a7708775-40"},{"uid":"a7708775-42"},{"uid":"a7708775-12"}]},"a7708775-103":{"id":"/src/utils/dynamic.ts","moduleParts":{},"imported":[{"uid":"a7708775-105"}],"importedBy":[{"uid":"a7708775-95"}]},"a7708775-104":{"id":"/src/utils/diff.ts","moduleParts":{},"imported":[{"uid":"a7708775-106"}],"importedBy":[{"uid":"a7708775-95"}]},"a7708775-105":{"id":"es-toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-103"},{"uid":"a7708775-70"}],"isExternal":true},"a7708775-106":{"id":"es-toolkit/compat","moduleParts":{},"imported":[],"importedBy":[{"uid":"a7708775-104"}],"isExternal":true},"a7708775-107":{"id":"/src/components/Button/index.ts","moduleParts":{},"imported":[{"uid":"a7708775-108"}],"importedBy":[{"uid":"a7708775-70"}]},"a7708775-108":{"id":"/src/components/Button/index.vue","moduleParts":{},"imported":[{"uid":"a7708775-54"},{"uid":"a7708775-56"}],"importedBy":[{"uid":"a7708775-107"}]}},"env":{"rollup":"4.14.3"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
|
@@ -5,6 +5,18 @@ import { NamePath, Values } from '@schemx/core';
|
|
|
5
5
|
*
|
|
6
6
|
* FormStateAdapter 按规范化路径缓存 Source;Source 身份作为当前资源中的
|
|
7
7
|
* 稳定 key,确保同一字段不会重复创建订阅。
|
|
8
|
+
*
|
|
9
|
+
* @typeParam TValues - 表单值类型。
|
|
10
|
+
* @typeParam TName - 当前字段路径类型。
|
|
11
|
+
* @param resources - 当前 Runtime 的响应式资源集合。
|
|
12
|
+
* @param name - 要读取状态的字段路径。
|
|
13
|
+
* @returns 当前字段的共享 Vue 状态投影。
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const state = getVueFieldState(resources, "name")
|
|
18
|
+
* console.log(state.value.value)
|
|
19
|
+
* ```
|
|
8
20
|
*/
|
|
9
21
|
export declare function getVueFieldState<TValues extends Values = Values, TName extends NamePath<TValues> = NamePath<TValues>>(resources: VueFormResources<TValues>, name: TName): VueFieldState<TValues, TName>;
|
|
10
22
|
//# sourceMappingURL=fieldBridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;;;;;GAiBG;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,10 +1,43 @@
|
|
|
1
1
|
import { VueFormRuntime, VueSchemxInstance } from './types';
|
|
2
2
|
import { SchemxInstance, Values } from '@schemx/core';
|
|
3
|
+
/**
|
|
4
|
+
* 在当前 Vue effect scope 中获取共享 Runtime。
|
|
5
|
+
*
|
|
6
|
+
* 每次调用都会为当前 scope 保留一个 Runtime owner,并在 scope 停止时自动
|
|
7
|
+
* 释放该 owner;最后一个 owner 释放后,字段和表单级响应式资源才会回收。
|
|
8
|
+
*
|
|
9
|
+
* @typeParam TValues - 表单值类型。
|
|
10
|
+
* @param form - 要桥接的 Core Form 或 Vue Form Instance。
|
|
11
|
+
* @returns 当前 Form 对应的共享 Runtime。
|
|
12
|
+
* @throws 当前没有活动的 Vue effect scope 时抛出错误。
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* // 在 setup() 或其他活动的 Vue effect scope 中调用。
|
|
17
|
+
* const runtime = useVueFormRuntime(form)
|
|
18
|
+
* const values = runtime.getValuesRef()
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function useVueFormRuntime<TValues extends Values = Values>(form: SchemxInstance<TValues>): VueFormRuntime<TValues>;
|
|
3
22
|
/**
|
|
4
23
|
* 获取并保留指定 Form 的共享 Runtime。
|
|
5
24
|
*
|
|
6
25
|
* 返回的 release 函数必须绑定到当前 owner 的 Vue scope;最后一个 owner
|
|
7
26
|
* 释放后只销毁响应式资源,Runtime 和 Instance 身份保持稳定。
|
|
27
|
+
*
|
|
28
|
+
* @typeParam TValues - 表单值类型。
|
|
29
|
+
* @param form - 要桥接的 Core Form 或 Vue Form Instance。
|
|
30
|
+
* @returns 共享 Runtime 及与当前 owner 对应的释放函数。
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const { runtime, release } = acquireVueFormRuntime(form)
|
|
35
|
+
* try {
|
|
36
|
+
* runtime.getValuesRef()
|
|
37
|
+
* } finally {
|
|
38
|
+
* release()
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
8
41
|
*/
|
|
9
42
|
export declare function acquireVueFormRuntime<TValues extends Values = Values>(form: SchemxInstance<TValues> | VueSchemxInstance<TValues>): {
|
|
10
43
|
runtime: VueFormRuntime<TValues>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/formBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"formBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/formBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,OAAO,KAAK,EAKV,cAAc,EACd,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAY,cAAc,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAOpE;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/D,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,GAC5B,cAAc,CAAC,OAAO,CAAC,CAUzB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;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"}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import { VueFieldDependency, VueFormDependency, VueSchemxInstance } from './types';
|
|
2
2
|
import { NamePath, SchemxInstance, Values } from '@schemx/core';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* 创建 Instance 所需的 Runtime 追踪能力。
|
|
5
|
+
*/
|
|
4
6
|
export interface VueFormInstanceDependencies<TValues extends Values> {
|
|
7
|
+
/**
|
|
8
|
+
* 追踪单个字段的指定状态依赖。
|
|
9
|
+
*/
|
|
5
10
|
trackField<TName extends NamePath<TValues>>(name: TName, dependency: VueFieldDependency): void;
|
|
11
|
+
/**
|
|
12
|
+
* 追踪完整表单值或指定字段值。
|
|
13
|
+
*/
|
|
6
14
|
trackFieldsValue(names?: NamePath<TValues>[]): void;
|
|
15
|
+
/**
|
|
16
|
+
* 追踪 Form 级聚合状态。
|
|
17
|
+
*/
|
|
7
18
|
trackForm(dependency: VueFormDependency): void;
|
|
19
|
+
/**
|
|
20
|
+
* 销毁 Runtime 持有的响应式资源。
|
|
21
|
+
*/
|
|
8
22
|
destroy(): void;
|
|
9
23
|
}
|
|
10
24
|
/**
|
|
@@ -13,6 +27,11 @@ export interface VueFormInstanceDependencies<TValues extends Values> {
|
|
|
13
27
|
* @param form - 要包装的原始 Core Form。
|
|
14
28
|
* @param dependencies - 所属 Runtime 提供的依赖追踪与销毁能力。
|
|
15
29
|
* @returns 可被 Vue effect 追踪的 Instance。
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const instance = createVueFormInstance(coreForm, runtimeDependencies)
|
|
34
|
+
* ```
|
|
16
35
|
*/
|
|
17
36
|
export declare function createVueFormInstance<TValues extends Values>(form: SchemxInstance<TValues>, dependencies: VueFormInstanceDependencies<TValues>): VueSchemxInstance<TValues>;
|
|
18
37
|
//# sourceMappingURL=formInstance.d.ts.map
|
|
@@ -1 +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
|
|
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;;GAEG;AACH,MAAM,WAAW,2BAA2B,CAAC,OAAO,SAAS,MAAM;IACjE;;OAEG;IACH,UAAU,CAAC,KAAK,SAAS,QAAQ,CAAC,OAAO,CAAC,EACxC,IAAI,EAAE,KAAK,EACX,UAAU,EAAE,kBAAkB,GAC7B,IAAI,CAAA;IACP;;OAEG;IACH,gBAAgB,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAA;IACnD;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9C;;OAEG;IACH,OAAO,IAAI,IAAI,CAAA;CAChB;AAED;;;;;;;;;;;GAWG;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
|
@@ -21,6 +21,14 @@ export declare function createVueShallowRef<TValue>(value: TValue): ShallowRef<T
|
|
|
21
21
|
*
|
|
22
22
|
* SnapshotSource 的生命周期由所属 FormStateAdapter 统一管理;这里仅保留
|
|
23
23
|
* 同步逻辑,避免每个 Form 级来源重复声明一套订阅函数。
|
|
24
|
+
*
|
|
25
|
+
* @param source - 提供快照和订阅能力的 Core Source。
|
|
26
|
+
* @returns 与 Source 当前快照同步的 Vue shallow Ref。
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const values = bindSnapshotSource(stateAdapter.values)
|
|
31
|
+
* ```
|
|
24
32
|
*/
|
|
25
33
|
export declare function bindSnapshotSource<TValue>(source: SnapshotSource<TValue>): ShallowRef<TValue>;
|
|
26
34
|
/**
|
|
@@ -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,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
|
|
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;;;;;;;;;;;;;GAaG;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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module vue/bridge
|
|
9
9
|
*/
|
|
10
|
-
export { acquireVueFormRuntime } from './formBridge';
|
|
10
|
+
export { acquireVueFormRuntime, useVueFormRuntime } from './formBridge';
|
|
11
11
|
export { getVueFieldState } from './fieldBridge';
|
|
12
12
|
export type { VueFieldState, VueFormRuntime, VueSchemxInstance } from './types';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bridge/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACvE,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
|
@@ -15,17 +15,47 @@ 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
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Vue 中单个字段状态的 Ref 投影。
|
|
20
|
+
*
|
|
21
|
+
* @typeParam TValues - 表单值类型。
|
|
22
|
+
* @typeParam TName - 当前字段路径类型。
|
|
23
|
+
*/
|
|
19
24
|
export interface VueFieldState<TValues extends Values = Values, TName extends NamePath<TValues> = NamePath<TValues>> {
|
|
25
|
+
/**
|
|
26
|
+
* 当前字段值。
|
|
27
|
+
*/
|
|
20
28
|
readonly value: ShallowRef<FieldValue<TValues, TName> | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* 当前字段的校验错误列表。
|
|
31
|
+
*/
|
|
21
32
|
readonly errors: ShallowRef<readonly string[]>;
|
|
33
|
+
/**
|
|
34
|
+
* 当前字段是否已被触碰。
|
|
35
|
+
*/
|
|
22
36
|
readonly touched: ShallowRef<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* 当前字段是否存在进行中的异步操作。
|
|
39
|
+
*/
|
|
23
40
|
readonly pending: ShallowRef<boolean>;
|
|
24
41
|
}
|
|
25
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* Vue 中 ViewSchema 列表及其索引的共享投影。
|
|
44
|
+
*
|
|
45
|
+
* @typeParam TValues - 表单值类型。
|
|
46
|
+
*/
|
|
26
47
|
export interface VueViewSchemaState<TValues extends Values = Values> {
|
|
48
|
+
/**
|
|
49
|
+
* 按稳定 key 查找顶层或嵌套 ViewSchema 的计算索引。
|
|
50
|
+
*/
|
|
27
51
|
readonly schemasByKey: ComputedRef<ReadonlyMap<string, SchemxViewSchema<TValues>>>;
|
|
52
|
+
/**
|
|
53
|
+
* 当前 Form 的完整 ViewSchema 列表。
|
|
54
|
+
*/
|
|
28
55
|
readonly viewSchemas: ShallowRef<readonly SchemxViewSchema<TValues>[]>;
|
|
56
|
+
/**
|
|
57
|
+
* 取消 ViewSchema 订阅并释放该状态投影。
|
|
58
|
+
*/
|
|
29
59
|
dispose(): void;
|
|
30
60
|
}
|
|
31
61
|
/**
|
|
@@ -35,18 +65,46 @@ export interface VueViewSchemaState<TValues extends Values = Values> {
|
|
|
35
65
|
* Runtime 和 Instance 外壳本身保持稳定,以保证 Instance 身份不变。
|
|
36
66
|
*/
|
|
37
67
|
export interface VueFormResources<TValues extends Values> {
|
|
68
|
+
/**
|
|
69
|
+
* Core Form 的状态适配器。
|
|
70
|
+
*/
|
|
38
71
|
readonly stateAdapter: FormStateAdapter<TValues>;
|
|
72
|
+
/**
|
|
73
|
+
* 完整表单值快照。
|
|
74
|
+
*/
|
|
39
75
|
readonly values: ShallowRef<TValues>;
|
|
76
|
+
/**
|
|
77
|
+
* 已触碰字段路径快照。
|
|
78
|
+
*/
|
|
40
79
|
readonly touchedFields: ShallowRef<readonly NamePath<TValues>[]>;
|
|
80
|
+
/**
|
|
81
|
+
* 正在进行异步操作的字段快照。
|
|
82
|
+
*/
|
|
41
83
|
readonly pendingFields: ShallowRef<PendingFieldsSnapshot<TValues>>;
|
|
84
|
+
/**
|
|
85
|
+
* Form 级提交或加载状态。
|
|
86
|
+
*/
|
|
42
87
|
readonly loading: ShallowRef<boolean>;
|
|
88
|
+
/**
|
|
89
|
+
* 按 SnapshotSource 身份缓存的字段状态。
|
|
90
|
+
*/
|
|
43
91
|
readonly fieldStates: Map<object, VueFieldState<TValues>>;
|
|
92
|
+
/**
|
|
93
|
+
* 按需创建的 ViewSchema 状态投影。
|
|
94
|
+
*/
|
|
44
95
|
viewSchemaState?: VueViewSchemaState<TValues>;
|
|
96
|
+
/**
|
|
97
|
+
* 释放所有状态订阅和缓存。
|
|
98
|
+
*/
|
|
45
99
|
dispose(): void;
|
|
46
100
|
}
|
|
47
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* Instance 需要追踪的字段级 Vue 依赖。
|
|
103
|
+
*/
|
|
48
104
|
export type VueFieldDependency = "value" | "errors" | "touched" | "pending";
|
|
49
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* Instance 需要追踪的 Form 级 Vue 依赖。
|
|
107
|
+
*/
|
|
50
108
|
export type VueFormDependency = "values" | "touchedFields" | "pendingFields" | "loading";
|
|
51
109
|
/**
|
|
52
110
|
* 每个 Core Form 唯一的 Vue Runtime。
|
|
@@ -55,15 +113,47 @@ export type VueFormDependency = "values" | "touchedFields" | "pendingFields" | "
|
|
|
55
113
|
* 或引用计数,只通过下列状态读取和投影方法消费资源。
|
|
56
114
|
*/
|
|
57
115
|
export interface VueFormRuntime<TValues extends Values = Values> {
|
|
116
|
+
/**
|
|
117
|
+
* 原始 Core Form 实例。
|
|
118
|
+
*
|
|
119
|
+
* @deprecated 请使用 `instance`;该字段仅为兼容旧版 Runtime 消费者保留。
|
|
120
|
+
*/
|
|
58
121
|
readonly core: SchemxInstance<TValues>;
|
|
122
|
+
/**
|
|
123
|
+
* 对外提供的 Vue 响应式 Form Instance。
|
|
124
|
+
*/
|
|
59
125
|
readonly instance: VueSchemxInstance<TValues>;
|
|
126
|
+
/**
|
|
127
|
+
* 增加一个资源 owner,并返回对应的释放函数。
|
|
128
|
+
*/
|
|
60
129
|
retain(): () => void;
|
|
130
|
+
/**
|
|
131
|
+
* 在当前 Vue effect 中追踪指定字段状态。
|
|
132
|
+
*/
|
|
61
133
|
trackField<TName extends NamePath<TValues>>(name: TName, dependency: VueFieldDependency): void;
|
|
134
|
+
/**
|
|
135
|
+
* 在当前 Vue effect 中追踪指定字段或完整表单值。
|
|
136
|
+
*/
|
|
62
137
|
trackFieldsValue(names?: NamePath<TValues>[]): void;
|
|
138
|
+
/**
|
|
139
|
+
* 在当前 Vue effect 中追踪 Form 级聚合状态。
|
|
140
|
+
*/
|
|
63
141
|
trackForm(dependency: VueFormDependency): void;
|
|
142
|
+
/**
|
|
143
|
+
* 获取完整表单值的共享 Vue Ref。
|
|
144
|
+
*/
|
|
64
145
|
getValuesRef(): ShallowRef<TValues>;
|
|
146
|
+
/**
|
|
147
|
+
* 获取指定字段的共享 Vue 状态投影。
|
|
148
|
+
*/
|
|
65
149
|
getFieldState<TName extends NamePath<TValues>>(name: TName): VueFieldState<TValues, TName>;
|
|
150
|
+
/**
|
|
151
|
+
* 获取当前 Form 的共享 ViewSchema 状态投影。
|
|
152
|
+
*/
|
|
66
153
|
getViewSchemaState(): VueViewSchemaState<TValues>;
|
|
154
|
+
/**
|
|
155
|
+
* 销毁 Runtime,并释放当前仍保留的响应式资源。
|
|
156
|
+
*/
|
|
67
157
|
destroy(): void;
|
|
68
158
|
}
|
|
69
159
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;GAKG;AACH,MAAM,WAAW,aAAa,CAC5B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,KAAK,SAAS,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC;IAEnD;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,SAAS,CAAC,CAAA;IAClE;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,MAAM,EAAE,CAAC,CAAA;IAC9C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACrC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;CACtC;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACjE;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAClF;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,SAAS,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IACtE;;OAEG;IACH,OAAO,IAAI,IAAI,CAAA;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAAC,OAAO,SAAS,MAAM;IACtD;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAChD;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACpC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC,SAAS,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IAChE;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAA;IAClE;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACrC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,CAAA;IACzD;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAA;IAC7C;;OAEG;IACH,OAAO,IAAI,IAAI,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAA;AAE3E;;GAEG;AACH,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;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IACtC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAA;IAC7C;;OAEG;IACH,MAAM,IAAI,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,KAAK,SAAS,QAAQ,CAAC,OAAO,CAAC,EACxC,IAAI,EAAE,KAAK,EACX,UAAU,EAAE,kBAAkB,GAC7B,IAAI,CAAA;IACP;;OAEG;IACH,gBAAgB,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAA;IACnD;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9C;;OAEG;IACH,YAAY,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;IACnC;;OAEG;IACH,aAAa,CAAC,KAAK,SAAS,QAAQ,CAAC,OAAO,CAAC,EAC3C,IAAI,EAAE,KAAK,GACV,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAChC;;OAEG;IACH,kBAAkB,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACjD;;OAEG;IACH,OAAO,IAAI,IAAI,CAAA;CAChB"}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { VueViewSchemaState } from './types';
|
|
2
2
|
import { SchemxInstance, Values } from '@schemx/core';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* 创建一个 Form 的共享 ViewSchema 状态。
|
|
5
|
+
*
|
|
6
|
+
* @typeParam TValues - 表单值类型。
|
|
7
|
+
* @param form - 要订阅 ViewSchema 的 Core Form。
|
|
8
|
+
* @returns 当前 Form 的 ViewSchema 列表、索引和释放方法。
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const state = createVueViewSchemaState(form)
|
|
13
|
+
* const current = state.viewSchemas.value
|
|
14
|
+
* state.dispose()
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
4
17
|
export declare function createVueViewSchemaState<TValues extends Values>(form: SchemxInstance<TValues>): VueViewSchemaState<TValues>;
|
|
5
18
|
//# sourceMappingURL=viewSchemaBridge.d.ts.map
|
|
@@ -1 +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
|
|
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;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,SAAS,MAAM,EAC7D,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,GAC5B,kBAAkB,CAAC,OAAO,CAAC,CA6B7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGrC,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { SchemxButtonSize } from './types';
|
|
2
2
|
interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* 是否显示加载状态;加载时按钮不可点击。
|
|
5
|
+
*/
|
|
3
6
|
loading?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* 加载状态下替换按钮内容的文本。
|
|
9
|
+
*/
|
|
4
10
|
loadingText?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 是否禁用按钮。
|
|
13
|
+
*/
|
|
5
14
|
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 按钮尺寸。
|
|
17
|
+
*/
|
|
6
18
|
size?: SchemxButtonSize;
|
|
7
19
|
}
|
|
8
20
|
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.vue"],"names":[],"mappings":"AAsKE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,UAAU,KAAK;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACxB;AAoHH,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;cAlID,OAAO;aARR,OAAO;UAYV,gBAAgB;iBART,MAAM;6EAyItB,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"}
|
|
@@ -7,15 +7,25 @@ export type SchemxButtonSize = "small" | "medium" | "large";
|
|
|
7
7
|
* 内置按钮的 Props。
|
|
8
8
|
*/
|
|
9
9
|
export interface SchemxButtonProps extends Omit<ButtonHTMLAttributes, "disabled" | "size"> {
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* 点击事件。
|
|
12
|
+
*/
|
|
11
13
|
onClick?: (event: MouseEvent) => void;
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* 是否显示加载状态。加载时按钮不可点击。
|
|
16
|
+
*/
|
|
13
17
|
loading?: boolean;
|
|
14
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* 加载状态下替换按钮内容的文本。
|
|
20
|
+
*/
|
|
15
21
|
loadingText?: string;
|
|
16
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* 是否禁用按钮。
|
|
24
|
+
*/
|
|
17
25
|
disabled?: boolean;
|
|
18
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* 按钮尺寸。
|
|
28
|
+
*/
|
|
19
29
|
size?: SchemxButtonSize;
|
|
20
30
|
}
|
|
21
31
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -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,iBAAkB,SAAQ,IAAI,CAC7C,oBAAoB,EACpB,UAAU,GAAG,MAAM,CACpB;IACC
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,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;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACrC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACxB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PropType, VNodeChild } from 'vue';
|
|
2
|
-
import { SchemxColComponent } from '../../types/layout';
|
|
3
|
-
import { SchemxLayout } from '@schemx/core';
|
|
2
|
+
import { SchemxColComponent, SchemxVueLayout } from '../../types/layout';
|
|
4
3
|
declare const Col: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
4
|
layout: {
|
|
6
|
-
type: PropType<
|
|
5
|
+
type: PropType<SchemxVueLayout>;
|
|
7
6
|
required: false;
|
|
8
7
|
default: undefined;
|
|
9
8
|
};
|
|
@@ -14,7 +13,7 @@ declare const Col: import('vue').DefineComponent<import('vue').ExtractPropTypes<
|
|
|
14
13
|
};
|
|
15
14
|
}>, () => VNodeChild, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
15
|
layout: {
|
|
17
|
-
type: PropType<
|
|
16
|
+
type: PropType<SchemxVueLayout>;
|
|
18
17
|
required: false;
|
|
19
18
|
default: undefined;
|
|
20
19
|
};
|
|
@@ -24,7 +23,7 @@ declare const Col: import('vue').DefineComponent<import('vue').ExtractPropTypes<
|
|
|
24
23
|
default: undefined;
|
|
25
24
|
};
|
|
26
25
|
}>> & Readonly<{}>, {
|
|
27
|
-
layout:
|
|
26
|
+
layout: SchemxVueLayout;
|
|
28
27
|
component: SchemxColComponent;
|
|
29
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
30
29
|
export default Col;
|