@kumix/ui 0.3.11 → 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 +12 -12
- 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 +7 -8
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +1 -1
- 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/context.d.ts +9 -10
- package/dist/components/motion/combobox/context.d.ts.map +1 -1
- 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 +1 -1
- 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 +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 +3 -4
- package/dist/components/motion/input.d.ts.map +1 -1
- package/dist/components/motion/liquid.d.ts +6 -7
- package/dist/components/motion/liquid.d.ts.map +1 -1
- 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 +2 -3
- package/dist/components/motion/multi-select/content.d.ts.map +1 -1
- package/dist/components/motion/multi-select/context.d.ts +9 -10
- package/dist/components/motion/multi-select/context.d.ts.map +1 -1
- package/dist/components/motion/multi-select/list.d.ts +12 -13
- package/dist/components/motion/multi-select/list.d.ts.map +1 -1
- package/dist/components/motion/multi-select/list.js +1 -1
- package/dist/components/motion/multi-select/trigger.d.ts +6 -7
- package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
- package/dist/components/motion/multi-select/trigger.js +1 -1
- 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 +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/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-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.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/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/data-grid/data-grid-column-filter.js +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 +9 -6
- package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-i18n.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-pagination.js +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +28 -28
- package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
- 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-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/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 +3 -3
- package/dist/components/ui/item.js +1 -1
- package/dist/components/ui/marker.d.ts +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 +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.d.ts +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-52UUYPbr.d.ts → data-grid-i18n-TQR2PZlU.d.ts} +1 -13
- 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/package.json +3 -3
- package/dist/data-grid-i18n-52UUYPbr.d.ts.map +0 -1
|
@@ -2,7 +2,7 @@ import { FilterField, FilterOperator, FilterRule } from "./filters-types.js";
|
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
//#region src/components/reui/filters/filters-chip.d.ts
|
|
4
4
|
/** Everything a rule needs in order to be READ, in either chrome. */
|
|
5
|
-
interface FilterRuleDisplay {
|
|
5
|
+
export interface FilterRuleDisplay {
|
|
6
6
|
pathText: string;
|
|
7
7
|
pathLabel: React$1.ReactNode;
|
|
8
8
|
/** Whether `pathLabel` shows fewer names than the path has, so the cell's
|
|
@@ -26,11 +26,11 @@ interface FilterRuleDisplay {
|
|
|
26
26
|
}
|
|
27
27
|
/** How one rule reads, resolved once and shared by both chromes, so a consumer
|
|
28
28
|
* `renderValue`, the field's own and the built-in cannot disagree. */
|
|
29
|
-
declare function useFilterRuleDisplay<V, O>(rule: FilterRule<V>, field: FilterField<V, O> | undefined, operator: FilterOperator | undefined): FilterRuleDisplay;
|
|
29
|
+
export declare function useFilterRuleDisplay<V, O>(rule: FilterRule<V>, field: FilterField<V, O> | undefined, operator: FilterOperator | undefined): FilterRuleDisplay;
|
|
30
30
|
/** The value host: the editor in a popover anchored to the value segment, and
|
|
31
31
|
* BOTH routes end here. The operator popover used to draw the editor itself,
|
|
32
32
|
* so a handed-off panel sat a segment's width left of a second press. */
|
|
33
|
-
interface FilterValuePopoverProps<V = unknown, O = unknown> {
|
|
33
|
+
export interface FilterValuePopoverProps<V = unknown, O = unknown> {
|
|
34
34
|
rule: FilterRule<V>;
|
|
35
35
|
field: FilterField<V, O>;
|
|
36
36
|
operator: FilterOperator | undefined;
|
|
@@ -39,33 +39,33 @@ interface FilterValuePopoverProps<V = unknown, O = unknown> {
|
|
|
39
39
|
trigger: React$1.ReactElement;
|
|
40
40
|
className?: string;
|
|
41
41
|
}
|
|
42
|
-
declare function FilterValuePopover<V, O>({ rule, field, operator, trigger, className }: FilterValuePopoverProps<V, O>): React$1.JSX.Element;
|
|
42
|
+
export declare function FilterValuePopover<V, O>({ rule, field, operator, trigger, className }: FilterValuePopoverProps<V, O>): React$1.JSX.Element;
|
|
43
43
|
/** The condition menu, and the step after it. The list is the cascader run
|
|
44
44
|
* flat: the old hand-rolled one marked the keyboard HIGHLIGHT with
|
|
45
45
|
* `aria-selected` and had no Home, End or typeahead. It HANDS OFF to the
|
|
46
46
|
* value popover once its own panel has left the DOM; advancing in place
|
|
47
47
|
* anchored the editor to the CONDITION segment and doubled up in the row. */
|
|
48
|
-
interface FilterOperatorPopoverProps<V = unknown, O = unknown> {
|
|
48
|
+
export interface FilterOperatorPopoverProps<V = unknown, O = unknown> {
|
|
49
49
|
rule: FilterRule<V>;
|
|
50
50
|
field: FilterField<V, O>;
|
|
51
51
|
trigger: React$1.ReactElement;
|
|
52
52
|
className?: string;
|
|
53
53
|
}
|
|
54
|
-
declare function FilterOperatorPopover<V, O>({ rule, field, trigger, className }: FilterOperatorPopoverProps<V, O>): React$1.JSX.Element;
|
|
54
|
+
export declare function FilterOperatorPopover<V, O>({ rule, field, trigger, className }: FilterOperatorPopoverProps<V, O>): React$1.JSX.Element;
|
|
55
55
|
/** The keyboard path to a CROSS-GROUP move: Alt+Arrow reorders within the
|
|
56
56
|
* owning group only and Wrap creates a NEW group, so the drag layer's
|
|
57
57
|
* cross-group move had no keyboard parity. Numbered in document order. */
|
|
58
|
-
declare function FilterMoveToMenuItems({ nodeId }: {
|
|
58
|
+
export declare function FilterMoveToMenuItems({ nodeId }: {
|
|
59
59
|
nodeId: string;
|
|
60
60
|
}): React$1.JSX.Element | null;
|
|
61
61
|
/** The per-rule actions, without the trigger: the chip's kebab and a builder
|
|
62
62
|
* row's kebab act on the same rule. `allowGrouping` is the CHROME's answer;
|
|
63
63
|
* "Convert to advanced filter" is the CONSUMER's, and hides itself there. */
|
|
64
|
-
declare function FilterRuleMenuItems({ ruleId, allowGrouping }: {
|
|
64
|
+
export declare function FilterRuleMenuItems({ ruleId, allowGrouping }: {
|
|
65
65
|
ruleId: string;
|
|
66
66
|
allowGrouping?: boolean;
|
|
67
67
|
}): React$1.JSX.Element;
|
|
68
|
-
interface FilterChipProps<V = unknown> {
|
|
68
|
+
export interface FilterChipProps<V = unknown> {
|
|
69
69
|
rule: FilterRule<V>;
|
|
70
70
|
index: number;
|
|
71
71
|
}
|
|
@@ -73,7 +73,6 @@ interface FilterChipProps<V = unknown> {
|
|
|
73
73
|
* context is stable, the focus store is subscribed to a boolean and the query
|
|
74
74
|
* shares structure, so editing one filter of forty re-renders one chip. */
|
|
75
75
|
declare function FilterChipImpl<V, O>({ rule, index }: FilterChipProps<V>): React$1.JSX.Element;
|
|
76
|
-
declare const FilterChip: typeof FilterChipImpl;
|
|
76
|
+
export declare const FilterChip: typeof FilterChipImpl;
|
|
77
77
|
//#endregion
|
|
78
|
-
export { FilterChip, FilterChipProps, FilterMoveToMenuItems, FilterOperatorPopover, FilterOperatorPopoverProps, FilterRuleDisplay, FilterRuleMenuItems, FilterValuePopover, FilterValuePopoverProps, useFilterRuleDisplay };
|
|
79
78
|
//# sourceMappingURL=filters-chip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-chip.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-chip.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"filters-chip.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-chip.tsx"],"mappings":";;;;iBAgLiB;EACf;EACA,WAAW,QAAM;;;EAGjB;EACA;EACA,YAAY,QAAM;;;;;;;;EAQlB;;;;EAIA;EACA;;;;wBAKc,qBAAqB,GAAG,GACtC,MAAM,WAAW,IACjB,OAAO,YAAY,GAAG,gBACtB,UAAU,6BACT;;;;iBAkNc,wBAAwB,aAAa;EACpD,MAAM,WAAW;EACjB,OAAO,YAAY,GAAG;EACtB,UAAU;;;EAGV,SAAS,QAAM;EACf;;wBAGc,mBAAmB,GAAG,KACpC,MACA,OACA,UACA,SACA,aACC,wBAAwB,GAAG,KAAE,QAAA,IAAA;;;;;;iBA0Ef,2BAA2B,aAAa;EACvD,MAAM,WAAW;EACjB,OAAO,YAAY,GAAG;EACtB,SAAS,QAAM;EACf;;wBAGc,sBAAsB,GAAG,KACvC,MACA,OACA,SACA,aACC,2BAA2B,GAAG,KAAE,QAAA,IAAA;;;;wBA0JnB,wBAAwB;EAAY;IAAgB,QAAA,IAAA;;;;wBAyEpD,sBACd,QAGA;EAEA;EACA;IACD,QAAA,IAAA;iBAmDgB,gBAAgB;EAC/B,MAAM,WAAW;EACjB;;;;;iBAMO,eAAe,GAAG,KAAK,MAAM,SAAS,gBAAgB,KAAE,QAAA,IAAA;qBAqNpD,mBAAkD"}
|
|
@@ -11,8 +11,8 @@ import { FilterMenu, useFilterOptions, useFilterValueResolution } from "./filter
|
|
|
11
11
|
import { findFilterNode, isFilterGroup } from "./filters-query.js";
|
|
12
12
|
import * as React$1 from "react";
|
|
13
13
|
import { cn } from "@kumix/utils";
|
|
14
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
14
|
import { ArrowLeftRightIcon, ChevronRightIcon, CopyIcon, CornerDownRightIcon, EllipsisVerticalIcon, LayersIcon, SlidersHorizontalIcon, Trash2Icon, XIcon } from "lucide-react";
|
|
15
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
//#region src/components/reui/filters/filters-chip.tsx
|
|
17
17
|
/** The ref half of `autoFocusProps`: a CALLBACK ref, the one shape an editor
|
|
18
18
|
* can spread onto any element without a cast, and a no-op here. */
|
|
@@ -19,7 +19,7 @@ import * as React$1 from "react";
|
|
|
19
19
|
* BOUNDARY - `disabled` and `readOnly` are enforced here, not at the call
|
|
20
20
|
* sites that draw the buttons, so a route added next month is refused by
|
|
21
21
|
* construction rather than by remembering. See `isFilterLocked`. */
|
|
22
|
-
interface FilterActionsContextValue<V = unknown, O = unknown> {
|
|
22
|
+
export interface FilterActionsContextValue<V = unknown, O = unknown> {
|
|
23
23
|
/** Normalized schema. Also on the state context, from the same memo. */
|
|
24
24
|
index: FilterIndex<V, O>;
|
|
25
25
|
labels: FilterLabels;
|
|
@@ -117,7 +117,7 @@ interface FilterActionsContextValue<V = unknown, O = unknown> {
|
|
|
117
117
|
* disallowed on the button, group and toolbar roles, so the BAR says it in
|
|
118
118
|
* prose through `labels.readOnly`. The refusal itself is enforced once, where
|
|
119
119
|
* all fourteen query writes pass through `emit` in `filters.tsx`. */
|
|
120
|
-
declare function isFilterLocked(state: {
|
|
120
|
+
export declare function isFilterLocked(state: {
|
|
121
121
|
disabled: boolean;
|
|
122
122
|
readOnly: boolean;
|
|
123
123
|
}): boolean;
|
|
@@ -125,7 +125,7 @@ declare function isFilterLocked(state: {
|
|
|
125
125
|
* bar is disabled, because the native attribute already says it. A
|
|
126
126
|
* conditional spread, not explicit `undefined`s: `aria-disabled="false"` on
|
|
127
127
|
* an enabled control is noise, and `data-readonly` is a presence hook. */
|
|
128
|
-
declare function filterReadOnlyProps(state: {
|
|
128
|
+
export declare function filterReadOnlyProps(state: {
|
|
129
129
|
disabled: boolean;
|
|
130
130
|
readOnly: boolean;
|
|
131
131
|
}): {
|
|
@@ -135,7 +135,7 @@ declare function filterReadOnlyProps(state: {
|
|
|
135
135
|
/** The two shadcn button sizes one filters size resolves to. Two rungs because
|
|
136
136
|
* shadcn ships a separate ladder for labelled and for icon-only buttons, and
|
|
137
137
|
* pairing them keeps a row's kebab as tall as the cell beside it. */
|
|
138
|
-
interface FilterControlSizes {
|
|
138
|
+
export interface FilterControlSizes {
|
|
139
139
|
/** Labelled buttons: the row cells, both triggers, the panel footer. */
|
|
140
140
|
button: "sm" | "default";
|
|
141
141
|
/** Icon-only buttons, and also the CHIP's height: a chip is an
|
|
@@ -148,14 +148,14 @@ interface FilterControlSizes {
|
|
|
148
148
|
* consumer-composed chrome uses the same ladder as the shipped one. The
|
|
149
149
|
* fallback is for JavaScript callers: a `"lg"` TypeScript would have rejected
|
|
150
150
|
* must still draw buttons rather than throw on `.button`. */
|
|
151
|
-
declare function filterControlSizes(state: {
|
|
151
|
+
export declare function filterControlSizes(state: {
|
|
152
152
|
size: "sm" | "default";
|
|
153
153
|
}): FilterControlSizes;
|
|
154
154
|
declare const FilterActionsContext: React$1.Context<FilterActionsContextValue<unknown, unknown> | null>;
|
|
155
|
-
declare function useFilterActions<V = unknown, O = unknown>(): FilterActionsContextValue<V, O>;
|
|
155
|
+
export declare function useFilterActions<V = unknown, O = unknown>(): FilterActionsContextValue<V, O>;
|
|
156
156
|
/** Volatile by construction: typing one character into a value editor
|
|
157
157
|
* republishes it. Subscribe from the bar and the panel, never from a chip. */
|
|
158
|
-
interface FilterStateContextValue<V = unknown> {
|
|
158
|
+
export interface FilterStateContextValue<V = unknown> {
|
|
159
159
|
query: FilterQuery<V>;
|
|
160
160
|
draft: FilterDraft<V> | null;
|
|
161
161
|
ruleCount: number;
|
|
@@ -169,19 +169,19 @@ interface FilterStateContextValue<V = unknown> {
|
|
|
169
169
|
announcementSeq: number;
|
|
170
170
|
}
|
|
171
171
|
declare const FilterStateContext: React$1.Context<FilterStateContextValue<unknown> | null>;
|
|
172
|
-
declare function useFilterState<V = unknown>(): FilterStateContextValue<V>;
|
|
172
|
+
export declare function useFilterState<V = unknown>(): FilterStateContextValue<V>;
|
|
173
173
|
/** Consumer render overrides, on their own channel. They must be
|
|
174
174
|
* always-current closures yet change identity on every parent render when
|
|
175
175
|
* written inline, so isolating them re-renders only what calls them. */
|
|
176
|
-
interface FilterRenderContextValue<V = unknown, O = unknown> {
|
|
176
|
+
export interface FilterRenderContextValue<V = unknown, O = unknown> {
|
|
177
177
|
renderValue?: (context: FilterValueDisplayContext<V, O>) => React$1.ReactNode;
|
|
178
178
|
renderChip?: (rule: FilterRule<V>) => React$1.ReactNode;
|
|
179
179
|
renderEmpty?: (context: FilterEmptyStateContext) => React$1.ReactNode;
|
|
180
180
|
}
|
|
181
181
|
declare const FilterRenderContext: React$1.Context<FilterRenderContextValue<unknown, unknown>>;
|
|
182
|
-
declare function useFilterRender<V = unknown, O = unknown>(): FilterRenderContextValue<V, O>;
|
|
182
|
+
export declare function useFilterRender<V = unknown, O = unknown>(): FilterRenderContextValue<V, O>;
|
|
183
183
|
/** Which chip currently owns the row's single tab stop. */
|
|
184
|
-
interface FilterFocus {
|
|
184
|
+
export interface FilterFocus {
|
|
185
185
|
id: string | null;
|
|
186
186
|
/** Which cell inside that row, for restoring focus after an edit. A chip
|
|
187
187
|
* draws only `field`, `operator`, `value` and `menu`; the rest are advanced
|
|
@@ -198,16 +198,16 @@ interface FilterFocus {
|
|
|
198
198
|
* bar to move one outline. The SELECTOR hooks below each narrow to one value,
|
|
199
199
|
* so arrowing across forty chips re-renders two components. `useFilterFocus`
|
|
200
200
|
* is the exception: it returns the whole snapshot. */
|
|
201
|
-
interface FilterFocusStore {
|
|
201
|
+
export interface FilterFocusStore {
|
|
202
202
|
subscribe: (onStoreChange: () => void) => () => void;
|
|
203
203
|
getSnapshot: () => FilterFocus;
|
|
204
204
|
/** No-ops when nothing changed. */
|
|
205
205
|
set: (next: FilterFocus) => void;
|
|
206
206
|
}
|
|
207
|
-
declare function createFilterFocusStore(): FilterFocusStore;
|
|
207
|
+
export declare function createFilterFocusStore(): FilterFocusStore;
|
|
208
208
|
declare const FilterFocusContext: React$1.Context<FilterFocusStore>;
|
|
209
|
-
declare const FilterReorderProvider: React$1.Provider<boolean>;
|
|
210
|
-
declare function useFilterReorderable(): boolean;
|
|
209
|
+
export declare const FilterReorderProvider: React$1.Provider<boolean>;
|
|
210
|
+
export declare function useFilterReorderable(): boolean;
|
|
211
211
|
/** Which rules the user has actually edited the VALUE of, which decides WHEN
|
|
212
212
|
* an error may appear: "Add filter" mints a row with no value, so flagging
|
|
213
213
|
* every invalid row turns the builder red before the user did anything wrong.
|
|
@@ -216,7 +216,7 @@ declare function useFilterReorderable(): boolean;
|
|
|
216
216
|
* user has committed a value. An external store for the focus store's reason,
|
|
217
217
|
* keyed by rule id and never pruned: a stale id costs one Set entry, and
|
|
218
218
|
* reconciling against the query on every commit is hot-path work. */
|
|
219
|
-
interface FilterRowStateStore {
|
|
219
|
+
export interface FilterRowStateStore {
|
|
220
220
|
subscribe: (listener: () => void) => () => void;
|
|
221
221
|
/** Bumped on every write. What a memo depends on, since the Sets are mutable. */
|
|
222
222
|
version: () => number;
|
|
@@ -237,31 +237,31 @@ interface FilterRowStateStore {
|
|
|
237
237
|
/** Forgets everything. The bar's own Clear all, and a whole-tree replace. */
|
|
238
238
|
reset: () => void;
|
|
239
239
|
}
|
|
240
|
-
declare function createFilterRowStateStore(): FilterRowStateStore;
|
|
241
|
-
declare const FilterRowStateProvider: React$1.Provider<FilterRowStateStore>;
|
|
240
|
+
export declare function createFilterRowStateStore(): FilterRowStateStore;
|
|
241
|
+
export declare const FilterRowStateProvider: React$1.Provider<FilterRowStateStore>;
|
|
242
242
|
/** The store itself, for handlers that write without subscribing. */
|
|
243
|
-
declare function useFilterRowStateStore(): FilterRowStateStore;
|
|
243
|
+
export declare function useFilterRowStateStore(): FilterRowStateStore;
|
|
244
244
|
/** Whether THIS rule is still waiting for its attribute. */
|
|
245
|
-
declare function useFilterRowPending(id: string): boolean;
|
|
245
|
+
export declare function useFilterRowPending(id: string): boolean;
|
|
246
246
|
/** Whether THIS rule may show an error yet. */
|
|
247
|
-
declare function useFilterTouched(id: string): boolean;
|
|
247
|
+
export declare function useFilterTouched(id: string): boolean;
|
|
248
248
|
/** The whole focus snapshot, so the caller re-renders on EVERY move anywhere
|
|
249
249
|
* in the row. A chip wants `useFilterChipFocused` or `useFilterSegmentFocus`
|
|
250
250
|
* below instead. */
|
|
251
|
-
declare function useFilterFocus(): FilterFocus;
|
|
251
|
+
export declare function useFilterFocus(): FilterFocus;
|
|
252
252
|
/** The store itself, for event handlers that write without subscribing. */
|
|
253
|
-
declare function useFilterFocusStore(): FilterFocusStore;
|
|
253
|
+
export declare function useFilterFocusStore(): FilterFocusStore;
|
|
254
254
|
/** The segment of THIS chip that should open itself, or null. */
|
|
255
|
-
declare function useFilterChipAutoOpen(id: string): FilterFocus["segment"] | null;
|
|
255
|
+
export declare function useFilterChipAutoOpen(id: string): FilterFocus["segment"] | null;
|
|
256
256
|
/** Whether the row holds no focus, so the first chip keeps the tab stop. */
|
|
257
|
-
declare function useFilterFocusEmpty(): boolean;
|
|
257
|
+
export declare function useFilterFocusEmpty(): boolean;
|
|
258
258
|
/** Whether THIS chip owns the row's tab stop. */
|
|
259
|
-
declare function useFilterChipFocused(id: string): boolean;
|
|
259
|
+
export declare function useFilterChipFocused(id: string): boolean;
|
|
260
260
|
/** Which segment of THIS rule owns the tab stop, or null when another rule
|
|
261
261
|
* does. A chip needs one boolean, but an advanced row is a grid ROW whose tab
|
|
262
262
|
* stop is a (row, column) pair, and the column has to come from this store
|
|
263
263
|
* too or the chromes disagree about where focus is after an edit. */
|
|
264
|
-
declare function useFilterSegmentFocus(id: string): FilterFocus["segment"];
|
|
264
|
+
export declare function useFilterSegmentFocus(id: string): FilterFocus["segment"];
|
|
265
265
|
/** The instance-wide value-to-label store. `useFilterOptions` caches per HOOK
|
|
266
266
|
* INSTANCE, and a chip's display and its editor are two instances, so a
|
|
267
267
|
* `loadOptions`-only field rendered its raw id the moment the menu closed.
|
|
@@ -269,7 +269,7 @@ declare function useFilterSegmentFocus(id: string): FilterFocus["segment"];
|
|
|
269
269
|
* here too. External rather than React state because labels arrive from
|
|
270
270
|
* effects and promises at their own pace, and the version bumps only when a
|
|
271
271
|
* NEW label lands, so a subscriber re-renders once per page of results. */
|
|
272
|
-
interface FilterResolutionStore {
|
|
272
|
+
export interface FilterResolutionStore {
|
|
273
273
|
subscribe: (onStoreChange: () => void) => () => void;
|
|
274
274
|
getVersion: () => number;
|
|
275
275
|
/** The option behind a stored value, or undefined while unresolved. */
|
|
@@ -284,7 +284,7 @@ interface FilterResolutionStore {
|
|
|
284
284
|
/** Releases claims after a FAILED resolve, so a later mount may retry. */
|
|
285
285
|
release: (fieldKey: string, values: readonly string[]) => void;
|
|
286
286
|
}
|
|
287
|
-
declare function createFilterResolutionStore(): FilterResolutionStore;
|
|
287
|
+
export declare function createFilterResolutionStore(): FilterResolutionStore;
|
|
288
288
|
//#endregion
|
|
289
|
-
export { FilterActionsContext,
|
|
289
|
+
export { FilterActionsContext, FilterFocusContext, FilterRenderContext, FilterStateContext };
|
|
290
290
|
//# sourceMappingURL=filters-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-context.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-context.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"filters-context.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-context.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;iBA6CiB,0BAA0B,aAAa;;EAEtD,OAAO,YAAY,GAAG;EACtB,QAAQ;EACR,iBAAiB,OAAO,iBAAiB;EACzC,SAAS;EACT;;EAEA;;EAEA;;EAGA;;;;;EAMA;EACA;;;;;;EAOA;;EAGA,cAAc;EACd;;EAGA,mBAAmB,OAAO,YAAY,GAAG,OAAO;EAChD,gBACE,OAAO,YAAY,GAAG,IACtB,UAAU,+BACP,aAAa,GAAG;;EAErB,YAAY;;;;;EAMZ,UAAU,MAAM,WAAW,IAAI;;;;;;;EAO/B,WAAW,mBAAmB,aAAa;EAC3C,aAAa,YAAY,SAAS,QAAQ,KAAK,WAAW;;;;;EAK1D,aAAa;EACb,gBAAgB;EAChB,aAAa;;EAEb,WAAW,YAAY;;EAEvB,aAAa,YAAY,kBAAkB;;;;;EAK3C,aAAa,YAAY,kBAAkB;;EAE3C,kBAAkB,YAAY,aAAa;;EAE3C,cAAc;EACd,gBAAgB,iBAAiB,YAAY;EAC7C,mBAAmB;EACnB;EAEA;EACA,YAAY,YAAY,MAAM;EAC9B;EACA,gBAAgB,QAAQ,kBAAkB;;;;;EAM1C,WAAW;;EAGX,gBAAgB,YAAY;EAC5B,gBAAgB,YAAY;;EAE5B;;;;;;;;;;;;;;;;wBAqBc,eAAe;EAAS;EAAmB;;;;;;wBAQ3C,oBAAoB;EAAS;EAAmB;;;;;;;;iBAY/C;;EAEf;;;;;EAKA;;;;;;wBAuBc,mBAAmB;EAAS;IAA2B;cAIjE,sBAAoB,QAAA,QAAA;wBAEV,iBAAiB,aAAa,gBAAgB,0BAA0B,GAAG;;;iBAc1E,wBAAwB;EACvC,OAAO,YAAY;EACnB,OAAO,YAAY;EACnB;;EAEA;;;;;;EAMA;;cAGI,oBAAkB,QAAA,QAAA;wBAER,eAAe,gBAAgB,wBAAwB;;;;iBAetD,yBAAyB,aAAa;EACrD,eAAe,SAAS,0BAA0B,GAAG,OAAO,QAAM;EAClE,cAAc,MAAM,WAAW,OAAO,QAAM;EAC5C,eAAe,SAAS,4BAA4B,QAAM;;cAGtD,qBAAmB,QAAA,QAAA;wBAET,gBAAgB,aAAa,gBAAgB,yBAAyB,GAAG;;iBASxE;EACf;;;;;EAKA;;;;EAcA;;;;;;;iBAQe;EACf,YAAY;EACZ,mBAAmB;;EAEnB,MAAM,MAAM;;wBAKE,0BAA0B;cAmCpC,oBAAkB,QAAA,QAAA;qBAYX,uBAAqB,QAAA;wBAElB;;;;;;;;;iBAgBC;EACf,YAAY;;EAEZ;;EAEA,MAAM;EACN,OAAO;;;;EAIP,SAAS;;;;EAIT,YAAY;EACZ,cAAc;;EAEd,iBAAiB;;EAEjB;;wBAGc,6BAA6B;qBAgDhC,wBAAsB,QAAA,SAAA;;wBAGnB,0BAA0B;;wBAK1B,oBAAoB;;wBAUpB,iBAAiB;;;;wBAYjB,kBAAkB;;wBAMlB,uBAAuB;;wBAKvB,sBAAsB,aAAa;;wBAanC;;wBAUA,qBAAqB;;;;;wBAarB,sBAAsB,aAAa;;;;;;;;iBAuBlC;EACf,YAAY;EACZ;;EAEA,MAAM,kBAAkB,kBAAkB;;EAE1C,MAAM,kBAAkB,kBAAkB;;;;;EAK1C,QAAQ,kBAAkB;;EAE1B,UAAU,kBAAkB;;wBAGd,+BAA+B"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* fixed day. An absolute pick still stores one day, because "on 14 August"
|
|
6
6
|
* does mean that day.
|
|
7
7
|
*/
|
|
8
|
-
interface FilterDateValue {
|
|
8
|
+
export interface FilterDateValue {
|
|
9
9
|
/** An absolute day, `yyyy-MM-dd`. Mutually exclusive with `relative`. */
|
|
10
10
|
date?: string;
|
|
11
11
|
/** A token re-resolved on every read. */
|
|
@@ -14,30 +14,29 @@ interface FilterDateValue {
|
|
|
14
14
|
time?: string;
|
|
15
15
|
}
|
|
16
16
|
/** A calendar offset from now, resolved at read time. */
|
|
17
|
-
interface FilterRelativeDate {
|
|
17
|
+
export interface FilterRelativeDate {
|
|
18
18
|
unit: "day" | "week" | "month" | "year";
|
|
19
19
|
offset: number;
|
|
20
20
|
}
|
|
21
|
-
declare const FILTER_DATE_FORMAT = "yyyy-MM-dd";
|
|
22
|
-
declare const RELATIVE_TODAY: FilterRelativeDate;
|
|
23
|
-
declare const RELATIVE_TOMORROW: FilterRelativeDate;
|
|
24
|
-
declare const RELATIVE_YESTERDAY: FilterRelativeDate;
|
|
25
|
-
declare const RELATIVE_NEXT_WEEK: FilterRelativeDate;
|
|
26
|
-
declare function applyFilterRelative(relative: FilterRelativeDate, now: Date): Date;
|
|
27
|
-
declare function resolveFilterDate(value: FilterDateValue | undefined, now?: Date): Date | null;
|
|
28
|
-
declare function toFilterDateValue(date: Date, time?: string): FilterDateValue;
|
|
21
|
+
export declare const FILTER_DATE_FORMAT = "yyyy-MM-dd";
|
|
22
|
+
export declare const RELATIVE_TODAY: FilterRelativeDate;
|
|
23
|
+
export declare const RELATIVE_TOMORROW: FilterRelativeDate;
|
|
24
|
+
export declare const RELATIVE_YESTERDAY: FilterRelativeDate;
|
|
25
|
+
export declare const RELATIVE_NEXT_WEEK: FilterRelativeDate;
|
|
26
|
+
export declare function applyFilterRelative(relative: FilterRelativeDate, now: Date): Date;
|
|
27
|
+
export declare function resolveFilterDate(value: FilterDateValue | undefined, now?: Date): Date | null;
|
|
28
|
+
export declare function toFilterDateValue(date: Date, time?: string): FilterDateValue;
|
|
29
29
|
/**
|
|
30
30
|
* Parses a typed phrase, or null when nothing matches. Relative phrasing gives
|
|
31
31
|
* a RELATIVE value and an explicit date an ABSOLUTE one; flattening the two is
|
|
32
32
|
* what freezes a saved view.
|
|
33
33
|
*/
|
|
34
|
-
declare function parseFilterDate(text: string, now?: Date): FilterDateValue | null;
|
|
34
|
+
export declare function parseFilterDate(text: string, now?: Date): FilterDateValue | null;
|
|
35
35
|
/**
|
|
36
36
|
* Human wording for a value. Relative values render as their phrase, not the
|
|
37
37
|
* resolved day, so a chip reading "is today" does not go stale tomorrow.
|
|
38
38
|
*/
|
|
39
|
-
declare function formatFilterDate(value: FilterDateValue | undefined, now?: Date, pattern?: string): string;
|
|
40
|
-
declare function isFilterTime(time: string): boolean;
|
|
39
|
+
export declare function formatFilterDate(value: FilterDateValue | undefined, now?: Date, pattern?: string): string;
|
|
40
|
+
export declare function isFilterTime(time: string): boolean;
|
|
41
41
|
//#endregion
|
|
42
|
-
export { FILTER_DATE_FORMAT, FilterDateValue, FilterRelativeDate, RELATIVE_NEXT_WEEK, RELATIVE_TODAY, RELATIVE_TOMORROW, RELATIVE_YESTERDAY, applyFilterRelative, formatFilterDate, isFilterTime, parseFilterDate, resolveFilterDate, toFilterDateValue };
|
|
43
42
|
//# sourceMappingURL=filters-date.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-date.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-date.tsx"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"filters-date.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-date.tsx"],"mappings":";;;;;;;iBAmBiB;;EAEf;;EAEA,WAAW;;EAEX;;;iBAIe;EACf;EACA;;qBAGW;qBAEA,gBAAgB;qBAChB,mBAAmB;qBACnB,oBAAoB;qBAIpB,oBAAoB;wBAKjB,oBAAoB,UAAU,oBAAoB,KAAK,OAAO;wBAQ9D,kBACd,OAAO,6BACP,MAAK,OACJ;wBAUa,kBAAkB,MAAM,MAAM,gBAAgB;;;;;;wBAiC9C,gBAAgB,cAAc,MAAK,OAAoB;;;;;wBAqEvD,iBACd,OAAO,6BACP,MAAK,MACL;wBAsBc,aAAa"}
|
|
@@ -5,7 +5,7 @@ import * as React$1 from "react";
|
|
|
5
5
|
* imported: filters installs on its own and must not pull a whole calendar into
|
|
6
6
|
* `shadcn add filters`. Vanilla-DOM overlay, so a drag renders no React.
|
|
7
7
|
*/
|
|
8
|
-
declare const FILTER_DND_ACTIVATION: {
|
|
8
|
+
export declare const FILTER_DND_ACTIVATION: {
|
|
9
9
|
/** Mouse travel before a press becomes a drag. Below this it stays a click. */
|
|
10
10
|
readonly moveDistancePx: 5;
|
|
11
11
|
/** Touch long-press before a drag starts, so a swipe still scrolls. */
|
|
@@ -17,13 +17,13 @@ declare const FILTER_DND_ACTIVATION: {
|
|
|
17
17
|
readonly carryPointerOffsetPx: 12;
|
|
18
18
|
};
|
|
19
19
|
/** One rule row, or one group's header row. Both are drag sources and targets. */
|
|
20
|
-
declare const FILTER_ROW_SELECTOR = "[data-slot=\"filter-row\"]";
|
|
20
|
+
export declare const FILTER_ROW_SELECTOR = "[data-slot=\"filter-row\"]";
|
|
21
21
|
/** Explicit "drop INSIDE": a row hit test can only ever say "beside". */
|
|
22
|
-
declare const FILTER_DROP_ZONE_SELECTOR = "[data-drop-parent]";
|
|
22
|
+
export declare const FILTER_DROP_ZONE_SELECTOR = "[data-drop-parent]";
|
|
23
23
|
/** Marked alongside the zone, so lighting the group costs no `:has()`. */
|
|
24
|
-
declare const FILTER_GROUP_SELECTOR = "[data-slot=\"filter-group\"]";
|
|
24
|
+
export declare const FILTER_GROUP_SELECTOR = "[data-slot=\"filter-group\"]";
|
|
25
25
|
/** Geometry only, so resolution is a pure function and a table test. */
|
|
26
|
-
interface FilterDropBox {
|
|
26
|
+
export interface FilterDropBox {
|
|
27
27
|
top: number;
|
|
28
28
|
bottom: number;
|
|
29
29
|
left: number;
|
|
@@ -35,7 +35,7 @@ interface FilterDropBox {
|
|
|
35
35
|
/** How many rows enclose this box. Deeper wins. */
|
|
36
36
|
depth: number;
|
|
37
37
|
}
|
|
38
|
-
interface FilterDropResolution<T extends FilterDropBox> {
|
|
38
|
+
export interface FilterDropResolution<T extends FilterDropBox> {
|
|
39
39
|
target: T;
|
|
40
40
|
/** Null for a zone: INTO the group rather than beside anything. */
|
|
41
41
|
edge: "before" | "after" | null;
|
|
@@ -51,16 +51,16 @@ interface FilterDropResolution<T extends FilterDropBox> {
|
|
|
51
51
|
* Half the gap makes siblings tile, and the depth sort keeps the child ahead of
|
|
52
52
|
* that group. Rows only: zones are explicit strips.
|
|
53
53
|
*/
|
|
54
|
-
declare const FILTER_ROW_SEAM_PX = 6;
|
|
54
|
+
export declare const FILTER_ROW_SEAM_PX = 6;
|
|
55
55
|
/**
|
|
56
56
|
* Zones before rows, then the DEEPEST box: a group's rect encloses everything
|
|
57
57
|
* it holds, so a nested condition would otherwise resolve to its whole group.
|
|
58
58
|
* `seam` is a parameter, not the constant inlined, so the tiling rule itself is
|
|
59
59
|
* a table test.
|
|
60
60
|
*/
|
|
61
|
-
declare function resolveFilterDrop<T extends FilterDropBox>(zones: T[], rows: T[], x: number, y: number, seam?: number): FilterDropResolution<T> | null;
|
|
61
|
+
export declare function resolveFilterDrop<T extends FilterDropBox>(zones: T[], rows: T[], x: number, y: number, seam?: number): FilterDropResolution<T> | null;
|
|
62
62
|
/** Where a dragged node started, which is what makes a drop a no-op or not. */
|
|
63
|
-
interface FilterDropOrigin {
|
|
63
|
+
export interface FilterDropOrigin {
|
|
64
64
|
parentId: string;
|
|
65
65
|
index: number;
|
|
66
66
|
}
|
|
@@ -68,21 +68,21 @@ interface FilterDropOrigin {
|
|
|
68
68
|
* Both indices name the slot the node already occupies, because
|
|
69
69
|
* `moveFilterNodeTo` closes the gap the detach leaves. Copy is never a no-op.
|
|
70
70
|
*/
|
|
71
|
-
declare function isFilterDropNoop(resolution: FilterDropResolution<FilterDropBox> | null, origin: FilterDropOrigin | null, copy: boolean): boolean;
|
|
71
|
+
export declare function isFilterDropNoop(resolution: FilterDropResolution<FilterDropBox> | null, origin: FilterDropOrigin | null, copy: boolean): boolean;
|
|
72
72
|
/** Cancel and fully revert every in-flight filter row drag. */
|
|
73
|
-
declare function cancelActiveFilterDrags(): void;
|
|
73
|
+
export declare function cancelActiveFilterDrags(): void;
|
|
74
74
|
/**
|
|
75
75
|
* Whether a drag ended within the last few frames. Exported: a consumer's own
|
|
76
76
|
* row click handler needs the same answer the suppressor below needs.
|
|
77
77
|
*/
|
|
78
|
-
declare function wasRecentFilterDrag(): boolean;
|
|
79
|
-
interface FilterDropDetails {
|
|
78
|
+
export declare function wasRecentFilterDrag(): boolean;
|
|
79
|
+
export interface FilterDropDetails {
|
|
80
80
|
parentId: string;
|
|
81
81
|
index: number;
|
|
82
82
|
/** Alt was held at release: copy the node rather than moving it. */
|
|
83
83
|
copy: boolean;
|
|
84
84
|
}
|
|
85
|
-
interface FilterRowDragOptions {
|
|
85
|
+
export interface FilterRowDragOptions {
|
|
86
86
|
/** The PANEL, not its body: the top-level append zone is in the footer. */
|
|
87
87
|
root: () => HTMLElement | null;
|
|
88
88
|
onDrop: (nodeId: string, details: FilterDropDetails) => void;
|
|
@@ -93,9 +93,8 @@ interface FilterRowDragOptions {
|
|
|
93
93
|
* not also be `draggable` and race the browser's HTML5 drag, with its ghost, no
|
|
94
94
|
* copy affordance and no way to report a drop into a nested target.
|
|
95
95
|
*/
|
|
96
|
-
declare function useFilterRowDrag(options: FilterRowDragOptions): (nodeId: string) => {
|
|
96
|
+
export declare function useFilterRowDrag(options: FilterRowDragOptions): (nodeId: string) => {
|
|
97
97
|
onPointerDown: (event: React$1.PointerEvent<HTMLElement>) => void;
|
|
98
98
|
};
|
|
99
99
|
//#endregion
|
|
100
|
-
export { FILTER_DND_ACTIVATION, FILTER_DROP_ZONE_SELECTOR, FILTER_GROUP_SELECTOR, FILTER_ROW_SEAM_PX, FILTER_ROW_SELECTOR, FilterDropBox, FilterDropDetails, FilterDropOrigin, FilterDropResolution, FilterRowDragOptions, cancelActiveFilterDrags, isFilterDropNoop, resolveFilterDrop, useFilterRowDrag, wasRecentFilterDrag };
|
|
101
100
|
//# sourceMappingURL=filters-dnd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-dnd.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-dnd.tsx"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"filters-dnd.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-dnd.tsx"],"mappings":";;;;;;;qBASa;;;;;;;;;;;;qBAaA;;qBAGA;;qBAGA;;iBAGI;EACf;EACA;EACA;EACA;;EAEA;;EAEA;;EAEA;;iBAGe,qBAAqB,UAAU;EAC9C,QAAQ;;EAER;;;;;;;;;;;;;qBAkBW;;;;;;;wBAQG,kBAAkB,UAAU,eAC1C,OAAO,KACP,MAAM,KACN,WACA,WACA,gBACC,qBAAqB;;iBAyBP;EACf;EACA;;;;;;wBAOc,iBACd,YAAY,qBAAqB,uBACjC,QAAQ,yBACR;;wBAWc;;;;;wBAUA;iBAiIC;EACf;EACA;;EAEA;;iBAGe;;EAEf,YAAY;EACZ,SAAS,gBAAgB,SAAS;EAClC;;;;;;;wBA2Xc,iBAAiB,SAAS,wBAAoB;EAcjC,gBAAA,OAAA,QAAM,aAAa"}
|
|
@@ -8,18 +8,18 @@ import * as React$1 from "react";
|
|
|
8
8
|
* in an EFFECT, plus the root's `FilterResolutionStore`, without which a
|
|
9
9
|
* `loadOptions`-only field showed its raw id once the menu closed.
|
|
10
10
|
*/
|
|
11
|
-
declare function useFilterOptions<V, O>(field: FilterField<V, O> | undefined, enabled: boolean, debounceMs?: number): FilterOptionsState<O>;
|
|
11
|
+
export declare function useFilterOptions<V, O>(field: FilterField<V, O> | undefined, enabled: boolean, debounceMs?: number): FilterOptionsState<O>;
|
|
12
12
|
/**
|
|
13
13
|
* Resolves committed values no loaded page covered, through `resolveValues`: a
|
|
14
14
|
* restored saved view holds ids the loader never returned. The claim set marks
|
|
15
15
|
* an omitted id asked, so only a REJECTED resolve lets a later mount retry.
|
|
16
16
|
*/
|
|
17
|
-
declare function useFilterValueResolution<V, O>(field: FilterField<V, O> | undefined, values: readonly unknown[]): void;
|
|
18
|
-
declare function FilterTextEditor<V, O>({ value, onValueChange, commit, cancel, autoFocusProps, labels, host, field }: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
19
|
-
declare function FilterNumberEditor<V, O>({ value, onValueChange, commit, cancel, autoFocusProps, labels, host, field }: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
20
|
-
declare function FilterRangeEditor<V, O>({ value, onValueChange, commit, cancel, autoFocusProps, labels, host, field }: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
17
|
+
export declare function useFilterValueResolution<V, O>(field: FilterField<V, O> | undefined, values: readonly unknown[]): void;
|
|
18
|
+
export declare function FilterTextEditor<V, O>({ value, onValueChange, commit, cancel, autoFocusProps, labels, host, field }: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
19
|
+
export declare function FilterNumberEditor<V, O>({ value, onValueChange, commit, cancel, autoFocusProps, labels, host, field }: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
20
|
+
export declare function FilterRangeEditor<V, O>({ value, onValueChange, commit, cancel, autoFocusProps, labels, host, field }: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
21
21
|
/** One row. The shape both the operator menu and the option editors hand over. */
|
|
22
|
-
interface FilterListItem {
|
|
22
|
+
export interface FilterListItem {
|
|
23
23
|
value: string;
|
|
24
24
|
label: string;
|
|
25
25
|
icon?: React$1.ReactNode;
|
|
@@ -33,7 +33,7 @@ interface FilterListItem {
|
|
|
33
33
|
*/
|
|
34
34
|
exclusive?: boolean;
|
|
35
35
|
}
|
|
36
|
-
interface FilterMenuProps {
|
|
36
|
+
export interface FilterMenuProps {
|
|
37
37
|
items: FilterListItem[];
|
|
38
38
|
/** Committed values. Drives the check mark and the pinned group. */
|
|
39
39
|
selected: string[];
|
|
@@ -75,17 +75,17 @@ interface FilterMenuProps {
|
|
|
75
75
|
* brings the typeahead, RTL handling and live region with it. Only the pinning
|
|
76
76
|
* and the paging affordance stay out here.
|
|
77
77
|
*/
|
|
78
|
-
declare function FilterMenu({ items, selected, multiple, onSelectionChange, labels, ariaLabel, searchPlaceholder, searchable, maxHeight, pinSelected, sortSelected, preFiltered, autoFocusProps, query, onQueryChange, state }: FilterMenuProps): React$1.JSX.Element;
|
|
79
|
-
declare function FilterSelectEditor<V, O>(props: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
80
|
-
declare function FilterMultiSelectEditor<V, O>(props: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
81
|
-
declare function FilterBooleanEditor<V, O>({ value, onValueChange, commit, labels, autoFocusProps, field }: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
82
|
-
declare const DEFAULT_FILTER_EDITORS: FilterEditorRegistry;
|
|
78
|
+
export declare function FilterMenu({ items, selected, multiple, onSelectionChange, labels, ariaLabel, searchPlaceholder, searchable, maxHeight, pinSelected, sortSelected, preFiltered, autoFocusProps, query, onQueryChange, state }: FilterMenuProps): React$1.JSX.Element;
|
|
79
|
+
export declare function FilterSelectEditor<V, O>(props: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
80
|
+
export declare function FilterMultiSelectEditor<V, O>(props: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
81
|
+
export declare function FilterBooleanEditor<V, O>({ value, onValueChange, commit, labels, autoFocusProps, field }: FilterEditorProps<V, O>): React$1.JSX.Element;
|
|
82
|
+
export declare const DEFAULT_FILTER_EDITORS: FilterEditorRegistry;
|
|
83
83
|
/**
|
|
84
84
|
* Picks the editor for a (field, operator) pair: the field's own `editor`, then
|
|
85
85
|
* the operator's ARITY, then the field's `type`. Arity outranks type because
|
|
86
86
|
* "between" wants two boxes whatever the field said.
|
|
87
87
|
*/
|
|
88
|
-
declare function resolveFilterEditor<V, O>(field: FilterField<V, O>, operator: FilterOperator | undefined, editors: FilterEditorRegistry): AnyFilterEditor | undefined;
|
|
88
|
+
export declare function resolveFilterEditor<V, O>(field: FilterField<V, O>, operator: FilterOperator | undefined, editors: FilterEditorRegistry): AnyFilterEditor | undefined;
|
|
89
89
|
//#endregion
|
|
90
|
-
export {
|
|
90
|
+
export type { AnyFilterEditor, FilterEditorRegistry };
|
|
91
91
|
//# sourceMappingURL=filters-editors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-editors.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-editors.tsx"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"filters-editors.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-editors.tsx"],"mappings":";;;;;;;;;;wBAgGgB,iBAAiB,GAAG,GAClC,OAAO,YAAY,GAAG,gBACtB,kBACA,sBACC,mBAAmB;;;;;;wBAoJN,yBAAyB,GAAG,GAC1C,OAAO,YAAY,GAAG,gBACtB;wBAuJc,iBAAiB,GAAG,KAClC,OACA,eACA,QACA,QACA,gBACA,QACA,MACA,SACC,kBAAkB,GAAG,KAAE,QAAA,IAAA;wBA+BV,mBAAmB,GAAG,KACpC,OACA,eACA,QACA,QACA,gBACA,QACA,MACA,SACC,kBAAkB,GAAG,KAAE,QAAA,IAAA;wBA2BV,kBAAkB,GAAG,KACnC,OACA,eACA,QACA,QACA,gBACA,QACA,MACA,SACC,kBAAkB,GAAG,KAAE,QAAA,IAAA;;iBAwCT;EACf;EACA;EACA,OAAO,QAAM;EACb;EACA;EACA;;;;;;EAMA;;iBAyJe;EACf,OAAO;;EAEP;EACA;;EAEA,oBAAoB;EACpB,QAAQ;EACR;EACA;;EAEA;;;;;;EAMA;;;;;EAKA;;;;;EAKA;;EAEA;EACA,iBAAiB;;EAEjB;EACA,iBAAiB;EACjB,QAAQ,KAAK;;;;;;;;wBASC,aACd,OACA,UACA,UACA,mBACA,QACA,WACA,mBACA,YACA,WACA,aACA,cACA,aACA,gBACA,OACA,eACA,SACC,kBAAe,QAAA,IAAA;wBA8YF,mBAAmB,GAAG,GAAG,OAAO,kBAAkB,GAAG,KAAE,QAAA,IAAA;wBAIvD,wBAAwB,GAAG,GAAG,OAAO,kBAAkB,GAAG,KAAE,QAAA,IAAA;wBAiB5D,oBAAoB,GAAG,KACrC,OACA,eACA,QACA,QACA,gBACA,SACC,kBAAkB,GAAG,KAAE,QAAA,IAAA;qBAmCb,wBAAwB;;;;;;wBAcrB,oBAAoB,GAAG,GACrC,OAAO,YAAY,GAAG,IACtB,UAAU,4BACV,SAAS,uBACR"}
|
|
@@ -3,16 +3,16 @@ import { Button } from "../../ui/button.js";
|
|
|
3
3
|
import { Input } from "../../ui/input.js";
|
|
4
4
|
import { ButtonGroup } from "../../ui/button-group.js";
|
|
5
5
|
import { useCascaderActions, useCascaderHighlight } from "../cascader/cascader-context.js";
|
|
6
|
+
import { Cascader, CascaderEmpty, CascaderList, CascaderPanel, CascaderStatus } from "../cascader/cascader.js";
|
|
6
7
|
import { CascaderItems } from "../cascader/cascader-item.js";
|
|
7
8
|
import { CascaderFooter } from "../cascader/cascader-footer.js";
|
|
8
9
|
import { CascaderInput, CascaderNav } from "../cascader/cascader-nav.js";
|
|
9
|
-
import { Cascader, CascaderEmpty, CascaderList, CascaderPanel, CascaderStatus } from "../cascader/cascader.js";
|
|
10
10
|
import { FilterActionsContext, filterControlSizes } from "./filters-context.js";
|
|
11
11
|
import { applyFilterExclusiveSelection, filterFilterOptions, joinFilterPath, normalizeFilterQuery, warnFilterOnce } from "./filters-lib.js";
|
|
12
12
|
import * as React$1 from "react";
|
|
13
13
|
import { cn } from "@kumix/utils";
|
|
14
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
14
|
import { CheckIcon, XIcon } from "lucide-react";
|
|
15
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
//#region src/components/reui/filters/filters-editors.tsx
|
|
17
17
|
const IDLE = {
|
|
18
18
|
items: [],
|
|
@@ -5,20 +5,19 @@ import { FilterDraftStep, FilterIssue, FilterIssueReason, FilterLabels } from ".
|
|
|
5
5
|
* wizard) and `showRecords` (a consumer's own panel heading) are unread by the
|
|
6
6
|
* shipped chrome and kept on purpose; do not prune them as dead keys.
|
|
7
7
|
*/
|
|
8
|
-
declare const DEFAULT_FILTER_LABELS: FilterLabels;
|
|
8
|
+
export declare const DEFAULT_FILTER_LABELS: FilterLabels;
|
|
9
9
|
/**
|
|
10
10
|
* Shallow merge over the defaults, like the cascader's. A deep merge would leak
|
|
11
11
|
* the default back into a replaced function-valued label for the arguments the
|
|
12
12
|
* consumer did not think about.
|
|
13
13
|
*/
|
|
14
|
-
declare function resolveFilterLabels(labels?: Partial<FilterLabels>): FilterLabels;
|
|
14
|
+
export declare function resolveFilterLabels(labels?: Partial<FilterLabels>): FilterLabels;
|
|
15
15
|
/**
|
|
16
16
|
* The sentence for one issue. Takes the ISSUE, not just the reason: a field's
|
|
17
17
|
* `validate` supplies its own words, so `custom` has nothing to look up.
|
|
18
18
|
*/
|
|
19
|
-
declare function filterIssueLabel(issue: Pick<FilterIssue, "reason" | "message"> | FilterIssueReason, labels: FilterLabels): string;
|
|
19
|
+
export declare function filterIssueLabel(issue: Pick<FilterIssue, "reason" | "message"> | FilterIssueReason, labels: FilterLabels): string;
|
|
20
20
|
/** The search placeholder for a step's panel. */
|
|
21
|
-
declare function stepPlaceholder(step: FilterDraftStep, labels: FilterLabels): string;
|
|
21
|
+
export declare function stepPlaceholder(step: FilterDraftStep, labels: FilterLabels): string;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { DEFAULT_FILTER_LABELS, filterIssueLabel, resolveFilterLabels, stepPlaceholder };
|
|
24
23
|
//# sourceMappingURL=filters-i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-i18n.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-i18n.tsx"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"filters-i18n.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-i18n.tsx"],"mappings":";;;;;;;qBAca,uBAAuB;;;;;;wBAuGpB,oBAAoB,SAAS,QAAQ,gBAAgB;;;;;wBASrD,iBACd,OAAO,KAAK,qCAAqC,mBACjD,QAAQ;;wBAYM,gBAAgB,MAAM,iBAAiB,QAAQ"}
|