@kumix/ui 0.3.10 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -25
- package/dist/components/agents/agent-activity/activity-row.d.ts +1 -2
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +1 -1
- package/dist/components/agents/agent-activity/index.d.ts +2 -2
- package/dist/components/agents/agent-activity/index.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/index.js +1 -1
- package/dist/components/agents/agent-code.d.ts +8 -9
- package/dist/components/agents/agent-code.d.ts.map +1 -1
- package/dist/components/agents/agent-code.js +1 -1
- package/dist/components/agents/agent-disclosure.d.ts +2 -3
- package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.d.ts +8 -9
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +1 -1
- package/dist/components/agents/approval-card/index.d.ts +2 -2
- package/dist/components/agents/approval-card/index.d.ts.map +1 -1
- package/dist/components/agents/approval-card/index.js +1 -1
- package/dist/components/agents/chat-app.d.ts +2 -3
- package/dist/components/agents/chat-app.d.ts.map +1 -1
- package/dist/components/agents/citations.d.ts +10 -11
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +1 -1
- package/dist/components/agents/code-block.d.ts +3 -4
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +1 -1
- package/dist/components/agents/file-diff.d.ts +5 -6
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +1 -1
- package/dist/components/agents/image-generation.d.ts +3 -4
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +2 -3
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +3 -4
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +2 -3
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +10 -11
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +1 -1
- package/dist/components/agents/message-context.d.ts +2 -3
- package/dist/components/agents/message-context.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +2 -3
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message.d.ts +18 -18
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +4 -5
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +1 -1
- package/dist/components/agents/streaming-response.d.ts +4 -5
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +1 -1
- package/dist/components/agents/todo-list.d.ts +4 -5
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +1 -1
- package/dist/components/agents/tool-approval.d.ts +6 -7
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +1 -1
- package/dist/components/agents/tool-result.d.ts +6 -7
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +1 -1
- package/dist/components/custom/confirm-dialog.d.ts +2 -3
- package/dist/components/custom/confirm-dialog.d.ts.map +1 -1
- package/dist/components/custom/confirm-dialog.js +1 -1
- package/dist/components/custom/toast.d.ts +6 -7
- package/dist/components/custom/toast.d.ts.map +1 -1
- package/dist/components/motion/action-swap-blur.d.ts +7 -7
- package/dist/components/motion/action-swap-blur.d.ts.map +1 -1
- package/dist/components/motion/action-swap-cascade.d.ts +7 -7
- package/dist/components/motion/action-swap-cascade.d.ts.map +1 -1
- package/dist/components/motion/action-swap-roll.d.ts +7 -7
- package/dist/components/motion/action-swap-roll.d.ts.map +1 -1
- package/dist/components/motion/action-swap.d.ts +10 -11
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +31 -0
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -0
- package/dist/components/motion/adaptive-stepper.js +302 -0
- package/dist/components/motion/adaptive-stepper.js.map +1 -0
- package/dist/components/motion/animated-badge.d.ts +4 -5
- package/dist/components/motion/animated-badge.d.ts.map +1 -1
- package/dist/components/motion/animated-badge.js +1 -1
- package/dist/components/motion/animated-number.d.ts +2 -3
- package/dist/components/motion/animated-number.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.d.ts +28 -29
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +1 -1
- package/dist/components/motion/animated-toast-stack.d.ts +10 -11
- package/dist/components/motion/animated-toast-stack.d.ts.map +1 -1
- package/dist/components/motion/animated-toast-stack.js +1 -1
- package/dist/components/motion/attachment-upload.d.ts +7 -8
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts +1 -2
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.d.ts +1 -2
- package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +2 -2
- package/dist/components/motion/availability-scheduler/icon-button.d.ts +1 -2
- package/dist/components/motion/availability-scheduler/icon-button.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/index.d.ts +3 -3
- package/dist/components/motion/availability-scheduler/index.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/index.js +1 -1
- package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -2
- package/dist/components/motion/availability-scheduler/time-select.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.d.ts +2 -3
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +1 -1
- package/dist/components/motion/bottom-sheet.d.ts +2 -3
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +3 -4
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.d.ts +4 -5
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.js +1 -1
- package/dist/components/motion/button/base.d.ts +6 -7
- package/dist/components/motion/button/base.d.ts.map +1 -1
- package/dist/components/motion/button/magnetic.d.ts +2 -3
- package/dist/components/motion/button/magnetic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.d.ts +2 -3
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +3 -4
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +1 -1
- package/dist/components/motion/center-morph-modal.d.ts +8 -9
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +1 -1
- package/dist/components/motion/checkbox.d.ts +2 -3
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.d.ts +2 -3
- package/dist/components/motion/chromatic-text-reveal.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +2 -3
- package/dist/components/motion/combobox/content.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.js +1 -1
- package/dist/components/motion/combobox/context.d.ts +9 -10
- package/dist/components/motion/combobox/context.d.ts.map +1 -1
- package/dist/components/motion/combobox/context.js +216 -1
- package/dist/components/motion/combobox/context.js.map +1 -0
- package/dist/components/motion/combobox/list.d.ts +12 -13
- package/dist/components/motion/combobox/list.d.ts.map +1 -1
- package/dist/components/motion/combobox/list.js +2 -2
- package/dist/components/motion/combobox/trigger.d.ts +6 -7
- package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
- package/dist/components/motion/combobox/trigger.js +2 -2
- package/dist/components/motion/combobox.js +1 -1
- package/dist/components/motion/command-palette.d.ts +3 -4
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +1 -1
- package/dist/components/motion/context-menu.d.ts +20 -21
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +2 -3
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/dock.d.ts +5 -6
- package/dist/components/motion/dock.d.ts.map +1 -1
- package/dist/components/motion/drawer.d.ts +2 -3
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/dynamic-island.d.ts +4 -5
- package/dist/components/motion/dynamic-island.d.ts.map +1 -1
- package/dist/components/motion/expandable-action-bar.d.ts +6 -7
- package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +4 -5
- package/dist/components/motion/expandable-control.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +4 -5
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expanding-arrow-button.d.ts +2 -3
- package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +3 -4
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +1 -1
- package/dist/components/motion/file-tree.d.ts +7 -8
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +1 -1
- package/dist/components/motion/file-upload.d.ts +7 -8
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +1 -1
- package/dist/components/motion/hold-action-button.d.ts +2 -3
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +3 -4
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js +1 -1
- package/dist/components/motion/input.d.ts +5 -4
- package/dist/components/motion/input.d.ts.map +1 -1
- package/dist/components/motion/input.js +28 -25
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/liquid.d.ts +29 -0
- package/dist/components/motion/liquid.d.ts.map +1 -0
- package/dist/components/motion/liquid.js +248 -0
- package/dist/components/motion/liquid.js.map +1 -0
- package/dist/components/motion/loader.d.ts +3 -4
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/magnetic.d.ts +2 -3
- package/dist/components/motion/magnetic.d.ts.map +1 -1
- package/dist/components/motion/marquee.d.ts +2 -3
- package/dist/components/motion/marquee.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +2 -3
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +3 -4
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +4 -5
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js +1 -1
- package/dist/components/motion/multi-select/content.d.ts +15 -0
- package/dist/components/motion/multi-select/content.d.ts.map +1 -0
- package/dist/components/motion/multi-select/content.js +91 -0
- package/dist/components/motion/multi-select/content.js.map +1 -0
- package/dist/components/motion/multi-select/context.d.ts +63 -0
- package/dist/components/motion/multi-select/context.d.ts.map +1 -0
- package/dist/{context-BizvUNZv.js → components/motion/multi-select/context.js} +44 -114
- package/dist/components/motion/multi-select/context.js.map +1 -0
- package/dist/components/motion/multi-select/index.d.ts +5 -0
- package/dist/components/motion/multi-select/index.js +6 -0
- package/dist/components/motion/multi-select/list.d.ts +39 -0
- package/dist/components/motion/multi-select/list.d.ts.map +1 -0
- package/dist/components/motion/multi-select/list.js +144 -0
- package/dist/components/motion/multi-select/list.js.map +1 -0
- package/dist/components/motion/multi-select/trigger.d.ts +21 -0
- package/dist/components/motion/multi-select/trigger.d.ts.map +1 -0
- package/dist/components/motion/multi-select/trigger.js +185 -0
- package/dist/components/motion/multi-select/trigger.js.map +1 -0
- package/dist/components/motion/not-found/glitch.d.ts +1 -2
- package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts +1 -2
- package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +4 -5
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts +1 -2
- package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
- package/dist/components/motion/not-found/stacked.d.ts +1 -2
- package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts +1 -2
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.d.ts +4 -5
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js +1 -1
- package/dist/components/motion/number-ticker.d.ts +2 -3
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/otp-input.d.ts +3 -4
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +5 -6
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js +1 -1
- package/dist/components/motion/parallax.d.ts +2 -3
- package/dist/components/motion/parallax.d.ts.map +1 -1
- package/dist/components/motion/popover-morph.d.ts +6 -7
- package/dist/components/motion/popover-morph.d.ts.map +1 -1
- package/dist/components/motion/popover.d.ts +6 -7
- package/dist/components/motion/popover.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +3 -4
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/project-folder.d.ts +3 -4
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +3 -4
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/radio.d.ts +4 -5
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/range-slider-bubble.d.ts +2 -3
- package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
- package/dist/components/motion/range-slider-fluid.d.ts +2 -3
- package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
- package/dist/components/motion/range-slider-ruler.d.ts +2 -3
- package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
- package/dist/components/motion/range-slider-wave.d.ts +2 -3
- package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
- package/dist/components/motion/range-slider.d.ts +2 -3
- package/dist/components/motion/range-slider.d.ts.map +1 -1
- package/dist/components/motion/scroll-progress.d.ts +4 -5
- package/dist/components/motion/scroll-progress.d.ts.map +1 -1
- package/dist/components/motion/scroll-reveal.d.ts +2 -3
- package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.d.ts +2 -3
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/select-morph.d.ts +10 -11
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +1 -1
- package/dist/components/motion/select.d.ts +10 -11
- package/dist/components/motion/select.d.ts.map +1 -1
- package/dist/components/motion/select.js +1 -1
- package/dist/components/motion/shader-background.d.ts +4 -5
- package/dist/components/motion/shader-background.d.ts.map +1 -1
- package/dist/components/motion/shared-layout-bg.d.ts +2 -3
- package/dist/components/motion/shared-layout-bg.d.ts.map +1 -1
- package/dist/components/motion/signup-form.d.ts +7 -8
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +7 -3
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +2 -3
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.d.ts +6 -7
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +8 -9
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/switch.d.ts +2 -3
- package/dist/components/motion/switch.d.ts.map +1 -1
- package/dist/components/motion/table/editable-cell.d.ts +1 -2
- package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
- package/dist/components/motion/table/index.d.ts +2 -2
- package/dist/components/motion/table/index.d.ts.map +1 -1
- package/dist/components/motion/table/index.js.map +1 -1
- package/dist/components/motion/table/row-handle.d.ts +1 -2
- package/dist/components/motion/table/row-handle.d.ts.map +1 -1
- package/dist/components/motion/table/row-handle.js +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -2
- package/dist/components/motion/table/skeleton-rows.d.ts.map +1 -1
- package/dist/components/motion/table/table-header.d.ts +2 -3
- package/dist/components/motion/table/table-header.d.ts.map +1 -1
- package/dist/components/motion/table/table-header.js +1 -1
- package/dist/components/motion/table/table-menu.d.ts +2 -3
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/tabs.d.ts +4 -5
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/text-cascade.d.ts +2 -3
- package/dist/components/motion/text-cascade.d.ts.map +1 -1
- package/dist/components/motion/text-reveal.d.ts +2 -3
- package/dist/components/motion/text-reveal.d.ts.map +1 -1
- package/dist/components/motion/text-scramble.d.ts +2 -3
- package/dist/components/motion/text-scramble.d.ts.map +1 -1
- package/dist/components/motion/text-shimmer.d.ts +2 -3
- package/dist/components/motion/text-shimmer.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.d.ts +5 -6
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +1 -1
- package/dist/components/motion/tilt-card.d.ts +2 -3
- package/dist/components/motion/tilt-card.d.ts.map +1 -1
- package/dist/components/motion/tooltip.d.ts +2 -3
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/wheel-picker.d.ts +3 -4
- package/dist/components/motion/wheel-picker.d.ts.map +1 -1
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/alert.js +1 -1
- package/dist/components/reui/autocomplete.d.ts +3 -3
- package/dist/components/reui/autocomplete.d.ts.map +1 -1
- package/dist/components/reui/autocomplete.js +1 -1
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/cascader/cascader-async.d.ts +8 -9
- package/dist/components/reui/cascader/cascader-async.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-async.js.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.d.ts +3 -3
- package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.js +1 -1
- package/dist/components/reui/cascader/cascader-context.d.ts +13 -13
- package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.d.ts +8 -8
- package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.js +1 -1
- package/dist/components/reui/cascader/cascader-i18n.d.ts +3 -4
- package/dist/components/reui/cascader/cascader-i18n.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.d.ts +9 -9
- package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.js +1 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts +38 -39
- package/dist/components/reui/cascader/cascader-lib.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts +6 -6
- package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.js +1 -1
- package/dist/components/reui/cascader/cascader-virtual.d.ts +6 -6
- package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
- package/dist/components/reui/cascader/cascader.d.ts +19 -19
- package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader.js +1 -1
- package/dist/components/reui/cascader/cascader.js.map +1 -1
- package/dist/components/reui/code-block/code-block-highlight.d.ts +32 -33
- package/dist/components/reui/code-block/code-block-highlight.d.ts.map +1 -1
- package/dist/components/reui/code-block/code-block.d.ts +7 -7
- package/dist/components/reui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/reui/code-block/code-block.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts +117 -0
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts.map +1 -0
- package/dist/components/reui/data-grid/data-grid-cell-selection.js +1554 -0
- package/dist/components/reui/data-grid/data-grid-cell-selection.js.map +1 -0
- package/dist/components/reui/data-grid/data-grid-column-filter.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +7 -5
- package/dist/components/reui/data-grid/data-grid-column-filter.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.js +19 -13
- package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-visibility.js +3 -2
- package/dist/components/reui/data-grid/data-grid-column-visibility.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-i18n.d.ts +2 -0
- package/dist/components/reui/data-grid/data-grid-i18n.js +53 -0
- package/dist/components/reui/data-grid/data-grid-i18n.js.map +1 -0
- package/dist/components/reui/data-grid/data-grid-pagination.js +15 -9
- package/dist/components/reui/data-grid/data-grid-pagination.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-scroll-area.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-scroll-area.js +3 -3
- package/dist/components/reui/data-grid/data-grid-scroll-area.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +7 -5
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table-dnd.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +17 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +146 -50
- package/dist/components/reui/data-grid/data-grid-table-virtual.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.d.ts +23 -4
- package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +215 -68
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +288 -18
- package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid.js +150 -15
- package/dist/components/reui/data-grid/data-grid.js.map +1 -1
- package/dist/components/reui/date-selector.d.ts +11 -12
- package/dist/components/reui/date-selector.d.ts.map +1 -1
- package/dist/components/reui/date-selector.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-event.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-month-view.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-nav.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
- package/dist/components/reui/filters/filters-advanced.d.ts +6 -7
- package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-advanced.js +1 -1
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/filters/filters-builder.d.ts +5 -5
- package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-builder.js +2 -2
- package/dist/components/reui/filters/filters-chip.d.ts +10 -11
- package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-chip.js +1 -1
- package/dist/components/reui/filters/filters-chip.js.map +1 -1
- package/dist/components/reui/filters/filters-context.d.ts +30 -30
- package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-date.d.ts +13 -14
- package/dist/components/reui/filters/filters-date.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-dnd.d.ts +15 -16
- package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-editors.d.ts +14 -14
- package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-editors.js +2 -2
- package/dist/components/reui/filters/filters-i18n.d.ts +4 -5
- package/dist/components/reui/filters/filters-i18n.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts +34 -35
- package/dist/components/reui/filters/filters-lib.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-operators.d.ts +13 -14
- package/dist/components/reui/filters/filters-operators.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-query.d.ts +29 -30
- package/dist/components/reui/filters/filters-query.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-types.d.ts +31 -32
- package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.d.ts +5 -5
- package/dist/components/reui/filters/filters.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.js +1 -1
- package/dist/components/reui/filters/filters.js.map +1 -1
- package/dist/components/reui/frame.d.ts +1 -1
- package/dist/components/reui/frame.js +1 -1
- package/dist/components/reui/gantt/gantt-bar.js +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +1 -1
- package/dist/components/reui/gantt/gantt-view.js +1 -1
- package/dist/components/reui/gantt/gantt.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +2 -2
- package/dist/components/reui/kanban.d.ts +11 -11
- package/dist/components/reui/kanban.d.ts.map +1 -1
- package/dist/components/reui/number-field.d.ts +3 -3
- package/dist/components/reui/number-field.js +1 -1
- package/dist/components/reui/phone-input.js +1 -1
- package/dist/components/reui/rating.d.ts +1 -1
- package/dist/components/reui/rating.js +1 -1
- package/dist/components/reui/scrollspy.d.ts +1 -2
- package/dist/components/reui/scrollspy.d.ts.map +1 -1
- package/dist/components/reui/sortable.d.ts +6 -6
- package/dist/components/reui/sortable.d.ts.map +1 -1
- package/dist/components/reui/tree.js +1 -1
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.js +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/attachment.d.ts +1 -1
- package/dist/components/ui/attachment.js +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/bubble.js +1 -1
- package/dist/components/ui/button-group.js +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/carousel.js +1 -1
- package/dist/components/ui/chart.d.ts +2 -2
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/combobox.js +1 -1
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/empty.js +1 -1
- package/dist/components/ui/field.js +1 -1
- package/dist/components/ui/input-group.d.ts +1 -1
- package/dist/components/ui/input-group.js +1 -1
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/item.d.ts +2 -2
- package/dist/components/ui/item.js +1 -1
- package/dist/components/ui/marker.js +1 -1
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/message-scroller.js +2 -2
- package/dist/components/ui/message-scroller.js.map +1 -1
- package/dist/components/ui/native-select.js +1 -1
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/components/ui/pagination.js +1 -1
- package/dist/components/ui/questionnaire.js +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sidebar.d.ts +2 -2
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/toast.js +1 -1
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/toggle.js +1 -1
- package/dist/{copy-menu-C5GaT4Z-.js → copy-menu-TIKvPaAZ.js} +2 -2
- package/dist/{copy-menu-C5GaT4Z-.js.map → copy-menu-TIKvPaAZ.js.map} +1 -1
- package/dist/data-grid-i18n-TQR2PZlU.d.ts +54 -0
- package/dist/data-grid-i18n-TQR2PZlU.d.ts.map +1 -0
- package/dist/hooks/use-body-classes.d.ts +1 -2
- package/dist/hooks/use-body-classes.d.ts.map +1 -1
- package/dist/hooks/use-copy-to-clipboard.d.ts +1 -2
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -1
- package/dist/hooks/use-dismiss.d.ts +3 -4
- package/dist/hooks/use-dismiss.d.ts.map +1 -1
- package/dist/hooks/use-favicon.d.ts +1 -2
- package/dist/hooks/use-favicon.d.ts.map +1 -1
- package/dist/hooks/use-file-upload.d.ts +7 -8
- package/dist/hooks/use-file-upload.d.ts.map +1 -1
- package/dist/hooks/use-hover-capable.d.ts +1 -2
- package/dist/hooks/use-hover-capable.d.ts.map +1 -1
- package/dist/hooks/use-hover-gesture.d.ts +2 -3
- package/dist/hooks/use-hover-gesture.d.ts.map +1 -1
- package/dist/hooks/use-hydrated.d.ts +1 -2
- package/dist/hooks/use-hydrated.d.ts.map +1 -1
- package/dist/hooks/use-intersection-observer.d.ts +1 -2
- package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
- package/dist/hooks/use-is-mac.d.ts +1 -2
- package/dist/hooks/use-is-mac.d.ts.map +1 -1
- package/dist/hooks/use-media-query.d.ts +1 -2
- package/dist/hooks/use-media-query.d.ts.map +1 -1
- package/dist/hooks/use-meta-color.d.ts +1 -2
- package/dist/hooks/use-meta-color.d.ts.map +1 -1
- package/dist/hooks/use-mobile.d.ts +1 -2
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-mutation-observer.d.ts +1 -2
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
- package/dist/hooks/use-on-open.d.ts +1 -2
- package/dist/hooks/use-on-open.d.ts.map +1 -1
- package/dist/hooks/use-row-cursor.d.ts +1 -2
- package/dist/hooks/use-row-cursor.d.ts.map +1 -1
- package/dist/hooks/use-scroll-position.d.ts +1 -2
- package/dist/hooks/use-scroll-position.d.ts.map +1 -1
- package/dist/hooks/use-slider-input.d.ts +1 -2
- package/dist/hooks/use-slider-input.d.ts.map +1 -1
- package/dist/hooks/use-slider.d.ts +3 -4
- package/dist/hooks/use-slider.d.ts.map +1 -1
- package/dist/hooks/use-tap-gesture.d.ts +3 -4
- package/dist/hooks/use-tap-gesture.d.ts.map +1 -1
- package/dist/hooks/use-touch-capable.d.ts +1 -2
- package/dist/hooks/use-touch-capable.d.ts.map +1 -1
- package/dist/hooks/use-viewport.d.ts +1 -2
- package/dist/hooks/use-viewport.d.ts.map +1 -1
- package/dist/lib/ease.d.ts +10 -11
- package/dist/lib/ease.d.ts.map +1 -1
- package/dist/lib/favicon.d.ts +1 -2
- package/dist/lib/favicon.d.ts.map +1 -1
- package/dist/lib/text-shimmer.d.ts +3 -4
- package/dist/lib/text-shimmer.d.ts.map +1 -1
- package/dist/lib/tick-sound.d.ts +1 -2
- package/dist/lib/tick-sound.d.ts.map +1 -1
- package/dist/lib/touch.d.ts +6 -7
- package/dist/lib/touch.d.ts.map +1 -1
- package/dist/use-active-option-CmX6Z-4S.js +86 -0
- package/dist/use-active-option-CmX6Z-4S.js.map +1 -0
- package/package.json +6 -6
- package/dist/context-BizvUNZv.js.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { FilterCombinator, FilterGroupNode, FilterIssue, FilterNode, FilterOperator, FilterQuery, FilterRule } from "./filters-types.js";
|
|
2
2
|
//#region src/components/reui/filters/filters-query.d.ts
|
|
3
|
-
declare function isFilterRule<V>(node: FilterNode<V>): node is FilterRule<V>;
|
|
4
|
-
declare function isFilterGroup<V>(node: FilterNode<V>): node is FilterGroupNode<V>;
|
|
3
|
+
export declare function isFilterRule<V>(node: FilterNode<V>): node is FilterRule<V>;
|
|
4
|
+
export declare function isFilterGroup<V>(node: FilterNode<V>): node is FilterGroupNode<V>;
|
|
5
5
|
/**
|
|
6
6
|
* A rule. `id` is passed in, never generated here: a non-deterministic value in
|
|
7
7
|
* a pure function broke hydration. Callers use `createFilterIdFactory`.
|
|
8
8
|
*/
|
|
9
|
-
declare function createFilterRule<V = unknown>(input: {
|
|
9
|
+
export declare function createFilterRule<V = unknown>(input: {
|
|
10
10
|
id: string;
|
|
11
11
|
path: string[];
|
|
12
12
|
operator: string;
|
|
13
13
|
value?: V;
|
|
14
14
|
negated?: boolean;
|
|
15
15
|
}): FilterRule<V>;
|
|
16
|
-
declare function createFilterGroup<V = unknown>(input: {
|
|
16
|
+
export declare function createFilterGroup<V = unknown>(input: {
|
|
17
17
|
id: string;
|
|
18
18
|
combinator?: FilterCombinator;
|
|
19
19
|
rules?: FilterNode<V>[];
|
|
20
20
|
}): FilterGroupNode<V>;
|
|
21
21
|
/** An empty query. The root is always a group, never a bare array. */
|
|
22
|
-
declare function createFilterQuery<V = unknown>(rules?: FilterNode<V>[], combinator?: FilterCombinator, id?: string): FilterQuery<V>;
|
|
22
|
+
export declare function createFilterQuery<V = unknown>(rules?: FilterNode<V>[], combinator?: FilterCombinator, id?: string): FilterQuery<V>;
|
|
23
23
|
/** Every rule in the tree, depth first. Groups are flattened away. */
|
|
24
|
-
declare function flattenFilterRules<V>(query: FilterQuery<V>): FilterRule<V>[];
|
|
24
|
+
export declare function flattenFilterRules<V>(query: FilterQuery<V>): FilterRule<V>[];
|
|
25
25
|
/**
|
|
26
26
|
* One rule, flattened for a predicate. `values` is always an array even though
|
|
27
27
|
* `FilterRule.value` is singular, so no caller re-derives arity.
|
|
28
28
|
*/
|
|
29
|
-
interface FilterCondition {
|
|
29
|
+
export interface FilterCondition {
|
|
30
30
|
/** Full field path, `["name", "first"]`. */
|
|
31
31
|
path: string[];
|
|
32
32
|
/** First path segment, for the common flat-schema case. */
|
|
@@ -42,24 +42,24 @@ interface FilterCondition {
|
|
|
42
42
|
* it out, `countFilterRules` still counts it, and `collectFilterIssues` reports
|
|
43
43
|
* it as `missing-operator`.
|
|
44
44
|
*/
|
|
45
|
-
declare function isFilterRuleComplete<V>(rule: FilterRule<V>): boolean;
|
|
45
|
+
export declare function isFilterRuleComplete<V>(rule: FilterRule<V>): boolean;
|
|
46
46
|
/**
|
|
47
47
|
* Flattens a query to conditions. Lossy: safe only when the query is flat or
|
|
48
48
|
* every group shares the root's combinator. Read `query.combinator` and walk
|
|
49
49
|
* the tree yourself for anything else. Incomplete rules are left out.
|
|
50
50
|
*/
|
|
51
|
-
declare function flattenFilterConditions<V>(query: FilterQuery<V>): FilterCondition[];
|
|
51
|
+
export declare function flattenFilterConditions<V>(query: FilterQuery<V>): FilterCondition[];
|
|
52
52
|
/** How many rules the query holds, at any depth. */
|
|
53
|
-
declare function countFilterRules<V>(query: FilterQuery<V>): number;
|
|
53
|
+
export declare function countFilterRules<V>(query: FilterQuery<V>): number;
|
|
54
54
|
/** Whether the query would match everything. */
|
|
55
|
-
declare function isFilterQueryEmpty<V>(query: FilterQuery<V>): boolean;
|
|
55
|
+
export declare function isFilterQueryEmpty<V>(query: FilterQuery<V>): boolean;
|
|
56
56
|
/**
|
|
57
57
|
* How an arity is answered for one rule. The caller resolves it, since arity
|
|
58
58
|
* lives on the FIELD's operator list. `null` is a rule it cannot judge.
|
|
59
59
|
*/
|
|
60
|
-
type FilterArityResolver<V> = (rule: FilterRule<V>) => FilterOperator["arity"] | null;
|
|
60
|
+
export type FilterArityResolver<V> = (rule: FilterRule<V>) => FilterOperator["arity"] | null;
|
|
61
61
|
/** Runs a field's own `validate`. A resolver like `arityOf`: no schema here. */
|
|
62
|
-
type FilterValidateResolver<V> = (rule: FilterRule<V>) => string | null | undefined | false;
|
|
62
|
+
export type FilterValidateResolver<V> = (rule: FilterRule<V>) => string | null | undefined | false;
|
|
63
63
|
/**
|
|
64
64
|
* Every reason a query cannot be run as written, in document order: the five
|
|
65
65
|
* ways this builder can hold a condition that SILENTLY does the wrong thing.
|
|
@@ -72,61 +72,60 @@ type FilterValidateResolver<V> = (rule: FilterRule<V>) => string | null | undefi
|
|
|
72
72
|
* ONE node is NOT an issue (it is what "Convert to group" produces), and the
|
|
73
73
|
* root is exempt from `empty-group`.
|
|
74
74
|
*/
|
|
75
|
-
declare function collectFilterIssues<V>(query: FilterQuery<V>, arityOf: FilterArityResolver<V>, validateOf?: FilterValidateResolver<V>): FilterIssue[];
|
|
75
|
+
export declare function collectFilterIssues<V>(query: FilterQuery<V>, arityOf: FilterArityResolver<V>, validateOf?: FilterValidateResolver<V>): FilterIssue[];
|
|
76
76
|
/** Locates a node and its parent. Returns null when the id is unknown. */
|
|
77
|
-
declare function findFilterNode<V>(query: FilterQuery<V>, id: string): {
|
|
77
|
+
export declare function findFilterNode<V>(query: FilterQuery<V>, id: string): {
|
|
78
78
|
node: FilterNode<V>;
|
|
79
79
|
parent: FilterGroupNode<V> | null;
|
|
80
80
|
index: number;
|
|
81
81
|
} | null;
|
|
82
82
|
/** The rule with this id, or null when the id names a group or is unknown. */
|
|
83
|
-
declare function findFilterRule<V>(query: FilterQuery<V>, id: string): FilterRule<V> | null;
|
|
83
|
+
export declare function findFilterRule<V>(query: FilterQuery<V>, id: string): FilterRule<V> | null;
|
|
84
84
|
/** Replaces a rule's fields. Unknown ids return the query unchanged. */
|
|
85
|
-
declare function updateFilterRule<V>(query: FilterQuery<V>, id: string, updates: Partial<Omit<FilterRule<V>, "id" | "type">>): FilterQuery<V>;
|
|
85
|
+
export declare function updateFilterRule<V>(query: FilterQuery<V>, id: string, updates: Partial<Omit<FilterRule<V>, "id" | "type">>): FilterQuery<V>;
|
|
86
86
|
/**
|
|
87
87
|
* Removes a node, plus any group it empties, all the way up (not the root): an
|
|
88
88
|
* empty group is invisible in the flat UI yet still compiles to parentheses.
|
|
89
89
|
*/
|
|
90
|
-
declare function removeFilterNode<V>(query: FilterQuery<V>, id: string): FilterQuery<V>;
|
|
90
|
+
export declare function removeFilterNode<V>(query: FilterQuery<V>, id: string): FilterQuery<V>;
|
|
91
91
|
/** Appends a node to a group, defaulting to the root. */
|
|
92
|
-
declare function insertFilterNode<V>(query: FilterQuery<V>, node: FilterNode<V>, parentId?: string, index?: number): FilterQuery<V>;
|
|
92
|
+
export declare function insertFilterNode<V>(query: FilterQuery<V>, node: FilterNode<V>, parentId?: string, index?: number): FilterQuery<V>;
|
|
93
93
|
/** Copies a node in beside the original. */
|
|
94
|
-
declare function duplicateFilterNode<V>(query: FilterQuery<V>, id: string, nextId: () => string): FilterQuery<V>;
|
|
95
|
-
declare function setFilterCombinator<V>(query: FilterQuery<V>, groupId: string, combinator: FilterCombinator): FilterQuery<V>;
|
|
96
|
-
declare function toggleFilterCombinator<V>(query: FilterQuery<V>, groupId: string): FilterQuery<V>;
|
|
94
|
+
export declare function duplicateFilterNode<V>(query: FilterQuery<V>, id: string, nextId: () => string): FilterQuery<V>;
|
|
95
|
+
export declare function setFilterCombinator<V>(query: FilterQuery<V>, groupId: string, combinator: FilterCombinator): FilterQuery<V>;
|
|
96
|
+
export declare function toggleFilterCombinator<V>(query: FilterQuery<V>, groupId: string): FilterQuery<V>;
|
|
97
97
|
/** Moves a node within its own group. Out of range moves are no-ops. */
|
|
98
|
-
declare function moveFilterNode<V>(query: FilterQuery<V>, id: string, delta: number): FilterQuery<V>;
|
|
98
|
+
export declare function moveFilterNode<V>(query: FilterQuery<V>, id: string, delta: number): FilterQuery<V>;
|
|
99
99
|
/**
|
|
100
100
|
* Moves a node into another group, at an index: the cross-parent form of
|
|
101
101
|
* `moveFilterNode`, which only reorders within one parent. Refuses a group into
|
|
102
102
|
* itself or a descendant, which would leave a cycle, and refuses the root.
|
|
103
103
|
*/
|
|
104
|
-
declare function moveFilterNodeTo<V>(query: FilterQuery<V>, id: string, parentId: string, index: number): FilterQuery<V>;
|
|
104
|
+
export declare function moveFilterNodeTo<V>(query: FilterQuery<V>, id: string, parentId: string, index: number): FilterQuery<V>;
|
|
105
105
|
/**
|
|
106
106
|
* Copies a node into a group at a position: the Alt path of the drag layer. Not
|
|
107
107
|
* `duplicateFilterNode` then `moveFilterNodeTo`, which emits two queries for one
|
|
108
108
|
* gesture and needs the id the first step minted and never returned. The clone
|
|
109
109
|
* is taken BEFORE the insert, so copying a group into itself stays finite.
|
|
110
110
|
*/
|
|
111
|
-
declare function copyFilterNodeTo<V>(query: FilterQuery<V>, id: string, parentId: string, index: number, nextId: () => string): FilterQuery<V>;
|
|
111
|
+
export declare function copyFilterNodeTo<V>(query: FilterQuery<V>, id: string, parentId: string, index: number, nextId: () => string): FilterQuery<V>;
|
|
112
112
|
/**
|
|
113
113
|
* Wraps a node in a new group: the "Wrap in condition group" action, and the
|
|
114
114
|
* keyboard path to nesting for a user who cannot drag.
|
|
115
115
|
*/
|
|
116
|
-
declare function wrapFilterNodeInGroup<V>(query: FilterQuery<V>, id: string, groupId: string, combinator?: FilterCombinator): FilterQuery<V>;
|
|
116
|
+
export declare function wrapFilterNodeInGroup<V>(query: FilterQuery<V>, id: string, groupId: string, combinator?: FilterCombinator): FilterQuery<V>;
|
|
117
117
|
/**
|
|
118
118
|
* Dissolves a group into its parent, splicing its rules in at the position the
|
|
119
119
|
* group held so wrap and unwrap round-trip. The root, a rule id and an unknown
|
|
120
120
|
* id each return the query unchanged.
|
|
121
121
|
*/
|
|
122
|
-
declare function unwrapFilterGroup<V>(query: FilterQuery<V>, groupId: string): FilterQuery<V>;
|
|
122
|
+
export declare function unwrapFilterGroup<V>(query: FilterQuery<V>, groupId: string): FilterQuery<V>;
|
|
123
123
|
/** Empties the query, keeping the root's identity fields. */
|
|
124
|
-
declare function clearFilterQuery<V>(query: FilterQuery<V>): FilterQuery<V>;
|
|
124
|
+
export declare function clearFilterQuery<V>(query: FilterQuery<V>): FilterQuery<V>;
|
|
125
125
|
/**
|
|
126
126
|
* Drops empty groups and collapses a group whose only child is a group. Not
|
|
127
127
|
* automatic: a user mid-edit may hold an almost-empty group. Call on persist.
|
|
128
128
|
*/
|
|
129
|
-
declare function pruneFilterQuery<V>(query: FilterQuery<V>): FilterQuery<V>;
|
|
129
|
+
export declare function pruneFilterQuery<V>(query: FilterQuery<V>): FilterQuery<V>;
|
|
130
130
|
//#endregion
|
|
131
|
-
export { FilterArityResolver, FilterCondition, FilterValidateResolver, clearFilterQuery, collectFilterIssues, copyFilterNodeTo, countFilterRules, createFilterGroup, createFilterQuery, createFilterRule, duplicateFilterNode, findFilterNode, findFilterRule, flattenFilterConditions, flattenFilterRules, insertFilterNode, isFilterGroup, isFilterQueryEmpty, isFilterRule, isFilterRuleComplete, moveFilterNode, moveFilterNodeTo, pruneFilterQuery, removeFilterNode, setFilterCombinator, toggleFilterCombinator, unwrapFilterGroup, updateFilterRule, wrapFilterNodeInGroup };
|
|
132
131
|
//# sourceMappingURL=filters-query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-query.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-query.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filters-query.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-query.tsx"],"mappings":";;wBAYgB,aAAa,GAAG,MAAM,WAAW,KAAK,QAAQ,WAAW;wBAIzD,cAAc,GAAG,MAAM,WAAW,KAAK,QAAQ,gBAAgB;;;;;wBAQ/D,iBAAiB,aAAa;EAC5C;EACA;EACA;EACA,QAAQ;EACR;IACE,WAAW;wBAYC,kBAAkB,aAAa;EAC7C;EACA,aAAa;EACb,QAAQ,WAAW;IACjB,gBAAgB;;wBAUJ,kBAAkB,aAChC,QAAO,WAAW,MAClB,aAAY,kBACZ,cACC,YAAY;;wBAKC,mBAAmB,GAAG,OAAO,YAAY,KAAK,WAAW;;;;;iBAiBxD;;EAEf;;EAEA;EACA;;EAEA;EACA;;;;;;;;wBASc,qBAAqB,GAAG,MAAM,WAAW;;;;;;wBASzC,wBAAwB,GAAG,OAAO,YAAY,KAAK;;wBAkBnD,iBAAiB,GAAG,OAAO,YAAY;;wBAcvC,mBAAmB,GAAG,OAAO,YAAY;;;;;YAQ7C,oBAAoB,MAAM,MAAM,WAAW,OAAO;;YAGlD,uBAAuB,MAAM,MAAM,WAAW;;;;;;;;;;;;;wBAyC1C,oBAAoB,GAClC,OAAO,YAAY,IACnB,SAAS,oBAAoB,IAC7B,aAAa,uBAAuB,KACnC;;wBA0Fa,eAAe,GAC7B,OAAO,YAAY,IACnB;EAEA,MAAM,WAAW;EACjB,QAAQ,gBAAgB;EACxB;;;wBA0Bc,eAAe,GAAG,OAAO,YAAY,IAAI,aAAa,WAAW;;wBAgCjE,iBAAiB,GAC/B,OAAO,YAAY,IACnB,YACA,SAAS,QAAQ,KAAK,WAAW,sBAChC,YAAY;;;;;wBAiBC,iBAAiB,GAAG,OAAO,YAAY,IAAI,aAAa,YAAY;;wBA2BpE,iBAAiB,GAC/B,OAAO,YAAY,IACnB,MAAM,WAAW,IACjB,mBACA,iBACC,YAAY;;wBA6BC,oBAAoB,GAClC,OAAO,YAAY,IACnB,YACA,uBACC,YAAY;wBAYC,oBAAoB,GAClC,OAAO,YAAY,IACnB,iBACA,YAAY,mBACX,YAAY;wBAQC,uBAAuB,GAAG,OAAO,YAAY,IAAI,kBAAkB,YAAY;;wBAO/E,eAAe,GAC7B,OAAO,YAAY,IACnB,YACA,gBACC,YAAY;;;;;;wBAyDC,iBAAiB,GAC/B,OAAO,YAAY,IACnB,YACA,kBACA,gBACC,YAAY;;;;;;;wBAuBC,iBAAiB,GAC/B,OAAO,YAAY,IACnB,YACA,kBACA,eACA,uBACC,YAAY;;;;;wBAcC,sBAAsB,GACpC,OAAO,YAAY,IACnB,YACA,iBACA,aAAY,mBACX,YAAY;;;;;;wBAqBC,kBAAkB,GAAG,OAAO,YAAY,IAAI,kBAAkB,YAAY;;wBAkB1E,iBAAiB,GAAG,OAAO,YAAY,KAAK,YAAY;;;;;wBAQxD,iBAAiB,GAAG,OAAO,YAAY,KAAK,YAAY"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
//#region src/components/reui/filters/filters-types.d.ts
|
|
3
|
-
type FilterCombinator = "and" | "or";
|
|
3
|
+
export type FilterCombinator = "and" | "or";
|
|
4
4
|
/**
|
|
5
5
|
* One condition. `path` maps one to one onto the cascader's `details.path`, so
|
|
6
6
|
* a field selection commits untranslated. `value` is SINGULAR and the
|
|
7
7
|
* operator's `arity` decides its shape: `"many"` holds an array, `"range"` a
|
|
8
8
|
* tuple, `"none"` undefined.
|
|
9
9
|
*/
|
|
10
|
-
interface FilterRule<V = unknown> {
|
|
10
|
+
export interface FilterRule<V = unknown> {
|
|
11
11
|
id: string;
|
|
12
12
|
type: "rule";
|
|
13
13
|
/** Field path, root first. `["name", "first"]` for a nested attribute. */
|
|
@@ -18,18 +18,18 @@ interface FilterRule<V = unknown> {
|
|
|
18
18
|
negated?: boolean;
|
|
19
19
|
}
|
|
20
20
|
/** Rules under one combinator; nests, so nesting is never a later break. */
|
|
21
|
-
interface FilterGroupNode<V = unknown> {
|
|
21
|
+
export interface FilterGroupNode<V = unknown> {
|
|
22
22
|
id: string;
|
|
23
23
|
type: "group";
|
|
24
24
|
combinator: FilterCombinator;
|
|
25
25
|
rules: FilterNode<V>[];
|
|
26
26
|
}
|
|
27
|
-
type FilterNode<V = unknown> = FilterRule<V> | FilterGroupNode<V>;
|
|
27
|
+
export type FilterNode<V = unknown> = FilterRule<V> | FilterGroupNode<V>;
|
|
28
28
|
/** A whole query. Always a group, so flat and nested are one code path. */
|
|
29
|
-
type FilterQuery<V = unknown> = FilterGroupNode<V>;
|
|
30
|
-
type FilterChangeReason = "add" | "update" | "remove" | "duplicate" | "negate" | "reorder" | "combinator" | "clear";
|
|
29
|
+
export type FilterQuery<V = unknown> = FilterGroupNode<V>;
|
|
30
|
+
export type FilterChangeReason = "add" | "update" | "remove" | "duplicate" | "negate" | "reorder" | "combinator" | "clear";
|
|
31
31
|
/** Second argument to `onQueryChange`, so nobody has to diff two trees. */
|
|
32
|
-
interface FilterChangeDetails<V = unknown, O = unknown> {
|
|
32
|
+
export interface FilterChangeDetails<V = unknown, O = unknown> {
|
|
33
33
|
reason: FilterChangeReason;
|
|
34
34
|
/** The rule that changed, or null for whole-query changes like `clear`. */
|
|
35
35
|
rule: FilterRule<V> | null;
|
|
@@ -41,8 +41,8 @@ interface FilterChangeDetails<V = unknown, O = unknown> {
|
|
|
41
41
|
* for every operator, a consumer's own included, in place of the hardcoded
|
|
42
42
|
* `operator === "empty"` checks it replaced.
|
|
43
43
|
*/
|
|
44
|
-
type FilterOperatorArity = "none" | "one" | "many" | "range";
|
|
45
|
-
interface FilterOperator {
|
|
44
|
+
export type FilterOperatorArity = "none" | "one" | "many" | "range";
|
|
45
|
+
export interface FilterOperator {
|
|
46
46
|
value: string;
|
|
47
47
|
label: string;
|
|
48
48
|
/** Defaults to `"one"`. */
|
|
@@ -58,8 +58,8 @@ interface FilterOperator {
|
|
|
58
58
|
* different date control, and a built-in one would add a calendar dependency to
|
|
59
59
|
* every install, so a date ships as an `editor`.
|
|
60
60
|
*/
|
|
61
|
-
type FilterValueType = "text" | "number" | "range" | "select" | "multiselect" | "boolean";
|
|
62
|
-
interface FilterOption<O = unknown> {
|
|
61
|
+
export type FilterValueType = "text" | "number" | "range" | "select" | "multiselect" | "boolean";
|
|
62
|
+
export interface FilterOption<O = unknown> {
|
|
63
63
|
value: string;
|
|
64
64
|
label: string;
|
|
65
65
|
icon?: React$1.ReactNode;
|
|
@@ -80,20 +80,20 @@ interface FilterOption<O = unknown> {
|
|
|
80
80
|
/** Arbitrary payload, carried untouched through every render callback. */
|
|
81
81
|
data?: O;
|
|
82
82
|
}
|
|
83
|
-
interface FilterLoadContext {
|
|
83
|
+
export interface FilterLoadContext {
|
|
84
84
|
/** Aborted when the query changes, the editor closes, or a load supersedes. */
|
|
85
85
|
signal: AbortSignal;
|
|
86
86
|
cursor?: string;
|
|
87
87
|
}
|
|
88
88
|
/** Result of `loadOptions`, or a bare array. Shape-locked to the cascader. */
|
|
89
|
-
interface FilterLoadResult<O = unknown> {
|
|
89
|
+
export interface FilterLoadResult<O = unknown> {
|
|
90
90
|
items: FilterOption<O>[];
|
|
91
91
|
nextCursor?: string;
|
|
92
92
|
/** Defaults to whether `nextCursor` was supplied. */
|
|
93
93
|
hasMore?: boolean;
|
|
94
94
|
}
|
|
95
95
|
/** A field, or a branch. A group is a field with `fields`, not `selectable`. */
|
|
96
|
-
interface FilterField<V = unknown, O = unknown> {
|
|
96
|
+
export interface FilterField<V = unknown, O = unknown> {
|
|
97
97
|
/** Stable id. Unique among its siblings; the full path must be unique. */
|
|
98
98
|
id: string;
|
|
99
99
|
label: string;
|
|
@@ -177,8 +177,8 @@ interface FilterField<V = unknown, O = unknown> {
|
|
|
177
177
|
* wizard step, which has Back and advances on commit, `"amend"` the
|
|
178
178
|
* chip-anchored popover, which offers Discard instead.
|
|
179
179
|
*/
|
|
180
|
-
type FilterEditorHost = "create" | "amend";
|
|
181
|
-
interface FilterOptionsState<O = unknown> {
|
|
180
|
+
export type FilterEditorHost = "create" | "amend";
|
|
181
|
+
export interface FilterOptionsState<O = unknown> {
|
|
182
182
|
items: FilterOption<O>[];
|
|
183
183
|
loading: boolean;
|
|
184
184
|
error: boolean;
|
|
@@ -191,11 +191,11 @@ interface FilterOptionsState<O = unknown> {
|
|
|
191
191
|
/** Resolves a stored value to its option, from cache when possible. */
|
|
192
192
|
resolve: (value: string) => FilterOption<O> | undefined;
|
|
193
193
|
}
|
|
194
|
-
interface FilterCommitOptions {
|
|
194
|
+
export interface FilterCommitOptions {
|
|
195
195
|
/** Dismiss the host after writing. Defaults to true. */
|
|
196
196
|
close?: boolean;
|
|
197
197
|
}
|
|
198
|
-
interface FilterEditorProps<V = unknown, O = unknown> {
|
|
198
|
+
export interface FilterEditorProps<V = unknown, O = unknown> {
|
|
199
199
|
field: FilterField<V, O>;
|
|
200
200
|
operator: FilterOperator;
|
|
201
201
|
/** The DRAFT value. An editor edits a draft; the host commits it. */
|
|
@@ -220,23 +220,23 @@ interface FilterEditorProps<V = unknown, O = unknown> {
|
|
|
220
220
|
options: FilterOptionsState<O>;
|
|
221
221
|
labels: FilterLabels;
|
|
222
222
|
}
|
|
223
|
-
type FilterEditor<V = unknown, O = unknown> = React$1.ComponentType<FilterEditorProps<V, O>>;
|
|
223
|
+
export type FilterEditor<V = unknown, O = unknown> = React$1.ComponentType<FilterEditorProps<V, O>>;
|
|
224
224
|
/**
|
|
225
225
|
* An editor with its generics erased, for the registry. `unknown` rather than
|
|
226
226
|
* `never`: props are contravariant, so a `FilterEditor<never, never>` registry
|
|
227
227
|
* accepts nothing at all. The single widening cast happens where it renders.
|
|
228
228
|
*/
|
|
229
|
-
type AnyFilterEditor = React$1.ComponentType<FilterEditorProps<unknown, unknown>>;
|
|
230
|
-
type FilterEditorRegistry = Record<string, AnyFilterEditor>;
|
|
229
|
+
export type AnyFilterEditor = React$1.ComponentType<FilterEditorProps<unknown, unknown>>;
|
|
230
|
+
export type FilterEditorRegistry = Record<string, AnyFilterEditor>;
|
|
231
231
|
/**
|
|
232
232
|
* A registered editor's name, or a component. The `any` arm lets a CONCRETE
|
|
233
233
|
* editor sit on an unknown-typed field without a cast: props are contravariant,
|
|
234
234
|
* so `FilterEditor<DateValue>` is not a `FilterEditor<unknown>`. The widening
|
|
235
235
|
* happens once, inside `resolveFilterEditor`.
|
|
236
236
|
*/
|
|
237
|
-
type FilterEditorRef<V = unknown, O = unknown> = string | FilterEditor<V, O> | FilterEditor<any, any>;
|
|
237
|
+
export type FilterEditorRef<V = unknown, O = unknown> = string | FilterEditor<V, O> | FilterEditor<any, any>;
|
|
238
238
|
/** Context for a custom builder empty state. Its actions ARE the footer's. */
|
|
239
|
-
interface FilterEmptyStateContext {
|
|
239
|
+
export interface FilterEmptyStateContext {
|
|
240
240
|
labels: FilterLabels;
|
|
241
241
|
/** The bar is locked. A custom state should not offer an action here. */
|
|
242
242
|
readOnly: boolean;
|
|
@@ -246,7 +246,7 @@ interface FilterEmptyStateContext {
|
|
|
246
246
|
addFilter: () => void;
|
|
247
247
|
addGroup: () => void;
|
|
248
248
|
}
|
|
249
|
-
interface FilterValueDisplayContext<V = unknown, O = unknown> {
|
|
249
|
+
export interface FilterValueDisplayContext<V = unknown, O = unknown> {
|
|
250
250
|
value: V | undefined;
|
|
251
251
|
/** `value` normalised to an array, so callbacks never re-derive it. */
|
|
252
252
|
values: unknown[];
|
|
@@ -257,7 +257,7 @@ interface FilterValueDisplayContext<V = unknown, O = unknown> {
|
|
|
257
257
|
labels: FilterLabels;
|
|
258
258
|
}
|
|
259
259
|
/** Normalized schema, keyed by SIGNATURE: call sites inline the array. */
|
|
260
|
-
interface FilterIndex<V = unknown, O = unknown> {
|
|
260
|
+
export interface FilterIndex<V = unknown, O = unknown> {
|
|
261
261
|
/** Every field by its joined path, `"name.first"`. */
|
|
262
262
|
byPath: Map<string, FilterField<V, O>>;
|
|
263
263
|
/** Child fields by parent path. Root fields are keyed by `FILTER_ROOT_KEY`. */
|
|
@@ -276,14 +276,14 @@ interface FilterIndex<V = unknown, O = unknown> {
|
|
|
276
276
|
/** Content hash; equal schemas share one, so a rebuild reuses the index. */
|
|
277
277
|
signature: string;
|
|
278
278
|
}
|
|
279
|
-
type FilterDraftStep = "field" | "operator" | "value";
|
|
279
|
+
export type FilterDraftStep = "field" | "operator" | "value";
|
|
280
280
|
/**
|
|
281
281
|
* The in-flight filter. `cascaderPath` is kept SEPARATE from `path`: `path` is
|
|
282
282
|
* what the user chose, `cascaderPath` is where they were browsing when they
|
|
283
283
|
* chose it, and Back has to return there. Deriving it from `path` breaks the
|
|
284
284
|
* moment a deep search jumps across the tree.
|
|
285
285
|
*/
|
|
286
|
-
interface FilterDraft<V = unknown> {
|
|
286
|
+
export interface FilterDraft<V = unknown> {
|
|
287
287
|
step: FilterDraftStep;
|
|
288
288
|
/** `"ready"` = complete: the host writes it into the query and closes. The
|
|
289
289
|
* pure reducer decides that, not a click handler. */
|
|
@@ -298,7 +298,7 @@ interface FilterDraft<V = unknown> {
|
|
|
298
298
|
query: string;
|
|
299
299
|
}
|
|
300
300
|
/** Every user facing string. `stepAnnouncement` alone is headless-only. */
|
|
301
|
-
interface FilterLabels {
|
|
301
|
+
export interface FilterLabels {
|
|
302
302
|
addFilter: string;
|
|
303
303
|
advancedFilter: string;
|
|
304
304
|
/** The line above the builder's rows, "In this view, show records". */
|
|
@@ -421,10 +421,10 @@ interface FilterLabels {
|
|
|
421
421
|
issueSummary: (count: number) => string;
|
|
422
422
|
}
|
|
423
423
|
/** Why a node cannot run as written. `collectFilterIssues` produces these. */
|
|
424
|
-
type FilterIssueReason = "missing-operator" | "missing-value" | "incomplete-range" | "reversed-range" | "empty-group" |
|
|
424
|
+
export type FilterIssueReason = "missing-operator" | "missing-value" | "incomplete-range" | "reversed-range" | "empty-group" |
|
|
425
425
|
/** The one reason whose message is the validator's, not `FilterLabels`. */
|
|
426
426
|
"custom";
|
|
427
|
-
interface FilterIssue {
|
|
427
|
+
export interface FilterIssue {
|
|
428
428
|
nodeId: string;
|
|
429
429
|
/** WHICH cell to mark. Two reasons share the value cell; groups have none. */
|
|
430
430
|
column: "operator" | "value" | "group";
|
|
@@ -437,7 +437,7 @@ interface FilterIssue {
|
|
|
437
437
|
* SYNCHRONOUS: issues are collected in a pure memo pass, so a check that has to
|
|
438
438
|
* hit a server belongs in the consumer's own submit path.
|
|
439
439
|
*/
|
|
440
|
-
interface FilterValidateContext<V = unknown, O = unknown> {
|
|
440
|
+
export interface FilterValidateContext<V = unknown, O = unknown> {
|
|
441
441
|
value: V | undefined;
|
|
442
442
|
values: unknown[];
|
|
443
443
|
field: FilterField<V, O>;
|
|
@@ -448,5 +448,4 @@ interface FilterValidateContext<V = unknown, O = unknown> {
|
|
|
448
448
|
labels: FilterLabels;
|
|
449
449
|
}
|
|
450
450
|
//#endregion
|
|
451
|
-
export { AnyFilterEditor, FilterChangeDetails, FilterChangeReason, FilterCombinator, FilterCommitOptions, FilterDraft, FilterDraftStep, FilterEditor, FilterEditorHost, FilterEditorProps, FilterEditorRef, FilterEditorRegistry, FilterEmptyStateContext, FilterField, FilterGroupNode, FilterIndex, FilterIssue, FilterIssueReason, FilterLabels, FilterLoadContext, FilterLoadResult, FilterNode, FilterOperator, FilterOperatorArity, FilterOption, FilterOptionsState, FilterQuery, FilterRule, FilterValidateContext, FilterValueDisplayContext, FilterValueType };
|
|
452
451
|
//# sourceMappingURL=filters-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-types.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-types.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filters-types.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-types.tsx"],"mappings":";;YAQY;;;;;;;iBAQK,WAAW;EAC1B;EACA;;EAEA;EACA;EACA,OAAO;;EAEP;;;iBAIe,gBAAgB;EAC/B;EACA;EACA,YAAY;EACZ,OAAO,WAAW;;YAGR,WAAW,eAAe,WAAW,KAAK,gBAAgB;;YAG1D,YAAY,eAAe,gBAAgB;YAE3C;;iBAWK,oBAAoB,aAAa;EAChD,QAAQ;;EAER,MAAM,WAAW;;EAEjB,OAAO,YAAY,GAAG;;;;;;;YAYZ;iBAEK;EACf;EACA;;EAEA,QAAQ;;EAER;;EAEA;;;;;;;;YAaU;iBAEK,aAAa;EAC5B;EACA;EACA,OAAO,QAAM;EACb;EACA;EACA;;;;;;;;;;;EAWA;;EAEA,OAAO;;iBAGQ;;EAEf,QAAQ;EACR;;;iBAIe,iBAAiB;EAChC,OAAO,aAAa;EACpB;;EAEA;;;iBAIe,YAAY,aAAa;;EAExC;EACA;EACA,OAAO,QAAM;EACb;EACA;;EAEA;EACA,SAAS,YAAY,GAAG;;EAExB;EACA;EAEA,OAAO;EACP,UAAU,aAAa;;EAEvB,eACE,eACA,SAAS,sBACN,aAAa,OAAO,QAAQ,aAAa,OAAO,iBAAiB;;EAEtE,iBAAiB,qBAAqB,aAAa,OAAO,QAAQ,aAAa;;EAG/E,YAAY,qBAAqB,OAAO,YAAY,GAAG,OAAO;EAC9D;;EAGA,SAAS,gBAAgB,GAAG;EAC5B,eAAe,SAAS,0BAA0B,GAAG,OAAO,QAAM;;EAElE,aAAa,SAAS,0BAA0B,GAAG;;EAGnD;;EAEA;;;;;;;;;EASA;;;;;;;;;;;;;;EAcA;;;;;;;;;;;EAWA,YAAY,SAAS,sBAAsB,GAAG;;;;;;;;;;EAU9C;;EAGA;EACA;;;;;;;YAYU;iBAEK,mBAAmB;EAClC,OAAO,aAAa;EACpB;EACA;EACA;;EAEA;EACA,WAAW;EACX;EACA;;EAEA,UAAU,kBAAkB,aAAa;;iBAG1B;;EAEf;;iBAGe,kBAAkB,aAAa;EAC9C,OAAO,YAAY,GAAG;EACtB,UAAU;;EAEV,OAAO;EACP,gBAAgB,OAAO;EACvB,MAAM;;;;;;;EAON;IACE,KAAK,QAAM,YAAY;IACvB;;;EAGF,SAAS,QAAQ,GAAG,UAAU;EAC9B;;EAEA;EACA,SAAS,mBAAmB;EAC5B,QAAQ;;YAGE,aAAa,aAAa,eAAe,QAAM,cAAc,kBAAkB,GAAG;;;;;;YAOlF,kBAAkB,QAAM,cAAc;YAEtC,uBAAuB,eAAe;;;;;;;YAQtC,gBAAgB,aAAa,wBAErC,aAAa,GAAG,KAEhB;;iBAGa;EACf,QAAQ;;EAER;;EAEA;;EAEA;EACA;;iBAGe,0BAA0B,aAAa;EACtD,OAAO;;EAEP;EACA,OAAO,YAAY,GAAG;EACtB,UAAU;;EAEV,SAAS,aAAa;EACtB,QAAQ;;;iBAQO,YAAY,aAAa;;EAExC,QAAQ,YAAY,YAAY,GAAG;;EAEnC,YAAY,YAAY,YAAY,GAAG;;EAEvC,UAAU;;;;EAIV;IAAO,OAAO,YAAY,GAAG;IAAI;;;EAEjC,OAAO,YAAY,GAAG;;EAEtB;;YAOU;;;;;;;iBAQK,YAAY;EAC3B,MAAM;;;EAGN;;EAEA;;EAEA;EACA;EACA;EACA,OAAO;EACP;;;iBAQe;EACf;EACA;;EAEA;;EAEA;EACA;;EAEA;EACA;;;;EAIA;EACA;EACA;;EAEA;;EAEA;;EAEA,cAAc;;EAEd;;EAEA;EACA;EACA;EACA;;EAEA,WAAW,mBAAmB;EAC9B,aAAa,qBAAqB;EAClC,oBAAoB;;EAEpB,sBAAsB,eAAe,kBAAkB;;;;EAIvD,mBAAmB,eAAe,qBAAqB,kBAAkB;EACzE;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;;EAEA;;;EAGA,kBAAkB;EAClB;EACA;;EAEA;EACA;;EAEA,WAAW;EACX;EACA,cAAc;;EAEd;;;EAGA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;EAGA;;EAEA,wBAAwB,eAAe;EACvC,YAAY;EACZ;;EAEA,sBAAsB;;EAEtB;;EAEA,mBAAmB,MAAM,iBAAiB;EAC1C,oBAAoB;EACpB,aAAa;;EAEb,cAAc,iBAAiB;EAC/B,aAAa,cAAc;EAC3B,YAAY;EACZ,UAAU;EACV;;EAEA,UAAU;;EAEV;EACA;EACA;EACA;EACA;;EAEA,eAAe;;;YAQL;;;iBASK;EACf;;EAEA;EACA,QAAQ;;EAER;;;;;;;iBAQe,sBAAsB,aAAa;EAClD,OAAO;EACP;EACA,OAAO,YAAY,GAAG;EACtB,UAAU;;EAEV,OAAO;EACP,MAAM,WAAW;EACjB,QAAQ"}
|
|
@@ -10,7 +10,7 @@ import { DEFAULT_FILTER_OPERATORS, DEFAULT_FILTER_OPERATOR_LABELS, FilterOperato
|
|
|
10
10
|
import { FilterArityResolver, FilterValidateResolver, collectFilterIssues, copyFilterNodeTo, countFilterRules, createFilterGroup, createFilterQuery, createFilterRule, flattenFilterConditions, flattenFilterRules, isFilterQueryEmpty, isFilterRuleComplete, moveFilterNodeTo, pruneFilterQuery, unwrapFilterGroup, wrapFilterNodeInGroup } from "./filters-query.js";
|
|
11
11
|
import * as React$1 from "react";
|
|
12
12
|
//#region src/components/reui/filters/filters.d.ts
|
|
13
|
-
interface FiltersProps<V = unknown, O = unknown> {
|
|
13
|
+
export interface FiltersProps<V = unknown, O = unknown> {
|
|
14
14
|
/** The field schema. Nested via each field's own `fields`. */
|
|
15
15
|
fields: FilterField<V, O>[];
|
|
16
16
|
query?: FilterQuery<V>;
|
|
@@ -97,8 +97,8 @@ interface FiltersProps<V = unknown, O = unknown> {
|
|
|
97
97
|
className?: string;
|
|
98
98
|
children?: React$1.ReactNode;
|
|
99
99
|
}
|
|
100
|
-
declare function Filters<V = unknown, O = unknown>({ fields, query: controlledQuery, defaultQuery, onQueryChange, labels: labelsProp, operatorLabels: operatorLabelsProp, editors: editorsProp, variant, advancedMode, advancedAlign, reorderable, size, disabled, readOnly, onBeforeQueryChange, onConvertToAdvanced, menuClassName, fieldPickerClassName, pathCollapse, maxPathSegments, trigger, showClear, renderValue, renderChip, renderEmpty, className, children }: FiltersProps<V, O>): React$1.JSX.Element;
|
|
101
|
-
interface FiltersRowProps {
|
|
100
|
+
export declare function Filters<V = unknown, O = unknown>({ fields, query: controlledQuery, defaultQuery, onQueryChange, labels: labelsProp, operatorLabels: operatorLabelsProp, editors: editorsProp, variant, advancedMode, advancedAlign, reorderable, size, disabled, readOnly, onBeforeQueryChange, onConvertToAdvanced, menuClassName, fieldPickerClassName, pathCollapse, maxPathSegments, trigger, showClear, renderValue, renderChip, renderEmpty, className, children }: FiltersProps<V, O>): React$1.JSX.Element;
|
|
101
|
+
export interface FiltersRowProps {
|
|
102
102
|
trigger?: React$1.ReactNode;
|
|
103
103
|
showClear?: boolean;
|
|
104
104
|
className?: string;
|
|
@@ -108,7 +108,7 @@ interface FiltersRowProps {
|
|
|
108
108
|
* every segment of every chip its own tab stop. There is NO combinator here,
|
|
109
109
|
* because a chip row can draw a word between two pills but not a parenthesis.
|
|
110
110
|
*/
|
|
111
|
-
declare function FiltersRow({ trigger, showClear, className }: FiltersRowProps): React$1.JSX.Element;
|
|
111
|
+
export declare function FiltersRow({ trigger, showClear, className }: FiltersRowProps): React$1.JSX.Element;
|
|
112
112
|
//#endregion
|
|
113
|
-
export { type AnyFilterEditor, DEFAULT_FILTER_EDITORS, DEFAULT_FILTER_LABELS, DEFAULT_FILTER_OPERATORS, DEFAULT_FILTER_OPERATOR_LABELS, FilterAdvancedRow, type FilterArityResolver, type FilterChangeDetails, type FilterChangeReason, FilterChip, type FilterCombinator, type FilterCommitOptions, type FilterDraft, type FilterDraftStep, type FilterEditor, type FilterEditorHost, type FilterEditorProps, type FilterEditorRef, type FilterEditorRegistry, type FilterEmptyStateContext, type FilterField, FilterFieldPicker, type FilterGroupNode, type FilterIndex, type FilterIssue, type FilterIssueReason, type FilterLabels, type FilterLoadContext, type FilterLoadResult, type FilterNode, type FilterOperator, type FilterOperatorArity, FilterOperatorPopover, type FilterOption, type FilterOptionsState, type FilterQuery, type FilterRule, FilterRuleMenuItems, type FilterValidateContext, type FilterValidateResolver, type FilterValueDisplayContext, FilterValuePopover, type FilterValueType,
|
|
113
|
+
export { type AnyFilterEditor, DEFAULT_FILTER_EDITORS, DEFAULT_FILTER_LABELS, DEFAULT_FILTER_OPERATORS, DEFAULT_FILTER_OPERATOR_LABELS, FilterAdvancedRow, type FilterArityResolver, type FilterChangeDetails, type FilterChangeReason, FilterChip, type FilterCombinator, type FilterCommitOptions, type FilterDraft, type FilterDraftStep, type FilterEditor, type FilterEditorHost, type FilterEditorProps, type FilterEditorRef, type FilterEditorRegistry, type FilterEmptyStateContext, type FilterField, FilterFieldPicker, type FilterGroupNode, type FilterIndex, type FilterIssue, type FilterIssueReason, type FilterLabels, type FilterLoadContext, type FilterLoadResult, type FilterNode, type FilterOperator, type FilterOperatorArity, FilterOperatorPopover, type FilterOption, type FilterOptionsState, type FilterQuery, type FilterRule, FilterRuleMenuItems, type FilterValidateContext, type FilterValidateResolver, type FilterValueDisplayContext, FilterValuePopover, type FilterValueType, FiltersAdvanced, FiltersAdvancedPanel, FiltersBuilder, collectFilterIssues, copyFilterNodeTo, countFilterRules, createFilterGroup, createFilterQuery, createFilterRule, filterReadOnlyProps, flattenFilterConditions, flattenFilterRules, isFilterLocked, isFilterQueryEmpty, isFilterRuleComplete, moveFilterNodeTo, pruneFilterQuery, unwrapFilterGroup, useFilterActions, useFilterChipAutoOpen, useFilterChipFocused, useFilterFocus, useFilterFocusEmpty, useFilterFocusStore, useFilterOptions, useFilterRender, useFilterRuleDisplay, useFilterSegmentFocus, useFilterState, useFilterValueResolution, wrapFilterNodeInGroup };
|
|
114
114
|
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters.tsx"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"filters.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters.tsx"],"mappings":";;;;;;;;;;;;iBAqJiB,aAAa,aAAa;;EAEzC,QAAQ,YAAY,GAAG;EAEvB,QAAQ,YAAY;EACpB,eAAe,YAAY;EAC3B,iBAAiB,OAAO,YAAY,IAAI,SAAS,oBAAoB,GAAG;EAExE,SAAS,QAAQ;;EAEjB,iBAAiB;;EAEjB,UAAU;;;;;;EAOV;;EAEA;;;;;EAKA;;;;;;;EAOA;;;;;;;;EASA;EACA;EACA;;;;;;;;;;EAWA,uBACE,OAAO,YAAY,IACnB,SAAS,oBAAoB,GAAG;;;;;EAOlC;;;;;EAMA;EACA;;;;;;EAOA,eAAe;;;;;EAKf;;EAGA,UAAU,QAAM;;EAEhB;EAEA,eAAe,SAAS,0BAA0B,GAAG,OAAO,QAAM;EAClE,cAAc,MAAM,WAAW,OAAO,QAAM;;;;;EAK5C,eAAe,SAAS,4BAA4B,QAAM;EAE1D;EACA,WAAW,QAAM;;wBAGH,QAAQ,aAAa,eACnC,QACA,OAAO,iBACP,cACA,eACA,QAAQ,YACR,gBAAgB,oBAChB,SAAS,aACT,SACA,cACA,eACA,aACA,MACA,UACA,UACA,qBACA,qBACA,eACA,sBACA,cACA,iBACA,SACA,WACA,aACA,YACA,aACA,WACA,YACC,aAAa,GAAG,KAAE,QAAA,IAAA;iBAuoBJ;EACf,UAAU,QAAM;EAChB;EACA;;;;;;;wBAQc,aAAa,SAAS,WAAW,aAAa,kBAAe,QAAA,IAAA"}
|
|
@@ -12,8 +12,8 @@ import { FilterAdvancedRow, FiltersAdvanced, FiltersAdvancedPanel } from "./filt
|
|
|
12
12
|
import { filterDraftReducer, isFilterDraftCommittable } from "./filters-draft.js";
|
|
13
13
|
import * as React$1 from "react";
|
|
14
14
|
import { cn } from "@kumix/utils";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
15
|
import { cva } from "class-variance-authority";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
//#region src/components/reui/filters/filters.tsx
|
|
18
18
|
const filtersBarVariants = cva("flex flex-wrap items-center", {
|
|
19
19
|
variants: { size: {
|