nuxt-ui-tools 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +48 -0
- package/dist/module.d.mts +26 -0
- package/dist/module.json +13 -0
- package/dist/module.mjs +228 -0
- package/dist/runtime/form/components/actions/FormActions.d.vue.ts +14 -0
- package/dist/runtime/form/components/actions/FormActions.vue +172 -0
- package/dist/runtime/form/components/actions/FormActions.vue.d.ts +14 -0
- package/dist/runtime/form/components/layout/DrawerLayout.d.vue.ts +20 -0
- package/dist/runtime/form/components/layout/DrawerLayout.vue +48 -0
- package/dist/runtime/form/components/layout/DrawerLayout.vue.d.ts +20 -0
- package/dist/runtime/form/components/layout/FullscreenLayout.d.vue.ts +20 -0
- package/dist/runtime/form/components/layout/FullscreenLayout.vue +36 -0
- package/dist/runtime/form/components/layout/FullscreenLayout.vue.d.ts +20 -0
- package/dist/runtime/form/components/layout/ModalLayout.d.vue.ts +20 -0
- package/dist/runtime/form/components/layout/ModalLayout.vue +44 -0
- package/dist/runtime/form/components/layout/ModalLayout.vue.d.ts +20 -0
- package/dist/runtime/form/components/provider/FormOverlayHost.d.vue.ts +7 -0
- package/dist/runtime/form/components/provider/FormOverlayHost.vue +99 -0
- package/dist/runtime/form/components/provider/FormOverlayHost.vue.d.ts +7 -0
- package/dist/runtime/form/components/provider/FormProvider.d.vue.ts +13 -0
- package/dist/runtime/form/components/provider/FormProvider.vue +12 -0
- package/dist/runtime/form/components/provider/FormProvider.vue.d.ts +13 -0
- package/dist/runtime/form/components/renderer/FormFieldRenderer.d.vue.ts +9 -0
- package/dist/runtime/form/components/renderer/FormFieldRenderer.vue +166 -0
- package/dist/runtime/form/components/renderer/FormFieldRenderer.vue.d.ts +9 -0
- package/dist/runtime/form/components/renderer/FormFieldShell.d.vue.ts +38 -0
- package/dist/runtime/form/components/renderer/FormFieldShell.vue +135 -0
- package/dist/runtime/form/components/renderer/FormFieldShell.vue.d.ts +38 -0
- package/dist/runtime/form/components/root/Form.d.vue.ts +42 -0
- package/dist/runtime/form/components/root/Form.vue +310 -0
- package/dist/runtime/form/components/root/Form.vue.d.ts +42 -0
- package/dist/runtime/form/composables/use-field-control.d.ts +31 -0
- package/dist/runtime/form/composables/use-field-control.js +160 -0
- package/dist/runtime/form/composables/use-field-options.d.ts +26 -0
- package/dist/runtime/form/composables/use-field-options.js +285 -0
- package/dist/runtime/form/composables/use-form-actions.d.ts +6 -0
- package/dist/runtime/form/composables/use-form-actions.js +91 -0
- package/dist/runtime/form/composables/use-form-api.d.ts +3 -0
- package/dist/runtime/form/composables/use-form-api.js +154 -0
- package/dist/runtime/form/composables/use-form-context-resources.d.ts +7 -0
- package/dist/runtime/form/composables/use-form-context-resources.js +109 -0
- package/dist/runtime/form/composables/use-form-field-chrome.d.ts +3 -0
- package/dist/runtime/form/composables/use-form-field-chrome.js +8 -0
- package/dist/runtime/form/composables/use-form-focus.d.ts +15 -0
- package/dist/runtime/form/composables/use-form-focus.js +47 -0
- package/dist/runtime/form/composables/use-form-layout.d.ts +22 -0
- package/dist/runtime/form/composables/use-form-layout.js +59 -0
- package/dist/runtime/form/composables/use-form-option-registry.d.ts +7 -0
- package/dist/runtime/form/composables/use-form-option-registry.js +53 -0
- package/dist/runtime/form/composables/use-form-overlay-controller.d.ts +12 -0
- package/dist/runtime/form/composables/use-form-overlay-controller.js +84 -0
- package/dist/runtime/form/composables/use-form-overlay-layout.d.ts +7 -0
- package/dist/runtime/form/composables/use-form-overlay-layout.js +18 -0
- package/dist/runtime/form/composables/use-form-runtime.d.ts +6 -0
- package/dist/runtime/form/composables/use-form-runtime.js +403 -0
- package/dist/runtime/form/composables/use-form-state.d.ts +21 -0
- package/dist/runtime/form/composables/use-form-state.js +76 -0
- package/dist/runtime/form/composables/use-form-submit.d.ts +23 -0
- package/dist/runtime/form/composables/use-form-submit.js +71 -0
- package/dist/runtime/form/composables/use-form-ui.d.ts +12 -0
- package/dist/runtime/form/composables/use-form-ui.js +24 -0
- package/dist/runtime/form/composables/use-form-upload-registry.d.ts +5 -0
- package/dist/runtime/form/composables/use-form-upload-registry.js +15 -0
- package/dist/runtime/form/composables/use-form-validation.d.ts +22 -0
- package/dist/runtime/form/composables/use-form-validation.js +106 -0
- package/dist/runtime/form/composables/use-form.d.ts +2 -0
- package/dist/runtime/form/composables/use-form.js +164 -0
- package/dist/runtime/form/fields/array-list/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/array-list/component.vue +482 -0
- package/dist/runtime/form/fields/array-list/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/array-list/config.d.ts +12 -0
- package/dist/runtime/form/fields/array-list/config.js +7 -0
- package/dist/runtime/form/fields/array-list/index.d.ts +2 -0
- package/dist/runtime/form/fields/array-list/index.js +1 -0
- package/dist/runtime/form/fields/array-list/types.d.ts +43 -0
- package/dist/runtime/form/fields/array-list/types.js +0 -0
- package/dist/runtime/form/fields/array-table/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/array-table/component.vue +335 -0
- package/dist/runtime/form/fields/array-table/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/array-table/config.d.ts +12 -0
- package/dist/runtime/form/fields/array-table/config.js +7 -0
- package/dist/runtime/form/fields/array-table/types.d.ts +6 -0
- package/dist/runtime/form/fields/array-table/types.js +0 -0
- package/dist/runtime/form/fields/array-tabs/config.d.ts +12 -0
- package/dist/runtime/form/fields/array-tabs/config.js +7 -0
- package/dist/runtime/form/fields/array-tabs/index.d.ts +2 -0
- package/dist/runtime/form/fields/array-tabs/index.js +1 -0
- package/dist/runtime/form/fields/array-tabs/types.d.ts +17 -0
- package/dist/runtime/form/fields/array-tabs/types.js +0 -0
- package/dist/runtime/form/fields/array-variant/config.d.ts +12 -0
- package/dist/runtime/form/fields/array-variant/config.js +7 -0
- package/dist/runtime/form/fields/array-variant/index.d.ts +2 -0
- package/dist/runtime/form/fields/array-variant/index.js +1 -0
- package/dist/runtime/form/fields/array-variant/types.d.ts +38 -0
- package/dist/runtime/form/fields/array-variant/types.js +0 -0
- package/dist/runtime/form/fields/auto-complete/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/auto-complete/component.vue +110 -0
- package/dist/runtime/form/fields/auto-complete/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/auto-complete/config.d.ts +17 -0
- package/dist/runtime/form/fields/auto-complete/config.js +10 -0
- package/dist/runtime/form/fields/auto-complete/index.d.ts +2 -0
- package/dist/runtime/form/fields/auto-complete/index.js +1 -0
- package/dist/runtime/form/fields/auto-complete/types.d.ts +17 -0
- package/dist/runtime/form/fields/auto-complete/types.js +0 -0
- package/dist/runtime/form/fields/button/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/button/component.vue +30 -0
- package/dist/runtime/form/fields/button/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/button/config.d.ts +7 -0
- package/dist/runtime/form/fields/button/config.js +6 -0
- package/dist/runtime/form/fields/button/index.d.ts +2 -0
- package/dist/runtime/form/fields/button/index.js +1 -0
- package/dist/runtime/form/fields/button/types.d.ts +11 -0
- package/dist/runtime/form/fields/button/types.js +0 -0
- package/dist/runtime/form/fields/card/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/card/component.vue +69 -0
- package/dist/runtime/form/fields/card/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/card/config.d.ts +12 -0
- package/dist/runtime/form/fields/card/config.js +7 -0
- package/dist/runtime/form/fields/card/index.d.ts +2 -0
- package/dist/runtime/form/fields/card/index.js +1 -0
- package/dist/runtime/form/fields/card/types.d.ts +9 -0
- package/dist/runtime/form/fields/card/types.js +0 -0
- package/dist/runtime/form/fields/cascader/config.d.ts +17 -0
- package/dist/runtime/form/fields/cascader/config.js +10 -0
- package/dist/runtime/form/fields/cascader/types.d.ts +1 -0
- package/dist/runtime/form/fields/cascader/types.js +0 -0
- package/dist/runtime/form/fields/checkbox/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/checkbox/component.vue +40 -0
- package/dist/runtime/form/fields/checkbox/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/checkbox/config.d.ts +14 -0
- package/dist/runtime/form/fields/checkbox/config.js +9 -0
- package/dist/runtime/form/fields/checkbox/index.d.ts +2 -0
- package/dist/runtime/form/fields/checkbox/index.js +1 -0
- package/dist/runtime/form/fields/checkbox/types.d.ts +4 -0
- package/dist/runtime/form/fields/checkbox/types.js +0 -0
- package/dist/runtime/form/fields/checkbox-card/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/checkbox-card/component.vue +56 -0
- package/dist/runtime/form/fields/checkbox-card/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/checkbox-card/config.d.ts +17 -0
- package/dist/runtime/form/fields/checkbox-card/config.js +10 -0
- package/dist/runtime/form/fields/checkbox-card/index.d.ts +2 -0
- package/dist/runtime/form/fields/checkbox-card/index.js +1 -0
- package/dist/runtime/form/fields/checkbox-card/types.d.ts +6 -0
- package/dist/runtime/form/fields/checkbox-card/types.js +0 -0
- package/dist/runtime/form/fields/checkbox-group/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/checkbox-group/component.vue +56 -0
- package/dist/runtime/form/fields/checkbox-group/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/checkbox-group/config.d.ts +17 -0
- package/dist/runtime/form/fields/checkbox-group/config.js +10 -0
- package/dist/runtime/form/fields/checkbox-group/index.d.ts +2 -0
- package/dist/runtime/form/fields/checkbox-group/index.js +1 -0
- package/dist/runtime/form/fields/checkbox-group/types.d.ts +10 -0
- package/dist/runtime/form/fields/checkbox-group/types.js +0 -0
- package/dist/runtime/form/fields/color-picker/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/color-picker/component.vue +109 -0
- package/dist/runtime/form/fields/color-picker/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/color-picker/config.d.ts +14 -0
- package/dist/runtime/form/fields/color-picker/config.js +9 -0
- package/dist/runtime/form/fields/color-picker/index.d.ts +2 -0
- package/dist/runtime/form/fields/color-picker/index.js +1 -0
- package/dist/runtime/form/fields/color-picker/types.d.ts +9 -0
- package/dist/runtime/form/fields/color-picker/types.js +0 -0
- package/dist/runtime/form/fields/column/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/column/component.vue +19 -0
- package/dist/runtime/form/fields/column/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/column/config.d.ts +8 -0
- package/dist/runtime/form/fields/column/config.js +6 -0
- package/dist/runtime/form/fields/column/index.d.ts +2 -0
- package/dist/runtime/form/fields/column/index.js +1 -0
- package/dist/runtime/form/fields/column/types.d.ts +3 -0
- package/dist/runtime/form/fields/column/types.js +0 -0
- package/dist/runtime/form/fields/custom-component/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/custom-component/component.vue +21 -0
- package/dist/runtime/form/fields/custom-component/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/custom-component/config.d.ts +14 -0
- package/dist/runtime/form/fields/custom-component/config.js +9 -0
- package/dist/runtime/form/fields/custom-component/index.d.ts +2 -0
- package/dist/runtime/form/fields/custom-component/index.js +1 -0
- package/dist/runtime/form/fields/custom-component/types.d.ts +10 -0
- package/dist/runtime/form/fields/custom-component/types.js +0 -0
- package/dist/runtime/form/fields/date/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/date/component.vue +331 -0
- package/dist/runtime/form/fields/date/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/date/config.d.ts +14 -0
- package/dist/runtime/form/fields/date/config.js +9 -0
- package/dist/runtime/form/fields/date/index.d.ts +2 -0
- package/dist/runtime/form/fields/date/index.js +1 -0
- package/dist/runtime/form/fields/date/types.d.ts +22 -0
- package/dist/runtime/form/fields/date/types.js +0 -0
- package/dist/runtime/form/fields/date-family/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/date-family/component.vue +114 -0
- package/dist/runtime/form/fields/date-family/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/date-family/types.d.ts +28 -0
- package/dist/runtime/form/fields/date-family/types.js +0 -0
- package/dist/runtime/form/fields/date-range/config.d.ts +14 -0
- package/dist/runtime/form/fields/date-range/config.js +9 -0
- package/dist/runtime/form/fields/date-range/types.d.ts +1 -0
- package/dist/runtime/form/fields/date-range/types.js +0 -0
- package/dist/runtime/form/fields/date-time/config.d.ts +14 -0
- package/dist/runtime/form/fields/date-time/config.js +9 -0
- package/dist/runtime/form/fields/date-time/types.d.ts +1 -0
- package/dist/runtime/form/fields/date-time/types.js +0 -0
- package/dist/runtime/form/fields/date-time-range/config.d.ts +14 -0
- package/dist/runtime/form/fields/date-time-range/config.js +9 -0
- package/dist/runtime/form/fields/date-time-range/types.d.ts +1 -0
- package/dist/runtime/form/fields/date-time-range/types.js +0 -0
- package/dist/runtime/form/fields/divider/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/divider/component.vue +14 -0
- package/dist/runtime/form/fields/divider/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/divider/config.d.ts +7 -0
- package/dist/runtime/form/fields/divider/config.js +6 -0
- package/dist/runtime/form/fields/divider/index.d.ts +2 -0
- package/dist/runtime/form/fields/divider/index.js +1 -0
- package/dist/runtime/form/fields/divider/types.d.ts +5 -0
- package/dist/runtime/form/fields/divider/types.js +0 -0
- package/dist/runtime/form/fields/file/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/file/component.vue +43 -0
- package/dist/runtime/form/fields/file/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/file/config.d.ts +14 -0
- package/dist/runtime/form/fields/file/config.js +9 -0
- package/dist/runtime/form/fields/file/index.d.ts +2 -0
- package/dist/runtime/form/fields/file/index.js +1 -0
- package/dist/runtime/form/fields/file/types.d.ts +10 -0
- package/dist/runtime/form/fields/file/types.js +0 -0
- package/dist/runtime/form/fields/group/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/group/component.vue +32 -0
- package/dist/runtime/form/fields/group/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/group/config.d.ts +12 -0
- package/dist/runtime/form/fields/group/config.js +7 -0
- package/dist/runtime/form/fields/group/types.d.ts +4 -0
- package/dist/runtime/form/fields/group/types.js +0 -0
- package/dist/runtime/form/fields/hidden/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/hidden/component.vue +10 -0
- package/dist/runtime/form/fields/hidden/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/hidden/config.d.ts +6 -0
- package/dist/runtime/form/fields/hidden/config.js +7 -0
- package/dist/runtime/form/fields/hidden/index.d.ts +2 -0
- package/dist/runtime/form/fields/hidden/index.js +1 -0
- package/dist/runtime/form/fields/hidden/types.d.ts +5 -0
- package/dist/runtime/form/fields/hidden/types.js +0 -0
- package/dist/runtime/form/fields/hierarchy/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/hierarchy/component.vue +350 -0
- package/dist/runtime/form/fields/hierarchy/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/hierarchy/types.d.ts +56 -0
- package/dist/runtime/form/fields/hierarchy/types.js +0 -0
- package/dist/runtime/form/fields/index.d.ts +644 -0
- package/dist/runtime/form/fields/index.js +145 -0
- package/dist/runtime/form/fields/info/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/info/component.vue +28 -0
- package/dist/runtime/form/fields/info/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/info/config.d.ts +7 -0
- package/dist/runtime/form/fields/info/config.js +6 -0
- package/dist/runtime/form/fields/info/index.d.ts +2 -0
- package/dist/runtime/form/fields/info/index.js +1 -0
- package/dist/runtime/form/fields/info/types.d.ts +6 -0
- package/dist/runtime/form/fields/info/types.js +0 -0
- package/dist/runtime/form/fields/input-group/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/input-group/component.vue +55 -0
- package/dist/runtime/form/fields/input-group/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/input-group/config.d.ts +12 -0
- package/dist/runtime/form/fields/input-group/config.js +7 -0
- package/dist/runtime/form/fields/input-group/index.d.ts +2 -0
- package/dist/runtime/form/fields/input-group/index.js +1 -0
- package/dist/runtime/form/fields/input-group/types.d.ts +3 -0
- package/dist/runtime/form/fields/input-group/types.js +0 -0
- package/dist/runtime/form/fields/matrix/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/matrix/component.vue +129 -0
- package/dist/runtime/form/fields/matrix/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/matrix/config.d.ts +15 -0
- package/dist/runtime/form/fields/matrix/config.js +9 -0
- package/dist/runtime/form/fields/matrix/types.d.ts +15 -0
- package/dist/runtime/form/fields/matrix/types.js +0 -0
- package/dist/runtime/form/fields/month/config.d.ts +14 -0
- package/dist/runtime/form/fields/month/config.js +9 -0
- package/dist/runtime/form/fields/month/types.d.ts +1 -0
- package/dist/runtime/form/fields/month/types.js +0 -0
- package/dist/runtime/form/fields/month-range/config.d.ts +14 -0
- package/dist/runtime/form/fields/month-range/config.js +9 -0
- package/dist/runtime/form/fields/month-range/types.d.ts +1 -0
- package/dist/runtime/form/fields/month-range/types.js +0 -0
- package/dist/runtime/form/fields/number/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/number/component.vue +50 -0
- package/dist/runtime/form/fields/number/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/number/config.d.ts +14 -0
- package/dist/runtime/form/fields/number/config.js +9 -0
- package/dist/runtime/form/fields/number/index.d.ts +2 -0
- package/dist/runtime/form/fields/number/index.js +1 -0
- package/dist/runtime/form/fields/number/types.d.ts +8 -0
- package/dist/runtime/form/fields/number/types.js +0 -0
- package/dist/runtime/form/fields/object/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/object/component.vue +65 -0
- package/dist/runtime/form/fields/object/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/object/config.d.ts +13 -0
- package/dist/runtime/form/fields/object/config.js +8 -0
- package/dist/runtime/form/fields/object/index.d.ts +2 -0
- package/dist/runtime/form/fields/object/index.js +1 -0
- package/dist/runtime/form/fields/object/types.d.ts +6 -0
- package/dist/runtime/form/fields/object/types.js +0 -0
- package/dist/runtime/form/fields/one-time-code/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/one-time-code/component.vue +37 -0
- package/dist/runtime/form/fields/one-time-code/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/one-time-code/config.d.ts +14 -0
- package/dist/runtime/form/fields/one-time-code/config.js +9 -0
- package/dist/runtime/form/fields/one-time-code/index.d.ts +2 -0
- package/dist/runtime/form/fields/one-time-code/index.js +1 -0
- package/dist/runtime/form/fields/one-time-code/types.d.ts +9 -0
- package/dist/runtime/form/fields/one-time-code/types.js +0 -0
- package/dist/runtime/form/fields/password/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/password/component.vue +46 -0
- package/dist/runtime/form/fields/password/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/password/config.d.ts +14 -0
- package/dist/runtime/form/fields/password/config.js +9 -0
- package/dist/runtime/form/fields/password/index.d.ts +2 -0
- package/dist/runtime/form/fields/password/index.js +1 -0
- package/dist/runtime/form/fields/password/types.d.ts +5 -0
- package/dist/runtime/form/fields/password/types.js +0 -0
- package/dist/runtime/form/fields/phone-number/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/phone-number/component.vue +171 -0
- package/dist/runtime/form/fields/phone-number/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/phone-number/config.d.ts +14 -0
- package/dist/runtime/form/fields/phone-number/config.js +9 -0
- package/dist/runtime/form/fields/phone-number/index.d.ts +2 -0
- package/dist/runtime/form/fields/phone-number/index.js +1 -0
- package/dist/runtime/form/fields/phone-number/types.d.ts +20 -0
- package/dist/runtime/form/fields/phone-number/types.js +0 -0
- package/dist/runtime/form/fields/radio/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/radio/component.vue +38 -0
- package/dist/runtime/form/fields/radio/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/radio/config.d.ts +17 -0
- package/dist/runtime/form/fields/radio/config.js +10 -0
- package/dist/runtime/form/fields/radio/index.d.ts +2 -0
- package/dist/runtime/form/fields/radio/index.js +1 -0
- package/dist/runtime/form/fields/radio/types.d.ts +7 -0
- package/dist/runtime/form/fields/radio/types.js +0 -0
- package/dist/runtime/form/fields/radio-card/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/radio-card/component.vue +40 -0
- package/dist/runtime/form/fields/radio-card/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/radio-card/config.d.ts +17 -0
- package/dist/runtime/form/fields/radio-card/config.js +10 -0
- package/dist/runtime/form/fields/radio-card/index.d.ts +2 -0
- package/dist/runtime/form/fields/radio-card/index.js +1 -0
- package/dist/runtime/form/fields/radio-card/types.d.ts +8 -0
- package/dist/runtime/form/fields/radio-card/types.js +0 -0
- package/dist/runtime/form/fields/rating/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/rating/component.vue +54 -0
- package/dist/runtime/form/fields/rating/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/rating/config.d.ts +14 -0
- package/dist/runtime/form/fields/rating/config.js +9 -0
- package/dist/runtime/form/fields/rating/index.d.ts +2 -0
- package/dist/runtime/form/fields/rating/index.js +1 -0
- package/dist/runtime/form/fields/rating/types.d.ts +8 -0
- package/dist/runtime/form/fields/rating/types.js +0 -0
- package/dist/runtime/form/fields/select/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/select/component.vue +173 -0
- package/dist/runtime/form/fields/select/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/select/config.d.ts +17 -0
- package/dist/runtime/form/fields/select/config.js +10 -0
- package/dist/runtime/form/fields/select/index.d.ts +2 -0
- package/dist/runtime/form/fields/select/index.js +1 -0
- package/dist/runtime/form/fields/select/types.d.ts +22 -0
- package/dist/runtime/form/fields/select/types.js +0 -0
- package/dist/runtime/form/fields/slider/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/slider/component.vue +38 -0
- package/dist/runtime/form/fields/slider/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/slider/config.d.ts +14 -0
- package/dist/runtime/form/fields/slider/config.js +9 -0
- package/dist/runtime/form/fields/slider/index.d.ts +2 -0
- package/dist/runtime/form/fields/slider/index.js +1 -0
- package/dist/runtime/form/fields/slider/types.d.ts +12 -0
- package/dist/runtime/form/fields/slider/types.js +0 -0
- package/dist/runtime/form/fields/switch/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/switch/component.vue +48 -0
- package/dist/runtime/form/fields/switch/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/switch/config.d.ts +14 -0
- package/dist/runtime/form/fields/switch/config.js +9 -0
- package/dist/runtime/form/fields/switch/index.d.ts +2 -0
- package/dist/runtime/form/fields/switch/index.js +1 -0
- package/dist/runtime/form/fields/switch/types.d.ts +22 -0
- package/dist/runtime/form/fields/switch/types.js +0 -0
- package/dist/runtime/form/fields/switch-group/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/switch-group/component.vue +56 -0
- package/dist/runtime/form/fields/switch-group/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/switch-group/config.d.ts +17 -0
- package/dist/runtime/form/fields/switch-group/config.js +10 -0
- package/dist/runtime/form/fields/switch-group/index.d.ts +2 -0
- package/dist/runtime/form/fields/switch-group/index.js +1 -0
- package/dist/runtime/form/fields/switch-group/types.d.ts +10 -0
- package/dist/runtime/form/fields/switch-group/types.js +0 -0
- package/dist/runtime/form/fields/tag/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/tag/component.vue +34 -0
- package/dist/runtime/form/fields/tag/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/tag/config.d.ts +14 -0
- package/dist/runtime/form/fields/tag/config.js +9 -0
- package/dist/runtime/form/fields/tag/index.d.ts +2 -0
- package/dist/runtime/form/fields/tag/index.js +1 -0
- package/dist/runtime/form/fields/tag/types.d.ts +4 -0
- package/dist/runtime/form/fields/tag/types.js +0 -0
- package/dist/runtime/form/fields/text/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/text/component.vue +46 -0
- package/dist/runtime/form/fields/text/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/text/config.d.ts +14 -0
- package/dist/runtime/form/fields/text/config.js +9 -0
- package/dist/runtime/form/fields/text/index.d.ts +2 -0
- package/dist/runtime/form/fields/text/index.js +1 -0
- package/dist/runtime/form/fields/text/types.d.ts +6 -0
- package/dist/runtime/form/fields/text/types.js +0 -0
- package/dist/runtime/form/fields/textarea/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/textarea/component.vue +34 -0
- package/dist/runtime/form/fields/textarea/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/textarea/config.d.ts +14 -0
- package/dist/runtime/form/fields/textarea/config.js +9 -0
- package/dist/runtime/form/fields/textarea/index.d.ts +2 -0
- package/dist/runtime/form/fields/textarea/index.js +1 -0
- package/dist/runtime/form/fields/textarea/types.d.ts +5 -0
- package/dist/runtime/form/fields/textarea/types.js +0 -0
- package/dist/runtime/form/fields/time/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/time/component.vue +218 -0
- package/dist/runtime/form/fields/time/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/time/config.d.ts +14 -0
- package/dist/runtime/form/fields/time/config.js +9 -0
- package/dist/runtime/form/fields/time/index.d.ts +2 -0
- package/dist/runtime/form/fields/time/index.js +1 -0
- package/dist/runtime/form/fields/time/types.d.ts +10 -0
- package/dist/runtime/form/fields/time/types.js +0 -0
- package/dist/runtime/form/fields/tree/config.d.ts +17 -0
- package/dist/runtime/form/fields/tree/config.js +10 -0
- package/dist/runtime/form/fields/tree/types.d.ts +1 -0
- package/dist/runtime/form/fields/tree/types.js +0 -0
- package/dist/runtime/form/fields/tree-select/config.d.ts +17 -0
- package/dist/runtime/form/fields/tree-select/config.js +10 -0
- package/dist/runtime/form/fields/tree-select/types.d.ts +1 -0
- package/dist/runtime/form/fields/tree-select/types.js +0 -0
- package/dist/runtime/form/fields/upload/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/upload/component.vue +132 -0
- package/dist/runtime/form/fields/upload/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/upload/config.d.ts +17 -0
- package/dist/runtime/form/fields/upload/config.js +10 -0
- package/dist/runtime/form/fields/upload/index.d.ts +2 -0
- package/dist/runtime/form/fields/upload/index.js +1 -0
- package/dist/runtime/form/fields/upload/types.d.ts +28 -0
- package/dist/runtime/form/fields/upload/types.js +0 -0
- package/dist/runtime/form/fields/year/config.d.ts +14 -0
- package/dist/runtime/form/fields/year/config.js +9 -0
- package/dist/runtime/form/fields/year/types.d.ts +1 -0
- package/dist/runtime/form/fields/year/types.js +0 -0
- package/dist/runtime/form/index.d.ts +11 -0
- package/dist/runtime/form/index.js +13 -0
- package/dist/runtime/form/schema/index.d.ts +84 -0
- package/dist/runtime/form/schema/index.js +9 -0
- package/dist/runtime/form/types/actions.d.ts +70 -0
- package/dist/runtime/form/types/actions.js +0 -0
- package/dist/runtime/form/types/api.d.ts +149 -0
- package/dist/runtime/form/types/api.js +0 -0
- package/dist/runtime/form/types/callbacks.d.ts +16 -0
- package/dist/runtime/form/types/callbacks.js +0 -0
- package/dist/runtime/form/types/context.d.ts +31 -0
- package/dist/runtime/form/types/context.js +0 -0
- package/dist/runtime/form/types/controller.d.ts +198 -0
- package/dist/runtime/form/types/controller.js +0 -0
- package/dist/runtime/form/types/dependencies.d.ts +27 -0
- package/dist/runtime/form/types/dependencies.js +0 -0
- package/dist/runtime/form/types/field-base.d.ts +126 -0
- package/dist/runtime/form/types/field-base.js +0 -0
- package/dist/runtime/form/types/field-kind.d.ts +36 -0
- package/dist/runtime/form/types/field-kind.js +0 -0
- package/dist/runtime/form/types/field-output-utils.d.ts +40 -0
- package/dist/runtime/form/types/field-output-utils.js +0 -0
- package/dist/runtime/form/types/field-output.d.ts +104 -0
- package/dist/runtime/form/types/field-output.js +0 -0
- package/dist/runtime/form/types/field.d.ts +88 -0
- package/dist/runtime/form/types/field.js +0 -0
- package/dist/runtime/form/types/focus.d.ts +9 -0
- package/dist/runtime/form/types/focus.js +0 -0
- package/dist/runtime/form/types/form-api.d.ts +92 -0
- package/dist/runtime/form/types/form-api.js +0 -0
- package/dist/runtime/form/types/index.d.ts +25 -0
- package/dist/runtime/form/types/index.js +0 -0
- package/dist/runtime/form/types/layout.d.ts +32 -0
- package/dist/runtime/form/types/layout.js +0 -0
- package/dist/runtime/form/types/options-runtime.d.ts +42 -0
- package/dist/runtime/form/types/options-runtime.js +0 -0
- package/dist/runtime/form/types/options.d.ts +66 -0
- package/dist/runtime/form/types/options.js +0 -0
- package/dist/runtime/form/types/output.d.ts +91 -0
- package/dist/runtime/form/types/output.js +0 -0
- package/dist/runtime/form/types/overlay.d.ts +44 -0
- package/dist/runtime/form/types/overlay.js +0 -0
- package/dist/runtime/form/types/runtime.d.ts +90 -0
- package/dist/runtime/form/types/runtime.js +0 -0
- package/dist/runtime/form/types/schema.d.ts +163 -0
- package/dist/runtime/form/types/schema.js +0 -0
- package/dist/runtime/form/types/transform.d.ts +10 -0
- package/dist/runtime/form/types/transform.js +0 -0
- package/dist/runtime/form/types/ui.d.ts +167 -0
- package/dist/runtime/form/types/ui.js +0 -0
- package/dist/runtime/form/types/upload-runtime.d.ts +6 -0
- package/dist/runtime/form/types/upload-runtime.js +0 -0
- package/dist/runtime/form/types/utils.d.ts +64 -0
- package/dist/runtime/form/types/utils.js +0 -0
- package/dist/runtime/form/types/validation.d.ts +64 -0
- package/dist/runtime/form/types/validation.js +0 -0
- package/dist/runtime/form/utils/api.d.ts +2 -0
- package/dist/runtime/form/utils/api.js +12 -0
- package/dist/runtime/form/utils/array.d.ts +2 -0
- package/dist/runtime/form/utils/array.js +19 -0
- package/dist/runtime/form/utils/dependencies.d.ts +6 -0
- package/dist/runtime/form/utils/dependencies.js +23 -0
- package/dist/runtime/form/utils/field-instance.d.ts +68 -0
- package/dist/runtime/form/utils/field-instance.js +57 -0
- package/dist/runtime/form/utils/field-kind.d.ts +17 -0
- package/dist/runtime/form/utils/field-kind.js +3 -0
- package/dist/runtime/form/utils/focus.d.ts +5 -0
- package/dist/runtime/form/utils/focus.js +47 -0
- package/dist/runtime/form/utils/layout.d.ts +10 -0
- package/dist/runtime/form/utils/layout.js +31 -0
- package/dist/runtime/form/utils/options.d.ts +11 -0
- package/dist/runtime/form/utils/options.js +36 -0
- package/dist/runtime/form/utils/overlay.d.ts +8 -0
- package/dist/runtime/form/utils/overlay.js +34 -0
- package/dist/runtime/form/utils/path.d.ts +1 -0
- package/dist/runtime/form/utils/path.js +10 -0
- package/dist/runtime/form/utils/state.d.ts +34 -0
- package/dist/runtime/form/utils/state.js +480 -0
- package/dist/runtime/form/utils/text.d.ts +2 -0
- package/dist/runtime/form/utils/text.js +5 -0
- package/dist/runtime/form/utils/ui.d.ts +5 -0
- package/dist/runtime/form/utils/ui.js +62 -0
- package/dist/runtime/i18n/define-locale.d.ts +13 -0
- package/dist/runtime/i18n/define-locale.js +31 -0
- package/dist/runtime/i18n/index.d.ts +5 -0
- package/dist/runtime/i18n/index.js +4 -0
- package/dist/runtime/i18n/locales/en.d.ts +3 -0
- package/dist/runtime/i18n/locales/en.js +248 -0
- package/dist/runtime/i18n/locales/fr.d.ts +3 -0
- package/dist/runtime/i18n/locales/fr.js +248 -0
- package/dist/runtime/i18n/locales/index.d.ts +2 -0
- package/dist/runtime/i18n/locales/index.js +2 -0
- package/dist/runtime/i18n/provider.d.vue.ts +17 -0
- package/dist/runtime/i18n/provider.vue +12 -0
- package/dist/runtime/i18n/provider.vue.d.ts +17 -0
- package/dist/runtime/i18n/types.d.ts +259 -0
- package/dist/runtime/i18n/types.js +0 -0
- package/dist/runtime/i18n/use-locale.d.ts +6 -0
- package/dist/runtime/i18n/use-locale.js +37 -0
- package/dist/runtime/i18n/utils.d.ts +14 -0
- package/dist/runtime/i18n/utils.js +20 -0
- package/dist/runtime/query-state/client.d.ts +79 -0
- package/dist/runtime/query-state/client.js +165 -0
- package/dist/runtime/query-state/codecs.d.ts +45 -0
- package/dist/runtime/query-state/codecs.js +41 -0
- package/dist/runtime/query-state/composables.d.ts +185 -0
- package/dist/runtime/query-state/composables.js +191 -0
- package/dist/runtime/query-state/index.d.ts +3 -0
- package/dist/runtime/query-state/index.js +16 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/shared/composables/use-range-select.d.ts +14 -0
- package/dist/runtime/shared/composables/use-range-select.js +27 -0
- package/dist/runtime/shared/composables/use-responsive-value.d.ts +6 -0
- package/dist/runtime/shared/composables/use-responsive-value.js +42 -0
- package/dist/runtime/shared/index.d.ts +10 -0
- package/dist/runtime/shared/index.js +10 -0
- package/dist/runtime/shared/types/responsive.d.ts +12 -0
- package/dist/runtime/shared/types/responsive.js +0 -0
- package/dist/runtime/shared/types/utils.d.ts +75 -0
- package/dist/runtime/shared/types/utils.js +0 -0
- package/dist/runtime/shared/utils/object.d.ts +4 -0
- package/dist/runtime/shared/utils/object.js +66 -0
- package/dist/runtime/shared/utils/path.d.ts +9 -0
- package/dist/runtime/shared/utils/path.js +82 -0
- package/dist/runtime/shared/utils/predicate.d.ts +213 -0
- package/dist/runtime/shared/utils/predicate.js +170 -0
- package/dist/runtime/shared/utils/registry.d.ts +7 -0
- package/dist/runtime/shared/utils/registry.js +9 -0
- package/dist/runtime/shared/utils/render.d.ts +6 -0
- package/dist/runtime/shared/utils/render.js +13 -0
- package/dist/runtime/shared/utils/responsive.d.ts +17 -0
- package/dist/runtime/shared/utils/responsive.js +46 -0
- package/dist/runtime/spreadsheet/components/SpreadsheetImport.d.vue.ts +18 -0
- package/dist/runtime/spreadsheet/components/SpreadsheetImport.vue +253 -0
- package/dist/runtime/spreadsheet/components/SpreadsheetImport.vue.d.ts +18 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportFileBar.d.vue.ts +9 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportFileBar.vue +31 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportFileBar.vue.d.ts +9 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportFooter.d.vue.ts +24 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportFooter.vue +69 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportFooter.vue.d.ts +24 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportHeader.d.vue.ts +12 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportHeader.vue +36 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportHeader.vue.d.ts +12 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportSidebar.d.vue.ts +9 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportSidebar.vue +63 -0
- package/dist/runtime/spreadsheet/components/layout/SpreadsheetImportSidebar.vue.d.ts +9 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetObjectPreviewTable.d.vue.ts +6 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetObjectPreviewTable.vue +64 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetObjectPreviewTable.vue.d.ts +6 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetRawPreviewTable.d.vue.ts +7 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetRawPreviewTable.vue +41 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetRawPreviewTable.vue.d.ts +7 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetSummaryStats.d.vue.ts +10 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetSummaryStats.vue +25 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetSummaryStats.vue.d.ts +10 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetValuePreview.d.vue.ts +9 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetValuePreview.vue +194 -0
- package/dist/runtime/spreadsheet/components/shared/SpreadsheetValuePreview.vue.d.ts +9 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportMatchingStep.d.vue.ts +7 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportMatchingStep.vue +132 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportMatchingStep.vue.d.ts +7 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportReferencesStep.d.vue.ts +7 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportReferencesStep.vue +200 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportReferencesStep.vue.d.ts +7 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportReviewStep.d.vue.ts +7 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportReviewStep.vue +186 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportReviewStep.vue.d.ts +7 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportStructureStep.d.vue.ts +7 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportStructureStep.vue +62 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportStructureStep.vue.d.ts +7 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportUploadStep.d.vue.ts +8 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportUploadStep.vue +76 -0
- package/dist/runtime/spreadsheet/components/steps/SpreadsheetImportUploadStep.vue.d.ts +8 -0
- package/dist/runtime/spreadsheet/components/steps/matching/SpreadsheetMatchingSummary.d.vue.ts +11 -0
- package/dist/runtime/spreadsheet/components/steps/matching/SpreadsheetMatchingSummary.vue +32 -0
- package/dist/runtime/spreadsheet/components/steps/matching/SpreadsheetMatchingSummary.vue.d.ts +11 -0
- package/dist/runtime/spreadsheet/components/steps/matching/SpreadsheetMatchingTable.d.vue.ts +45 -0
- package/dist/runtime/spreadsheet/components/steps/matching/SpreadsheetMatchingTable.vue +213 -0
- package/dist/runtime/spreadsheet/components/steps/matching/SpreadsheetMatchingTable.vue.d.ts +45 -0
- package/dist/runtime/spreadsheet/components/steps/references/SpreadsheetReferencesAccordion.d.vue.ts +51 -0
- package/dist/runtime/spreadsheet/components/steps/references/SpreadsheetReferencesAccordion.vue +166 -0
- package/dist/runtime/spreadsheet/components/steps/references/SpreadsheetReferencesAccordion.vue.d.ts +51 -0
- package/dist/runtime/spreadsheet/components/steps/references/SpreadsheetReferencesSummary.d.vue.ts +11 -0
- package/dist/runtime/spreadsheet/components/steps/references/SpreadsheetReferencesSummary.vue +26 -0
- package/dist/runtime/spreadsheet/components/steps/references/SpreadsheetReferencesSummary.vue.d.ts +11 -0
- package/dist/runtime/spreadsheet/components/steps/review/SpreadsheetReviewInspection.d.vue.ts +41 -0
- package/dist/runtime/spreadsheet/components/steps/review/SpreadsheetReviewInspection.vue +388 -0
- package/dist/runtime/spreadsheet/components/steps/review/SpreadsheetReviewInspection.vue.d.ts +41 -0
- package/dist/runtime/spreadsheet/components/steps/review/SpreadsheetReviewOverflowAlert.d.vue.ts +12 -0
- package/dist/runtime/spreadsheet/components/steps/review/SpreadsheetReviewOverflowAlert.vue +43 -0
- package/dist/runtime/spreadsheet/components/steps/review/SpreadsheetReviewOverflowAlert.vue.d.ts +12 -0
- package/dist/runtime/spreadsheet/components/steps/review/SpreadsheetReviewStats.d.vue.ts +15 -0
- package/dist/runtime/spreadsheet/components/steps/review/SpreadsheetReviewStats.vue +40 -0
- package/dist/runtime/spreadsheet/components/steps/review/SpreadsheetReviewStats.vue.d.ts +15 -0
- package/dist/runtime/spreadsheet/components/steps/structure/SpreadsheetStructurePreviewTable.d.vue.ts +15 -0
- package/dist/runtime/spreadsheet/components/steps/structure/SpreadsheetStructurePreviewTable.vue +95 -0
- package/dist/runtime/spreadsheet/components/steps/structure/SpreadsheetStructurePreviewTable.vue.d.ts +15 -0
- package/dist/runtime/spreadsheet/components/steps/structure/SpreadsheetStructureSheetList.d.vue.ts +15 -0
- package/dist/runtime/spreadsheet/components/steps/structure/SpreadsheetStructureSheetList.vue +56 -0
- package/dist/runtime/spreadsheet/components/steps/structure/SpreadsheetStructureSheetList.vue.d.ts +15 -0
- package/dist/runtime/spreadsheet/components/types.d.ts +41 -0
- package/dist/runtime/spreadsheet/components/types.js +0 -0
- package/dist/runtime/spreadsheet/composables/index.d.ts +1 -0
- package/dist/runtime/spreadsheet/composables/index.js +1 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-column-matching.d.ts +18 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-column-matching.js +62 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-context.d.ts +49 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-context.js +35 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-import.d.ts +8 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-import.js +118 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-internals.d.ts +629 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-internals.js +72 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-references.d.ts +1 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-references.js +3 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-resolutions.d.ts +40 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-resolutions.js +95 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-review.d.ts +173 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-review.js +393 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-row-state.d.ts +24 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-row-state.js +70 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-rows.d.ts +32 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-rows.js +26 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-source.d.ts +27 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-source.js +105 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-view.d.ts +15 -0
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-view.js +103 -0
- package/dist/runtime/spreadsheet/index.d.ts +4 -0
- package/dist/runtime/spreadsheet/index.js +3 -0
- package/dist/runtime/spreadsheet/schema/index.d.ts +32 -0
- package/dist/runtime/spreadsheet/schema/index.js +20 -0
- package/dist/runtime/spreadsheet/schema/normalize.d.ts +73 -0
- package/dist/runtime/spreadsheet/schema/normalize.js +127 -0
- package/dist/runtime/spreadsheet/types/columns.d.ts +298 -0
- package/dist/runtime/spreadsheet/types/columns.js +0 -0
- package/dist/runtime/spreadsheet/types/context.d.ts +9 -0
- package/dist/runtime/spreadsheet/types/context.js +0 -0
- package/dist/runtime/spreadsheet/types/import.d.ts +55 -0
- package/dist/runtime/spreadsheet/types/import.js +0 -0
- package/dist/runtime/spreadsheet/types/index.d.ts +15 -0
- package/dist/runtime/spreadsheet/types/index.js +0 -0
- package/dist/runtime/spreadsheet/types/inference.d.ts +83 -0
- package/dist/runtime/spreadsheet/types/inference.js +0 -0
- package/dist/runtime/spreadsheet/types/normalized.d.ts +50 -0
- package/dist/runtime/spreadsheet/types/normalized.js +0 -0
- package/dist/runtime/spreadsheet/types/options.d.ts +15 -0
- package/dist/runtime/spreadsheet/types/options.js +0 -0
- package/dist/runtime/spreadsheet/types/pipeline.d.ts +7 -0
- package/dist/runtime/spreadsheet/types/pipeline.js +0 -0
- package/dist/runtime/spreadsheet/types/reference-session.d.ts +42 -0
- package/dist/runtime/spreadsheet/types/reference-session.js +0 -0
- package/dist/runtime/spreadsheet/types/references.d.ts +31 -0
- package/dist/runtime/spreadsheet/types/references.js +0 -0
- package/dist/runtime/spreadsheet/types/resolution.d.ts +43 -0
- package/dist/runtime/spreadsheet/types/resolution.js +0 -0
- package/dist/runtime/spreadsheet/types/rows.d.ts +58 -0
- package/dist/runtime/spreadsheet/types/rows.js +0 -0
- package/dist/runtime/spreadsheet/types/schema.d.ts +87 -0
- package/dist/runtime/spreadsheet/types/schema.js +0 -0
- package/dist/runtime/spreadsheet/types/shared.d.ts +28 -0
- package/dist/runtime/spreadsheet/types/shared.js +0 -0
- package/dist/runtime/spreadsheet/types/source.d.ts +20 -0
- package/dist/runtime/spreadsheet/types/source.js +0 -0
- package/dist/runtime/spreadsheet/types/validation.d.ts +76 -0
- package/dist/runtime/spreadsheet/types/validation.js +0 -0
- package/dist/runtime/spreadsheet/utils/builders/core.d.ts +17 -0
- package/dist/runtime/spreadsheet/utils/builders/core.js +250 -0
- package/dist/runtime/spreadsheet/utils/builders/index.d.ts +1 -0
- package/dist/runtime/spreadsheet/utils/builders/index.js +1 -0
- package/dist/runtime/spreadsheet/utils/context.d.ts +20 -0
- package/dist/runtime/spreadsheet/utils/context.js +25 -0
- package/dist/runtime/spreadsheet/utils/display.d.ts +5 -0
- package/dist/runtime/spreadsheet/utils/display.js +16 -0
- package/dist/runtime/spreadsheet/utils/index.d.ts +6 -0
- package/dist/runtime/spreadsheet/utils/index.js +6 -0
- package/dist/runtime/spreadsheet/utils/object.d.ts +8 -0
- package/dist/runtime/spreadsheet/utils/object.js +63 -0
- package/dist/runtime/spreadsheet/utils/options.d.ts +8 -0
- package/dist/runtime/spreadsheet/utils/options.js +22 -0
- package/dist/runtime/spreadsheet/utils/references/candidates.d.ts +6 -0
- package/dist/runtime/spreadsheet/utils/references/candidates.js +22 -0
- package/dist/runtime/spreadsheet/utils/references/core.d.ts +3 -0
- package/dist/runtime/spreadsheet/utils/references/core.js +3 -0
- package/dist/runtime/spreadsheet/utils/references/guards.d.ts +4 -0
- package/dist/runtime/spreadsheet/utils/references/guards.js +24 -0
- package/dist/runtime/spreadsheet/utils/references/index.d.ts +1 -0
- package/dist/runtime/spreadsheet/utils/references/index.js +1 -0
- package/dist/runtime/spreadsheet/utils/references/resolutions.d.ts +17 -0
- package/dist/runtime/spreadsheet/utils/references/resolutions.js +153 -0
- package/dist/runtime/spreadsheet/utils/references/shared.d.ts +2 -0
- package/dist/runtime/spreadsheet/utils/references/shared.js +16 -0
- package/dist/runtime/spreadsheet/utils/references/sources.d.ts +9 -0
- package/dist/runtime/spreadsheet/utils/references/sources.js +34 -0
- package/dist/runtime/spreadsheet/utils/rows/core.d.ts +4 -0
- package/dist/runtime/spreadsheet/utils/rows/core.js +4 -0
- package/dist/runtime/spreadsheet/utils/rows/headers.d.ts +2 -0
- package/dist/runtime/spreadsheet/utils/rows/headers.js +9 -0
- package/dist/runtime/spreadsheet/utils/rows/index.d.ts +1 -0
- package/dist/runtime/spreadsheet/utils/rows/index.js +1 -0
- package/dist/runtime/spreadsheet/utils/rows/matching.d.ts +6 -0
- package/dist/runtime/spreadsheet/utils/rows/matching.js +169 -0
- package/dist/runtime/spreadsheet/utils/rows/parsing.d.ts +8 -0
- package/dist/runtime/spreadsheet/utils/rows/parsing.js +179 -0
- package/dist/runtime/spreadsheet/utils/rows/shared.d.ts +18 -0
- package/dist/runtime/spreadsheet/utils/rows/shared.js +259 -0
- package/dist/runtime/spreadsheet/utils/rows/summary.d.ts +2 -0
- package/dist/runtime/spreadsheet/utils/rows/summary.js +10 -0
- package/dist/runtime/spreadsheet/utils/source/core.d.ts +9 -0
- package/dist/runtime/spreadsheet/utils/source/core.js +54 -0
- package/dist/runtime/spreadsheet/utils/source/index.d.ts +1 -0
- package/dist/runtime/spreadsheet/utils/source/index.js +1 -0
- package/dist/runtime/spreadsheet/utils/validation/core.d.ts +16 -0
- package/dist/runtime/spreadsheet/utils/validation/core.js +192 -0
- package/dist/runtime/spreadsheet/utils/validation/index.d.ts +1 -0
- package/dist/runtime/spreadsheet/utils/validation/index.js +1 -0
- package/dist/runtime/table/builders/index.d.ts +7 -0
- package/dist/runtime/table/builders/index.js +83 -0
- package/dist/runtime/table/components/DataList.d.vue.ts +72 -0
- package/dist/runtime/table/components/DataList.vue +56 -0
- package/dist/runtime/table/components/DataList.vue.d.ts +72 -0
- package/dist/runtime/table/components/actions/RowActions.d.vue.ts +25 -0
- package/dist/runtime/table/components/actions/RowActions.vue +54 -0
- package/dist/runtime/table/components/actions/RowActions.vue.d.ts +25 -0
- package/dist/runtime/table/components/actions/TableRowScopeProvider.d.vue.ts +17 -0
- package/dist/runtime/table/components/actions/TableRowScopeProvider.vue +14 -0
- package/dist/runtime/table/components/actions/TableRowScopeProvider.vue.d.ts +17 -0
- package/dist/runtime/table/components/data-list/DataListAddFilter.d.vue.ts +27 -0
- package/dist/runtime/table/components/data-list/DataListAddFilter.vue +39 -0
- package/dist/runtime/table/components/data-list/DataListAddFilter.vue.d.ts +27 -0
- package/dist/runtime/table/components/data-list/DataListClearFilters.d.vue.ts +25 -0
- package/dist/runtime/table/components/data-list/DataListClearFilters.vue +38 -0
- package/dist/runtime/table/components/data-list/DataListClearFilters.vue.d.ts +25 -0
- package/dist/runtime/table/components/data-list/DataListColumnPanel.d.vue.ts +27 -0
- package/dist/runtime/table/components/data-list/DataListColumnPanel.vue +17 -0
- package/dist/runtime/table/components/data-list/DataListColumnPanel.vue.d.ts +27 -0
- package/dist/runtime/table/components/data-list/DataListContent.d.vue.ts +72 -0
- package/dist/runtime/table/components/data-list/DataListContent.vue +167 -0
- package/dist/runtime/table/components/data-list/DataListContent.vue.d.ts +72 -0
- package/dist/runtime/table/components/data-list/DataListDefault.d.vue.ts +60 -0
- package/dist/runtime/table/components/data-list/DataListDefault.vue +125 -0
- package/dist/runtime/table/components/data-list/DataListDefault.vue.d.ts +60 -0
- package/dist/runtime/table/components/data-list/DataListFilterPanel.d.vue.ts +27 -0
- package/dist/runtime/table/components/data-list/DataListFilterPanel.vue +17 -0
- package/dist/runtime/table/components/data-list/DataListFilterPanel.vue.d.ts +27 -0
- package/dist/runtime/table/components/data-list/DataListFilterTags.d.vue.ts +42 -0
- package/dist/runtime/table/components/data-list/DataListFilterTags.vue +54 -0
- package/dist/runtime/table/components/data-list/DataListFilterTags.vue.d.ts +42 -0
- package/dist/runtime/table/components/data-list/DataListGrid.d.vue.ts +18 -0
- package/dist/runtime/table/components/data-list/DataListGrid.vue +22 -0
- package/dist/runtime/table/components/data-list/DataListGrid.vue.d.ts +18 -0
- package/dist/runtime/table/components/data-list/DataListInfiniteLoader.d.vue.ts +52 -0
- package/dist/runtime/table/components/data-list/DataListInfiniteLoader.vue +94 -0
- package/dist/runtime/table/components/data-list/DataListInfiniteLoader.vue.d.ts +52 -0
- package/dist/runtime/table/components/data-list/DataListLayoutSwitch.d.vue.ts +27 -0
- package/dist/runtime/table/components/data-list/DataListLayoutSwitch.vue +60 -0
- package/dist/runtime/table/components/data-list/DataListLayoutSwitch.vue.d.ts +27 -0
- package/dist/runtime/table/components/data-list/DataListPagination.d.vue.ts +37 -0
- package/dist/runtime/table/components/data-list/DataListPagination.vue +26 -0
- package/dist/runtime/table/components/data-list/DataListPagination.vue.d.ts +37 -0
- package/dist/runtime/table/components/data-list/DataListRefresh.d.vue.ts +28 -0
- package/dist/runtime/table/components/data-list/DataListRefresh.vue +49 -0
- package/dist/runtime/table/components/data-list/DataListRefresh.vue.d.ts +28 -0
- package/dist/runtime/table/components/data-list/DataListResultCount.d.vue.ts +21 -0
- package/dist/runtime/table/components/data-list/DataListResultCount.vue +29 -0
- package/dist/runtime/table/components/data-list/DataListResultCount.vue.d.ts +21 -0
- package/dist/runtime/table/components/data-list/DataListRoot.d.vue.ts +31 -0
- package/dist/runtime/table/components/data-list/DataListRoot.vue +81 -0
- package/dist/runtime/table/components/data-list/DataListRoot.vue.d.ts +31 -0
- package/dist/runtime/table/components/data-list/DataListSearch.d.vue.ts +10 -0
- package/dist/runtime/table/components/data-list/DataListSearch.vue +36 -0
- package/dist/runtime/table/components/data-list/DataListSearch.vue.d.ts +10 -0
- package/dist/runtime/table/components/data-list/DataListSortMenu.d.vue.ts +34 -0
- package/dist/runtime/table/components/data-list/DataListSortMenu.vue +104 -0
- package/dist/runtime/table/components/data-list/DataListSortMenu.vue.d.ts +34 -0
- package/dist/runtime/table/components/data-list/DataListTable.d.vue.ts +18 -0
- package/dist/runtime/table/components/data-list/DataListTable.vue +22 -0
- package/dist/runtime/table/components/data-list/DataListTable.vue.d.ts +18 -0
- package/dist/runtime/table/components/drawers/ColumnPanel.d.vue.ts +26 -0
- package/dist/runtime/table/components/drawers/ColumnPanel.vue +379 -0
- package/dist/runtime/table/components/drawers/ColumnPanel.vue.d.ts +26 -0
- package/dist/runtime/table/components/filters/panel/BooleanFilterPanelField.d.vue.ts +7 -0
- package/dist/runtime/table/components/filters/panel/BooleanFilterPanelField.vue +108 -0
- package/dist/runtime/table/components/filters/panel/BooleanFilterPanelField.vue.d.ts +7 -0
- package/dist/runtime/table/components/filters/panel/DateFilterPanelField.d.vue.ts +7 -0
- package/dist/runtime/table/components/filters/panel/DateFilterPanelField.vue +188 -0
- package/dist/runtime/table/components/filters/panel/DateFilterPanelField.vue.d.ts +7 -0
- package/dist/runtime/table/components/filters/panel/FilterPanel.d.vue.ts +26 -0
- package/dist/runtime/table/components/filters/panel/FilterPanel.vue +132 -0
- package/dist/runtime/table/components/filters/panel/FilterPanel.vue.d.ts +26 -0
- package/dist/runtime/table/components/filters/panel/FilterPanelFieldShell.d.vue.ts +17 -0
- package/dist/runtime/table/components/filters/panel/FilterPanelFieldShell.vue +25 -0
- package/dist/runtime/table/components/filters/panel/FilterPanelFieldShell.vue.d.ts +17 -0
- package/dist/runtime/table/components/filters/panel/FilterPanelInputTrigger.d.vue.ts +8 -0
- package/dist/runtime/table/components/filters/panel/FilterPanelInputTrigger.vue +22 -0
- package/dist/runtime/table/components/filters/panel/FilterPanelInputTrigger.vue.d.ts +8 -0
- package/dist/runtime/table/components/filters/panel/NumberFilterPanelField.d.vue.ts +7 -0
- package/dist/runtime/table/components/filters/panel/NumberFilterPanelField.vue +151 -0
- package/dist/runtime/table/components/filters/panel/NumberFilterPanelField.vue.d.ts +7 -0
- package/dist/runtime/table/components/filters/panel/OptionFilterPanelField.d.vue.ts +7 -0
- package/dist/runtime/table/components/filters/panel/OptionFilterPanelField.vue +125 -0
- package/dist/runtime/table/components/filters/panel/OptionFilterPanelField.vue.d.ts +7 -0
- package/dist/runtime/table/components/filters/panel/TextFilterPanelField.d.vue.ts +7 -0
- package/dist/runtime/table/components/filters/panel/TextFilterPanelField.vue +86 -0
- package/dist/runtime/table/components/filters/panel/TextFilterPanelField.vue.d.ts +7 -0
- package/dist/runtime/table/components/filters/panel/registry.d.ts +3 -0
- package/dist/runtime/table/components/filters/panel/registry.js +15 -0
- package/dist/runtime/table/components/filters/shared/DynamicFilterPicker.d.vue.ts +36 -0
- package/dist/runtime/table/components/filters/shared/DynamicFilterPicker.vue +133 -0
- package/dist/runtime/table/components/filters/shared/DynamicFilterPicker.vue.d.ts +36 -0
- package/dist/runtime/table/components/filters/shared/FilterMatchModeButton.d.vue.ts +22 -0
- package/dist/runtime/table/components/filters/shared/FilterMatchModeButton.vue +34 -0
- package/dist/runtime/table/components/filters/shared/FilterMatchModeButton.vue.d.ts +22 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionMultipleList.d.vue.ts +39 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionMultipleList.vue +40 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionMultipleList.vue.d.ts +39 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionPickerContent.d.vue.ts +43 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionPickerContent.vue +114 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionPickerContent.vue.d.ts +43 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionRow.d.vue.ts +12 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionRow.vue +36 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionRow.vue.d.ts +12 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionSingleList.d.vue.ts +21 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionSingleList.vue +49 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionSingleList.vue.d.ts +21 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionTreeContent.d.vue.ts +49 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionTreeContent.vue +123 -0
- package/dist/runtime/table/components/filters/shared/FilterOptionTreeContent.vue.d.ts +49 -0
- package/dist/runtime/table/components/filters/shared/FilterSearchablePanel.d.vue.ts +32 -0
- package/dist/runtime/table/components/filters/shared/FilterSearchablePanel.vue +56 -0
- package/dist/runtime/table/components/filters/shared/FilterSearchablePanel.vue.d.ts +32 -0
- package/dist/runtime/table/components/filters/shared/FilterTriggerTag.d.vue.ts +24 -0
- package/dist/runtime/table/components/filters/shared/FilterTriggerTag.vue +138 -0
- package/dist/runtime/table/components/filters/shared/FilterTriggerTag.vue.d.ts +24 -0
- package/dist/runtime/table/components/filters/tags/BooleanFilterTag.d.vue.ts +35 -0
- package/dist/runtime/table/components/filters/tags/BooleanFilterTag.vue +211 -0
- package/dist/runtime/table/components/filters/tags/BooleanFilterTag.vue.d.ts +35 -0
- package/dist/runtime/table/components/filters/tags/DateFilterTag.d.vue.ts +35 -0
- package/dist/runtime/table/components/filters/tags/DateFilterTag.vue +460 -0
- package/dist/runtime/table/components/filters/tags/DateFilterTag.vue.d.ts +35 -0
- package/dist/runtime/table/components/filters/tags/FilterTagsBar.d.vue.ts +35 -0
- package/dist/runtime/table/components/filters/tags/FilterTagsBar.vue +110 -0
- package/dist/runtime/table/components/filters/tags/FilterTagsBar.vue.d.ts +35 -0
- package/dist/runtime/table/components/filters/tags/NumberFilterTag.d.vue.ts +35 -0
- package/dist/runtime/table/components/filters/tags/NumberFilterTag.vue +321 -0
- package/dist/runtime/table/components/filters/tags/NumberFilterTag.vue.d.ts +35 -0
- package/dist/runtime/table/components/filters/tags/OptionFilterTag.d.vue.ts +35 -0
- package/dist/runtime/table/components/filters/tags/OptionFilterTag.vue +254 -0
- package/dist/runtime/table/components/filters/tags/OptionFilterTag.vue.d.ts +35 -0
- package/dist/runtime/table/components/filters/tags/TextFilterTag.d.vue.ts +35 -0
- package/dist/runtime/table/components/filters/tags/TextFilterTag.vue +171 -0
- package/dist/runtime/table/components/filters/tags/TextFilterTag.vue.d.ts +35 -0
- package/dist/runtime/table/components/filters/tags/registry.d.ts +3 -0
- package/dist/runtime/table/components/filters/tags/registry.js +15 -0
- package/dist/runtime/table/components/grid/GridCard.d.vue.ts +6 -0
- package/dist/runtime/table/components/grid/GridCard.vue +44 -0
- package/dist/runtime/table/components/grid/GridCard.vue.d.ts +6 -0
- package/dist/runtime/table/components/grid/GridRenderer.d.vue.ts +20 -0
- package/dist/runtime/table/components/grid/GridRenderer.vue +526 -0
- package/dist/runtime/table/components/grid/GridRenderer.vue.d.ts +20 -0
- package/dist/runtime/table/components/grid/GridSkeleton.d.vue.ts +3 -0
- package/dist/runtime/table/components/grid/GridSkeleton.vue +46 -0
- package/dist/runtime/table/components/grid/GridSkeleton.vue.d.ts +3 -0
- package/dist/runtime/table/components/layout/TableFooter.d.vue.ts +50 -0
- package/dist/runtime/table/components/layout/TableFooter.vue +171 -0
- package/dist/runtime/table/components/layout/TableFooter.vue.d.ts +50 -0
- package/dist/runtime/table/components/layout/TableHeader.d.vue.ts +32 -0
- package/dist/runtime/table/components/layout/TableHeader.vue +96 -0
- package/dist/runtime/table/components/layout/TableHeader.vue.d.ts +32 -0
- package/dist/runtime/table/components/table/TableCellEllipsis.d.ts +33 -0
- package/dist/runtime/table/components/table/TableCellEllipsis.js +83 -0
- package/dist/runtime/table/components/table/TableEmptyState.d.vue.ts +6 -0
- package/dist/runtime/table/components/table/TableEmptyState.vue +21 -0
- package/dist/runtime/table/components/table/TableEmptyState.vue.d.ts +6 -0
- package/dist/runtime/table/components/table/TableLoadingState.d.vue.ts +6 -0
- package/dist/runtime/table/components/table/TableLoadingState.vue +68 -0
- package/dist/runtime/table/components/table/TableLoadingState.vue.d.ts +6 -0
- package/dist/runtime/table/components/table/TableRenderer.d.vue.ts +18 -0
- package/dist/runtime/table/components/table/TableRenderer.vue +148 -0
- package/dist/runtime/table/components/table/TableRenderer.vue.d.ts +18 -0
- package/dist/runtime/table/components/utils/SearchQueryInput.d.vue.ts +18 -0
- package/dist/runtime/table/components/utils/SearchQueryInput.vue +41 -0
- package/dist/runtime/table/components/utils/SearchQueryInput.vue.d.ts +18 -0
- package/dist/runtime/table/composables/index.d.ts +1 -0
- package/dist/runtime/table/composables/index.js +1 -0
- package/dist/runtime/table/composables/use-data-list-ui.d.ts +12 -0
- package/dist/runtime/table/composables/use-data-list-ui.js +24 -0
- package/dist/runtime/table/composables/use-data-list-viewport.d.ts +7 -0
- package/dist/runtime/table/composables/use-data-list-viewport.js +12 -0
- package/dist/runtime/table/composables/use-filter-tag-session.d.ts +19 -0
- package/dist/runtime/table/composables/use-filter-tag-session.js +59 -0
- package/dist/runtime/table/composables/use-grid-row.d.ts +2 -0
- package/dist/runtime/table/composables/use-grid-row.js +3 -0
- package/dist/runtime/table/composables/use-option-filter-editor-state.d.ts +95 -0
- package/dist/runtime/table/composables/use-option-filter-editor-state.js +257 -0
- package/dist/runtime/table/composables/use-query-state.d.ts +48 -0
- package/dist/runtime/table/composables/use-query-state.js +151 -0
- package/dist/runtime/table/composables/use-table-api.d.ts +22 -0
- package/dist/runtime/table/composables/use-table-api.js +133 -0
- package/dist/runtime/table/composables/use-table-columns.d.ts +208 -0
- package/dist/runtime/table/composables/use-table-columns.js +221 -0
- package/dist/runtime/table/composables/use-table-controls.d.ts +18 -0
- package/dist/runtime/table/composables/use-table-controls.js +25 -0
- package/dist/runtime/table/composables/use-table-data.d.ts +50 -0
- package/dist/runtime/table/composables/use-table-data.js +562 -0
- package/dist/runtime/table/composables/use-table-filter-options.d.ts +31 -0
- package/dist/runtime/table/composables/use-table-filter-options.js +251 -0
- package/dist/runtime/table/composables/use-table-filter-presentation.d.ts +67 -0
- package/dist/runtime/table/composables/use-table-filter-presentation.js +208 -0
- package/dist/runtime/table/composables/use-table-filters.d.ts +81 -0
- package/dist/runtime/table/composables/use-table-filters.js +231 -0
- package/dist/runtime/table/composables/use-table-grid.d.ts +20 -0
- package/dist/runtime/table/composables/use-table-grid.js +59 -0
- package/dist/runtime/table/composables/use-table-internals.d.ts +1475 -0
- package/dist/runtime/table/composables/use-table-internals.js +107 -0
- package/dist/runtime/table/composables/use-table-layout.d.ts +11 -0
- package/dist/runtime/table/composables/use-table-layout.js +32 -0
- package/dist/runtime/table/composables/use-table-pagination.d.ts +42 -0
- package/dist/runtime/table/composables/use-table-pagination.js +127 -0
- package/dist/runtime/table/composables/use-table-row-actions.d.ts +5 -0
- package/dist/runtime/table/composables/use-table-row-actions.js +8 -0
- package/dist/runtime/table/composables/use-table-search.d.ts +12 -0
- package/dist/runtime/table/composables/use-table-search.js +26 -0
- package/dist/runtime/table/composables/use-table-selection.d.ts +45 -0
- package/dist/runtime/table/composables/use-table-selection.js +152 -0
- package/dist/runtime/table/composables/use-table-startup.d.ts +11 -0
- package/dist/runtime/table/composables/use-table-startup.js +47 -0
- package/dist/runtime/table/composables/use-table-state.d.ts +52 -0
- package/dist/runtime/table/composables/use-table-state.js +20 -0
- package/dist/runtime/table/composables/use-table.d.ts +7 -0
- package/dist/runtime/table/composables/use-table.js +13 -0
- package/dist/runtime/table/constants/grid.d.ts +8 -0
- package/dist/runtime/table/constants/grid.js +8 -0
- package/dist/runtime/table/constants/query-state.d.ts +25 -0
- package/dist/runtime/table/constants/query-state.js +26 -0
- package/dist/runtime/table/index.d.ts +5 -0
- package/dist/runtime/table/index.js +4 -0
- package/dist/runtime/table/schema/index.d.ts +15 -0
- package/dist/runtime/table/schema/index.js +16 -0
- package/dist/runtime/table/types/actions.d.ts +32 -0
- package/dist/runtime/table/types/actions.js +0 -0
- package/dist/runtime/table/types/columns.d.ts +62 -0
- package/dist/runtime/table/types/columns.js +0 -0
- package/dist/runtime/table/types/context.d.ts +26 -0
- package/dist/runtime/table/types/context.js +0 -0
- package/dist/runtime/table/types/data-list.d.ts +246 -0
- package/dist/runtime/table/types/data-list.js +0 -0
- package/dist/runtime/table/types/filters.d.ts +636 -0
- package/dist/runtime/table/types/filters.js +0 -0
- package/dist/runtime/table/types/index.d.ts +12 -0
- package/dist/runtime/table/types/index.js +0 -0
- package/dist/runtime/table/types/layout.d.ts +60 -0
- package/dist/runtime/table/types/layout.js +0 -0
- package/dist/runtime/table/types/query-state.d.ts +64 -0
- package/dist/runtime/table/types/query-state.js +0 -0
- package/dist/runtime/table/types/schema.d.ts +53 -0
- package/dist/runtime/table/types/schema.js +0 -0
- package/dist/runtime/table/types/source.d.ts +108 -0
- package/dist/runtime/table/types/source.js +0 -0
- package/dist/runtime/table/types/state.d.ts +5 -0
- package/dist/runtime/table/types/state.js +0 -0
- package/dist/runtime/table/types/table-api.d.ts +142 -0
- package/dist/runtime/table/types/table-api.js +0 -0
- package/dist/runtime/table/types/utils.d.ts +82 -0
- package/dist/runtime/table/types/utils.js +0 -0
- package/dist/runtime/table/utils/actions.d.ts +28 -0
- package/dist/runtime/table/utils/actions.js +101 -0
- package/dist/runtime/table/utils/client-query.d.ts +25 -0
- package/dist/runtime/table/utils/client-query.js +474 -0
- package/dist/runtime/table/utils/columns/index.d.ts +5 -0
- package/dist/runtime/table/utils/columns/index.js +5 -0
- package/dist/runtime/table/utils/columns/menu.d.ts +47 -0
- package/dist/runtime/table/utils/columns/menu.js +77 -0
- package/dist/runtime/table/utils/columns/render.d.ts +158 -0
- package/dist/runtime/table/utils/columns/render.js +432 -0
- package/dist/runtime/table/utils/columns/schema.d.ts +31 -0
- package/dist/runtime/table/utils/columns/schema.js +57 -0
- package/dist/runtime/table/utils/columns/state.d.ts +189 -0
- package/dist/runtime/table/utils/columns/state.js +204 -0
- package/dist/runtime/table/utils/columns/types.d.ts +79 -0
- package/dist/runtime/table/utils/columns/types.js +4 -0
- package/dist/runtime/table/utils/data-list-ui.d.ts +3 -0
- package/dist/runtime/table/utils/data-list-ui.js +4 -0
- package/dist/runtime/table/utils/filters/common.d.ts +62 -0
- package/dist/runtime/table/utils/filters/common.js +131 -0
- package/dist/runtime/table/utils/filters/date.d.ts +28 -0
- package/dist/runtime/table/utils/filters/date.js +233 -0
- package/dist/runtime/table/utils/filters/index.d.ts +9 -0
- package/dist/runtime/table/utils/filters/index.js +9 -0
- package/dist/runtime/table/utils/filters/operators.d.ts +4 -0
- package/dist/runtime/table/utils/filters/operators.js +6 -0
- package/dist/runtime/table/utils/filters/options.d.ts +20 -0
- package/dist/runtime/table/utils/filters/options.js +112 -0
- package/dist/runtime/table/utils/filters/presentation.d.ts +3 -0
- package/dist/runtime/table/utils/filters/presentation.js +18 -0
- package/dist/runtime/table/utils/filters/preview/date-preview.d.ts +6 -0
- package/dist/runtime/table/utils/filters/preview/date-preview.js +41 -0
- package/dist/runtime/table/utils/filters/preview/index.d.ts +8 -0
- package/dist/runtime/table/utils/filters/preview/index.js +38 -0
- package/dist/runtime/table/utils/filters/preview/number-preview.d.ts +6 -0
- package/dist/runtime/table/utils/filters/preview/number-preview.js +35 -0
- package/dist/runtime/table/utils/filters/preview/option-preview.d.ts +7 -0
- package/dist/runtime/table/utils/filters/preview/option-preview.js +61 -0
- package/dist/runtime/table/utils/filters/preview/text-preview.d.ts +6 -0
- package/dist/runtime/table/utils/filters/preview/text-preview.js +16 -0
- package/dist/runtime/table/utils/filters/preview/types.d.ts +10 -0
- package/dist/runtime/table/utils/filters/preview/types.js +0 -0
- package/dist/runtime/table/utils/filters/preview.d.ts +2 -0
- package/dist/runtime/table/utils/filters/preview.js +1 -0
- package/dist/runtime/table/utils/filters/registry.d.ts +6 -0
- package/dist/runtime/table/utils/filters/registry.js +28 -0
- package/dist/runtime/table/utils/filters/tree.d.ts +21 -0
- package/dist/runtime/table/utils/filters/tree.js +121 -0
- package/dist/runtime/table/utils/filters/ui.d.ts +7 -0
- package/dist/runtime/table/utils/filters/ui.js +444 -0
- package/dist/runtime/table/utils/index.d.ts +10 -0
- package/dist/runtime/table/utils/index.js +10 -0
- package/dist/runtime/table/utils/pagination.d.ts +6 -0
- package/dist/runtime/table/utils/pagination.js +20 -0
- package/dist/runtime/table/utils/query-state.d.ts +29 -0
- package/dist/runtime/table/utils/query-state.js +200 -0
- package/dist/runtime/table/utils/resolved-filters.d.ts +7 -0
- package/dist/runtime/table/utils/resolved-filters.js +68 -0
- package/dist/runtime/table/utils/rows.d.ts +10 -0
- package/dist/runtime/table/utils/rows.js +17 -0
- package/dist/runtime/table/utils/schema.d.ts +14 -0
- package/dist/runtime/table/utils/schema.js +29 -0
- package/dist/types.d.mts +3 -0
- package/package.json +163 -0
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { computed, inject, provide, ref, watch } from "vue";
|
|
2
|
+
import { createPublicFormApi } from "../utils/api.js";
|
|
3
|
+
import { resolveFieldDependencies } from "../utils/dependencies.js";
|
|
4
|
+
import { resolveFormLayoutConfig } from "../utils/layout.js";
|
|
5
|
+
import { isRecord } from "../utils/path.js";
|
|
6
|
+
import {
|
|
7
|
+
childParentPath,
|
|
8
|
+
collectFormFieldPaths,
|
|
9
|
+
collectFormFieldsPaths,
|
|
10
|
+
fieldPath,
|
|
11
|
+
getSchemaFields,
|
|
12
|
+
getSchemaLayout,
|
|
13
|
+
getSchemaSteps,
|
|
14
|
+
isSteppedSchema,
|
|
15
|
+
shouldRenderField
|
|
16
|
+
} from "../utils/state.js";
|
|
17
|
+
import { getSchemaContext, useFormContextResources } from "./use-form-context-resources.js";
|
|
18
|
+
import { useFormFocus } from "./use-form-focus.js";
|
|
19
|
+
import { useFormOptionRegistry } from "./use-form-option-registry.js";
|
|
20
|
+
import { useFormState } from "./use-form-state.js";
|
|
21
|
+
import { useFormSubmitController } from "./use-form-submit.js";
|
|
22
|
+
import { useFormUploadRegistry } from "./use-form-upload-registry.js";
|
|
23
|
+
import { useFormValidation } from "./use-form-validation.js";
|
|
24
|
+
const formRuntimeKey = Symbol("nuxt-ui-tools-form-runtime");
|
|
25
|
+
export function provideFormRuntime(runtime) {
|
|
26
|
+
provide(formRuntimeKey, runtime);
|
|
27
|
+
}
|
|
28
|
+
export function useFormRuntimeContext() {
|
|
29
|
+
const runtime = inject(formRuntimeKey);
|
|
30
|
+
if (!runtime) throw new Error("Form runtime is not provided.");
|
|
31
|
+
return runtime;
|
|
32
|
+
}
|
|
33
|
+
export function useFormRuntime(params) {
|
|
34
|
+
const { context, setContext } = useFormContextResources();
|
|
35
|
+
const optionRegistry = useFormOptionRegistry();
|
|
36
|
+
const uploadRegistry = useFormUploadRegistry();
|
|
37
|
+
const currentStepIndex = ref(0);
|
|
38
|
+
const navigationActionPending = ref(null);
|
|
39
|
+
setContext(getSchemaContext(params.schema.value));
|
|
40
|
+
const apiFactory = (path, field) => createFieldApi({
|
|
41
|
+
path,
|
|
42
|
+
field,
|
|
43
|
+
getValue: state.getValue,
|
|
44
|
+
setValue: state.setValue,
|
|
45
|
+
resetValue: state.resetValue,
|
|
46
|
+
ctx: context,
|
|
47
|
+
state: state.state,
|
|
48
|
+
optionRegistry,
|
|
49
|
+
uploadRegistry,
|
|
50
|
+
focusField: () => focus.focusField(path),
|
|
51
|
+
setExternalError: (message) => validation.setError(path, message),
|
|
52
|
+
clearExternalError: () => validation.clearError(path),
|
|
53
|
+
validateField: () => field ? validation.validateFields([field], path.slice(0, -1)) : Promise.resolve(true)
|
|
54
|
+
});
|
|
55
|
+
const state = useFormState({
|
|
56
|
+
schema: params.schema,
|
|
57
|
+
input: params.input,
|
|
58
|
+
context,
|
|
59
|
+
apiFactory
|
|
60
|
+
});
|
|
61
|
+
const validation = useFormValidation({
|
|
62
|
+
schema: () => params.schema.value,
|
|
63
|
+
state: state.state,
|
|
64
|
+
context,
|
|
65
|
+
apiFactory,
|
|
66
|
+
getValidationMode: () => params.validationMode?.value ?? true
|
|
67
|
+
});
|
|
68
|
+
const focus = useFormFocus({
|
|
69
|
+
getErrors: () => validation.errors.value
|
|
70
|
+
});
|
|
71
|
+
async function validate(options) {
|
|
72
|
+
const valid = await validation.validate();
|
|
73
|
+
if (!valid && options?.focus) await focus.focusFirstInvalid();
|
|
74
|
+
return valid;
|
|
75
|
+
}
|
|
76
|
+
async function validateCurrentStep(options) {
|
|
77
|
+
const valid = await validation.validateFields(
|
|
78
|
+
currentFields.value,
|
|
79
|
+
currentStepRoot.value ? [currentStepRoot.value] : []
|
|
80
|
+
);
|
|
81
|
+
if (!valid && options?.focus) await focus.focusFirstInvalid();
|
|
82
|
+
return valid;
|
|
83
|
+
}
|
|
84
|
+
const submit = useFormSubmitController({
|
|
85
|
+
validate: () => {
|
|
86
|
+
validation.markAllTouched(collectFormFieldPaths(params.schema.value));
|
|
87
|
+
return validate();
|
|
88
|
+
},
|
|
89
|
+
focusFirstInvalid: focus.focusFirstInvalid,
|
|
90
|
+
getOutput: () => state.output.value,
|
|
91
|
+
getApi: () => createPublicFormApi(runtime),
|
|
92
|
+
getSchema: () => params.schema.value,
|
|
93
|
+
getContext: () => context
|
|
94
|
+
});
|
|
95
|
+
state.initialize();
|
|
96
|
+
if (params.input)
|
|
97
|
+
watch(params.input, (input) => state.syncInput(input, params.syncInput?.value ?? false), {
|
|
98
|
+
deep: true
|
|
99
|
+
});
|
|
100
|
+
watch(params.schema, (schema) => {
|
|
101
|
+
currentStepIndex.value = 0;
|
|
102
|
+
validation.clearError();
|
|
103
|
+
setContext(getSchemaContext(schema));
|
|
104
|
+
state.initialize(params.input?.value);
|
|
105
|
+
});
|
|
106
|
+
const currentFields = computed(() => {
|
|
107
|
+
if (!isSteppedSchema(params.schema.value)) return getSchemaFields(params.schema.value);
|
|
108
|
+
return getSchemaSteps(params.schema.value)[currentStepIndex.value]?.fields ?? [];
|
|
109
|
+
});
|
|
110
|
+
const currentStepRoot = computed(() => {
|
|
111
|
+
if (!isSteppedSchema(params.schema.value)) return void 0;
|
|
112
|
+
return getSchemaSteps(params.schema.value)[currentStepIndex.value]?.root;
|
|
113
|
+
});
|
|
114
|
+
const currentLayout = computed(() => {
|
|
115
|
+
const schemaLayout = getSchemaLayout(params.schema.value);
|
|
116
|
+
if (!isSteppedSchema(params.schema.value)) return resolveFormLayoutConfig(schemaLayout);
|
|
117
|
+
return resolveFormLayoutConfig(
|
|
118
|
+
schemaLayout,
|
|
119
|
+
getSchemaSteps(params.schema.value)[currentStepIndex.value]?.layout
|
|
120
|
+
);
|
|
121
|
+
});
|
|
122
|
+
const steps = computed(
|
|
123
|
+
() => getSchemaSteps(params.schema.value).map((step, index) => ({
|
|
124
|
+
key: step.key ?? String(index + 1),
|
|
125
|
+
label: typeof step.title === "function" ? String(step.title()) : String(step.title ?? step.key ?? `Step ${index + 1}`),
|
|
126
|
+
active: currentStepIndex.value === index,
|
|
127
|
+
index,
|
|
128
|
+
root: step.root
|
|
129
|
+
}))
|
|
130
|
+
);
|
|
131
|
+
const currentStep = computed(() => steps.value[currentStepIndex.value] ?? null);
|
|
132
|
+
const isStepped = computed(() => isSteppedSchema(params.schema.value));
|
|
133
|
+
const isFirstStep = computed(() => currentStepIndex.value <= 0);
|
|
134
|
+
const isLastStep = computed(() => currentStepIndex.value >= steps.value.length - 1);
|
|
135
|
+
const canGoPrevious = computed(() => isStepped.value && !isFirstStep.value);
|
|
136
|
+
const canGoNext = computed(() => isStepped.value && !isLastStep.value);
|
|
137
|
+
const actionPending = computed(() => navigationActionPending.value ?? submit.actionPending.value);
|
|
138
|
+
async function runBeforeNext() {
|
|
139
|
+
const handler = getSchemaLifecycleHandler(params.schema.value, "onBeforeNext");
|
|
140
|
+
if (!handler) return true;
|
|
141
|
+
try {
|
|
142
|
+
const result = await withNavigationPending(
|
|
143
|
+
"next",
|
|
144
|
+
() => handler(createStepLifecycleParams(currentStepIndex.value))
|
|
145
|
+
);
|
|
146
|
+
return result !== false;
|
|
147
|
+
} catch {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
async function runBeforePrevious() {
|
|
152
|
+
const handler = getSchemaLifecycleHandler(params.schema.value, "onBeforePrevious");
|
|
153
|
+
if (!handler) return true;
|
|
154
|
+
try {
|
|
155
|
+
await withNavigationPending(
|
|
156
|
+
"previous",
|
|
157
|
+
() => handler(createStepLifecycleParams(currentStepIndex.value))
|
|
158
|
+
);
|
|
159
|
+
return true;
|
|
160
|
+
} catch {
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
async function withNavigationPending(action, callback) {
|
|
165
|
+
navigationActionPending.value = action;
|
|
166
|
+
try {
|
|
167
|
+
return await callback();
|
|
168
|
+
} finally {
|
|
169
|
+
navigationActionPending.value = null;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function resolveNextStepIndex() {
|
|
173
|
+
let targetIndex = currentStepIndex.value + 1;
|
|
174
|
+
const schemaSteps = getSchemaSteps(params.schema.value);
|
|
175
|
+
while (targetIndex < schemaSteps.length && shouldSkipStep(targetIndex)) {
|
|
176
|
+
notifyStepSkipped(targetIndex);
|
|
177
|
+
targetIndex += 1;
|
|
178
|
+
}
|
|
179
|
+
return targetIndex < schemaSteps.length ? targetIndex : null;
|
|
180
|
+
}
|
|
181
|
+
function resolvePreviousStepIndex() {
|
|
182
|
+
let targetIndex = currentStepIndex.value - 1;
|
|
183
|
+
while (targetIndex >= 0 && shouldSkipStep(targetIndex)) {
|
|
184
|
+
notifyStepSkipped(targetIndex);
|
|
185
|
+
targetIndex -= 1;
|
|
186
|
+
}
|
|
187
|
+
return targetIndex >= 0 ? targetIndex : null;
|
|
188
|
+
}
|
|
189
|
+
function shouldSkipStep(stepIndex) {
|
|
190
|
+
const handler = getSchemaLifecycleHandler(params.schema.value, "skipStep");
|
|
191
|
+
return handler ? handler(createStepLifecycleParams(stepIndex)) === true : false;
|
|
192
|
+
}
|
|
193
|
+
function notifyStepSkipped(stepIndex) {
|
|
194
|
+
const handler = getSchemaLifecycleHandler(params.schema.value, "onStepSkipped");
|
|
195
|
+
handler?.(createStepLifecycleParams(stepIndex));
|
|
196
|
+
}
|
|
197
|
+
function createStepLifecycleParams(stepIndex) {
|
|
198
|
+
return {
|
|
199
|
+
step: getSchemaSteps(params.schema.value)[stepIndex],
|
|
200
|
+
stepIndex,
|
|
201
|
+
formData: state.output.value,
|
|
202
|
+
stepData: state.output.value,
|
|
203
|
+
api: createPublicFormApi(runtime)
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
const runtime = {
|
|
207
|
+
schema: params.schema,
|
|
208
|
+
state: state.state,
|
|
209
|
+
output: state.output,
|
|
210
|
+
dirtyPaths: state.dirtyPaths,
|
|
211
|
+
isDirty: state.isDirty,
|
|
212
|
+
errors: validation.errors,
|
|
213
|
+
context,
|
|
214
|
+
actionPending,
|
|
215
|
+
currentStepIndex,
|
|
216
|
+
currentFields,
|
|
217
|
+
currentStepRoot,
|
|
218
|
+
currentLayout,
|
|
219
|
+
currentStep,
|
|
220
|
+
steps,
|
|
221
|
+
isStepped,
|
|
222
|
+
isFirstStep,
|
|
223
|
+
isLastStep,
|
|
224
|
+
canGoPrevious,
|
|
225
|
+
canGoNext,
|
|
226
|
+
getValue: state.getValue,
|
|
227
|
+
setValue: state.setValue,
|
|
228
|
+
getFieldApi: apiFactory,
|
|
229
|
+
getFieldCallbackParams: (path, field) => fieldCallbackParams({
|
|
230
|
+
field,
|
|
231
|
+
state: state.state,
|
|
232
|
+
ctx: context,
|
|
233
|
+
api: apiFactory(path, field),
|
|
234
|
+
parentPath: path.slice(0, -1)
|
|
235
|
+
}),
|
|
236
|
+
registerFieldOptions: optionRegistry.register,
|
|
237
|
+
registerFieldUpload: uploadRegistry.register,
|
|
238
|
+
refreshFieldOptions: optionRegistry.refreshMany,
|
|
239
|
+
getFieldError: validation.getFieldError,
|
|
240
|
+
markFieldTouched: validation.markTouched,
|
|
241
|
+
isFieldTouched: validation.isTouched,
|
|
242
|
+
shouldRender: (field, path) => shouldRenderField(
|
|
243
|
+
field,
|
|
244
|
+
fieldCallbackParams({
|
|
245
|
+
field,
|
|
246
|
+
state: state.state,
|
|
247
|
+
ctx: context,
|
|
248
|
+
api: apiFactory(path, field),
|
|
249
|
+
parentPath: path.slice(0, -1)
|
|
250
|
+
})
|
|
251
|
+
),
|
|
252
|
+
validate,
|
|
253
|
+
validateCurrentStep,
|
|
254
|
+
focusRequest: focus.request,
|
|
255
|
+
registerFieldElement: focus.registerField,
|
|
256
|
+
focusField: focus.focusField,
|
|
257
|
+
focusFirstInvalid: focus.focusFirstInvalid,
|
|
258
|
+
clearErrors: () => validation.clearError(),
|
|
259
|
+
submitHandler: submit.submitHandler,
|
|
260
|
+
submit: async () => {
|
|
261
|
+
const result = await submit.submitHandler();
|
|
262
|
+
return result.success;
|
|
263
|
+
},
|
|
264
|
+
reset: () => {
|
|
265
|
+
validation.clearError();
|
|
266
|
+
state.reset();
|
|
267
|
+
},
|
|
268
|
+
nextStep: async () => {
|
|
269
|
+
validation.markAllTouched(
|
|
270
|
+
collectFormFieldsPaths(
|
|
271
|
+
currentFields.value,
|
|
272
|
+
currentStepRoot.value ? [currentStepRoot.value] : []
|
|
273
|
+
)
|
|
274
|
+
);
|
|
275
|
+
const valid = await validateCurrentStep({ focus: true });
|
|
276
|
+
if (!valid) return false;
|
|
277
|
+
const canProceed = await runBeforeNext();
|
|
278
|
+
if (!canProceed) return false;
|
|
279
|
+
const nextIndex = resolveNextStepIndex();
|
|
280
|
+
if (nextIndex === null) return false;
|
|
281
|
+
currentStepIndex.value = nextIndex;
|
|
282
|
+
return true;
|
|
283
|
+
},
|
|
284
|
+
previousStep: async () => {
|
|
285
|
+
const canProceed = await runBeforePrevious();
|
|
286
|
+
if (!canProceed) return false;
|
|
287
|
+
const previousIndex = resolvePreviousStepIndex();
|
|
288
|
+
if (previousIndex === null) return false;
|
|
289
|
+
currentStepIndex.value = previousIndex;
|
|
290
|
+
return true;
|
|
291
|
+
},
|
|
292
|
+
goToStep: async (index) => {
|
|
293
|
+
const nextIndex = Math.min(Math.max(index, 0), steps.value.length - 1);
|
|
294
|
+
if (nextIndex === currentStepIndex.value) return true;
|
|
295
|
+
if (nextIndex > currentStepIndex.value) {
|
|
296
|
+
validation.markAllTouched(
|
|
297
|
+
collectFormFieldsPaths(
|
|
298
|
+
currentFields.value,
|
|
299
|
+
currentStepRoot.value ? [currentStepRoot.value] : []
|
|
300
|
+
)
|
|
301
|
+
);
|
|
302
|
+
const valid = await validateCurrentStep({ focus: true });
|
|
303
|
+
if (!valid) return false;
|
|
304
|
+
const canProceed = await runBeforeNext();
|
|
305
|
+
if (!canProceed) return false;
|
|
306
|
+
}
|
|
307
|
+
currentStepIndex.value = nextIndex;
|
|
308
|
+
return true;
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
return runtime;
|
|
312
|
+
}
|
|
313
|
+
function createFieldApi(params) {
|
|
314
|
+
function contextResource(key) {
|
|
315
|
+
const resource = params.ctx[key];
|
|
316
|
+
if (!resource) throw new Error(`Unknown form context resource: ${key}`);
|
|
317
|
+
return resource;
|
|
318
|
+
}
|
|
319
|
+
const api = {
|
|
320
|
+
value: {
|
|
321
|
+
get: () => params.getValue(params.path),
|
|
322
|
+
set: (value) => params.setValue(params.path, value),
|
|
323
|
+
reset: () => params.resetValue(params.path)
|
|
324
|
+
},
|
|
325
|
+
options: {
|
|
326
|
+
get: () => params.optionRegistry.get(params.path).items.value,
|
|
327
|
+
pending: () => params.optionRegistry.get(params.path).pending.value,
|
|
328
|
+
fetching: () => params.optionRegistry.get(params.path).fetching.value,
|
|
329
|
+
loading: () => params.optionRegistry.get(params.path).loading.value,
|
|
330
|
+
creating: () => params.optionRegistry.get(params.path).creating.value,
|
|
331
|
+
refreshable: () => params.optionRegistry.get(params.path).refreshable.value,
|
|
332
|
+
error: () => params.optionRegistry.get(params.path).error.value,
|
|
333
|
+
refresh: () => params.optionRegistry.get(params.path).refresh(),
|
|
334
|
+
add: (option) => params.optionRegistry.get(params.path).add(option),
|
|
335
|
+
create: (label) => params.optionRegistry.get(params.path).create(label)
|
|
336
|
+
},
|
|
337
|
+
upload: {
|
|
338
|
+
start: async () => await params.uploadRegistry.get(params.path)?.start(),
|
|
339
|
+
cancel: async () => await params.uploadRegistry.get(params.path)?.cancel(),
|
|
340
|
+
retry: async () => await params.uploadRegistry.get(params.path)?.retry(),
|
|
341
|
+
remove: async (value) => await params.uploadRegistry.get(params.path)?.remove(value)
|
|
342
|
+
},
|
|
343
|
+
context: {
|
|
344
|
+
get: (key) => contextResource(key),
|
|
345
|
+
set: (key, value) => {
|
|
346
|
+
contextResource(key).value = value;
|
|
347
|
+
},
|
|
348
|
+
update: (key, updater) => {
|
|
349
|
+
updateContextResourceValue(contextResource(key), updater);
|
|
350
|
+
},
|
|
351
|
+
patch: (key, value) => patchContextResourceValue(contextResource(key), value),
|
|
352
|
+
refresh: async (key) => {
|
|
353
|
+
const resource = params.ctx[key];
|
|
354
|
+
if (isRefreshableResource(resource)) await resource.refresh();
|
|
355
|
+
},
|
|
356
|
+
refreshAll: async () => {
|
|
357
|
+
const refreshTasks = Object.values(params.ctx).map(
|
|
358
|
+
(resource) => isRefreshableResource(resource) ? resource.refresh() : Promise.resolve()
|
|
359
|
+
);
|
|
360
|
+
await Promise.all(refreshTasks);
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
validation: {
|
|
364
|
+
validate: params.validateField,
|
|
365
|
+
setError: params.setExternalError,
|
|
366
|
+
clearError: params.clearExternalError
|
|
367
|
+
},
|
|
368
|
+
focus: params.focusField
|
|
369
|
+
};
|
|
370
|
+
return api;
|
|
371
|
+
}
|
|
372
|
+
function updateContextResourceValue(resource, updater) {
|
|
373
|
+
resource.value = updater(resource.value);
|
|
374
|
+
}
|
|
375
|
+
function patchContextResourceValue(resource, patch) {
|
|
376
|
+
if (!isContextValueResource(resource)) return;
|
|
377
|
+
const current = resource.value;
|
|
378
|
+
const patchValue = typeof patch === "function" ? patch(current) : patch;
|
|
379
|
+
if (isRecord(current) && isRecord(patchValue)) {
|
|
380
|
+
resource.value = { ...current, ...patchValue };
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
resource.value = patchValue;
|
|
384
|
+
}
|
|
385
|
+
function isContextValueResource(value) {
|
|
386
|
+
return typeof value === "object" && value !== null && "value" in value;
|
|
387
|
+
}
|
|
388
|
+
function isRefreshableResource(value) {
|
|
389
|
+
return typeof value === "object" && value !== null && "refresh" in value && typeof value.refresh === "function";
|
|
390
|
+
}
|
|
391
|
+
function getSchemaLifecycleHandler(schema, key) {
|
|
392
|
+
if (!isRecord(schema)) return void 0;
|
|
393
|
+
const handler = Object.getOwnPropertyDescriptor(schema, key)?.value;
|
|
394
|
+
return typeof handler === "function" ? handler : void 0;
|
|
395
|
+
}
|
|
396
|
+
function fieldCallbackParams(params) {
|
|
397
|
+
return {
|
|
398
|
+
ctx: params.ctx,
|
|
399
|
+
deps: resolveFieldDependencies(params),
|
|
400
|
+
api: params.api
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
export { childParentPath, fieldPath };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { FormField, FormFieldApi, FormObject } from '../types/index.js';
|
|
3
|
+
import type { FormRuntimeContext } from '../types/index.js';
|
|
4
|
+
export type FormFieldApiFactory = (path: readonly string[], field?: FormField) => FormFieldApi;
|
|
5
|
+
export declare function useFormState(params: {
|
|
6
|
+
schema: ComputedRef<unknown>;
|
|
7
|
+
input?: ComputedRef<FormObject | undefined>;
|
|
8
|
+
context: FormRuntimeContext;
|
|
9
|
+
apiFactory: FormFieldApiFactory;
|
|
10
|
+
}): {
|
|
11
|
+
state: import("../../shared/index.js").GenericObject;
|
|
12
|
+
output: ComputedRef<import("../../shared/index.js").GenericObject>;
|
|
13
|
+
dirtyPaths: ComputedRef<readonly string[]>;
|
|
14
|
+
isDirty: ComputedRef<boolean>;
|
|
15
|
+
initialize: (input?: import("../../shared/index.js").GenericObject | undefined) => void;
|
|
16
|
+
syncInput: (input: FormObject | undefined, paths: boolean | readonly string[]) => void;
|
|
17
|
+
reset: () => void;
|
|
18
|
+
resetValue: (path: string | readonly string[]) => void;
|
|
19
|
+
getValue: (path: string | readonly string[]) => unknown;
|
|
20
|
+
setValue: (path: string | readonly string[], value: unknown) => void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { computed, reactive, ref } from "vue";
|
|
2
|
+
import { cloneFormValue, getPathValue, isRecord, setPathValue } from "../utils/path.js";
|
|
3
|
+
import { buildFormOutput, buildInitialFormState } from "../utils/state.js";
|
|
4
|
+
export function useFormState(params) {
|
|
5
|
+
const state = reactive({});
|
|
6
|
+
const initialState = ref({});
|
|
7
|
+
const output = computed(
|
|
8
|
+
() => buildFormOutput(params.schema.value, state, params.context, params.apiFactory)
|
|
9
|
+
);
|
|
10
|
+
const dirtyPaths = computed(() => collectDirtyPaths(initialState.value, state));
|
|
11
|
+
const isDirty = computed(() => dirtyPaths.value.length > 0);
|
|
12
|
+
function initialize(input = params.input?.value) {
|
|
13
|
+
for (const key of Object.keys(state)) delete state[key];
|
|
14
|
+
const initial = buildInitialFormState(params.schema.value, params.context, input);
|
|
15
|
+
initialState.value = cloneFormObject(initial);
|
|
16
|
+
for (const [key, value] of Object.entries(initial)) state[key] = value;
|
|
17
|
+
}
|
|
18
|
+
function reset() {
|
|
19
|
+
initialize();
|
|
20
|
+
}
|
|
21
|
+
function resetValue(path) {
|
|
22
|
+
setPathValue(state, path, cloneFormValue(getPathValue(initialState.value, path)));
|
|
23
|
+
}
|
|
24
|
+
function syncInput(input, paths) {
|
|
25
|
+
if (!paths || Array.isArray(paths) && paths.length === 0) return;
|
|
26
|
+
if (paths === true) {
|
|
27
|
+
initialize(input);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const next = buildInitialFormState(params.schema.value, params.context, input);
|
|
31
|
+
for (const path of paths) {
|
|
32
|
+
const value = cloneFormValue(getPathValue(next, path));
|
|
33
|
+
setPathValue(state, path, value);
|
|
34
|
+
setPathValue(initialState.value, path, cloneFormValue(value));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
state,
|
|
39
|
+
output,
|
|
40
|
+
dirtyPaths,
|
|
41
|
+
isDirty,
|
|
42
|
+
initialize,
|
|
43
|
+
syncInput,
|
|
44
|
+
reset,
|
|
45
|
+
resetValue,
|
|
46
|
+
getValue: (path) => getPathValue(state, path),
|
|
47
|
+
setValue: (path, value) => setPathValue(state, path, value)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function cloneFormObject(value) {
|
|
51
|
+
const cloned = cloneFormValue(value);
|
|
52
|
+
return isRecord(cloned) ? cloned : {};
|
|
53
|
+
}
|
|
54
|
+
function collectDirtyPaths(initial, current, path = []) {
|
|
55
|
+
if (Array.isArray(initial) || Array.isArray(current))
|
|
56
|
+
return collectArrayDirtyPaths(
|
|
57
|
+
Array.isArray(initial) ? initial : [],
|
|
58
|
+
Array.isArray(current) ? current : [],
|
|
59
|
+
path
|
|
60
|
+
);
|
|
61
|
+
if (isRecord(initial) || isRecord(current)) {
|
|
62
|
+
const initialObject = isRecord(initial) ? initial : {};
|
|
63
|
+
const currentObject = isRecord(current) ? current : {};
|
|
64
|
+
const keys = /* @__PURE__ */ new Set([...Object.keys(initialObject), ...Object.keys(currentObject)]);
|
|
65
|
+
return [...keys].flatMap(
|
|
66
|
+
(key) => collectDirtyPaths(initialObject[key], currentObject[key], [...path, key])
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
return Object.is(initial, current) ? [] : [path.join(".")];
|
|
70
|
+
}
|
|
71
|
+
function collectArrayDirtyPaths(initial, current, path) {
|
|
72
|
+
if (initial.length !== current.length) return [path.join(".")];
|
|
73
|
+
return current.flatMap(
|
|
74
|
+
(value, index) => collectDirtyPaths(initial[index], value, [...path, String(index)])
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
import type { GenericObject } from '../../shared/types/utils.js';
|
|
3
|
+
import type { ExtractFormOutput, FormApi, FormContextData, FormObject, FormSubmitAction, FormSubmitHandler, FormSubmitHandlerResult, FormSubmitTarget } from '../types/index.js';
|
|
4
|
+
export declare function useFormSubmit<const TSchema extends GenericObject, TSubmitData = unknown>(params: {
|
|
5
|
+
formRef: Ref<FormSubmitTarget<ExtractFormOutput<TSchema>, TSubmitData> | null | undefined>;
|
|
6
|
+
schema: MaybeRefOrGetter<TSchema>;
|
|
7
|
+
onSubmit: FormSubmitHandler<ExtractFormOutput<TSchema>, TSubmitData>;
|
|
8
|
+
}): {
|
|
9
|
+
schema: import("vue").ComputedRef<TSchema>;
|
|
10
|
+
submit: () => Promise<boolean>;
|
|
11
|
+
isSubmitting: import("vue").ComputedRef<boolean>;
|
|
12
|
+
};
|
|
13
|
+
export declare function useFormSubmitController<TSubmitData = unknown>(params: {
|
|
14
|
+
validate: () => Promise<boolean>;
|
|
15
|
+
focusFirstInvalid?: () => Promise<boolean>;
|
|
16
|
+
getOutput: () => FormObject;
|
|
17
|
+
getApi: () => FormApi;
|
|
18
|
+
getSchema: () => unknown;
|
|
19
|
+
getContext: () => FormContextData;
|
|
20
|
+
}): {
|
|
21
|
+
actionPending: import("vue").ComputedRef<FormSubmitAction | null>;
|
|
22
|
+
submitHandler: (externalSubmitHandler?: FormSubmitHandler<FormObject, TSubmitData>) => Promise<FormSubmitHandlerResult<TSubmitData>>;
|
|
23
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { computed, ref, toValue } from "vue";
|
|
2
|
+
import { isRecord } from "../utils/path.js";
|
|
3
|
+
export function useFormSubmit(params) {
|
|
4
|
+
const isSubmitting = computed(() => params.formRef.value?.actionPending.value === "submit");
|
|
5
|
+
async function submit() {
|
|
6
|
+
const form = params.formRef.value;
|
|
7
|
+
if (!form) return false;
|
|
8
|
+
const result = await form.submitHandler(params.onSubmit);
|
|
9
|
+
return result.success;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
schema: computed(() => toValue(params.schema)),
|
|
13
|
+
submit,
|
|
14
|
+
isSubmitting
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export function useFormSubmitController(params) {
|
|
18
|
+
const actionPending = ref(null);
|
|
19
|
+
async function submitHandler(externalSubmitHandler) {
|
|
20
|
+
const isValid = await params.validate();
|
|
21
|
+
if (!isValid) {
|
|
22
|
+
await params.focusFirstInvalid?.();
|
|
23
|
+
return { success: false };
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
actionPending.value = "submit";
|
|
27
|
+
const beforeSubmit = getBeforeSubmit(params.getSchema());
|
|
28
|
+
const beforeResult = await beforeSubmit?.({
|
|
29
|
+
formData: params.getOutput(),
|
|
30
|
+
api: params.getApi()
|
|
31
|
+
});
|
|
32
|
+
if (isCancelled(beforeResult)) return { success: false };
|
|
33
|
+
const schemaSubmit = getSchemaSubmit(params.getSchema());
|
|
34
|
+
await schemaSubmit?.({
|
|
35
|
+
value: params.getOutput(),
|
|
36
|
+
api: params.getApi(),
|
|
37
|
+
ctx: params.getContext()
|
|
38
|
+
});
|
|
39
|
+
const result = await externalSubmitHandler?.({
|
|
40
|
+
formData: params.getOutput(),
|
|
41
|
+
api: params.getApi()
|
|
42
|
+
});
|
|
43
|
+
return normalizeSubmitResult(result);
|
|
44
|
+
} finally {
|
|
45
|
+
actionPending.value = null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
actionPending: computed(() => actionPending.value),
|
|
50
|
+
submitHandler
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function normalizeSubmitResult(result) {
|
|
54
|
+
if (result === false) return { success: false };
|
|
55
|
+
if (isRecord(result) && result.success === false) return { success: false };
|
|
56
|
+
if (isRecord(result) && result.success === true) return { success: true, data: result.data };
|
|
57
|
+
return { success: true };
|
|
58
|
+
}
|
|
59
|
+
function isCancelled(result) {
|
|
60
|
+
return result === false || isRecord(result) && result.success === false;
|
|
61
|
+
}
|
|
62
|
+
function getBeforeSubmit(schema) {
|
|
63
|
+
if (!isRecord(schema)) return void 0;
|
|
64
|
+
const handler = Object.getOwnPropertyDescriptor(schema, "onBeforeSubmit")?.value;
|
|
65
|
+
return typeof handler === "function" ? handler : void 0;
|
|
66
|
+
}
|
|
67
|
+
function getSchemaSubmit(schema) {
|
|
68
|
+
if (!isRecord(schema)) return void 0;
|
|
69
|
+
const submit = Object.getOwnPropertyDescriptor(schema, "submit")?.value;
|
|
70
|
+
return typeof submit === "function" ? submit : void 0;
|
|
71
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import type { FormControlSize, FormDensity, FormUiConfig } from '../types/index.js';
|
|
3
|
+
export declare function provideFormUi(ui: ComputedRef<FormUiConfig>): {
|
|
4
|
+
ui: ComputedRef<FormUiConfig>;
|
|
5
|
+
density: ComputedRef<FormDensity>;
|
|
6
|
+
controlSize: ComputedRef<FormControlSize>;
|
|
7
|
+
};
|
|
8
|
+
export declare function useFormUi(): {
|
|
9
|
+
ui: ComputedRef<FormUiConfig>;
|
|
10
|
+
density: ComputedRef<FormDensity>;
|
|
11
|
+
controlSize: ComputedRef<FormControlSize>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createInjectionState } from "@vueuse/core";
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
const densitySizes = {
|
|
4
|
+
compact: "sm",
|
|
5
|
+
default: "md",
|
|
6
|
+
comfortable: "lg"
|
|
7
|
+
};
|
|
8
|
+
const [provideFormUiState, useInjectedFormUiState] = createInjectionState(
|
|
9
|
+
(ui) => {
|
|
10
|
+
const density = computed(() => ui.value.density ?? "default");
|
|
11
|
+
const controlSize = computed(
|
|
12
|
+
() => ui.value.control?.size ?? densitySizes[density.value]
|
|
13
|
+
);
|
|
14
|
+
return { ui, density, controlSize };
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export function provideFormUi(ui) {
|
|
18
|
+
return provideFormUiState(ui);
|
|
19
|
+
}
|
|
20
|
+
export function useFormUi() {
|
|
21
|
+
const state = useInjectedFormUiState();
|
|
22
|
+
if (!state) throw new Error("useFormUi must be called inside a <NutForm> component");
|
|
23
|
+
return state;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { shallowReactive } from "vue";
|
|
2
|
+
export function useFormUploadRegistry() {
|
|
3
|
+
const states = shallowReactive({});
|
|
4
|
+
function register(path, state) {
|
|
5
|
+
const key = path.join(".");
|
|
6
|
+
states[key] = state;
|
|
7
|
+
return () => {
|
|
8
|
+
if (states[key] === state) delete states[key];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function get(path) {
|
|
12
|
+
return states[path.join(".")];
|
|
13
|
+
}
|
|
14
|
+
return { register, get };
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { FormField, FormObject, FormRuntimeContext, FormValidationMode } from '../types/index.js';
|
|
2
|
+
import type { FormFieldApiFactory } from './use-form-state.js';
|
|
3
|
+
export declare function useFormValidation(params: {
|
|
4
|
+
schema: () => unknown;
|
|
5
|
+
state: FormObject;
|
|
6
|
+
context: FormRuntimeContext;
|
|
7
|
+
apiFactory: FormFieldApiFactory;
|
|
8
|
+
getValidationMode: () => FormValidationMode;
|
|
9
|
+
}): {
|
|
10
|
+
errors: import("vue").ComputedRef<{
|
|
11
|
+
path: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}[]>;
|
|
14
|
+
validate: () => Promise<boolean>;
|
|
15
|
+
validateFields: (fields: readonly FormField[], parentPath: readonly string[]) => Promise<boolean>;
|
|
16
|
+
getFieldError: (path: readonly string[]) => string | undefined;
|
|
17
|
+
setError: (path: readonly string[], message: string) => void;
|
|
18
|
+
clearError: (path?: readonly string[]) => void;
|
|
19
|
+
markTouched: (path: readonly string[]) => void;
|
|
20
|
+
markAllTouched: (paths: readonly string[]) => void;
|
|
21
|
+
isTouched: (path: readonly string[]) => boolean;
|
|
22
|
+
};
|