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,131 @@
|
|
|
1
|
+
import { useUiToolsLocale } from "#ui-tools/i18n";
|
|
2
|
+
import { isArray, isObject } from "../../../shared/utils/predicate.js";
|
|
3
|
+
import { resolveTextValue } from "../../../shared/utils/render.js";
|
|
4
|
+
export function getFilterLabelText(options) {
|
|
5
|
+
if (typeof options.label === "number") return String(options.label);
|
|
6
|
+
if (typeof options.label === "string") return options.label;
|
|
7
|
+
const resolved = options.label();
|
|
8
|
+
return typeof resolved === "string" || typeof resolved === "number" ? String(resolved) : "";
|
|
9
|
+
}
|
|
10
|
+
export function getFilterTextValue(options) {
|
|
11
|
+
return resolveTextValue(options.value, options.fallback);
|
|
12
|
+
}
|
|
13
|
+
export function getFilterRuleValue(options) {
|
|
14
|
+
return options.rule?.value;
|
|
15
|
+
}
|
|
16
|
+
export function getFilterPathValues(options) {
|
|
17
|
+
return flattenFilterValues({
|
|
18
|
+
value: readFilterPathValue({
|
|
19
|
+
source: options.source,
|
|
20
|
+
key: options.key
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export function readFilterPathValue(options) {
|
|
25
|
+
return options.key.split(".").reduce((current, segment) => {
|
|
26
|
+
if (isArray(current)) {
|
|
27
|
+
return current.map(
|
|
28
|
+
(item) => item != null && typeof item === "object" ? item[segment] : void 0
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
if (!current || typeof current !== "object") {
|
|
32
|
+
return void 0;
|
|
33
|
+
}
|
|
34
|
+
return current[segment];
|
|
35
|
+
}, options.source);
|
|
36
|
+
}
|
|
37
|
+
export function flattenFilterValues(options) {
|
|
38
|
+
if (isArray(options.value)) {
|
|
39
|
+
return options.value.flatMap(
|
|
40
|
+
(item) => flattenFilterValues({
|
|
41
|
+
value: item
|
|
42
|
+
})
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
if (options.value == null) {
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
return [options.value];
|
|
49
|
+
}
|
|
50
|
+
export function isDateRangeValue(options) {
|
|
51
|
+
if (!options.value || !isObject(options.value) || isArray(options.value)) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return "from" in options.value || "to" in options.value;
|
|
55
|
+
}
|
|
56
|
+
export function toDateFilterValue(options) {
|
|
57
|
+
if (options.value instanceof Date) {
|
|
58
|
+
return options.value;
|
|
59
|
+
}
|
|
60
|
+
if (typeof options.value === "string" || typeof options.value === "number") {
|
|
61
|
+
const date = new Date(options.value);
|
|
62
|
+
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
63
|
+
}
|
|
64
|
+
const rangeValue = getDateRangeValue({
|
|
65
|
+
value: options.value
|
|
66
|
+
});
|
|
67
|
+
if (rangeValue) {
|
|
68
|
+
const from = toMaybeDate({
|
|
69
|
+
value: rangeValue.from
|
|
70
|
+
});
|
|
71
|
+
return from && !Number.isNaN(from.getTime()) ? from : void 0;
|
|
72
|
+
}
|
|
73
|
+
return void 0;
|
|
74
|
+
}
|
|
75
|
+
export function formatFilterDate(options) {
|
|
76
|
+
const { locale } = useUiToolsLocale();
|
|
77
|
+
return new Intl.DateTimeFormat(locale.value.code, {
|
|
78
|
+
month: "short",
|
|
79
|
+
day: "numeric",
|
|
80
|
+
year: "numeric"
|
|
81
|
+
}).format(options.value);
|
|
82
|
+
}
|
|
83
|
+
export function isFilterValueSelected(options) {
|
|
84
|
+
return options.values.some(
|
|
85
|
+
(value) => areFilterValuesEqual({ left: value, right: options.candidate })
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
export function getDateRangeValue(options) {
|
|
89
|
+
return isDateRangeValue({ value: options.value }) ? options.value : void 0;
|
|
90
|
+
}
|
|
91
|
+
function isNumberRangeValue(options) {
|
|
92
|
+
if (!options.value || !isObject(options.value) || isArray(options.value)) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
return "from" in options.value || "to" in options.value;
|
|
96
|
+
}
|
|
97
|
+
export function getNumberRangeValue(options) {
|
|
98
|
+
return isNumberRangeValue({ value: options.value }) ? options.value : void 0;
|
|
99
|
+
}
|
|
100
|
+
export function formatFilterNumber(options) {
|
|
101
|
+
const { locale } = useUiToolsLocale();
|
|
102
|
+
return new Intl.NumberFormat(locale.value.code).format(options.value);
|
|
103
|
+
}
|
|
104
|
+
export function toMaybeNumber(options) {
|
|
105
|
+
if (typeof options.value === "number") {
|
|
106
|
+
return options.value;
|
|
107
|
+
}
|
|
108
|
+
if (typeof options.value === "string") {
|
|
109
|
+
const n = Number(options.value);
|
|
110
|
+
return Number.isNaN(n) ? void 0 : n;
|
|
111
|
+
}
|
|
112
|
+
return void 0;
|
|
113
|
+
}
|
|
114
|
+
export function toMaybeDate(options) {
|
|
115
|
+
if (options.value instanceof Date) {
|
|
116
|
+
return options.value;
|
|
117
|
+
}
|
|
118
|
+
if (typeof options.value === "string" || typeof options.value === "number") {
|
|
119
|
+
const date = new Date(options.value);
|
|
120
|
+
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
121
|
+
}
|
|
122
|
+
return void 0;
|
|
123
|
+
}
|
|
124
|
+
function areFilterValuesEqual(options) {
|
|
125
|
+
if (options.left instanceof Date || options.right instanceof Date) {
|
|
126
|
+
const left = options.left instanceof Date ? options.left : options.left != null ? new Date(String(options.left)) : void 0;
|
|
127
|
+
const right = options.right instanceof Date ? options.right : options.right != null ? new Date(String(options.right)) : void 0;
|
|
128
|
+
return left?.getTime() === right?.getTime();
|
|
129
|
+
}
|
|
130
|
+
return String(options.left) === String(options.right);
|
|
131
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TableDateFilterDefinition, TableDateFilterOperator, TableScalarDateFilterOperator } from '../../types/index.js';
|
|
2
|
+
export interface ResolvedTableDateFilterScalarPreset {
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
value: Date;
|
|
6
|
+
}
|
|
7
|
+
export interface ResolvedTableDateFilterRangePreset {
|
|
8
|
+
label: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
value: {
|
|
11
|
+
from?: Date;
|
|
12
|
+
to?: Date;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare function resolveDateFilterScalarPresets(options: {
|
|
16
|
+
definition: TableDateFilterDefinition;
|
|
17
|
+
operator: TableScalarDateFilterOperator;
|
|
18
|
+
now?: Date;
|
|
19
|
+
}): ResolvedTableDateFilterScalarPreset[];
|
|
20
|
+
export declare function resolveDateFilterRangePresets(options: {
|
|
21
|
+
definition: TableDateFilterDefinition;
|
|
22
|
+
now?: Date;
|
|
23
|
+
}): ResolvedTableDateFilterRangePreset[];
|
|
24
|
+
export declare function resolveDateFilterRangeCalendarPanels(options: {
|
|
25
|
+
definition: TableDateFilterDefinition;
|
|
26
|
+
mobile: boolean;
|
|
27
|
+
}): 1 | 2;
|
|
28
|
+
export declare function resolveDateFilterOperatorDescription(operator: TableDateFilterOperator | undefined): string;
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { resolveTextValue } from "#ui-tools/shared/utils/render";
|
|
2
|
+
import { resolveDateFilterUi } from "./ui.js";
|
|
3
|
+
export function resolveDateFilterScalarPresets(options) {
|
|
4
|
+
const presetDefinitions = getScalarPresetDefinitions(options);
|
|
5
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
6
|
+
return presetDefinitions.map((preset) => ({
|
|
7
|
+
label: resolveTextValue(preset.label),
|
|
8
|
+
...preset.description ? { description: resolveTextValue(preset.description) } : {},
|
|
9
|
+
value: resolveScalarPresetValue({
|
|
10
|
+
preset,
|
|
11
|
+
now
|
|
12
|
+
})
|
|
13
|
+
}));
|
|
14
|
+
}
|
|
15
|
+
export function resolveDateFilterRangePresets(options) {
|
|
16
|
+
const presetDefinitions = getRangePresetDefinitions(options.definition);
|
|
17
|
+
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
18
|
+
return presetDefinitions.map((preset) => ({
|
|
19
|
+
label: resolveTextValue(preset.label),
|
|
20
|
+
...preset.description ? { description: resolveTextValue(preset.description) } : {},
|
|
21
|
+
value: resolveRangePresetValue({
|
|
22
|
+
preset,
|
|
23
|
+
now
|
|
24
|
+
})
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
export function resolveDateFilterRangeCalendarPanels(options) {
|
|
28
|
+
const panels = resolveDateFilterUi(options.definition, "between").range.calendar.months;
|
|
29
|
+
if (panels === 1 || panels === 2) {
|
|
30
|
+
return panels;
|
|
31
|
+
}
|
|
32
|
+
if (!panels) {
|
|
33
|
+
return 1;
|
|
34
|
+
}
|
|
35
|
+
if (options.mobile) {
|
|
36
|
+
return panels.mobile ?? panels.desktop ?? 1;
|
|
37
|
+
}
|
|
38
|
+
return panels.desktop ?? panels.mobile ?? 2;
|
|
39
|
+
}
|
|
40
|
+
export function resolveDateFilterOperatorDescription(operator) {
|
|
41
|
+
switch (operator) {
|
|
42
|
+
case "between":
|
|
43
|
+
return "Match rows inside a date window.";
|
|
44
|
+
case "before":
|
|
45
|
+
return "Match rows before the selected date.";
|
|
46
|
+
case "after":
|
|
47
|
+
return "Match rows after the selected date.";
|
|
48
|
+
case "isNot":
|
|
49
|
+
return "Exclude rows matching the selected date.";
|
|
50
|
+
default:
|
|
51
|
+
return "Match rows on the selected date.";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function getScalarPresetDefinitions(options) {
|
|
55
|
+
const presets = resolveDateFilterUi(options.definition, options.operator).scalar.presets;
|
|
56
|
+
if (presets === false) return [];
|
|
57
|
+
if (presets == null) return DEFAULT_SCALAR_PRESETS[options.operator];
|
|
58
|
+
if (presets === true) return DEFAULT_SCALAR_PRESETS[options.operator];
|
|
59
|
+
return presets.filter((preset) => {
|
|
60
|
+
if (!preset.operators?.length) return true;
|
|
61
|
+
return preset.operators.includes(options.operator);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function getRangePresetDefinitions(definition) {
|
|
65
|
+
const presets = resolveDateFilterUi(definition, "between").range.presets;
|
|
66
|
+
if (presets === false) return [];
|
|
67
|
+
if (presets == null) return DEFAULT_RANGE_PRESETS;
|
|
68
|
+
if (presets === true) return DEFAULT_RANGE_PRESETS;
|
|
69
|
+
return presets;
|
|
70
|
+
}
|
|
71
|
+
function resolveScalarPresetValue(options) {
|
|
72
|
+
if (options.preset.value instanceof Date) {
|
|
73
|
+
return options.preset.value;
|
|
74
|
+
}
|
|
75
|
+
return options.preset.value({
|
|
76
|
+
now: options.now
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function resolveRangePresetValue(options) {
|
|
80
|
+
if (typeof options.preset.value === "function") {
|
|
81
|
+
return options.preset.value({
|
|
82
|
+
now: options.now
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
return options.preset.value;
|
|
86
|
+
}
|
|
87
|
+
function startOfDay(value) {
|
|
88
|
+
const result = new Date(value);
|
|
89
|
+
result.setHours(0, 0, 0, 0);
|
|
90
|
+
return result;
|
|
91
|
+
}
|
|
92
|
+
function endOfDay(value) {
|
|
93
|
+
const result = new Date(value);
|
|
94
|
+
result.setHours(23, 59, 59, 999);
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
function addDays(value, amount) {
|
|
98
|
+
const result = new Date(value);
|
|
99
|
+
result.setDate(result.getDate() + amount);
|
|
100
|
+
return result;
|
|
101
|
+
}
|
|
102
|
+
function startOfMonth(value) {
|
|
103
|
+
return new Date(value.getFullYear(), value.getMonth(), 1);
|
|
104
|
+
}
|
|
105
|
+
function endOfMonth(value) {
|
|
106
|
+
return new Date(value.getFullYear(), value.getMonth() + 1, 0, 23, 59, 59, 999);
|
|
107
|
+
}
|
|
108
|
+
function startOfYear(value) {
|
|
109
|
+
return new Date(value.getFullYear(), 0, 1);
|
|
110
|
+
}
|
|
111
|
+
const DEFAULT_SCALAR_PRESETS = {
|
|
112
|
+
is: [
|
|
113
|
+
{
|
|
114
|
+
label: "Today",
|
|
115
|
+
description: "Use the current day.",
|
|
116
|
+
value: ({ now }) => startOfDay(now)
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: "Yesterday",
|
|
120
|
+
description: "Use the previous day.",
|
|
121
|
+
value: ({ now }) => startOfDay(addDays(now, -1))
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: "Start of month",
|
|
125
|
+
description: "Jump to the first day of this month.",
|
|
126
|
+
value: ({ now }) => startOfMonth(now)
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
isNot: [
|
|
130
|
+
{
|
|
131
|
+
label: "Today",
|
|
132
|
+
description: "Exclude the current day.",
|
|
133
|
+
value: ({ now }) => startOfDay(now)
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
label: "Yesterday",
|
|
137
|
+
description: "Exclude the previous day.",
|
|
138
|
+
value: ({ now }) => startOfDay(addDays(now, -1))
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: "Start of month",
|
|
142
|
+
description: "Exclude the first day of this month.",
|
|
143
|
+
value: ({ now }) => startOfMonth(now)
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
before: [
|
|
147
|
+
{
|
|
148
|
+
label: "Today",
|
|
149
|
+
description: "Everything earlier than today.",
|
|
150
|
+
value: ({ now }) => startOfDay(now)
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
label: "7 days ago",
|
|
154
|
+
description: "Everything earlier than the last 7 days.",
|
|
155
|
+
value: ({ now }) => startOfDay(addDays(now, -7))
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
label: "Start of month",
|
|
159
|
+
description: "Everything before this month.",
|
|
160
|
+
value: ({ now }) => startOfMonth(now)
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
after: [
|
|
164
|
+
{
|
|
165
|
+
label: "Today",
|
|
166
|
+
description: "Everything after today.",
|
|
167
|
+
value: ({ now }) => startOfDay(now)
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
label: "7 days ago",
|
|
171
|
+
description: "Everything after the last 7 days.",
|
|
172
|
+
value: ({ now }) => startOfDay(addDays(now, -7))
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: "Start of year",
|
|
176
|
+
description: "Everything after the first day of this year.",
|
|
177
|
+
value: ({ now }) => startOfYear(now)
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
};
|
|
181
|
+
const DEFAULT_RANGE_PRESETS = [
|
|
182
|
+
{
|
|
183
|
+
label: "Today",
|
|
184
|
+
description: "Only the current day.",
|
|
185
|
+
value: ({ now }) => ({
|
|
186
|
+
from: startOfDay(now),
|
|
187
|
+
to: endOfDay(now)
|
|
188
|
+
})
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
label: "Last 7 days",
|
|
192
|
+
description: "The previous 7 calendar days.",
|
|
193
|
+
value: ({ now }) => ({
|
|
194
|
+
from: startOfDay(addDays(now, -6)),
|
|
195
|
+
to: endOfDay(now)
|
|
196
|
+
})
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: "Last 30 days",
|
|
200
|
+
description: "The previous 30 calendar days.",
|
|
201
|
+
value: ({ now }) => ({
|
|
202
|
+
from: startOfDay(addDays(now, -29)),
|
|
203
|
+
to: endOfDay(now)
|
|
204
|
+
})
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: "This month",
|
|
208
|
+
description: "From the first day of this month until today.",
|
|
209
|
+
value: ({ now }) => ({
|
|
210
|
+
from: startOfMonth(now),
|
|
211
|
+
to: endOfDay(now)
|
|
212
|
+
})
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
label: "Last month",
|
|
216
|
+
description: "The full previous month.",
|
|
217
|
+
value: ({ now }) => {
|
|
218
|
+
const previousMonth = new Date(now.getFullYear(), now.getMonth() - 1, 1);
|
|
219
|
+
return {
|
|
220
|
+
from: startOfMonth(previousMonth),
|
|
221
|
+
to: endOfMonth(previousMonth)
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
label: "Year to date",
|
|
227
|
+
description: "From the first day of the year until today.",
|
|
228
|
+
value: ({ now }) => ({
|
|
229
|
+
from: startOfYear(now),
|
|
230
|
+
to: endOfDay(now)
|
|
231
|
+
})
|
|
232
|
+
}
|
|
233
|
+
];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './common.js';
|
|
2
|
+
export * from './date.js';
|
|
3
|
+
export * from './operators.js';
|
|
4
|
+
export * from './options.js';
|
|
5
|
+
export * from './presentation.js';
|
|
6
|
+
export * from './preview.js';
|
|
7
|
+
export * from './registry.js';
|
|
8
|
+
export * from './tree.js';
|
|
9
|
+
export * from './ui.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./common.js";
|
|
2
|
+
export * from "./date.js";
|
|
3
|
+
export * from "./operators.js";
|
|
4
|
+
export * from "./options.js";
|
|
5
|
+
export * from "./presentation.js";
|
|
6
|
+
export * from "./preview/index.js";
|
|
7
|
+
export * from "./registry.js";
|
|
8
|
+
export * from "./tree.js";
|
|
9
|
+
export * from "./ui.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TableFilterOptionEntry, TableResolvedFilterOptionEntry, TableUiFilterDefinition } from '../../types/index.js';
|
|
2
|
+
export declare function resolveFilterOptionEntries(options: {
|
|
3
|
+
definition: TableUiFilterDefinition;
|
|
4
|
+
rows: unknown[];
|
|
5
|
+
options?: ReadonlyArray<TableFilterOptionEntry>;
|
|
6
|
+
selectedValues?: unknown[];
|
|
7
|
+
deriveCounts?: boolean;
|
|
8
|
+
facetCounts?: Array<{
|
|
9
|
+
value: string | number | boolean;
|
|
10
|
+
count: number;
|
|
11
|
+
}>;
|
|
12
|
+
missingCountFallback?: number;
|
|
13
|
+
}): TableResolvedFilterOptionEntry<import("../../types/index.js").TableFilterPrimitiveValue>[] | {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
value: boolean;
|
|
17
|
+
count: number | undefined;
|
|
18
|
+
selected: boolean;
|
|
19
|
+
children: never[];
|
|
20
|
+
}[];
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { getFilterLabelText, getFilterPathValues, isFilterValueSelected } from "./common.js";
|
|
2
|
+
export function resolveFilterOptionEntries(options) {
|
|
3
|
+
if (options.definition.kind === "boolean") {
|
|
4
|
+
return createBooleanEntries({
|
|
5
|
+
definition: options.definition,
|
|
6
|
+
rows: options.rows,
|
|
7
|
+
selectedValues: options.selectedValues ?? [],
|
|
8
|
+
deriveCounts: options.deriveCounts ?? true,
|
|
9
|
+
facetCounts: options.facetCounts ?? [],
|
|
10
|
+
missingCountFallback: options.missingCountFallback
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
if (options.definition.kind !== "option") {
|
|
14
|
+
return [];
|
|
15
|
+
}
|
|
16
|
+
const sourceOptions = options.options ?? options.definition.source?.options ?? [];
|
|
17
|
+
const countByValue = new Map(
|
|
18
|
+
(options.facetCounts ?? []).map((entry) => [String(entry.value), entry.count])
|
|
19
|
+
);
|
|
20
|
+
return resolveOptionEntryTree({
|
|
21
|
+
entries: sourceOptions,
|
|
22
|
+
selectedValues: options.selectedValues ?? [],
|
|
23
|
+
getCount: (value) => countByValue.get(String(value)) ?? (options.deriveCounts === false || value == null ? options.missingCountFallback : countOptionMatches({
|
|
24
|
+
rows: options.rows,
|
|
25
|
+
key: options.definition.key,
|
|
26
|
+
candidate: value
|
|
27
|
+
}))
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function createBooleanEntries(options) {
|
|
31
|
+
const trueCount = options.facetCounts.find((entry) => entry.value === true)?.count;
|
|
32
|
+
const falseCount = options.facetCounts.find((entry) => entry.value === false)?.count;
|
|
33
|
+
return [
|
|
34
|
+
{
|
|
35
|
+
id: "0:true",
|
|
36
|
+
label: "Yes",
|
|
37
|
+
value: true,
|
|
38
|
+
count: trueCount ?? (options.deriveCounts ? countOptionMatches({
|
|
39
|
+
rows: options.rows,
|
|
40
|
+
key: options.definition.key,
|
|
41
|
+
candidate: true
|
|
42
|
+
}) : options.missingCountFallback),
|
|
43
|
+
selected: isFilterValueSelected({
|
|
44
|
+
values: options.selectedValues,
|
|
45
|
+
candidate: true
|
|
46
|
+
}),
|
|
47
|
+
children: []
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: "1:false",
|
|
51
|
+
label: "No",
|
|
52
|
+
value: false,
|
|
53
|
+
count: falseCount ?? (options.deriveCounts ? countOptionMatches({
|
|
54
|
+
rows: options.rows,
|
|
55
|
+
key: options.definition.key,
|
|
56
|
+
candidate: false
|
|
57
|
+
}) : options.missingCountFallback),
|
|
58
|
+
selected: isFilterValueSelected({
|
|
59
|
+
values: options.selectedValues,
|
|
60
|
+
candidate: false
|
|
61
|
+
}),
|
|
62
|
+
children: []
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
function resolveOptionEntryTree(options) {
|
|
67
|
+
return options.entries.map((entry, index) => {
|
|
68
|
+
const idPart = entry.value == null ? `group-${index}` : `${index}:${String(entry.value)}`;
|
|
69
|
+
const id = options.parentId ? `${options.parentId}/${idPart}` : idPart;
|
|
70
|
+
const children = resolveOptionEntryTree({
|
|
71
|
+
entries: entry.children ?? [],
|
|
72
|
+
selectedValues: options.selectedValues,
|
|
73
|
+
getCount: options.getCount,
|
|
74
|
+
parentId: id
|
|
75
|
+
});
|
|
76
|
+
const derivedCount = options.getCount(entry.value);
|
|
77
|
+
const selected = entry.value == null ? false : isFilterValueSelected({
|
|
78
|
+
values: options.selectedValues,
|
|
79
|
+
candidate: entry.value
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
id,
|
|
83
|
+
label: getFilterLabelText({
|
|
84
|
+
label: entry.label
|
|
85
|
+
}),
|
|
86
|
+
value: entry.value,
|
|
87
|
+
icon: entry.icon,
|
|
88
|
+
count: entry.count ?? sumChildCounts(children) ?? derivedCount,
|
|
89
|
+
selected,
|
|
90
|
+
children
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function sumChildCounts(entries) {
|
|
95
|
+
const counts = entries.map((entry) => entry.count).filter((count) => typeof count === "number");
|
|
96
|
+
if (!counts.length) return void 0;
|
|
97
|
+
return counts.reduce((total, count) => total + count, 0);
|
|
98
|
+
}
|
|
99
|
+
function countOptionMatches(options) {
|
|
100
|
+
return options.rows.reduce((count, row) => {
|
|
101
|
+
const values = getFilterPathValues({
|
|
102
|
+
source: row,
|
|
103
|
+
key: options.key
|
|
104
|
+
});
|
|
105
|
+
return count + (values.some(
|
|
106
|
+
(value) => isFilterValueSelected({
|
|
107
|
+
values: [value],
|
|
108
|
+
candidate: options.candidate
|
|
109
|
+
})
|
|
110
|
+
) ? 1 : 0);
|
|
111
|
+
}, 0);
|
|
112
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TableFilterDisplayLocation, TableFilterDisplayLocationValue, TableUiFilterDefinition } from '../../types/index.js';
|
|
2
|
+
export declare function resolveFilterDisplayLocation(value: TableFilterDisplayLocationValue | undefined): TableFilterDisplayLocation;
|
|
3
|
+
export declare function resolveFilterDisplayOrder(definition: TableUiFilterDefinition): number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getResponsiveValue } from "../../../shared/index.js";
|
|
2
|
+
const FILTER_DISPLAY_LOCATIONS = [
|
|
3
|
+
"tag",
|
|
4
|
+
"panel",
|
|
5
|
+
"tag-dynamic"
|
|
6
|
+
];
|
|
7
|
+
export function resolveFilterDisplayLocation(value) {
|
|
8
|
+
if (!value) return "tag";
|
|
9
|
+
if (isFilterDisplayLocation(value)) return value;
|
|
10
|
+
const resolved = getResponsiveValue(value);
|
|
11
|
+
return isFilterDisplayLocation(resolved) ? resolved : "tag";
|
|
12
|
+
}
|
|
13
|
+
export function resolveFilterDisplayOrder(definition) {
|
|
14
|
+
return definition.display?.order ?? Number.MAX_SAFE_INTEGER;
|
|
15
|
+
}
|
|
16
|
+
function isFilterDisplayLocation(value) {
|
|
17
|
+
return typeof value === "string" && FILTER_DISPLAY_LOCATIONS.includes(value);
|
|
18
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TableDateFilterDefinition, TableQueryStateFilterRule } from '../../../types/index.js';
|
|
2
|
+
import type { FilterPreviewResult } from './types.js';
|
|
3
|
+
export declare function buildDateFilterPreview(options: {
|
|
4
|
+
definition: TableDateFilterDefinition;
|
|
5
|
+
rule: TableQueryStateFilterRule;
|
|
6
|
+
}): FilterPreviewResult;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { formatFilterDate, getDateRangeValue, toDateFilterValue, toMaybeDate } from "../common.js";
|
|
2
|
+
import { resolveDateFilterUi } from "../ui.js";
|
|
3
|
+
export function buildDateFilterPreview(options) {
|
|
4
|
+
const operator = resolveDateOperator(options.rule.operator);
|
|
5
|
+
const filterUi = resolveDateFilterUi(options.definition, operator);
|
|
6
|
+
const preview = operator === "between" ? filterUi.range.preview : filterUi.scalar.preview;
|
|
7
|
+
const range = getDateRangeValue({ value: options.rule.value });
|
|
8
|
+
if (range && (range.from || range.to)) {
|
|
9
|
+
const start = toMaybeDate({ value: range.from });
|
|
10
|
+
const end = toMaybeDate({ value: range.to });
|
|
11
|
+
const summary = preview.rangeFormatter ? preview.rangeFormatter({ from: start, to: end }) : [start, end].filter((value) => value instanceof Date).map((value) => formatFilterDate({ value })).join(" - ");
|
|
12
|
+
return {
|
|
13
|
+
active: true,
|
|
14
|
+
count: [start, end].filter(Boolean).length,
|
|
15
|
+
tags: [],
|
|
16
|
+
summary: prefixPreviewLabel(preview.label, summary)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const date = toDateFilterValue({
|
|
20
|
+
definition: options.definition,
|
|
21
|
+
value: options.rule.value
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
active: Boolean(date),
|
|
25
|
+
count: date ? 1 : 0,
|
|
26
|
+
tags: [],
|
|
27
|
+
summary: date ? prefixPreviewLabel(
|
|
28
|
+
preview.label,
|
|
29
|
+
preview.formatter?.(date) ?? formatFilterDate({ value: date })
|
|
30
|
+
) : ""
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function resolveDateOperator(value) {
|
|
34
|
+
if (value === "isNot" || value === "before" || value === "after" || value === "between") {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return "is";
|
|
38
|
+
}
|
|
39
|
+
function prefixPreviewLabel(label, value) {
|
|
40
|
+
return label && value ? `${label}: ${value}` : value;
|
|
41
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TableQueryStateFilterRule, TableUiFilterDefinition } from '../../../types/index.js';
|
|
2
|
+
import type { FilterPreviewOptionEntry, FilterPreviewResult } from './types.js';
|
|
3
|
+
export type { FilterPreviewResult, FilterPreviewOptionEntry };
|
|
4
|
+
export declare function buildFilterPreview(options: {
|
|
5
|
+
definition: TableUiFilterDefinition;
|
|
6
|
+
rule?: TableQueryStateFilterRule;
|
|
7
|
+
optionEntries?: FilterPreviewOptionEntry[];
|
|
8
|
+
}): FilterPreviewResult;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { buildDateFilterPreview } from "./date-preview.js";
|
|
2
|
+
import { buildNumberFilterPreview } from "./number-preview.js";
|
|
3
|
+
import { buildOptionFilterPreview } from "./option-preview.js";
|
|
4
|
+
import { buildTextFilterPreview } from "./text-preview.js";
|
|
5
|
+
const EMPTY_PREVIEW = {
|
|
6
|
+
active: false,
|
|
7
|
+
count: 0,
|
|
8
|
+
tags: [],
|
|
9
|
+
summary: ""
|
|
10
|
+
};
|
|
11
|
+
export function buildFilterPreview(options) {
|
|
12
|
+
if (!options.rule) {
|
|
13
|
+
return EMPTY_PREVIEW;
|
|
14
|
+
}
|
|
15
|
+
if (options.definition.kind === "option" || options.definition.kind === "boolean") {
|
|
16
|
+
return buildOptionFilterPreview({
|
|
17
|
+
definition: options.definition,
|
|
18
|
+
rule: options.rule,
|
|
19
|
+
optionEntries: options.optionEntries ?? []
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
if (options.definition.kind === "date") {
|
|
23
|
+
return buildDateFilterPreview({
|
|
24
|
+
definition: options.definition,
|
|
25
|
+
rule: options.rule
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
if (options.definition.kind === "number") {
|
|
29
|
+
return buildNumberFilterPreview({
|
|
30
|
+
definition: options.definition,
|
|
31
|
+
rule: options.rule
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return buildTextFilterPreview({
|
|
35
|
+
definition: options.definition,
|
|
36
|
+
rule: options.rule
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TableNumberFilterDefinition, TableQueryStateFilterRule } from '../../../types/index.js';
|
|
2
|
+
import type { FilterPreviewResult } from './types.js';
|
|
3
|
+
export declare function buildNumberFilterPreview(options: {
|
|
4
|
+
definition: TableNumberFilterDefinition;
|
|
5
|
+
rule: TableQueryStateFilterRule;
|
|
6
|
+
}): FilterPreviewResult;
|