nuxt-ui-tools 0.1.3 → 1.0.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/dist/module.d.mts +2 -0
- package/dist/module.json +5 -5
- package/dist/module.mjs +239 -67
- package/dist/runtime/form/components/actions/{FormActions.vue → form-actions.vue} +45 -22
- package/dist/runtime/form/components/layout/{DrawerLayout.vue → drawer-layout.vue} +13 -10
- package/dist/runtime/form/components/layout/{FullscreenLayout.vue → fullscreen-layout.vue} +1 -1
- package/dist/runtime/form/components/layout/{ModalLayout.vue → modal-layout.vue} +7 -5
- package/dist/runtime/form/components/provider/{FormOverlayHost.vue → form-overlay-host.vue} +7 -5
- package/dist/runtime/form/components/provider/{FormProvider.vue → form-provider.vue} +2 -2
- package/dist/runtime/form/components/renderer/{FormCompositeControl.vue → form-composite-control.vue} +1 -1
- package/dist/runtime/{spreadsheet/components/shared/SpreadsheetObjectPreviewTable.d.vue.ts → form/components/renderer/form-field-error.d.vue.ts} +2 -1
- package/dist/runtime/form/components/renderer/form-field-error.vue +16 -0
- package/dist/runtime/{spreadsheet/components/shared/SpreadsheetObjectPreviewTable.vue.d.ts → form/components/renderer/form-field-error.vue.d.ts} +2 -1
- package/dist/runtime/form/components/renderer/{FormFieldRenderer.d.vue.ts → form-field-renderer.d.vue.ts} +2 -1
- package/dist/runtime/form/components/renderer/{FormFieldRenderer.vue → form-field-renderer.vue} +64 -15
- package/dist/runtime/form/components/renderer/{FormFieldRenderer.vue.d.ts → form-field-renderer.vue.d.ts} +2 -1
- package/dist/runtime/form/components/renderer/{FormFieldShell.d.vue.ts → form-field-shell.d.vue.ts} +7 -7
- package/dist/runtime/form/components/renderer/{FormFieldShell.vue → form-field-shell.vue} +120 -18
- package/dist/runtime/form/components/renderer/{FormFieldShell.vue.d.ts → form-field-shell.vue.d.ts} +7 -7
- package/dist/runtime/form/components/renderer/form-field-status.d.vue.ts +22 -0
- package/dist/runtime/form/components/renderer/form-field-status.vue +24 -0
- package/dist/runtime/form/components/renderer/form-field-status.vue.d.ts +22 -0
- package/dist/runtime/form/components/root/{Form.d.vue.ts → form.d.vue.ts} +14 -15
- package/dist/runtime/form/components/root/form.vue +510 -0
- package/dist/runtime/form/components/root/{Form.vue.d.ts → form.vue.d.ts} +14 -15
- package/dist/runtime/form/components/utils/form-directional-transition.d.vue.ts +22 -0
- package/dist/runtime/form/components/utils/form-directional-transition.vue +26 -0
- package/dist/runtime/form/components/utils/form-directional-transition.vue.d.ts +22 -0
- package/dist/runtime/form/components/utils/form-file-preview.d.vue.ts +10 -0
- package/dist/runtime/form/components/utils/form-file-preview.vue +127 -0
- package/dist/runtime/form/components/utils/form-file-preview.vue.d.ts +10 -0
- package/dist/runtime/form/components/utils/form-option-item-label.d.vue.ts +7 -0
- package/dist/runtime/form/components/utils/form-option-item-label.vue +30 -0
- package/dist/runtime/form/components/utils/form-option-item-label.vue.d.ts +7 -0
- package/dist/runtime/form/components/utils/form-option-menu-footer.d.vue.ts +14 -0
- package/dist/runtime/form/components/utils/form-option-menu-footer.vue +120 -0
- package/dist/runtime/form/components/utils/form-option-menu-footer.vue.d.ts +14 -0
- package/dist/runtime/form/composables/use-field-control.d.ts +48 -18
- package/dist/runtime/form/composables/use-field-control.js +193 -86
- package/dist/runtime/form/composables/use-field-effects.d.ts +2 -0
- package/dist/runtime/form/composables/use-field-effects.js +74 -0
- package/dist/runtime/form/composables/use-field-options.d.ts +23 -11
- package/dist/runtime/form/composables/use-field-options.js +199 -67
- package/dist/runtime/form/composables/use-form-actions.js +51 -26
- package/dist/runtime/form/composables/use-form-api.js +45 -28
- package/dist/runtime/form/composables/use-form-context-resources.d.ts +2 -2
- package/dist/runtime/form/composables/use-form-context-resources.js +37 -27
- package/dist/runtime/form/composables/use-form-focus.d.ts +3 -3
- package/dist/runtime/form/composables/use-form-focus.js +22 -11
- package/dist/runtime/form/composables/use-form-layout.d.ts +1 -1
- package/dist/runtime/form/composables/use-form-option-registry.d.ts +1 -1
- package/dist/runtime/form/composables/use-form-option-registry.js +35 -17
- package/dist/runtime/form/composables/use-form-overlay-controller.d.ts +6 -6
- package/dist/runtime/form/composables/use-form-overlay-controller.js +18 -12
- package/dist/runtime/form/composables/use-form-runtime.d.ts +1 -2
- package/dist/runtime/form/composables/use-form-runtime.js +388 -188
- package/dist/runtime/form/composables/use-form-state.d.ts +14 -10
- package/dist/runtime/form/composables/use-form-state.js +47 -14
- package/dist/runtime/form/composables/use-form-submission.d.ts +13 -0
- package/dist/runtime/form/composables/use-form-submission.js +74 -0
- package/dist/runtime/form/composables/use-form-ui.d.ts +5 -5
- package/dist/runtime/form/composables/use-form-ui.js +6 -4
- package/dist/runtime/form/composables/use-form-upload-registry.d.ts +1 -1
- package/dist/runtime/form/composables/use-form-upload-registry.js +4 -2
- package/dist/runtime/form/composables/use-form-validation.d.ts +22 -12
- package/dist/runtime/form/composables/use-form-validation.js +1012 -55
- package/dist/runtime/form/composables/use-form.d.ts +2 -2
- package/dist/runtime/form/composables/use-form.js +53 -44
- package/dist/runtime/form/composables/use-remote-field-options.d.ts +29 -0
- package/dist/runtime/form/composables/use-remote-field-options.js +468 -0
- package/dist/runtime/form/fields/array-collapse/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/array-collapse/component.vue +295 -0
- package/dist/runtime/form/fields/array-collapse/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/array-collapse/config.d.ts +12 -0
- package/dist/runtime/form/fields/array-collapse/config.js +7 -0
- package/dist/runtime/form/fields/array-collapse/index.d.ts +2 -0
- package/dist/runtime/form/fields/array-collapse/index.js +1 -0
- package/dist/runtime/form/fields/array-collapse/types.d.ts +13 -0
- package/dist/runtime/form/fields/array-collapse/types.js +0 -0
- package/dist/runtime/form/fields/array-list/component.vue +223 -330
- package/dist/runtime/form/fields/array-list/config.d.ts +6 -6
- package/dist/runtime/form/fields/array-list/config.js +3 -3
- package/dist/runtime/form/fields/array-list/types.d.ts +23 -15
- package/dist/runtime/form/fields/array-list/use-array-items.d.ts +56 -0
- package/dist/runtime/form/fields/array-list/use-array-items.js +263 -0
- package/dist/runtime/form/fields/array-primitive/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/array-primitive/component.vue +274 -0
- package/dist/runtime/form/fields/array-primitive/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/array-primitive/config.d.ts +14 -0
- package/dist/runtime/form/fields/array-primitive/config.js +9 -0
- package/dist/runtime/form/fields/array-primitive/index.d.ts +2 -0
- package/dist/runtime/form/fields/array-primitive/index.js +1 -0
- package/dist/runtime/form/fields/array-primitive/types.d.ts +52 -0
- package/dist/runtime/form/fields/array-primitive/types.js +0 -0
- package/dist/runtime/form/fields/array-table/component.vue +192 -271
- package/dist/runtime/form/fields/array-table/config.d.ts +6 -6
- package/dist/runtime/form/fields/array-table/config.js +3 -3
- package/dist/runtime/form/fields/array-table/types.d.ts +5 -3
- package/dist/runtime/form/fields/array-tabs/config.d.ts +6 -6
- package/dist/runtime/form/fields/array-tabs/config.js +3 -3
- package/dist/runtime/form/fields/array-tabs/types.d.ts +7 -5
- package/dist/runtime/form/fields/array-variant/config.d.ts +6 -6
- package/dist/runtime/form/fields/array-variant/config.js +3 -3
- package/dist/runtime/form/fields/array-variant/types.d.ts +9 -11
- package/dist/runtime/form/fields/auto-complete/component.vue +72 -50
- package/dist/runtime/form/fields/auto-complete/config.d.ts +8 -8
- package/dist/runtime/form/fields/auto-complete/config.js +5 -5
- package/dist/runtime/form/fields/auto-complete/types.d.ts +8 -6
- package/dist/runtime/form/fields/button/component.vue +4 -4
- package/dist/runtime/form/fields/button/config.d.ts +2 -2
- package/dist/runtime/form/fields/button/config.js +2 -2
- package/dist/runtime/form/fields/button/types.d.ts +4 -2
- package/dist/runtime/form/fields/card/component.vue +6 -5
- package/dist/runtime/form/fields/card/config.d.ts +6 -6
- package/dist/runtime/form/fields/card/config.js +3 -3
- package/dist/runtime/form/fields/card/types.d.ts +1 -1
- package/dist/runtime/form/fields/cascader/config.d.ts +8 -8
- package/dist/runtime/form/fields/cascader/config.js +5 -5
- package/dist/runtime/form/fields/checkbox/component.vue +1 -1
- package/dist/runtime/form/fields/checkbox/config.d.ts +6 -6
- package/dist/runtime/form/fields/checkbox/config.js +5 -5
- package/dist/runtime/form/fields/checkbox/types.d.ts +1 -1
- package/dist/runtime/form/fields/checkbox-card/component.vue +16 -6
- package/dist/runtime/form/fields/checkbox-card/config.d.ts +8 -8
- package/dist/runtime/form/fields/checkbox-card/config.js +5 -5
- package/dist/runtime/form/fields/checkbox-card/types.d.ts +9 -4
- package/dist/runtime/form/fields/checkbox-group/component.vue +17 -7
- package/dist/runtime/form/fields/checkbox-group/config.d.ts +8 -8
- package/dist/runtime/form/fields/checkbox-group/config.js +5 -5
- package/dist/runtime/form/fields/checkbox-group/types.d.ts +4 -2
- package/dist/runtime/form/fields/color-picker/component.vue +41 -16
- package/dist/runtime/form/fields/color-picker/config.d.ts +6 -6
- package/dist/runtime/form/fields/color-picker/config.js +5 -5
- package/dist/runtime/form/fields/color-picker/types.d.ts +2 -1
- package/dist/runtime/form/fields/column/component.vue +1 -1
- package/dist/runtime/form/fields/column/config.d.ts +3 -3
- package/dist/runtime/form/fields/column/config.js +2 -2
- package/dist/runtime/form/fields/column/types.d.ts +1 -1
- package/dist/runtime/form/fields/custom-component/component.vue +1 -1
- package/dist/runtime/form/fields/custom-component/config.d.ts +6 -6
- package/dist/runtime/form/fields/custom-component/config.js +5 -5
- package/dist/runtime/form/fields/custom-component/types.d.ts +3 -2
- package/dist/runtime/form/fields/date/component.d.vue.ts +1 -1
- package/dist/runtime/form/fields/date/component.vue +3 -323
- package/dist/runtime/form/fields/date/component.vue.d.ts +1 -1
- package/dist/runtime/form/fields/date/config.d.ts +6 -6
- package/dist/runtime/form/fields/date/config.js +5 -5
- package/dist/runtime/form/fields/date/types.d.ts +7 -13
- package/dist/runtime/form/fields/date-family/component.d.vue.ts +2 -1
- package/dist/runtime/form/fields/date-family/component.vue +500 -95
- package/dist/runtime/form/fields/date-family/component.vue.d.ts +2 -1
- package/dist/runtime/form/fields/date-family/types.d.ts +28 -12
- package/dist/runtime/form/fields/date-family/utils.d.ts +33 -0
- package/dist/runtime/form/fields/date-family/utils.js +370 -0
- package/dist/runtime/form/fields/date-range/config.d.ts +6 -6
- package/dist/runtime/form/fields/date-range/config.js +5 -5
- package/dist/runtime/form/fields/date-time/config.d.ts +6 -6
- package/dist/runtime/form/fields/date-time/config.js +5 -5
- package/dist/runtime/form/fields/date-time-range/config.d.ts +6 -6
- package/dist/runtime/form/fields/date-time-range/config.js +5 -5
- package/dist/runtime/form/fields/divider/config.d.ts +2 -2
- package/dist/runtime/form/fields/divider/config.js +2 -2
- package/dist/runtime/form/fields/divider/types.d.ts +1 -1
- package/dist/runtime/form/fields/file/component.vue +63 -12
- package/dist/runtime/form/fields/file/config.d.ts +6 -6
- package/dist/runtime/form/fields/file/config.js +5 -5
- package/dist/runtime/form/fields/file/types.d.ts +13 -3
- package/dist/runtime/form/fields/group/component.vue +7 -3
- package/dist/runtime/form/fields/group/config.d.ts +6 -6
- package/dist/runtime/form/fields/group/config.js +3 -3
- package/dist/runtime/form/fields/group/types.d.ts +1 -1
- package/dist/runtime/form/fields/hidden/component.vue +7 -2
- package/dist/runtime/form/fields/hidden/config.d.ts +2 -2
- package/dist/runtime/form/fields/hidden/config.js +3 -3
- package/dist/runtime/form/fields/hidden/types.d.ts +3 -3
- package/dist/runtime/form/fields/hierarchy/component.vue +230 -80
- package/dist/runtime/form/fields/hierarchy/{SelectionRadio.vue → selection-radio.vue} +1 -1
- package/dist/runtime/form/fields/hierarchy/types.d.ts +21 -11
- package/dist/runtime/form/fields/hierarchy/utils.d.ts +1 -1
- package/dist/runtime/form/fields/hierarchy/utils.js +18 -7
- package/dist/runtime/form/fields/index.d.ts +236 -246
- package/dist/runtime/form/fields/index.js +9 -49
- package/dist/runtime/form/fields/info/component.vue +12 -10
- package/dist/runtime/form/fields/info/config.d.ts +2 -2
- package/dist/runtime/form/fields/info/config.js +2 -2
- package/dist/runtime/form/fields/info/types.d.ts +8 -2
- package/dist/runtime/form/fields/input-group/component.vue +50 -4
- package/dist/runtime/form/fields/input-group/config.d.ts +6 -6
- package/dist/runtime/form/fields/input-group/config.js +3 -3
- package/dist/runtime/form/fields/input-group/types.d.ts +3 -1
- package/dist/runtime/form/fields/matrix/component.vue +44 -9
- package/dist/runtime/form/fields/matrix/config.d.ts +7 -7
- package/dist/runtime/form/fields/matrix/config.js +5 -5
- package/dist/runtime/form/fields/matrix/types.d.ts +9 -2
- package/dist/runtime/form/fields/month/config.d.ts +6 -6
- package/dist/runtime/form/fields/month/config.js +5 -5
- package/dist/runtime/form/fields/month-range/config.d.ts +6 -6
- package/dist/runtime/form/fields/month-range/config.js +5 -5
- package/dist/runtime/form/fields/number/component.vue +115 -21
- package/dist/runtime/form/fields/number/config.d.ts +6 -6
- package/dist/runtime/form/fields/number/config.js +5 -5
- package/dist/runtime/form/fields/number/types.d.ts +8 -1
- package/dist/runtime/form/fields/object/component.vue +3 -3
- package/dist/runtime/form/fields/object/config.d.ts +7 -7
- package/dist/runtime/form/fields/object/config.js +4 -4
- package/dist/runtime/form/fields/object/types.d.ts +3 -2
- package/dist/runtime/form/fields/one-time-code/component.vue +21 -9
- package/dist/runtime/form/fields/one-time-code/config.d.ts +6 -6
- package/dist/runtime/form/fields/one-time-code/config.js +5 -5
- package/dist/runtime/form/fields/one-time-code/types.d.ts +2 -1
- package/dist/runtime/form/fields/password/component.vue +66 -10
- package/dist/runtime/form/fields/password/config.d.ts +6 -6
- package/dist/runtime/form/fields/password/config.js +5 -5
- package/dist/runtime/form/fields/password/types.d.ts +10 -1
- package/dist/runtime/form/fields/phone-number/component.vue +95 -34
- package/dist/runtime/form/fields/phone-number/config.d.ts +6 -6
- package/dist/runtime/form/fields/phone-number/config.js +5 -5
- package/dist/runtime/form/fields/phone-number/types.d.ts +4 -1
- package/dist/runtime/form/fields/radio/component.vue +9 -3
- package/dist/runtime/form/fields/radio/config.d.ts +8 -8
- package/dist/runtime/form/fields/radio/config.js +5 -5
- package/dist/runtime/form/fields/radio/types.d.ts +6 -1
- package/dist/runtime/form/fields/radio-card/component.vue +24 -5
- package/dist/runtime/form/fields/radio-card/config.d.ts +8 -8
- package/dist/runtime/form/fields/radio-card/config.js +5 -5
- package/dist/runtime/form/fields/radio-card/types.d.ts +4 -2
- package/dist/runtime/form/fields/rating/component.vue +25 -15
- package/dist/runtime/form/fields/rating/config.d.ts +6 -6
- package/dist/runtime/form/fields/rating/config.js +5 -5
- package/dist/runtime/form/fields/rating/types.d.ts +2 -1
- package/dist/runtime/form/fields/section/component.d.vue.ts +8 -0
- package/dist/runtime/form/fields/section/component.vue +46 -0
- package/dist/runtime/form/fields/section/component.vue.d.ts +8 -0
- package/dist/runtime/form/fields/section/config.d.ts +7 -0
- package/dist/runtime/form/fields/section/config.js +6 -0
- package/dist/runtime/form/fields/section/index.d.ts +2 -0
- package/dist/runtime/form/fields/section/index.js +1 -0
- package/dist/runtime/form/fields/section/types.d.ts +10 -0
- package/dist/runtime/form/fields/section/types.js +0 -0
- package/dist/runtime/form/fields/select/component.vue +103 -87
- package/dist/runtime/form/fields/select/config.d.ts +8 -8
- package/dist/runtime/form/fields/select/config.js +5 -5
- package/dist/runtime/form/fields/select/types.d.ts +9 -6
- package/dist/runtime/form/fields/slider/component.vue +16 -11
- package/dist/runtime/form/fields/slider/config.d.ts +6 -6
- package/dist/runtime/form/fields/slider/config.js +5 -5
- package/dist/runtime/form/fields/slider/types.d.ts +4 -2
- package/dist/runtime/form/fields/switch/component.vue +10 -9
- package/dist/runtime/form/fields/switch/config.d.ts +6 -6
- package/dist/runtime/form/fields/switch/config.js +5 -5
- package/dist/runtime/form/fields/switch/types.d.ts +6 -9
- package/dist/runtime/form/fields/switch-group/component.vue +7 -6
- package/dist/runtime/form/fields/switch-group/config.d.ts +8 -8
- package/dist/runtime/form/fields/switch-group/config.js +5 -5
- package/dist/runtime/form/fields/switch-group/types.d.ts +4 -2
- package/dist/runtime/form/fields/tabs/component.d.vue.ts +9 -0
- package/dist/runtime/form/fields/tabs/component.vue +116 -0
- package/dist/runtime/form/fields/tabs/component.vue.d.ts +9 -0
- package/dist/runtime/form/fields/tabs/config.d.ts +8 -0
- package/dist/runtime/form/fields/tabs/config.js +6 -0
- package/dist/runtime/form/fields/tabs/index.d.ts +2 -0
- package/dist/runtime/form/fields/tabs/index.js +1 -0
- package/dist/runtime/form/fields/tabs/types.d.ts +21 -0
- package/dist/runtime/form/fields/tabs/types.js +0 -0
- package/dist/runtime/form/fields/tag/component.vue +3 -2
- package/dist/runtime/form/fields/tag/config.d.ts +6 -6
- package/dist/runtime/form/fields/tag/config.js +5 -5
- package/dist/runtime/form/fields/tag/types.d.ts +1 -1
- package/dist/runtime/form/fields/text/component.vue +104 -15
- package/dist/runtime/form/fields/text/config.d.ts +6 -6
- package/dist/runtime/form/fields/text/config.js +5 -5
- package/dist/runtime/form/fields/text/types.d.ts +13 -1
- package/dist/runtime/form/fields/textarea/component.vue +9 -4
- package/dist/runtime/form/fields/textarea/config.d.ts +6 -6
- package/dist/runtime/form/fields/textarea/config.js +5 -5
- package/dist/runtime/form/fields/textarea/types.d.ts +6 -1
- package/dist/runtime/form/fields/time/component.vue +73 -182
- package/dist/runtime/form/fields/time/config.d.ts +6 -6
- package/dist/runtime/form/fields/time/config.js +5 -5
- package/dist/runtime/form/fields/time/types.d.ts +2 -1
- package/dist/runtime/form/fields/tree/config.d.ts +8 -8
- package/dist/runtime/form/fields/tree/config.js +5 -5
- package/dist/runtime/form/fields/tree-select/config.d.ts +8 -8
- package/dist/runtime/form/fields/tree-select/config.js +5 -5
- package/dist/runtime/form/fields/upload/component.vue +96 -20
- package/dist/runtime/form/fields/upload/config.d.ts +6 -6
- package/dist/runtime/form/fields/upload/config.js +5 -5
- package/dist/runtime/form/fields/upload/types.d.ts +20 -10
- package/dist/runtime/form/fields/year/config.d.ts +6 -6
- package/dist/runtime/form/fields/year/config.js +5 -5
- package/dist/runtime/form/index.d.ts +0 -1
- package/dist/runtime/form/index.js +0 -1
- package/dist/runtime/form/schema/index.d.ts +14 -14
- package/dist/runtime/form/types/actions.d.ts +3 -3
- package/dist/runtime/form/types/api.d.ts +80 -24
- package/dist/runtime/form/types/callbacks.d.ts +3 -2
- package/dist/runtime/form/types/context.d.ts +12 -9
- package/dist/runtime/form/types/controller.d.ts +13 -12
- package/dist/runtime/form/types/dependencies.d.ts +5 -4
- package/dist/runtime/form/types/field-base.d.ts +59 -26
- package/dist/runtime/form/types/field-output-utils.d.ts +3 -0
- package/dist/runtime/form/types/field-output.d.ts +8 -2
- package/dist/runtime/form/types/field.d.ts +9 -1
- package/dist/runtime/form/types/form-api.d.ts +14 -7
- package/dist/runtime/form/types/layout.d.ts +11 -0
- package/dist/runtime/form/types/options-runtime.d.ts +30 -23
- package/dist/runtime/form/types/options.d.ts +76 -5
- package/dist/runtime/form/types/output.d.ts +29 -16
- package/dist/runtime/form/types/overlay.d.ts +3 -2
- package/dist/runtime/form/types/runtime.d.ts +11 -8
- package/dist/runtime/form/types/schema.d.ts +31 -13
- package/dist/runtime/form/types/transform.d.ts +2 -1
- package/dist/runtime/form/types/ui.d.ts +54 -0
- package/dist/runtime/form/types/upload-runtime.d.ts +2 -1
- package/dist/runtime/form/types/utils.d.ts +2 -0
- package/dist/runtime/form/types/validation.d.ts +11 -3
- package/dist/runtime/form/utils/api.js +6 -5
- package/dist/runtime/form/utils/array.d.ts +2 -2
- package/dist/runtime/form/utils/array.js +11 -3
- package/dist/runtime/form/utils/compare.d.ts +2 -0
- package/dist/runtime/form/utils/compare.js +27 -0
- package/dist/runtime/form/utils/dependencies.js +16 -5
- package/dist/runtime/form/utils/field-instance.d.ts +1 -1
- package/dist/runtime/form/utils/field-instance.js +55 -29
- package/dist/runtime/form/utils/focus.js +22 -9
- package/dist/runtime/form/utils/layout.js +10 -3
- package/dist/runtime/form/utils/mask.d.ts +7 -0
- package/dist/runtime/form/utils/mask.js +44 -0
- package/dist/runtime/form/utils/options.d.ts +11 -5
- package/dist/runtime/form/utils/options.js +57 -19
- package/dist/runtime/form/utils/overlay.d.ts +8 -8
- package/dist/runtime/form/utils/overlay.js +22 -7
- package/dist/runtime/form/utils/predicate.d.ts +9 -0
- package/dist/runtime/form/utils/predicate.js +35 -0
- package/dist/runtime/form/utils/state.d.ts +21 -9
- package/dist/runtime/form/utils/state.js +504 -134
- package/dist/runtime/form/utils/text.d.ts +8 -1
- package/dist/runtime/form/utils/text.js +37 -2
- package/dist/runtime/form/utils/ui.d.ts +2 -2
- package/dist/runtime/form/utils/ui.js +30 -17
- package/dist/runtime/i18n/define-locale.js +14 -9
- package/dist/runtime/i18n/locales/en.js +291 -208
- package/dist/runtime/i18n/locales/fr.js +291 -208
- package/dist/runtime/i18n/types.d.ts +83 -0
- package/dist/runtime/i18n/use-locale.d.ts +1 -1
- package/dist/runtime/i18n/use-locale.js +9 -6
- package/dist/runtime/i18n/utils.d.ts +1 -1
- package/dist/runtime/i18n/utils.js +8 -5
- package/dist/runtime/query-prefetch/index.d.ts +2 -0
- package/dist/runtime/query-prefetch/index.js +2 -0
- package/dist/runtime/query-prefetch/plugins/link-prefetch.client.d.ts +2 -0
- package/dist/runtime/query-prefetch/plugins/link-prefetch.client.js +8 -0
- package/dist/runtime/query-prefetch/types/index.d.ts +2 -0
- package/dist/runtime/query-prefetch/types/index.js +2 -0
- package/dist/runtime/query-prefetch/types/page.d.ts +55 -0
- package/dist/runtime/query-prefetch/types/page.js +0 -0
- package/dist/runtime/query-prefetch/types/plan.d.ts +55 -0
- package/dist/runtime/query-prefetch/types/plan.js +0 -0
- package/dist/runtime/query-prefetch/utils/index.d.ts +3 -0
- package/dist/runtime/query-prefetch/utils/index.js +3 -0
- package/dist/runtime/query-prefetch/utils/page.d.ts +24 -0
- package/dist/runtime/query-prefetch/utils/page.js +63 -0
- package/dist/runtime/query-prefetch/utils/plan.d.ts +29 -0
- package/dist/runtime/query-prefetch/utils/plan.js +67 -0
- package/dist/runtime/query-prefetch/utils/prefetch-page.d.ts +17 -0
- package/dist/runtime/query-prefetch/utils/prefetch-page.js +57 -0
- package/dist/runtime/query-state/client.d.ts +6 -6
- package/dist/runtime/query-state/client.js +39 -20
- package/dist/runtime/query-state/codecs.js +13 -5
- package/dist/runtime/query-state/composables.d.ts +10 -8
- package/dist/runtime/query-state/composables.js +46 -25
- package/dist/runtime/shared/composables/use-range-select.d.ts +1 -1
- package/dist/runtime/shared/composables/use-range-select.js +4 -2
- package/dist/runtime/shared/composables/use-responsive-value.d.ts +4 -3
- package/dist/runtime/shared/composables/use-responsive-value.js +20 -11
- package/dist/runtime/shared/styles/scrollbars.css +1 -0
- package/dist/runtime/shared/styles/tokens.css +1 -0
- package/dist/runtime/shared/types/utils.d.ts +15 -12
- package/dist/runtime/shared/utils/object.d.ts +6 -4
- package/dist/runtime/shared/utils/object.js +53 -33
- package/dist/runtime/shared/utils/path.d.ts +6 -4
- package/dist/runtime/shared/utils/path.js +31 -13
- package/dist/runtime/shared/utils/predicate.d.ts +102 -209
- package/dist/runtime/shared/utils/predicate.js +50 -28
- package/dist/runtime/shared/utils/registry.js +1 -0
- package/dist/runtime/shared/utils/render.d.ts +1 -1
- package/dist/runtime/shared/utils/render.js +12 -4
- package/dist/runtime/shared/utils/responsive.d.ts +4 -3
- package/dist/runtime/shared/utils/responsive.js +45 -15
- package/dist/runtime/spreadsheet/components/shared/spreadsheet-object-preview-table.d.vue.ts +7 -0
- package/dist/runtime/spreadsheet/components/shared/{SpreadsheetObjectPreviewTable.vue → spreadsheet-object-preview-table.vue} +11 -8
- package/dist/runtime/spreadsheet/components/shared/spreadsheet-object-preview-table.vue.d.ts +7 -0
- package/dist/runtime/spreadsheet/components/shared/{SpreadsheetRawPreviewTable.vue → spreadsheet-raw-preview-table.vue} +2 -2
- package/dist/runtime/spreadsheet/components/shared/{SpreadsheetSummaryStats.d.vue.ts → spreadsheet-summary-stats.d.vue.ts} +2 -2
- package/dist/runtime/spreadsheet/components/shared/{SpreadsheetSummaryStats.vue.d.ts → spreadsheet-summary-stats.vue.d.ts} +2 -2
- package/dist/runtime/spreadsheet/components/shared/spreadsheet-value-preview.d.vue.ts +10 -0
- package/dist/runtime/spreadsheet/components/shared/{SpreadsheetValuePreview.vue → spreadsheet-value-preview.vue} +10 -3
- package/dist/runtime/spreadsheet/components/shared/spreadsheet-value-preview.vue.d.ts +10 -0
- package/dist/runtime/spreadsheet/components/{SpreadsheetImport.vue → spreadsheet-import.vue} +50 -26
- package/dist/runtime/spreadsheet/components/steps/matching/{SpreadsheetMatchingSummary.d.vue.ts → spreadsheet-matching-summary.d.vue.ts} +2 -2
- package/dist/runtime/spreadsheet/components/steps/matching/{SpreadsheetMatchingSummary.vue → spreadsheet-matching-summary.vue} +9 -3
- package/dist/runtime/spreadsheet/components/steps/matching/{SpreadsheetMatchingSummary.vue.d.ts → spreadsheet-matching-summary.vue.d.ts} +2 -2
- package/dist/runtime/spreadsheet/components/steps/matching/{SpreadsheetMatchingTable.d.vue.ts → spreadsheet-matching-table.d.vue.ts} +6 -6
- package/dist/runtime/spreadsheet/components/steps/matching/{SpreadsheetMatchingTable.vue → spreadsheet-matching-table.vue} +18 -12
- package/dist/runtime/spreadsheet/components/steps/matching/{SpreadsheetMatchingTable.vue.d.ts → spreadsheet-matching-table.vue.d.ts} +6 -6
- package/dist/runtime/spreadsheet/components/steps/references/{SpreadsheetReferencesAccordion.d.vue.ts → spreadsheet-references-accordion.d.vue.ts} +4 -4
- package/dist/runtime/spreadsheet/components/steps/references/{SpreadsheetReferencesAccordion.vue.d.ts → spreadsheet-references-accordion.vue.d.ts} +4 -4
- package/dist/runtime/spreadsheet/components/steps/references/{SpreadsheetReferencesSummary.d.vue.ts → spreadsheet-references-summary.d.vue.ts} +2 -2
- package/dist/runtime/spreadsheet/components/steps/references/{SpreadsheetReferencesSummary.vue.d.ts → spreadsheet-references-summary.vue.d.ts} +2 -2
- package/dist/runtime/spreadsheet/components/steps/review/{SpreadsheetReviewInspection.d.vue.ts → spreadsheet-review-inspection.d.vue.ts} +8 -8
- package/dist/runtime/spreadsheet/components/steps/review/{SpreadsheetReviewInspection.vue → spreadsheet-review-inspection.vue} +13 -9
- package/dist/runtime/spreadsheet/components/steps/review/{SpreadsheetReviewInspection.vue.d.ts → spreadsheet-review-inspection.vue.d.ts} +8 -8
- package/dist/runtime/spreadsheet/components/steps/review/{SpreadsheetReviewStats.d.vue.ts → spreadsheet-review-stats.d.vue.ts} +2 -2
- package/dist/runtime/spreadsheet/components/steps/review/{SpreadsheetReviewStats.vue.d.ts → spreadsheet-review-stats.vue.d.ts} +2 -2
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportMatchingStep.vue → spreadsheet-import-matching-step.vue} +30 -25
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportReferencesStep.vue → spreadsheet-import-references-step.vue} +63 -41
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportReviewStep.vue → spreadsheet-import-review-step.vue} +14 -9
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportStructureStep.vue → spreadsheet-import-structure-step.vue} +4 -4
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportUploadStep.vue → spreadsheet-import-upload-step.vue} +10 -5
- package/dist/runtime/spreadsheet/components/steps/structure/{SpreadsheetStructurePreviewTable.d.vue.ts → spreadsheet-structure-preview-table.d.vue.ts} +2 -2
- package/dist/runtime/spreadsheet/components/steps/structure/{SpreadsheetStructurePreviewTable.vue → spreadsheet-structure-preview-table.vue} +3 -3
- package/dist/runtime/spreadsheet/components/steps/structure/{SpreadsheetStructurePreviewTable.vue.d.ts → spreadsheet-structure-preview-table.vue.d.ts} +2 -2
- package/dist/runtime/spreadsheet/components/steps/structure/{SpreadsheetStructureSheetList.d.vue.ts → spreadsheet-structure-sheet-list.d.vue.ts} +2 -2
- package/dist/runtime/spreadsheet/components/steps/structure/{SpreadsheetStructureSheetList.vue.d.ts → spreadsheet-structure-sheet-list.vue.d.ts} +2 -2
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-column-matching.d.ts +9 -9
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-column-matching.js +7 -7
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-context.d.ts +10 -10
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-context.js +5 -5
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-import.d.ts +2 -2
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-import.js +32 -30
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-internals.d.ts +336 -336
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-internals.js +13 -17
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-resolutions.d.ts +21 -21
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-resolutions.js +23 -21
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-review.d.ts +83 -83
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-review.js +129 -100
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-row-state.d.ts +7 -7
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-row-state.js +15 -11
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-rows.d.ts +12 -12
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-rows.js +5 -5
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-source.d.ts +8 -8
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-source.js +17 -13
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-view.d.ts +2 -2
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-view.js +42 -36
- package/dist/runtime/spreadsheet/schema/index.d.ts +2 -2
- package/dist/runtime/spreadsheet/schema/index.js +3 -1
- package/dist/runtime/spreadsheet/schema/normalize.d.ts +26 -26
- package/dist/runtime/spreadsheet/schema/normalize.js +48 -39
- package/dist/runtime/spreadsheet/types/columns.d.ts +18 -24
- package/dist/runtime/spreadsheet/types/inference.d.ts +5 -5
- package/dist/runtime/spreadsheet/types/reference-session.d.ts +2 -1
- package/dist/runtime/spreadsheet/types/references.d.ts +8 -7
- package/dist/runtime/spreadsheet/types/resolution.d.ts +4 -4
- package/dist/runtime/spreadsheet/types/rows.d.ts +2 -2
- package/dist/runtime/spreadsheet/types/schema.d.ts +2 -1
- package/dist/runtime/spreadsheet/types/shared.d.ts +7 -0
- package/dist/runtime/spreadsheet/types/validation.d.ts +12 -12
- package/dist/runtime/spreadsheet/utils/builders/core.js +86 -74
- package/dist/runtime/spreadsheet/utils/context.d.ts +3 -3
- package/dist/runtime/spreadsheet/utils/context.js +1 -1
- package/dist/runtime/spreadsheet/utils/display.d.ts +2 -1
- package/dist/runtime/spreadsheet/utils/display.js +17 -7
- package/dist/runtime/spreadsheet/utils/object.d.ts +9 -8
- package/dist/runtime/spreadsheet/utils/object.js +23 -8
- package/dist/runtime/spreadsheet/utils/options.d.ts +9 -7
- package/dist/runtime/spreadsheet/utils/options.js +24 -8
- package/dist/runtime/spreadsheet/utils/references/candidates.js +11 -5
- package/dist/runtime/spreadsheet/utils/references/guards.d.ts +3 -3
- package/dist/runtime/spreadsheet/utils/references/guards.js +10 -6
- package/dist/runtime/spreadsheet/utils/references/resolutions.d.ts +7 -7
- package/dist/runtime/spreadsheet/utils/references/resolutions.js +60 -41
- package/dist/runtime/spreadsheet/utils/references/shared.d.ts +2 -1
- package/dist/runtime/spreadsheet/utils/references/shared.js +16 -6
- package/dist/runtime/spreadsheet/utils/references/sources.d.ts +5 -5
- package/dist/runtime/spreadsheet/utils/references/sources.js +11 -7
- package/dist/runtime/spreadsheet/utils/rows/headers.js +2 -2
- package/dist/runtime/spreadsheet/utils/rows/matching.d.ts +1 -2
- package/dist/runtime/spreadsheet/utils/rows/matching.js +79 -39
- package/dist/runtime/spreadsheet/utils/rows/parsing.d.ts +2 -3
- package/dist/runtime/spreadsheet/utils/rows/parsing.js +72 -42
- package/dist/runtime/spreadsheet/utils/rows/shared.d.ts +11 -12
- package/dist/runtime/spreadsheet/utils/rows/shared.js +133 -83
- package/dist/runtime/spreadsheet/utils/rows/summary.js +3 -3
- package/dist/runtime/spreadsheet/utils/source/core.js +22 -11
- package/dist/runtime/spreadsheet/utils/validation/core.d.ts +2 -2
- package/dist/runtime/spreadsheet/utils/validation/core.js +107 -88
- package/dist/runtime/table/builders/index.d.ts +1 -1
- package/dist/runtime/table/builders/index.js +24 -20
- package/dist/runtime/table/components/actions/{RowActions.d.vue.ts → row-actions.d.vue.ts} +7 -2
- package/dist/runtime/table/components/actions/row-actions.vue +111 -0
- package/dist/runtime/table/components/actions/{RowActions.vue.d.ts → row-actions.vue.d.ts} +7 -2
- package/dist/runtime/table/components/actions/{TableRowScopeProvider.d.vue.ts → table-row-scope-provider.d.vue.ts} +1 -1
- package/dist/runtime/table/components/actions/{TableRowScopeProvider.vue → table-row-scope-provider.vue} +1 -3
- package/dist/runtime/table/components/actions/{TableRowScopeProvider.vue.d.ts → table-row-scope-provider.vue.d.ts} +1 -1
- package/dist/runtime/table/components/{filters/panel/FilterPanel.d.vue.ts → data-list/data-list-actions-dropdown.d.vue.ts} +9 -8
- package/dist/runtime/table/components/data-list/data-list-actions-dropdown.vue +57 -0
- package/dist/runtime/table/components/{filters/panel/FilterPanel.vue.d.ts → data-list/data-list-actions-dropdown.vue.d.ts} +9 -8
- package/dist/runtime/table/components/data-list/data-list-actions-toolbar.d.vue.ts +15 -0
- package/dist/runtime/table/components/data-list/data-list-actions-toolbar.vue +23 -0
- package/dist/runtime/table/components/data-list/data-list-actions-toolbar.vue.d.ts +15 -0
- package/dist/runtime/table/components/data-list/{DataListAddFilter.vue → data-list-add-filter.vue} +1 -1
- package/dist/runtime/table/components/data-list/{DataListColumnPanel.d.vue.ts → data-list-column-panel.d.vue.ts} +6 -2
- package/dist/runtime/table/components/data-list/data-list-column-panel.vue +26 -0
- package/dist/runtime/table/components/data-list/{DataListColumnPanel.vue.d.ts → data-list-column-panel.vue.d.ts} +6 -2
- package/dist/runtime/table/components/data-list/{DataListContent.d.vue.ts → data-list-content.d.vue.ts} +7 -4
- package/dist/runtime/table/components/data-list/{DataListContent.vue → data-list-content.vue} +45 -17
- package/dist/runtime/table/components/data-list/{DataListContent.vue.d.ts → data-list-content.vue.d.ts} +7 -4
- package/dist/runtime/table/components/data-list/{DataListDefault.d.vue.ts → data-list-default.d.vue.ts} +20 -20
- package/dist/runtime/table/components/data-list/{DataListDefault.vue → data-list-default.vue} +32 -23
- package/dist/runtime/table/components/data-list/{DataListDefault.vue.d.ts → data-list-default.vue.d.ts} +20 -20
- package/dist/runtime/table/components/data-list/{DataListFilterPanel.d.vue.ts → data-list-filter-panel.d.vue.ts} +6 -1
- package/dist/runtime/table/components/data-list/data-list-filter-panel.vue +37 -0
- package/dist/runtime/table/components/data-list/{DataListFilterPanel.vue.d.ts → data-list-filter-panel.vue.d.ts} +6 -1
- package/dist/runtime/table/components/data-list/{DataListFilterTags.d.vue.ts → data-list-filter-tags.d.vue.ts} +9 -6
- package/dist/runtime/table/components/data-list/{DataListFilterTags.vue → data-list-filter-tags.vue} +7 -2
- package/dist/runtime/table/components/data-list/{DataListFilterTags.vue.d.ts → data-list-filter-tags.vue.d.ts} +9 -6
- package/dist/runtime/table/components/data-list/{DataListGrid.d.vue.ts → data-list-grid.d.vue.ts} +3 -1
- package/dist/runtime/table/components/data-list/{DataListGrid.vue → data-list-grid.vue} +7 -2
- package/dist/runtime/table/components/data-list/{DataListGrid.vue.d.ts → data-list-grid.vue.d.ts} +3 -1
- package/dist/runtime/table/components/data-list/{DataListInfiniteLoader.d.vue.ts → data-list-infinite-loader.d.vue.ts} +12 -12
- package/dist/runtime/table/components/data-list/{DataListInfiniteLoader.vue → data-list-infinite-loader.vue} +15 -3
- package/dist/runtime/table/components/data-list/{DataListInfiniteLoader.vue.d.ts → data-list-infinite-loader.vue.d.ts} +12 -12
- package/dist/runtime/table/components/data-list/{DataListLayoutSwitch.d.vue.ts → data-list-layout-switch.d.vue.ts} +5 -2
- package/dist/runtime/table/components/data-list/{DataListLayoutSwitch.vue → data-list-layout-switch.vue} +31 -9
- package/dist/runtime/table/components/data-list/{DataListLayoutSwitch.vue.d.ts → data-list-layout-switch.vue.d.ts} +5 -2
- package/dist/runtime/table/components/data-list/{DataListPagination.d.vue.ts → data-list-pagination.d.vue.ts} +8 -7
- package/dist/runtime/table/components/data-list/{DataListPagination.vue → data-list-pagination.vue} +4 -3
- package/dist/runtime/table/components/data-list/{DataListPagination.vue.d.ts → data-list-pagination.vue.d.ts} +8 -7
- package/dist/runtime/table/components/data-list/{DataListRefresh.d.vue.ts → data-list-refresh.d.vue.ts} +2 -1
- package/dist/runtime/table/components/data-list/{DataListRefresh.vue → data-list-refresh.vue} +26 -7
- package/dist/runtime/table/components/data-list/{DataListRefresh.vue.d.ts → data-list-refresh.vue.d.ts} +2 -1
- package/dist/runtime/table/components/data-list/{DataListResultCount.d.vue.ts → data-list-result-count.d.vue.ts} +2 -1
- package/dist/runtime/table/components/data-list/{DataListResultCount.vue → data-list-result-count.vue} +9 -2
- package/dist/runtime/table/components/data-list/{DataListResultCount.vue.d.ts → data-list-result-count.vue.d.ts} +2 -1
- package/dist/runtime/table/components/data-list/{DataListRoot.d.vue.ts → data-list-root.d.vue.ts} +5 -4
- package/dist/runtime/table/components/data-list/{DataListRoot.vue → data-list-root.vue} +30 -9
- package/dist/runtime/table/components/data-list/{DataListRoot.vue.d.ts → data-list-root.vue.d.ts} +5 -4
- package/dist/runtime/table/components/data-list/{DataListSearch.d.vue.ts → data-list-search.d.vue.ts} +2 -1
- package/dist/runtime/table/components/data-list/{DataListSearch.vue → data-list-search.vue} +8 -2
- package/dist/runtime/table/components/data-list/{DataListSearch.vue.d.ts → data-list-search.vue.d.ts} +2 -1
- package/dist/runtime/table/components/data-list/data-list-selection-actions.d.vue.ts +36 -0
- package/dist/runtime/table/components/data-list/data-list-selection-actions.vue +242 -0
- package/dist/runtime/table/components/data-list/data-list-selection-actions.vue.d.ts +36 -0
- package/dist/runtime/table/components/data-list/{DataListSortMenu.d.vue.ts → data-list-sort-menu.d.vue.ts} +11 -7
- package/dist/runtime/table/components/data-list/data-list-sort-menu.vue +187 -0
- package/dist/runtime/table/components/data-list/{DataListSortMenu.vue.d.ts → data-list-sort-menu.vue.d.ts} +11 -7
- package/dist/runtime/table/components/data-list/{DataListTable.d.vue.ts → data-list-table.d.vue.ts} +3 -1
- package/dist/runtime/table/components/data-list/{DataListTable.vue → data-list-table.vue} +7 -2
- package/dist/runtime/table/components/data-list/{DataListTable.vue.d.ts → data-list-table.vue.d.ts} +3 -1
- package/dist/runtime/table/components/data-list/sort-menu-panel.d.vue.ts +18 -0
- package/dist/runtime/table/components/data-list/sort-menu-panel.vue +86 -0
- package/dist/runtime/table/components/data-list/sort-menu-panel.vue.d.ts +18 -0
- package/dist/runtime/table/components/{DataList.d.vue.ts → data-list.d.vue.ts} +6 -5
- package/dist/runtime/table/components/{DataList.vue → data-list.vue} +4 -3
- package/dist/runtime/table/components/{DataList.vue.d.ts → data-list.vue.d.ts} +6 -5
- package/dist/runtime/table/components/drawers/{ColumnPanel.d.vue.ts → column-panel.d.vue.ts} +4 -2
- package/dist/runtime/table/components/drawers/column-panel.vue +431 -0
- package/dist/runtime/table/components/drawers/{ColumnPanel.vue.d.ts → column-panel.vue.d.ts} +4 -2
- package/dist/runtime/table/components/filters/panel/{BooleanFilterPanelField.d.vue.ts → boolean-filter-panel-field.d.vue.ts} +3 -1
- package/dist/runtime/table/components/filters/panel/boolean-filter-panel-field.vue +69 -0
- package/dist/runtime/table/components/filters/panel/{BooleanFilterPanelField.vue.d.ts → boolean-filter-panel-field.vue.d.ts} +3 -1
- package/dist/runtime/table/components/filters/panel/{DateFilterPanelField.d.vue.ts → date-filter-panel-field.d.vue.ts} +3 -1
- package/dist/runtime/table/components/filters/panel/{DateFilterPanelField.vue → date-filter-panel-field.vue} +44 -19
- package/dist/runtime/table/components/filters/panel/{DateFilterPanelField.vue.d.ts → date-filter-panel-field.vue.d.ts} +3 -1
- package/dist/runtime/table/components/filters/panel/filter-panel-chips.d.vue.ts +23 -0
- package/dist/runtime/table/components/filters/panel/filter-panel-chips.vue +74 -0
- package/dist/runtime/table/components/filters/panel/filter-panel-chips.vue.d.ts +23 -0
- package/dist/runtime/table/components/filters/panel/{FilterPanelFieldShell.d.vue.ts → filter-panel-field-shell.d.vue.ts} +4 -0
- package/dist/runtime/table/components/filters/panel/filter-panel-field-shell.vue +56 -0
- package/dist/runtime/table/components/filters/panel/{FilterPanelFieldShell.vue.d.ts → filter-panel-field-shell.vue.d.ts} +4 -0
- package/dist/runtime/table/components/filters/panel/filter-panel-fields.d.vue.ts +8 -0
- package/dist/runtime/table/components/filters/panel/filter-panel-fields.vue +46 -0
- package/dist/runtime/table/components/filters/panel/filter-panel-fields.vue.d.ts +8 -0
- package/dist/runtime/table/components/filters/panel/{FilterPanelInputTrigger.d.vue.ts → filter-panel-input-trigger.d.vue.ts} +2 -0
- package/dist/runtime/table/components/filters/panel/filter-panel-input-trigger.vue +26 -0
- package/dist/runtime/table/components/filters/panel/{FilterPanelInputTrigger.vue.d.ts → filter-panel-input-trigger.vue.d.ts} +2 -0
- package/dist/runtime/table/components/filters/panel/filter-panel.d.vue.ts +35 -0
- package/dist/runtime/table/components/filters/panel/filter-panel.vue +330 -0
- package/dist/runtime/table/components/filters/panel/filter-panel.vue.d.ts +35 -0
- package/dist/runtime/table/components/filters/panel/{NumberFilterPanelField.d.vue.ts → number-filter-panel-field.d.vue.ts} +3 -1
- package/dist/runtime/table/components/filters/panel/{NumberFilterPanelField.vue → number-filter-panel-field.vue} +37 -20
- package/dist/runtime/table/components/filters/panel/{NumberFilterPanelField.vue.d.ts → number-filter-panel-field.vue.d.ts} +3 -1
- package/dist/runtime/table/components/filters/panel/{OptionFilterPanelField.d.vue.ts → option-filter-panel-field.d.vue.ts} +3 -1
- package/dist/runtime/table/components/filters/panel/{OptionFilterPanelField.vue → option-filter-panel-field.vue} +75 -20
- package/dist/runtime/table/components/filters/panel/{OptionFilterPanelField.vue.d.ts → option-filter-panel-field.vue.d.ts} +3 -1
- package/dist/runtime/table/components/filters/panel/registry.js +6 -6
- package/dist/runtime/table/components/filters/panel/{TextFilterPanelField.d.vue.ts → text-filter-panel-field.d.vue.ts} +3 -1
- package/dist/runtime/table/components/filters/panel/{TextFilterPanelField.vue → text-filter-panel-field.vue} +23 -11
- package/dist/runtime/table/components/filters/panel/{TextFilterPanelField.vue.d.ts → text-filter-panel-field.vue.d.ts} +3 -1
- package/dist/runtime/table/components/filters/shared/{DynamicFilterPicker.vue → dynamic-filter-picker.vue} +100 -31
- package/dist/runtime/table/components/filters/shared/{FilterMatchModeButton.d.vue.ts → filter-match-mode-button.d.vue.ts} +5 -4
- package/dist/runtime/table/components/filters/shared/filter-match-mode-button.vue +120 -0
- package/dist/runtime/table/components/filters/shared/{FilterMatchModeButton.vue.d.ts → filter-match-mode-button.vue.d.ts} +5 -4
- package/dist/runtime/table/components/filters/shared/{FilterMatchModePanel.d.vue.ts → filter-match-mode-panel.d.vue.ts} +3 -2
- package/dist/runtime/table/components/filters/shared/filter-match-mode-panel.vue +81 -0
- package/dist/runtime/table/components/filters/shared/{FilterMatchModePanel.vue.d.ts → filter-match-mode-panel.vue.d.ts} +3 -2
- package/dist/runtime/table/components/filters/shared/{FilterOptionRow.d.vue.ts → filter-option-loading-list.d.vue.ts} +4 -8
- package/dist/runtime/table/components/filters/shared/filter-option-loading-list.vue +42 -0
- package/dist/runtime/table/components/filters/shared/{FilterOptionRow.vue.d.ts → filter-option-loading-list.vue.d.ts} +4 -8
- package/dist/runtime/table/components/filters/shared/{FilterOptionMultipleList.d.vue.ts → filter-option-multiple-list.d.vue.ts} +2 -2
- package/dist/runtime/table/components/filters/shared/filter-option-multiple-list.vue +115 -0
- package/dist/runtime/table/components/filters/shared/{FilterOptionMultipleList.vue.d.ts → filter-option-multiple-list.vue.d.ts} +2 -2
- package/dist/runtime/table/components/filters/shared/{FilterOptionPickerContent.d.vue.ts → filter-option-picker-content.d.vue.ts} +1 -1
- package/dist/runtime/table/components/filters/shared/{FilterOptionPickerContent.vue → filter-option-picker-content.vue} +32 -47
- package/dist/runtime/table/components/filters/shared/{FilterOptionPickerContent.vue.d.ts → filter-option-picker-content.vue.d.ts} +1 -1
- package/dist/runtime/table/components/filters/shared/{FilterOptionSingleList.d.vue.ts → filter-option-single-list.d.vue.ts} +2 -2
- package/dist/runtime/table/components/filters/shared/{FilterOptionSingleList.vue → filter-option-single-list.vue} +12 -4
- package/dist/runtime/table/components/filters/shared/{FilterOptionSingleList.vue.d.ts → filter-option-single-list.vue.d.ts} +2 -2
- package/dist/runtime/table/components/filters/shared/{FilterOptionTreeContent.d.vue.ts → filter-option-tree-content.d.vue.ts} +4 -4
- package/dist/runtime/table/components/filters/shared/filter-option-tree-content.vue +222 -0
- package/dist/runtime/table/components/filters/shared/{FilterOptionTreeContent.vue.d.ts → filter-option-tree-content.vue.d.ts} +4 -4
- package/dist/runtime/table/components/filters/shared/{FilterPopoverShell.vue → filter-popover-shell.vue} +9 -2
- package/dist/runtime/table/components/filters/shared/{FilterSearchablePanel.vue → filter-searchable-panel.vue} +1 -1
- package/dist/runtime/table/components/filters/shared/{FilterStageTransition.vue → filter-stage-transition.vue} +6 -2
- package/dist/runtime/table/components/filters/shared/{FilterTriggerTag.d.vue.ts → filter-trigger-tag.d.vue.ts} +8 -2
- package/dist/runtime/table/components/filters/shared/filter-trigger-tag.vue +227 -0
- package/dist/runtime/table/components/filters/shared/{FilterTriggerTag.vue.d.ts → filter-trigger-tag.vue.d.ts} +8 -2
- package/dist/runtime/{spreadsheet/components/shared/SpreadsheetValuePreview.d.vue.ts → table/components/filters/sheet/filter-sheet.d.vue.ts} +2 -3
- package/dist/runtime/table/components/filters/sheet/filter-sheet.vue +239 -0
- package/dist/runtime/{spreadsheet/components/shared/SpreadsheetValuePreview.vue.d.ts → table/components/filters/sheet/filter-sheet.vue.d.ts} +2 -3
- package/dist/runtime/table/components/filters/tags/{BooleanFilterTag.d.vue.ts → boolean-filter-tag.d.vue.ts} +8 -1
- package/dist/runtime/table/components/filters/tags/{BooleanFilterTag.vue → boolean-filter-tag.vue} +56 -39
- package/dist/runtime/table/components/filters/tags/{BooleanFilterTag.vue.d.ts → boolean-filter-tag.vue.d.ts} +8 -1
- package/dist/runtime/table/components/filters/tags/{DateFilterTag.d.vue.ts → date-filter-tag.d.vue.ts} +8 -1
- package/dist/runtime/table/components/filters/tags/{DateFilterTag.vue → date-filter-tag.vue} +138 -67
- package/dist/runtime/table/components/filters/tags/{DateFilterTag.vue.d.ts → date-filter-tag.vue.d.ts} +8 -1
- package/dist/runtime/table/components/filters/tags/{FilterTagsBar.d.vue.ts → filter-tags-bar.d.vue.ts} +6 -6
- package/dist/runtime/table/components/filters/tags/{FilterTagsBar.vue → filter-tags-bar.vue} +47 -14
- package/dist/runtime/table/components/filters/tags/{FilterTagsBar.vue.d.ts → filter-tags-bar.vue.d.ts} +6 -6
- package/dist/runtime/table/components/filters/tags/{NumberFilterTag.d.vue.ts → number-filter-tag.d.vue.ts} +8 -1
- package/dist/runtime/table/components/filters/tags/{NumberFilterTag.vue → number-filter-tag.vue} +57 -50
- package/dist/runtime/table/components/filters/tags/{NumberFilterTag.vue.d.ts → number-filter-tag.vue.d.ts} +8 -1
- package/dist/runtime/table/components/filters/tags/{OptionFilterTag.d.vue.ts → option-filter-tag.d.vue.ts} +14 -2
- package/dist/runtime/table/components/filters/tags/{OptionFilterTag.vue → option-filter-tag.vue} +93 -40
- package/dist/runtime/table/components/filters/tags/{OptionFilterTag.vue.d.ts → option-filter-tag.vue.d.ts} +14 -2
- package/dist/runtime/table/components/filters/tags/registry.js +6 -6
- package/dist/runtime/table/components/filters/tags/{TextFilterTag.d.vue.ts → text-filter-tag.d.vue.ts} +8 -1
- package/dist/runtime/table/components/filters/tags/{TextFilterTag.vue → text-filter-tag.vue} +32 -20
- package/dist/runtime/table/components/filters/tags/{TextFilterTag.vue.d.ts → text-filter-tag.vue.d.ts} +8 -1
- package/dist/runtime/table/components/grid/{GridCard.vue → grid-card.vue} +5 -5
- package/dist/runtime/table/components/grid/{GridRenderer.d.vue.ts → grid-renderer.d.vue.ts} +5 -5
- package/dist/runtime/table/components/grid/grid-renderer.vue +386 -0
- package/dist/runtime/table/components/grid/{GridRenderer.vue.d.ts → grid-renderer.vue.d.ts} +5 -5
- package/dist/runtime/table/components/grid/grid-skeleton.vue +40 -0
- package/dist/runtime/table/components/layout/{TableFooter.d.vue.ts → table-footer.d.vue.ts} +18 -12
- package/dist/runtime/table/components/layout/table-footer.vue +280 -0
- package/dist/runtime/table/components/layout/{TableFooter.vue.d.ts → table-footer.vue.d.ts} +18 -12
- package/dist/runtime/table/components/layout/{TableHeader.vue → table-header.vue} +11 -8
- package/dist/runtime/table/components/table/{TableCellEllipsis.js → table-cell-ellipsis.js} +11 -11
- package/dist/runtime/table/components/table/table-cell.d.ts +12 -0
- package/dist/runtime/table/components/table/table-cell.js +4 -0
- package/dist/runtime/table/components/table/table-column-header.d.vue.ts +25 -0
- package/dist/runtime/table/components/table/table-column-header.vue +80 -0
- package/dist/runtime/table/components/table/table-column-header.vue.d.ts +25 -0
- package/dist/runtime/table/components/table/{TableRenderer.d.vue.ts → table-empty-state.d.vue.ts} +5 -5
- package/dist/runtime/table/components/table/table-empty-state.vue +87 -0
- package/dist/runtime/table/components/table/{TableRenderer.vue.d.ts → table-empty-state.vue.d.ts} +5 -5
- package/dist/runtime/table/components/table/{TableEmptyState.d.vue.ts → table-loading-state.d.vue.ts} +2 -0
- package/dist/runtime/table/components/table/table-loading-state.vue +111 -0
- package/dist/runtime/table/components/table/{TableEmptyState.vue.d.ts → table-loading-state.vue.d.ts} +2 -0
- package/dist/runtime/table/components/table/table-overlay-scrollbars.d.vue.ts +9 -0
- package/dist/runtime/table/components/table/table-overlay-scrollbars.vue +180 -0
- package/dist/runtime/table/components/table/table-overlay-scrollbars.vue.d.ts +9 -0
- package/dist/runtime/table/components/table/table-renderer.d.vue.ts +44 -0
- package/dist/runtime/table/components/table/table-renderer.vue +844 -0
- package/dist/runtime/table/components/table/table-renderer.vue.d.ts +44 -0
- package/dist/runtime/table/components/table/table-row-actions-control.d.vue.ts +3 -0
- package/dist/runtime/table/components/table/table-row-actions-control.vue +42 -0
- package/dist/runtime/table/components/table/table-row-actions-control.vue.d.ts +3 -0
- package/dist/runtime/table/components/table/table-selection-control.d.vue.ts +11 -0
- package/dist/runtime/table/components/table/table-selection-control.vue +34 -0
- package/dist/runtime/table/components/table/table-selection-control.vue.d.ts +11 -0
- package/dist/runtime/table/components/utils/{SearchQueryInput.d.vue.ts → search-query-input.d.vue.ts} +3 -2
- package/dist/runtime/table/components/utils/{SearchQueryInput.vue → search-query-input.vue} +23 -10
- package/dist/runtime/table/components/utils/{SearchQueryInput.vue.d.ts → search-query-input.vue.d.ts} +3 -2
- package/dist/runtime/table/composables/use-data-list-breakpoint.d.ts +19 -0
- package/dist/runtime/table/composables/use-data-list-breakpoint.js +32 -0
- package/dist/runtime/table/composables/use-data-list-ui.d.ts +5 -5
- package/dist/runtime/table/composables/use-data-list-ui.js +17 -6
- package/dist/runtime/table/composables/use-data-list-viewport.js +3 -1
- package/dist/runtime/table/composables/use-filter-tag-session.d.ts +3 -3
- package/dist/runtime/table/composables/use-filter-tag-session.js +21 -9
- package/dist/runtime/table/composables/use-option-filter-editor-state.d.ts +55 -51
- package/dist/runtime/table/composables/use-option-filter-editor-state.js +139 -68
- package/dist/runtime/table/composables/use-query-state.d.ts +13 -13
- package/dist/runtime/table/composables/use-query-state.js +48 -38
- package/dist/runtime/table/composables/use-table-actions.d.ts +28 -0
- package/dist/runtime/table/composables/use-table-actions.js +111 -0
- package/dist/runtime/table/composables/use-table-api.d.ts +4 -3
- package/dist/runtime/table/composables/use-table-api.js +54 -48
- package/dist/runtime/table/composables/use-table-columns.d.ts +120 -119
- package/dist/runtime/table/composables/use-table-columns.js +125 -60
- package/dist/runtime/table/composables/use-table-controls.d.ts +33 -5
- package/dist/runtime/table/composables/use-table-controls.js +51 -9
- package/dist/runtime/table/composables/use-table-data.d.ts +8 -8
- package/dist/runtime/table/composables/use-table-data.js +230 -168
- package/dist/runtime/table/composables/use-table-filter-options.d.ts +10 -10
- package/dist/runtime/table/composables/use-table-filter-options.js +106 -82
- package/dist/runtime/table/composables/use-table-filter-presentation.d.ts +32 -26
- package/dist/runtime/table/composables/use-table-filter-presentation.js +87 -53
- package/dist/runtime/table/composables/use-table-filters.d.ts +46 -41
- package/dist/runtime/table/composables/use-table-filters.js +60 -53
- package/dist/runtime/table/composables/use-table-grid.d.ts +5 -5
- package/dist/runtime/table/composables/use-table-grid.js +17 -11
- package/dist/runtime/table/composables/use-table-internals.d.ts +1328 -1025
- package/dist/runtime/table/composables/use-table-internals.js +58 -37
- package/dist/runtime/table/composables/use-table-layout.d.ts +5 -5
- package/dist/runtime/table/composables/use-table-layout.js +34 -15
- package/dist/runtime/table/composables/use-table-pagination.d.ts +42 -19
- package/dist/runtime/table/composables/use-table-pagination.js +79 -31
- package/dist/runtime/table/composables/use-table-row-actions.d.ts +3 -3
- package/dist/runtime/table/composables/use-table-search.d.ts +3 -3
- package/dist/runtime/table/composables/use-table-search.js +4 -4
- package/dist/runtime/table/composables/use-table-selection.d.ts +19 -17
- package/dist/runtime/table/composables/use-table-selection.js +40 -22
- package/dist/runtime/table/composables/use-table-startup.d.ts +4 -4
- package/dist/runtime/table/composables/use-table-startup.js +18 -13
- package/dist/runtime/table/composables/use-table-state.d.ts +13 -13
- package/dist/runtime/table/composables/use-table-state.js +2 -2
- package/dist/runtime/table/composables/use-table-summaries.d.ts +30 -0
- package/dist/runtime/table/composables/use-table-summaries.js +223 -0
- package/dist/runtime/table/composables/use-table.d.ts +1 -1
- package/dist/runtime/table/composables/use-table.js +2 -2
- package/dist/runtime/table/composables/use-tanstack-table.d.ts +50 -0
- package/dist/runtime/table/composables/use-tanstack-table.js +64 -0
- package/dist/runtime/table/constants/grid.d.ts +3 -3
- package/dist/runtime/table/constants/grid.js +4 -4
- package/dist/runtime/table/constants/query-state.d.ts +10 -5
- package/dist/runtime/table/constants/query-state.js +7 -7
- package/dist/runtime/table/schema/index.js +5 -4
- package/dist/runtime/table/types/actions.d.ts +25 -0
- package/dist/runtime/table/types/columns.d.ts +37 -5
- package/dist/runtime/table/types/context.d.ts +1 -1
- package/dist/runtime/table/types/data-list.d.ts +199 -25
- package/dist/runtime/table/types/filters.d.ts +12 -7
- package/dist/runtime/table/types/layout.d.ts +24 -9
- package/dist/runtime/table/types/query-state.d.ts +4 -5
- package/dist/runtime/table/types/source.d.ts +15 -3
- package/dist/runtime/table/types/table-api.d.ts +14 -4
- package/dist/runtime/table/types/utils.d.ts +12 -9
- package/dist/runtime/table/utils/actions.d.ts +17 -3
- package/dist/runtime/table/utils/actions.js +69 -24
- package/dist/runtime/table/utils/builders/table-source.d.ts +60 -0
- package/dist/runtime/table/utils/builders/table-source.js +3 -0
- package/dist/runtime/table/utils/client-query.js +161 -103
- package/dist/runtime/table/utils/columns/defs.d.ts +6 -0
- package/dist/runtime/table/utils/columns/defs.js +94 -0
- package/dist/runtime/table/utils/columns/menu.d.ts +3 -2
- package/dist/runtime/table/utils/columns/menu.js +51 -59
- package/dist/runtime/table/utils/columns/render.d.ts +78 -43
- package/dist/runtime/table/utils/columns/render.js +141 -230
- package/dist/runtime/table/utils/columns/schema.d.ts +3 -3
- package/dist/runtime/table/utils/columns/schema.js +30 -21
- package/dist/runtime/table/utils/columns/state.d.ts +37 -37
- package/dist/runtime/table/utils/columns/state.js +33 -35
- package/dist/runtime/table/utils/columns/types.d.ts +49 -8
- package/dist/runtime/table/utils/columns/types.js +5 -2
- package/dist/runtime/table/utils/cursor-query.d.ts +2 -0
- package/dist/runtime/table/utils/cursor-query.js +3 -0
- package/dist/runtime/table/utils/data-list-ui.d.ts +124 -2
- package/dist/runtime/table/utils/data-list-ui.js +198 -23
- package/dist/runtime/table/utils/facets.d.ts +4 -0
- package/dist/runtime/table/utils/facets.js +34 -0
- package/dist/runtime/table/utils/filter-presentation.d.ts +16 -0
- package/dist/runtime/table/utils/filter-presentation.js +11 -0
- package/dist/runtime/table/utils/filters/common.d.ts +18 -18
- package/dist/runtime/table/utils/filters/common.js +26 -26
- package/dist/runtime/table/utils/filters/date.js +92 -65
- package/dist/runtime/table/utils/filters/editor-size.d.ts +51 -0
- package/dist/runtime/table/utils/filters/editor-size.js +57 -32
- package/dist/runtime/table/utils/filters/options.d.ts +6 -6
- package/dist/runtime/table/utils/filters/options.js +59 -41
- package/dist/runtime/table/utils/filters/presentation.d.ts +1 -1
- package/dist/runtime/table/utils/filters/presentation.js +8 -3
- package/dist/runtime/table/utils/filters/preview/date-preview.js +6 -4
- package/dist/runtime/table/utils/filters/preview/index.d.ts +1 -1
- package/dist/runtime/table/utils/filters/preview/index.js +5 -4
- package/dist/runtime/table/utils/filters/preview/number-preview.js +13 -9
- package/dist/runtime/table/utils/filters/preview/option-preview.js +27 -11
- package/dist/runtime/table/utils/filters/preview/text-preview.js +4 -3
- package/dist/runtime/table/utils/filters/preview/types.d.ts +8 -0
- package/dist/runtime/table/utils/filters/registry.js +12 -6
- package/dist/runtime/table/utils/filters/tree.d.ts +1 -1
- package/dist/runtime/table/utils/filters/tree.js +35 -24
- package/dist/runtime/table/utils/filters/ui.js +196 -191
- package/dist/runtime/table/utils/index.d.ts +4 -0
- package/dist/runtime/table/utils/index.js +4 -0
- package/dist/runtime/table/utils/pagination.d.ts +1 -1
- package/dist/runtime/table/utils/pagination.js +19 -8
- package/dist/runtime/table/utils/prefetch.d.ts +25 -0
- package/dist/runtime/table/utils/prefetch.js +272 -0
- package/dist/runtime/table/utils/query-state.d.ts +1 -1
- package/dist/runtime/table/utils/query-state.js +120 -62
- package/dist/runtime/table/utils/resolved-filters.d.ts +5 -5
- package/dist/runtime/table/utils/resolved-filters.js +10 -9
- package/dist/runtime/table/utils/rows.d.ts +2 -2
- package/dist/runtime/table/utils/rows.js +5 -4
- package/dist/runtime/table/utils/schema.d.ts +1 -1
- package/dist/runtime/table/utils/schema.js +8 -14
- package/package.json +65 -31
- package/dist/runtime/form/components/root/Form.vue +0 -312
- package/dist/runtime/form/composables/use-form-submit.d.ts +0 -23
- package/dist/runtime/form/composables/use-form-submit.js +0 -71
- package/dist/runtime/table/components/actions/RowActions.vue +0 -56
- package/dist/runtime/table/components/data-list/DataListColumnPanel.vue +0 -17
- package/dist/runtime/table/components/data-list/DataListFilterPanel.vue +0 -17
- package/dist/runtime/table/components/data-list/DataListSortMenu.vue +0 -110
- package/dist/runtime/table/components/drawers/ColumnPanel.vue +0 -379
- package/dist/runtime/table/components/filters/panel/BooleanFilterPanelField.vue +0 -108
- package/dist/runtime/table/components/filters/panel/FilterPanel.vue +0 -132
- package/dist/runtime/table/components/filters/panel/FilterPanelFieldShell.vue +0 -25
- package/dist/runtime/table/components/filters/panel/FilterPanelInputTrigger.vue +0 -22
- package/dist/runtime/table/components/filters/shared/FilterMatchModeButton.vue +0 -58
- package/dist/runtime/table/components/filters/shared/FilterMatchModePanel.vue +0 -47
- package/dist/runtime/table/components/filters/shared/FilterOptionMultipleList.vue +0 -49
- package/dist/runtime/table/components/filters/shared/FilterOptionRow.vue +0 -75
- package/dist/runtime/table/components/filters/shared/FilterOptionTreeContent.vue +0 -180
- package/dist/runtime/table/components/filters/shared/FilterTriggerTag.vue +0 -139
- package/dist/runtime/table/components/grid/GridRenderer.vue +0 -526
- package/dist/runtime/table/components/grid/GridSkeleton.vue +0 -46
- package/dist/runtime/table/components/layout/TableFooter.vue +0 -172
- package/dist/runtime/table/components/table/TableEmptyState.vue +0 -21
- package/dist/runtime/table/components/table/TableLoadingState.d.vue.ts +0 -6
- package/dist/runtime/table/components/table/TableLoadingState.vue +0 -68
- package/dist/runtime/table/components/table/TableLoadingState.vue.d.ts +0 -6
- package/dist/runtime/table/components/table/TableRenderer.vue +0 -160
- package/dist/runtime/form/components/actions/{FormActions.d.vue.ts → form-actions.d.vue.ts} +0 -0
- package/dist/runtime/form/components/actions/{FormActions.vue.d.ts → form-actions.vue.d.ts} +0 -0
- package/dist/runtime/form/components/layout/{DrawerLayout.d.vue.ts → drawer-layout.d.vue.ts} +0 -0
- package/dist/runtime/form/components/layout/{DrawerLayout.vue.d.ts → drawer-layout.vue.d.ts} +0 -0
- package/dist/runtime/form/components/layout/{FullscreenLayout.d.vue.ts → fullscreen-layout.d.vue.ts} +0 -0
- package/dist/runtime/form/components/layout/{FullscreenLayout.vue.d.ts → fullscreen-layout.vue.d.ts} +0 -0
- package/dist/runtime/form/components/layout/{ModalLayout.d.vue.ts → modal-layout.d.vue.ts} +0 -0
- package/dist/runtime/form/components/layout/{ModalLayout.vue.d.ts → modal-layout.vue.d.ts} +0 -0
- package/dist/runtime/form/components/provider/{FormOverlayHost.d.vue.ts → form-overlay-host.d.vue.ts} +0 -0
- package/dist/runtime/form/components/provider/{FormOverlayHost.vue.d.ts → form-overlay-host.vue.d.ts} +0 -0
- package/dist/runtime/form/components/provider/{FormProvider.d.vue.ts → form-provider.d.vue.ts} +0 -0
- package/dist/runtime/form/components/provider/{FormProvider.vue.d.ts → form-provider.vue.d.ts} +0 -0
- package/dist/runtime/form/components/renderer/{FormCompositeControl.d.vue.ts → form-composite-control.d.vue.ts} +0 -0
- package/dist/runtime/form/components/renderer/{FormCompositeControl.vue.d.ts → form-composite-control.vue.d.ts} +0 -0
- package/dist/runtime/form/fields/hierarchy/{SelectionCheckbox.d.vue.ts → selection-checkbox.d.vue.ts} +0 -0
- package/dist/runtime/form/fields/hierarchy/{SelectionCheckbox.vue → selection-checkbox.vue} +0 -0
- package/dist/runtime/form/fields/hierarchy/{SelectionCheckbox.vue.d.ts → selection-checkbox.vue.d.ts} +0 -0
- package/dist/runtime/form/fields/hierarchy/{SelectionRadio.d.vue.ts → selection-radio.d.vue.ts} +0 -0
- package/dist/runtime/form/fields/hierarchy/{SelectionRadio.vue.d.ts → selection-radio.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportFileBar.d.vue.ts → spreadsheet-import-file-bar.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportFileBar.vue → spreadsheet-import-file-bar.vue} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportFileBar.vue.d.ts → spreadsheet-import-file-bar.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportFooter.d.vue.ts → spreadsheet-import-footer.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportFooter.vue → spreadsheet-import-footer.vue} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportFooter.vue.d.ts → spreadsheet-import-footer.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportHeader.d.vue.ts → spreadsheet-import-header.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportHeader.vue → spreadsheet-import-header.vue} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportHeader.vue.d.ts → spreadsheet-import-header.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportSidebar.d.vue.ts → spreadsheet-import-sidebar.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportSidebar.vue → spreadsheet-import-sidebar.vue} +0 -0
- package/dist/runtime/spreadsheet/components/layout/{SpreadsheetImportSidebar.vue.d.ts → spreadsheet-import-sidebar.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/shared/{SpreadsheetRawPreviewTable.d.vue.ts → spreadsheet-raw-preview-table.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/shared/{SpreadsheetRawPreviewTable.vue.d.ts → spreadsheet-raw-preview-table.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/shared/{SpreadsheetSummaryStats.vue → spreadsheet-summary-stats.vue} +0 -0
- package/dist/runtime/spreadsheet/components/{SpreadsheetImport.d.vue.ts → spreadsheet-import.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/{SpreadsheetImport.vue.d.ts → spreadsheet-import.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/references/{SpreadsheetReferencesAccordion.vue → spreadsheet-references-accordion.vue} +0 -0
- package/dist/runtime/spreadsheet/components/steps/references/{SpreadsheetReferencesSummary.vue → spreadsheet-references-summary.vue} +0 -0
- package/dist/runtime/spreadsheet/components/steps/review/{SpreadsheetReviewOverflowAlert.d.vue.ts → spreadsheet-review-overflow-alert.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/review/{SpreadsheetReviewOverflowAlert.vue → spreadsheet-review-overflow-alert.vue} +0 -0
- package/dist/runtime/spreadsheet/components/steps/review/{SpreadsheetReviewOverflowAlert.vue.d.ts → spreadsheet-review-overflow-alert.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/review/{SpreadsheetReviewStats.vue → spreadsheet-review-stats.vue} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportMatchingStep.d.vue.ts → spreadsheet-import-matching-step.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportMatchingStep.vue.d.ts → spreadsheet-import-matching-step.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportReferencesStep.d.vue.ts → spreadsheet-import-references-step.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportReferencesStep.vue.d.ts → spreadsheet-import-references-step.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportReviewStep.d.vue.ts → spreadsheet-import-review-step.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportReviewStep.vue.d.ts → spreadsheet-import-review-step.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportStructureStep.d.vue.ts → spreadsheet-import-structure-step.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportStructureStep.vue.d.ts → spreadsheet-import-structure-step.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportUploadStep.d.vue.ts → spreadsheet-import-upload-step.d.vue.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/{SpreadsheetImportUploadStep.vue.d.ts → spreadsheet-import-upload-step.vue.d.ts} +0 -0
- package/dist/runtime/spreadsheet/components/steps/structure/{SpreadsheetStructureSheetList.vue → spreadsheet-structure-sheet-list.vue} +0 -0
- package/dist/runtime/table/components/data-list/{DataListAddFilter.d.vue.ts → data-list-add-filter.d.vue.ts} +0 -0
- package/dist/runtime/table/components/data-list/{DataListAddFilter.vue.d.ts → data-list-add-filter.vue.d.ts} +0 -0
- package/dist/runtime/table/components/data-list/{DataListClearFilters.d.vue.ts → data-list-clear-filters.d.vue.ts} +0 -0
- package/dist/runtime/table/components/data-list/{DataListClearFilters.vue → data-list-clear-filters.vue} +0 -0
- package/dist/runtime/table/components/data-list/{DataListClearFilters.vue.d.ts → data-list-clear-filters.vue.d.ts} +0 -0
- package/dist/runtime/table/components/filters/shared/{DynamicFilterPicker.d.vue.ts → dynamic-filter-picker.d.vue.ts} +0 -0
- package/dist/runtime/table/components/filters/shared/{DynamicFilterPicker.vue.d.ts → dynamic-filter-picker.vue.d.ts} +0 -0
- package/dist/runtime/table/components/filters/shared/{FilterPopoverShell.d.vue.ts → filter-popover-shell.d.vue.ts} +0 -0
- package/dist/runtime/table/components/filters/shared/{FilterPopoverShell.vue.d.ts → filter-popover-shell.vue.d.ts} +0 -0
- package/dist/runtime/table/components/filters/shared/{FilterSearchablePanel.d.vue.ts → filter-searchable-panel.d.vue.ts} +0 -0
- package/dist/runtime/table/components/filters/shared/{FilterSearchablePanel.vue.d.ts → filter-searchable-panel.vue.d.ts} +0 -0
- package/dist/runtime/table/components/filters/shared/{FilterStageTransition.d.vue.ts → filter-stage-transition.d.vue.ts} +0 -0
- package/dist/runtime/table/components/filters/shared/{FilterStageTransition.vue.d.ts → filter-stage-transition.vue.d.ts} +0 -0
- package/dist/runtime/table/components/grid/{GridCard.d.vue.ts → grid-card.d.vue.ts} +0 -0
- package/dist/runtime/table/components/grid/{GridCard.vue.d.ts → grid-card.vue.d.ts} +0 -0
- package/dist/runtime/table/components/grid/{GridSkeleton.d.vue.ts → grid-skeleton.d.vue.ts} +0 -0
- package/dist/runtime/table/components/grid/{GridSkeleton.vue.d.ts → grid-skeleton.vue.d.ts} +0 -0
- package/dist/runtime/table/components/layout/{TableHeader.d.vue.ts → table-header.d.vue.ts} +0 -0
- package/dist/runtime/table/components/layout/{TableHeader.vue.d.ts → table-header.vue.d.ts} +0 -0
- package/dist/runtime/table/components/table/{TableCellEllipsis.d.ts → table-cell-ellipsis.d.ts} +12 -12
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isString } from "#ui-tools/shared/utils/predicate";
|
|
1
2
|
import {
|
|
2
3
|
applySpreadsheetNormalization,
|
|
3
4
|
isSpreadsheetColumnGroup,
|
|
@@ -9,55 +10,75 @@ import {
|
|
|
9
10
|
} from "./shared.js";
|
|
10
11
|
const defaultHeaderModifiers = ["trim", "case-insensitive", "accent-insensitive"];
|
|
11
12
|
function getDefaultMatchDefinition(column) {
|
|
12
|
-
if (column.match)
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
if (column.match) {
|
|
14
|
+
return column.match;
|
|
15
|
+
}
|
|
16
|
+
const { from } = column;
|
|
17
|
+
if (!from) {
|
|
15
18
|
return {
|
|
16
19
|
headers: [column.key],
|
|
17
20
|
prefer: "first"
|
|
18
21
|
};
|
|
22
|
+
}
|
|
19
23
|
return {
|
|
20
24
|
headers: Array.isArray(from) ? from : [from],
|
|
21
25
|
prefer: "first"
|
|
22
26
|
};
|
|
23
27
|
}
|
|
24
28
|
function scoreHeaderMatcher(header, matcher) {
|
|
25
|
-
if (
|
|
29
|
+
if (isString(matcher)) {
|
|
26
30
|
const left = applySpreadsheetNormalization(header.text, defaultHeaderModifiers);
|
|
27
31
|
const right = applySpreadsheetNormalization(matcher, defaultHeaderModifiers);
|
|
28
32
|
return left === right ? 1 : null;
|
|
29
33
|
}
|
|
30
|
-
if (matcher instanceof RegExp)
|
|
34
|
+
if (matcher instanceof RegExp) {
|
|
35
|
+
return matcher.test(header.text) ? 0.95 : null;
|
|
36
|
+
}
|
|
31
37
|
return matcher({
|
|
32
38
|
header: {
|
|
33
39
|
index: header.index,
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
normalized: normalizeSpreadsheetText(header.text),
|
|
41
|
+
text: header.text
|
|
36
42
|
}
|
|
37
43
|
});
|
|
38
44
|
}
|
|
39
45
|
function findHeaderMatch(headers, definition, usedHeaderIndexes) {
|
|
40
46
|
const candidates = headers.flatMap((header) => {
|
|
41
|
-
if (usedHeaderIndexes.has(header.index))
|
|
47
|
+
if (usedHeaderIndexes.has(header.index)) {
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
42
50
|
const scores = definition.headers.map((matcher) => scoreHeaderMatcher(header, matcher)).filter((score) => score !== null);
|
|
43
|
-
if (!scores.length)
|
|
51
|
+
if (!scores.length) {
|
|
52
|
+
return [];
|
|
53
|
+
}
|
|
44
54
|
const bestScore = Math.max(...scores);
|
|
45
|
-
if (definition.minScore !== void 0 && bestScore < definition.minScore)
|
|
55
|
+
if (definition.minScore !== void 0 && bestScore < definition.minScore) {
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
46
58
|
return [{ header, score: bestScore }];
|
|
47
59
|
});
|
|
48
|
-
if (!candidates.length)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
if (!candidates.length) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
if (definition.prefer !== "best-score") {
|
|
64
|
+
return candidates[0];
|
|
65
|
+
}
|
|
66
|
+
return [...candidates].sort((left, right) => {
|
|
67
|
+
if (left.score !== right.score) {
|
|
68
|
+
return right.score - left.score;
|
|
69
|
+
}
|
|
52
70
|
return left.header.index - right.header.index;
|
|
53
71
|
})[0];
|
|
54
72
|
}
|
|
55
73
|
function getDynamicHeaderPatterns(column, source) {
|
|
56
74
|
const label = column.itemLabel?.(source) ?? column.itemKey?.(source) ?? column.key;
|
|
57
75
|
const strategy = column.header?.strategy ?? "exact";
|
|
58
|
-
if (strategy === "template" && column.header?.template)
|
|
76
|
+
if (strategy === "template" && column.header?.template) {
|
|
59
77
|
return [column.header.template({ source })];
|
|
60
|
-
|
|
78
|
+
}
|
|
79
|
+
if (strategy === "patterns" && column.header?.patterns) {
|
|
80
|
+
return column.header.patterns({ source });
|
|
81
|
+
}
|
|
61
82
|
return [label];
|
|
62
83
|
}
|
|
63
84
|
function createOptionGroupsMatchDefinition(column, source) {
|
|
@@ -68,8 +89,12 @@ function createOptionGroupsMatchDefinition(column, source) {
|
|
|
68
89
|
}
|
|
69
90
|
export function flattenSpreadsheetStaticColumns(entries) {
|
|
70
91
|
return entries.flatMap((entry) => {
|
|
71
|
-
if (isSpreadsheetColumnGroup(entry))
|
|
72
|
-
|
|
92
|
+
if (isSpreadsheetColumnGroup(entry)) {
|
|
93
|
+
return flattenSpreadsheetStaticColumns(entry.columns);
|
|
94
|
+
}
|
|
95
|
+
if (isSpreadsheetStaticColumn(entry)) {
|
|
96
|
+
return [entry];
|
|
97
|
+
}
|
|
73
98
|
return [];
|
|
74
99
|
});
|
|
75
100
|
}
|
|
@@ -79,28 +104,36 @@ export function matchSpreadsheetColumns(columns, headers, manualAssignments = {}
|
|
|
79
104
|
const manualMatches = Object.entries(manualAssignments).map(([headerIndex, key]) => {
|
|
80
105
|
const column = columns.find((entry) => entry.key === key);
|
|
81
106
|
const header = headers.find((entry) => entry.index === Number(headerIndex));
|
|
82
|
-
if (!column || !header)
|
|
83
|
-
|
|
107
|
+
if (!column || !header) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
if (usedHeaderIndexes.has(header.index) || matchedKeys.has(column.key)) {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
84
113
|
usedHeaderIndexes.add(header.index);
|
|
85
114
|
matchedKeys.add(column.key);
|
|
86
115
|
return {
|
|
87
|
-
|
|
116
|
+
column,
|
|
88
117
|
columnIndex: header.index,
|
|
89
118
|
header,
|
|
90
|
-
column
|
|
119
|
+
key: column.key
|
|
91
120
|
};
|
|
92
121
|
}).filter((match) => match !== null);
|
|
93
122
|
const automaticMatches = columns.flatMap((column) => {
|
|
94
|
-
if (matchedKeys.has(column.key))
|
|
123
|
+
if (matchedKeys.has(column.key)) {
|
|
124
|
+
return [];
|
|
125
|
+
}
|
|
95
126
|
const match = findHeaderMatch(headers, getDefaultMatchDefinition(column), usedHeaderIndexes);
|
|
96
|
-
if (!match)
|
|
127
|
+
if (!match) {
|
|
128
|
+
return [];
|
|
129
|
+
}
|
|
97
130
|
usedHeaderIndexes.add(match.header.index);
|
|
98
131
|
return [
|
|
99
132
|
{
|
|
100
|
-
|
|
133
|
+
column,
|
|
101
134
|
columnIndex: match.header.index,
|
|
102
135
|
header: match.header,
|
|
103
|
-
column
|
|
136
|
+
key: column.key
|
|
104
137
|
}
|
|
105
138
|
];
|
|
106
139
|
});
|
|
@@ -108,20 +141,24 @@ export function matchSpreadsheetColumns(columns, headers, manualAssignments = {}
|
|
|
108
141
|
}
|
|
109
142
|
function matchCollectionColumn(column, headers, reservedHeaderIndexes) {
|
|
110
143
|
return column.items.flatMap((entry) => {
|
|
111
|
-
if (!isSpreadsheetDynamicCollectionItem(entry))
|
|
144
|
+
if (!isSpreadsheetDynamicCollectionItem(entry)) {
|
|
145
|
+
return [];
|
|
146
|
+
}
|
|
112
147
|
const item = entry;
|
|
113
148
|
const match = findHeaderMatch(headers, item.match, reservedHeaderIndexes);
|
|
114
|
-
if (!match)
|
|
149
|
+
if (!match) {
|
|
150
|
+
return [];
|
|
151
|
+
}
|
|
115
152
|
reservedHeaderIndexes.add(match.header.index);
|
|
116
153
|
return [
|
|
117
154
|
{
|
|
118
|
-
|
|
119
|
-
targetKey: item.id,
|
|
155
|
+
column,
|
|
120
156
|
columnIndex: match.header.index,
|
|
121
157
|
header: match.header,
|
|
122
|
-
|
|
158
|
+
item,
|
|
159
|
+
key: column.rootKey,
|
|
123
160
|
source: item.source,
|
|
124
|
-
item
|
|
161
|
+
targetKey: item.id
|
|
125
162
|
}
|
|
126
163
|
];
|
|
127
164
|
});
|
|
@@ -134,16 +171,18 @@ function matchOptionGroupsColumn(column, headers, reservedHeaderIndexes) {
|
|
|
134
171
|
createOptionGroupsMatchDefinition(column, source),
|
|
135
172
|
reservedHeaderIndexes
|
|
136
173
|
);
|
|
137
|
-
if (!match)
|
|
174
|
+
if (!match) {
|
|
175
|
+
return [];
|
|
176
|
+
}
|
|
138
177
|
reservedHeaderIndexes.add(match.header.index);
|
|
139
178
|
return [
|
|
140
179
|
{
|
|
141
|
-
|
|
142
|
-
targetKey: column.targetKey?.(source) ?? column.itemKey?.(source) ?? String(match.header.index),
|
|
180
|
+
column,
|
|
143
181
|
columnIndex: match.header.index,
|
|
144
182
|
header: match.header,
|
|
145
|
-
column,
|
|
146
|
-
source
|
|
183
|
+
key: column.output.into,
|
|
184
|
+
source,
|
|
185
|
+
targetKey: column.targetKey?.(source) ?? column.itemKey?.(source) ?? String(match.header.index)
|
|
147
186
|
}
|
|
148
187
|
];
|
|
149
188
|
});
|
|
@@ -156,14 +195,15 @@ export function matchSpreadsheetDynamicColumns(columns, headers, usedHeaderIndex
|
|
|
156
195
|
matches.push(...matchOptionGroupsColumn(entry, headers, reservedHeaderIndexes));
|
|
157
196
|
continue;
|
|
158
197
|
}
|
|
159
|
-
if (isSpreadsheetDynamicCollectionColumn(entry))
|
|
198
|
+
if (isSpreadsheetDynamicCollectionColumn(entry)) {
|
|
160
199
|
matches.push(...matchCollectionColumn(entry, headers, reservedHeaderIndexes));
|
|
200
|
+
}
|
|
161
201
|
}
|
|
162
202
|
return matches;
|
|
163
203
|
}
|
|
164
204
|
export function getSpreadsheetUnmatchedColumns(columns, matches) {
|
|
165
205
|
const matchedKeys = new Set(matches.map((match) => match.key));
|
|
166
206
|
return columns.flatMap(
|
|
167
|
-
(column) => matchedKeys.has(column.key) ? [] : [{ key: column.key
|
|
207
|
+
(column) => matchedKeys.has(column.key) ? [] : [{ column, key: column.key }]
|
|
168
208
|
);
|
|
169
209
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { SpreadsheetColumnDefinition } from '../../types/index.js';
|
|
2
|
-
import type { SpreadsheetColumnMatch, SpreadsheetDynamicColumnMatch, SpreadsheetParsedRow } from '../../types/index.js';
|
|
1
|
+
import type { SpreadsheetColumnDefinition, SpreadsheetColumnMatch, SpreadsheetDynamicColumnMatch, SpreadsheetParsedRow, SpreadsheetRecord } from '../../types/index.js';
|
|
3
2
|
export declare function parseSpreadsheetRows<TContext>(params: {
|
|
4
3
|
rows: readonly (readonly unknown[])[];
|
|
5
4
|
matches: readonly SpreadsheetColumnMatch<SpreadsheetColumnDefinition<string, unknown, boolean, TContext>>[];
|
|
6
5
|
dynamicMatches?: readonly SpreadsheetDynamicColumnMatch[];
|
|
7
6
|
context: TContext;
|
|
8
|
-
}): Promise<SpreadsheetParsedRow<
|
|
7
|
+
}): Promise<SpreadsheetParsedRow<SpreadsheetRecord>[]>;
|
|
@@ -14,7 +14,9 @@ import {
|
|
|
14
14
|
function resolveOptionValue(params) {
|
|
15
15
|
const issueText = getSpreadsheetIssueText();
|
|
16
16
|
const text = String(params.raw ?? "").trim();
|
|
17
|
-
if (!text)
|
|
17
|
+
if (!text) {
|
|
18
|
+
return params.definition.mode === "multiple" ? [] : void 0;
|
|
19
|
+
}
|
|
18
20
|
const tokens = params.definition.mode === "multiple" ? text.split(params.definition.separator ?? ",").map((entry) => entry.trim()).filter(Boolean) : [text];
|
|
19
21
|
const resolvedValues = [];
|
|
20
22
|
for (const token of tokens) {
|
|
@@ -25,48 +27,67 @@ function resolveOptionValue(params) {
|
|
|
25
27
|
});
|
|
26
28
|
if (!match) {
|
|
27
29
|
params.issues.push({
|
|
28
|
-
level: "error",
|
|
29
30
|
code: "option.not_found",
|
|
30
|
-
message: issueText.unrecognizedValue(token),
|
|
31
|
-
rowIndex: params.rowIndex,
|
|
32
|
-
columnKey: params.columnKey,
|
|
33
31
|
columnIndex: params.columnIndex,
|
|
34
|
-
|
|
32
|
+
columnKey: params.columnKey,
|
|
33
|
+
header: params.header,
|
|
34
|
+
level: "error",
|
|
35
|
+
message: issueText.unrecognizedValue(token),
|
|
36
|
+
rowIndex: params.rowIndex
|
|
35
37
|
});
|
|
36
38
|
continue;
|
|
37
39
|
}
|
|
38
40
|
const value = getSpreadsheetOptionValue(match);
|
|
39
|
-
if (value === void 0)
|
|
41
|
+
if (value === void 0) {
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
40
44
|
resolvedValues.push(value);
|
|
41
45
|
}
|
|
42
|
-
if (params.definition.mode === "multiple")
|
|
46
|
+
if (params.definition.mode === "multiple") {
|
|
47
|
+
return resolvedValues;
|
|
48
|
+
}
|
|
43
49
|
return resolvedValues[0];
|
|
44
50
|
}
|
|
45
51
|
function resolveCollectionCellValue(params) {
|
|
46
|
-
const item = params.match
|
|
47
|
-
if (!item)
|
|
52
|
+
const { item } = params.match;
|
|
53
|
+
if (!item) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
48
56
|
const valueDefinition = item.value;
|
|
49
57
|
const text = String(params.raw ?? "").trim();
|
|
50
|
-
if (!text)
|
|
51
|
-
|
|
58
|
+
if (!text) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (valueDefinition.kind === "text") {
|
|
52
62
|
return applySpreadsheetModifiers(text, valueDefinition.modifiers);
|
|
53
|
-
|
|
54
|
-
if (valueDefinition.kind === "
|
|
55
|
-
|
|
63
|
+
}
|
|
64
|
+
if (valueDefinition.kind === "number") {
|
|
65
|
+
return Number(text);
|
|
66
|
+
}
|
|
67
|
+
if (valueDefinition.kind === "date") {
|
|
68
|
+
return text;
|
|
69
|
+
}
|
|
70
|
+
if (valueDefinition.kind === "boolean") {
|
|
71
|
+
return ["true", "1", "yes"].includes(text.toLowerCase());
|
|
72
|
+
}
|
|
56
73
|
return resolveOptionValue({
|
|
57
|
-
definition: valueDefinition,
|
|
58
|
-
raw: params.raw,
|
|
59
|
-
issues: params.issues,
|
|
60
|
-
rowIndex: params.rowIndex,
|
|
61
74
|
columnIndex: params.match.columnIndex,
|
|
62
75
|
columnKey: item.id,
|
|
63
|
-
|
|
76
|
+
definition: valueDefinition,
|
|
77
|
+
header: params.match.header.text,
|
|
78
|
+
issues: params.issues,
|
|
79
|
+
raw: params.raw,
|
|
80
|
+
rowIndex: params.rowIndex
|
|
64
81
|
});
|
|
65
82
|
}
|
|
66
83
|
function applyCollectionValue(params) {
|
|
67
|
-
const item = params.match
|
|
68
|
-
if (!item)
|
|
69
|
-
|
|
84
|
+
const { item } = params.match;
|
|
85
|
+
if (!item) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (params.resolvedValue === void 0) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
70
91
|
const builtValue = item.build ? item.build(
|
|
71
92
|
Array.isArray(params.resolvedValue) ? {
|
|
72
93
|
id: item.id,
|
|
@@ -90,10 +111,14 @@ function applyCollectionValue(params) {
|
|
|
90
111
|
function resolveSpreadsheetDynamicCellValues(column, source, raw, issues, rowIndex, columnIndex, header) {
|
|
91
112
|
const issueText = getSpreadsheetIssueText();
|
|
92
113
|
const text = String(raw ?? "").trim();
|
|
93
|
-
if (!text)
|
|
114
|
+
if (!text) {
|
|
115
|
+
return [];
|
|
116
|
+
}
|
|
94
117
|
const valuesConfig = column.values;
|
|
95
118
|
const optionsConfig = column.options;
|
|
96
|
-
if (!valuesConfig || !optionsConfig)
|
|
119
|
+
if (!valuesConfig || !optionsConfig) {
|
|
120
|
+
return [];
|
|
121
|
+
}
|
|
97
122
|
const tokens = valuesConfig.mode === "csv" ? text.split(valuesConfig.separator ?? ",").map((entry) => entry.trim()).filter(Boolean) : [text];
|
|
98
123
|
const options = resolveSpreadsheetOptionEntries(optionsConfig, source);
|
|
99
124
|
const resolvedValues = [];
|
|
@@ -105,13 +130,13 @@ function resolveSpreadsheetDynamicCellValues(column, source, raw, issues, rowInd
|
|
|
105
130
|
});
|
|
106
131
|
if (!match) {
|
|
107
132
|
issues.push({
|
|
108
|
-
level: "error",
|
|
109
133
|
code: "option.not_found",
|
|
110
|
-
message: issueText.unrecognizedValue(token),
|
|
111
|
-
rowIndex,
|
|
112
|
-
columnKey: column.key,
|
|
113
134
|
columnIndex,
|
|
114
|
-
|
|
135
|
+
columnKey: column.key,
|
|
136
|
+
header,
|
|
137
|
+
level: "error",
|
|
138
|
+
message: issueText.unrecognizedValue(token),
|
|
139
|
+
rowIndex
|
|
115
140
|
});
|
|
116
141
|
continue;
|
|
117
142
|
}
|
|
@@ -127,14 +152,16 @@ export async function parseSpreadsheetRows(params) {
|
|
|
127
152
|
for (const match of params.matches) {
|
|
128
153
|
const raw = source[match.columnIndex];
|
|
129
154
|
const cell = {
|
|
130
|
-
text: String(raw ?? "").trim(),
|
|
131
|
-
raw,
|
|
132
|
-
header: match.header.text,
|
|
133
155
|
columnIndex: match.columnIndex,
|
|
134
|
-
|
|
156
|
+
header: match.header.text,
|
|
157
|
+
raw,
|
|
158
|
+
rowIndex,
|
|
159
|
+
text: String(raw ?? "").trim()
|
|
135
160
|
};
|
|
136
161
|
const value = await parseSpreadsheetCellValue(match.column, cell, params.context, issues);
|
|
137
|
-
if (value !== void 0)
|
|
162
|
+
if (value !== void 0) {
|
|
163
|
+
setSpreadsheetValueAtPath(data, match.key, value);
|
|
164
|
+
}
|
|
138
165
|
}
|
|
139
166
|
for (const entry of params.dynamicMatches ?? []) {
|
|
140
167
|
const raw = source[entry.columnIndex];
|
|
@@ -148,31 +175,34 @@ export async function parseSpreadsheetRows(params) {
|
|
|
148
175
|
entry.columnIndex,
|
|
149
176
|
entry.header.text
|
|
150
177
|
);
|
|
151
|
-
if (values.length)
|
|
178
|
+
if (values.length) {
|
|
152
179
|
setSpreadsheetValueAtPath(data, `${entry.key}.${entry.targetKey}`, values);
|
|
180
|
+
}
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
if (!isSpreadsheetDynamicCollectionColumn(entry.column)) {
|
|
153
184
|
continue;
|
|
154
185
|
}
|
|
155
|
-
if (!isSpreadsheetDynamicCollectionColumn(entry.column)) continue;
|
|
156
186
|
const resolvedValue = resolveCollectionCellValue({
|
|
157
187
|
column: entry.column,
|
|
188
|
+
issues,
|
|
158
189
|
match: entry,
|
|
159
190
|
raw,
|
|
160
|
-
issues,
|
|
161
191
|
rowIndex
|
|
162
192
|
});
|
|
163
193
|
applyCollectionValue({
|
|
164
|
-
data,
|
|
165
194
|
column: entry.column,
|
|
195
|
+
data,
|
|
166
196
|
match: entry,
|
|
167
197
|
resolvedValue
|
|
168
198
|
});
|
|
169
199
|
}
|
|
170
200
|
parsedRows.push({
|
|
171
|
-
index: rowIndex,
|
|
172
|
-
source,
|
|
173
201
|
data,
|
|
202
|
+
index: rowIndex,
|
|
203
|
+
isValid: issues.every((issue) => issue.level !== "error"),
|
|
174
204
|
issues,
|
|
175
|
-
|
|
205
|
+
source
|
|
176
206
|
});
|
|
177
207
|
}
|
|
178
208
|
return parsedRows;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import type { SpreadsheetColumnDefinition, SpreadsheetDynamicCollectionItemDefinition, SpreadsheetDynamicCollectionDefinition, SpreadsheetDynamicOptionGroupsDefinition } from '../../types/index.js';
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function isSpreadsheetDynamicCollectionItem(value: unknown): value is SpreadsheetDynamicCollectionItemDefinition;
|
|
1
|
+
import type { SpreadsheetColumnDefinition, SpreadsheetDynamicCollectionItemDefinition, SpreadsheetDynamicCollectionDefinition, SpreadsheetDynamicOptionGroupsDefinition, SpreadsheetCellValue, SpreadsheetModifier, SpreadsheetRowIssue, SpreadsheetStaticColumn, SpreadsheetStaticColumnGroup, SpreadsheetValue } from '../../types/index.js';
|
|
2
|
+
export declare function normalizeSpreadsheetText(value: SpreadsheetValue): string;
|
|
3
|
+
export declare function applySpreadsheetNormalization(value: SpreadsheetValue, normalize: readonly SpreadsheetModifier[] | undefined): string;
|
|
4
|
+
export declare function applySpreadsheetModifiers(value: SpreadsheetValue, modifiers: readonly string[] | undefined): string;
|
|
5
|
+
export declare function isSpreadsheetStaticColumn(value: SpreadsheetValue): value is SpreadsheetStaticColumn;
|
|
6
|
+
export declare function isSpreadsheetColumnGroup(value: SpreadsheetValue): value is SpreadsheetStaticColumnGroup;
|
|
7
|
+
export declare function isSpreadsheetDynamicOptionGroupsColumn(value: SpreadsheetValue): value is SpreadsheetDynamicOptionGroupsDefinition<string, string, unknown>;
|
|
8
|
+
export declare function isSpreadsheetDynamicCollectionColumn(value: SpreadsheetValue): value is SpreadsheetDynamicCollectionDefinition<string, 'array' | 'record'>;
|
|
9
|
+
export declare function isSpreadsheetDynamicCollectionItem(value: SpreadsheetValue): value is SpreadsheetDynamicCollectionItemDefinition;
|
|
11
10
|
export declare function getSpreadsheetIssueText(): {
|
|
12
|
-
unrecognizedValue: (value: string) => string;
|
|
13
|
-
invalidNumberInput: (value: string) => string;
|
|
14
11
|
invalidBooleanInput: (value: string) => string;
|
|
12
|
+
invalidNumberInput: (value: string) => string;
|
|
15
13
|
missingValue: (field: string) => string;
|
|
16
14
|
parseFailed: (field: string) => string;
|
|
15
|
+
unrecognizedValue: (value: string) => string;
|
|
17
16
|
};
|
|
18
17
|
export declare function parseSpreadsheetCellValue<TContext>(column: SpreadsheetColumnDefinition<string, unknown, boolean, TContext>, cell: SpreadsheetCellValue, context: TContext, issues: SpreadsheetRowIssue[]): Promise<unknown>;
|