mood-ui 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data-display/Chart.cjs +6 -0
- package/dist/components/data-display/Chart.cjs.map +1 -0
- package/dist/components/data-display/Chart.mjs +7 -0
- package/dist/components/data-display/Chart.mjs.map +1 -0
- package/dist/components/data-display/Chart.vue_vue_type_script_setup_true_lang.cjs +48 -0
- package/dist/components/data-display/Chart.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/components/data-display/Chart.vue_vue_type_script_setup_true_lang.mjs +47 -0
- package/dist/components/data-display/Chart.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/dist/components/data-display/Stat.cjs.map +1 -1
- package/dist/components/data-display/Stat.mjs.map +1 -1
- package/dist/components/data-display/Stat.vue_vue_type_script_setup_true_lang.cjs +88 -75
- package/dist/components/data-display/Stat.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/Stat.vue_vue_type_script_setup_true_lang.mjs +90 -77
- package/dist/components/data-display/Stat.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/AgendaView.cjs.map +1 -1
- package/dist/components/data-display/calendar/AgendaView.mjs.map +1 -1
- package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.cjs +4 -1
- package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs +4 -1
- package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/DayView.cjs.map +1 -1
- package/dist/components/data-display/calendar/DayView.mjs.map +1 -1
- package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.cjs +7 -4
- package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs +7 -4
- package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/MonthView.cjs +1 -1
- package/dist/components/data-display/calendar/MonthView.cjs.map +1 -1
- package/dist/components/data-display/calendar/MonthView.mjs +1 -1
- package/dist/components/data-display/calendar/MonthView.mjs.map +1 -1
- package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.cjs +8 -12
- package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs +8 -12
- package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/Scheduler.cjs.map +1 -1
- package/dist/components/data-display/calendar/Scheduler.mjs.map +1 -1
- package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.cjs +7 -4
- package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs +7 -4
- package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/calendar/WeekView.cjs.map +1 -1
- package/dist/components/data-display/calendar/WeekView.mjs.map +1 -1
- package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.cjs +7 -4
- package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs +7 -4
- package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/chart/Cartesian.cjs +6 -0
- package/dist/components/data-display/chart/Cartesian.cjs.map +1 -0
- package/dist/components/data-display/chart/Cartesian.mjs +7 -0
- package/dist/components/data-display/chart/Cartesian.mjs.map +1 -0
- package/dist/components/data-display/chart/Cartesian.vue_vue_type_script_setup_true_lang.cjs +573 -0
- package/dist/components/data-display/chart/Cartesian.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/components/data-display/chart/Cartesian.vue_vue_type_script_setup_true_lang.mjs +572 -0
- package/dist/components/data-display/chart/Cartesian.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/dist/components/data-display/chart/Heatmap.cjs +6 -0
- package/dist/components/data-display/chart/Heatmap.cjs.map +1 -0
- package/dist/components/data-display/chart/Heatmap.mjs +7 -0
- package/dist/components/data-display/chart/Heatmap.mjs.map +1 -0
- package/dist/components/data-display/chart/Heatmap.vue_vue_type_script_setup_true_lang.cjs +332 -0
- package/dist/components/data-display/chart/Heatmap.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/components/data-display/chart/Heatmap.vue_vue_type_script_setup_true_lang.mjs +331 -0
- package/dist/components/data-display/chart/Heatmap.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/dist/components/data-display/chart/Polar.cjs +6 -0
- package/dist/components/data-display/chart/Polar.cjs.map +1 -0
- package/dist/components/data-display/chart/Polar.mjs +7 -0
- package/dist/components/data-display/chart/Polar.mjs.map +1 -0
- package/dist/components/data-display/chart/Polar.vue_vue_type_script_setup_true_lang.cjs +361 -0
- package/dist/components/data-display/chart/Polar.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/components/data-display/chart/Polar.vue_vue_type_script_setup_true_lang.mjs +360 -0
- package/dist/components/data-display/chart/Polar.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/dist/components/data-display/chart/Radar.cjs +6 -0
- package/dist/components/data-display/chart/Radar.cjs.map +1 -0
- package/dist/components/data-display/chart/Radar.mjs +7 -0
- package/dist/components/data-display/chart/Radar.mjs.map +1 -0
- package/dist/components/data-display/chart/Radar.vue_vue_type_script_setup_true_lang.cjs +347 -0
- package/dist/components/data-display/chart/Radar.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/components/data-display/chart/Radar.vue_vue_type_script_setup_true_lang.mjs +346 -0
- package/dist/components/data-display/chart/Radar.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/dist/components/data-display/chart/Sparkline.cjs +6 -0
- package/dist/components/data-display/chart/Sparkline.cjs.map +1 -0
- package/dist/components/data-display/chart/Sparkline.mjs +7 -0
- package/dist/components/data-display/chart/Sparkline.mjs.map +1 -0
- package/dist/components/data-display/chart/Sparkline.vue_vue_type_script_setup_true_lang.cjs +293 -0
- package/dist/components/data-display/chart/Sparkline.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/components/data-display/chart/Sparkline.vue_vue_type_script_setup_true_lang.mjs +292 -0
- package/dist/components/data-display/chart/Sparkline.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/dist/components/data-display/chart/useChart.cjs +189 -0
- package/dist/components/data-display/chart/useChart.cjs.map +1 -0
- package/dist/components/data-display/chart/useChart.mjs +182 -0
- package/dist/components/data-display/chart/useChart.mjs.map +1 -0
- package/dist/components/data-display/date-picker/DateRangePicker.cjs.map +1 -1
- package/dist/components/data-display/date-picker/DateRangePicker.mjs.map +1 -1
- package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.cjs +1 -7
- package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs +1 -7
- package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/date-picker/DateTimePicker.cjs.map +1 -1
- package/dist/components/data-display/date-picker/DateTimePicker.mjs.map +1 -1
- package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/data-display/table/Table.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/feedback/Drawer.cjs.map +1 -1
- package/dist/components/feedback/Drawer.mjs.map +1 -1
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.cjs +4 -9
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs +4 -9
- package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/Modal.cjs.map +1 -1
- package/dist/components/feedback/Modal.mjs.map +1 -1
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.cjs +4 -9
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs +4 -9
- package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/feedback/Tooltip.cjs.map +1 -1
- package/dist/components/feedback/Tooltip.mjs.map +1 -1
- package/dist/components/feedback/Tooltip.vue_vue_type_script_setup_true_lang.cjs +64 -20
- package/dist/components/feedback/Tooltip.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/feedback/Tooltip.vue_vue_type_script_setup_true_lang.mjs +64 -20
- package/dist/components/feedback/Tooltip.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/Button.cjs +1 -1
- package/dist/components/forms/Button.cjs.map +1 -1
- package/dist/components/forms/Button.mjs +1 -1
- package/dist/components/forms/Button.mjs.map +1 -1
- package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.cjs +76 -63
- package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.mjs +77 -64
- package/dist/components/forms/Button.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/ButtonGroup.cjs +1 -1
- package/dist/components/forms/ButtonGroup.cjs.map +1 -1
- package/dist/components/forms/ButtonGroup.mjs +1 -1
- package/dist/components/forms/ButtonGroup.mjs.map +1 -1
- package/dist/components/forms/ButtonGroup.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/forms/ButtonGroup.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/ButtonGroup.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/forms/ButtonGroup.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/Checkbox.cjs +1 -1
- package/dist/components/forms/Checkbox.cjs.map +1 -1
- package/dist/components/forms/Checkbox.mjs +1 -1
- package/dist/components/forms/Checkbox.mjs.map +1 -1
- package/dist/components/forms/Checkbox.vue_vue_type_script_setup_true_lang.cjs +7 -7
- package/dist/components/forms/Checkbox.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/Checkbox.vue_vue_type_script_setup_true_lang.mjs +7 -7
- package/dist/components/forms/Checkbox.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/ColorPicker.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/ColorPicker.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/forms/Combobox.cjs.map +1 -1
- package/dist/components/forms/Combobox.mjs.map +1 -1
- package/dist/components/forms/Combobox.vue_vue_type_script_setup_true_lang.cjs +4 -4
- package/dist/components/forms/Combobox.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/Combobox.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/dist/components/forms/Combobox.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/DateField.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/forms/DateField.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/forms/DateRangeField.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/forms/DateRangeField.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/forms/DateTimeField.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/forms/DateTimeField.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/FileInput.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/forms/FormField.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/FormField.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/forms/Input.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/Input.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/forms/MenuButton.cjs +6 -0
- package/dist/components/forms/MenuButton.cjs.map +1 -0
- package/dist/components/forms/MenuButton.mjs +7 -0
- package/dist/components/forms/MenuButton.mjs.map +1 -0
- package/dist/components/forms/MenuButton.vue_vue_type_script_setup_true_lang.cjs +270 -0
- package/dist/components/forms/MenuButton.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/components/forms/MenuButton.vue_vue_type_script_setup_true_lang.mjs +269 -0
- package/dist/components/forms/MenuButton.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/forms/MultiSelect.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/forms/NumberInput.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/NumberInput.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/forms/OTPInput.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/OTPInput.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/forms/PasswordInput.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/PasswordInput.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/forms/PhoneInput.cjs.map +1 -1
- package/dist/components/forms/PhoneInput.mjs.map +1 -1
- package/dist/components/forms/PhoneInput.vue_vue_type_script_setup_true_lang.cjs +8 -3
- package/dist/components/forms/PhoneInput.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/PhoneInput.vue_vue_type_script_setup_true_lang.mjs +8 -3
- package/dist/components/forms/PhoneInput.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/Radio.cjs +1 -1
- package/dist/components/forms/Radio.cjs.map +1 -1
- package/dist/components/forms/Radio.mjs +1 -1
- package/dist/components/forms/Radio.mjs.map +1 -1
- package/dist/components/forms/Radio.vue_vue_type_script_setup_true_lang.cjs +6 -6
- package/dist/components/forms/Radio.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/Radio.vue_vue_type_script_setup_true_lang.mjs +6 -6
- package/dist/components/forms/Radio.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/RangeSlider.cjs.map +1 -1
- package/dist/components/forms/RangeSlider.mjs.map +1 -1
- package/dist/components/forms/RangeSlider.vue_vue_type_script_setup_true_lang.cjs +6 -6
- package/dist/components/forms/RangeSlider.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/RangeSlider.vue_vue_type_script_setup_true_lang.mjs +6 -6
- package/dist/components/forms/RangeSlider.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/SearchInput.cjs.map +1 -1
- package/dist/components/forms/SearchInput.mjs.map +1 -1
- package/dist/components/forms/SearchInput.vue_vue_type_script_setup_true_lang.cjs +230 -23
- package/dist/components/forms/SearchInput.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/SearchInput.vue_vue_type_script_setup_true_lang.mjs +232 -25
- package/dist/components/forms/SearchInput.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/Segmented.cjs +1 -1
- package/dist/components/forms/Segmented.cjs.map +1 -1
- package/dist/components/forms/Segmented.mjs +1 -1
- package/dist/components/forms/Segmented.mjs.map +1 -1
- package/dist/components/forms/Segmented.vue_vue_type_script_setup_true_lang.cjs +4 -12
- package/dist/components/forms/Segmented.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/Segmented.vue_vue_type_script_setup_true_lang.mjs +4 -12
- package/dist/components/forms/Segmented.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/Select.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/forms/Select.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/forms/Slider.cjs.map +1 -1
- package/dist/components/forms/Slider.mjs.map +1 -1
- package/dist/components/forms/Slider.vue_vue_type_script_setup_true_lang.cjs +6 -6
- package/dist/components/forms/Slider.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/Slider.vue_vue_type_script_setup_true_lang.mjs +6 -6
- package/dist/components/forms/Slider.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/Switch.cjs +1 -1
- package/dist/components/forms/Switch.cjs.map +1 -1
- package/dist/components/forms/Switch.mjs +1 -1
- package/dist/components/forms/Switch.mjs.map +1 -1
- package/dist/components/forms/Switch.vue_vue_type_script_setup_true_lang.cjs +7 -7
- package/dist/components/forms/Switch.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/forms/Switch.vue_vue_type_script_setup_true_lang.mjs +7 -7
- package/dist/components/forms/Switch.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.cjs +1 -1
- package/dist/components/forms/Textarea.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/components/layout/AppShell.cjs.map +1 -1
- package/dist/components/layout/AppShell.mjs.map +1 -1
- package/dist/components/layout/AppShell.vue_vue_type_script_setup_true_lang.cjs +8 -8
- package/dist/components/layout/AppShell.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/layout/AppShell.vue_vue_type_script_setup_true_lang.mjs +8 -8
- package/dist/components/layout/AppShell.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/layout/PopoverPanel.cjs +1 -1
- package/dist/components/layout/PopoverPanel.cjs.map +1 -1
- package/dist/components/layout/PopoverPanel.mjs +1 -1
- package/dist/components/layout/PopoverPanel.mjs.map +1 -1
- package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/layout/PopoverPanel.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/layout/Sidebar.cjs.map +1 -1
- package/dist/components/layout/Sidebar.mjs.map +1 -1
- package/dist/components/layout/Sidebar.vue_vue_type_script_setup_true_lang.cjs +36 -21
- package/dist/components/layout/Sidebar.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/layout/Sidebar.vue_vue_type_script_setup_true_lang.mjs +36 -21
- package/dist/components/layout/Sidebar.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/layout/Topbar.cjs.map +1 -1
- package/dist/components/layout/Topbar.mjs.map +1 -1
- package/dist/components/layout/Topbar.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/dist/components/layout/Topbar.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/layout/Topbar.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/components/layout/Topbar.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/navigation/Switcher.cjs.map +1 -1
- package/dist/components/navigation/Switcher.mjs.map +1 -1
- package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.cjs +42 -44
- package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.mjs +42 -44
- package/dist/components/navigation/Switcher.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/components/navigation/Tabs.cjs +1 -1
- package/dist/components/navigation/Tabs.cjs.map +1 -1
- package/dist/components/navigation/Tabs.mjs +1 -1
- package/dist/components/navigation/Tabs.mjs.map +1 -1
- package/dist/components/navigation/Tabs.vue_vue_type_script_setup_true_lang.cjs +1 -9
- package/dist/components/navigation/Tabs.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/components/navigation/Tabs.vue_vue_type_script_setup_true_lang.mjs +1 -9
- package/dist/components/navigation/Tabs.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/dist/composables/eventColors.cjs +51 -27
- package/dist/composables/eventColors.cjs.map +1 -1
- package/dist/composables/eventColors.mjs +51 -27
- package/dist/composables/eventColors.mjs.map +1 -1
- package/dist/composables/useBodyScrollLock.cjs +44 -0
- package/dist/composables/useBodyScrollLock.cjs.map +1 -0
- package/dist/composables/useBodyScrollLock.mjs +43 -0
- package/dist/composables/useBodyScrollLock.mjs.map +1 -0
- package/dist/composables/useCalendarTheme.cjs +29 -8
- package/dist/composables/useCalendarTheme.cjs.map +1 -1
- package/dist/composables/useCalendarTheme.mjs +29 -8
- package/dist/composables/useCalendarTheme.mjs.map +1 -1
- package/dist/composables/useField.cjs +21 -23
- package/dist/composables/useField.cjs.map +1 -1
- package/dist/composables/useField.mjs +21 -24
- package/dist/composables/useField.mjs.map +1 -1
- package/dist/composables/usePopover.cjs +49 -13
- package/dist/composables/usePopover.cjs.map +1 -1
- package/dist/composables/usePopover.mjs +49 -13
- package/dist/composables/usePopover.mjs.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.mjs +4 -2
- package/dist/mood-ui.css +116 -482
- package/dist/types/components/data-display/Chart.vue.d.ts +8 -0
- package/dist/types/components/data-display/Stat.vue.d.ts +12 -2
- package/dist/types/components/data-display/chart/Cartesian.vue.d.ts +17 -0
- package/dist/types/components/data-display/chart/Heatmap.vue.d.ts +10 -0
- package/dist/types/components/data-display/chart/Polar.vue.d.ts +9 -0
- package/dist/types/components/data-display/chart/Radar.vue.d.ts +10 -0
- package/dist/types/components/data-display/chart/Sparkline.vue.d.ts +13 -0
- package/dist/types/components/data-display/chart/useChart.d.ts +49 -0
- package/dist/types/components/feedback/Drawer.vue.d.ts +2 -2
- package/dist/types/components/feedback/Modal.vue.d.ts +2 -2
- package/dist/types/components/feedback/Tooltip.vue.d.ts +1 -1
- package/dist/types/components/forms/Button.vue.d.ts +3 -2
- package/dist/types/components/forms/Combobox.vue.d.ts +3 -3
- package/dist/types/components/forms/DateField.vue.d.ts +3 -3
- package/dist/types/components/forms/DateRangeField.vue.d.ts +3 -3
- package/dist/types/components/forms/DateTimeField.vue.d.ts +3 -3
- package/dist/types/components/forms/MenuButton.vue.d.ts +23 -0
- package/dist/types/components/forms/MultiSelect.vue.d.ts +3 -3
- package/dist/types/components/forms/SearchInput.vue.d.ts +33 -2
- package/dist/types/components/forms/Select.vue.d.ts +2 -2
- package/dist/types/components/layout/AppShell.vue.d.ts +1 -1
- package/dist/types/components/layout/PageHeader.vue.d.ts +1 -1
- package/dist/types/components/layout/Sidebar.vue.d.ts +4 -4
- package/dist/types/components/layout/Stack.vue.d.ts +1 -1
- package/dist/types/components/layout/Topbar.vue.d.ts +1 -1
- package/dist/types/components/navigation/Breadcrumbs.vue.d.ts +1 -1
- package/dist/types/components/navigation/Switcher.vue.d.ts +3 -3
- package/dist/types/composables/eventColors.d.ts +2 -2
- package/dist/types/composables/useBodyScrollLock.d.ts +19 -0
- package/dist/types/composables/useCalendarTheme.d.ts +2 -0
- package/dist/types/composables/useField.d.ts +10 -0
- package/dist/types/composables/usePopover.d.ts +7 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/interfaces/data-display/Chart.interface.d.ts +97 -0
- package/dist/types/interfaces/data-display/Stat.interface.d.ts +17 -6
- package/dist/types/interfaces/data-display/calendar/AgendaView.interface.d.ts +5 -0
- package/dist/types/interfaces/data-display/calendar/DayView.interface.d.ts +5 -0
- package/dist/types/interfaces/data-display/calendar/MonthView.interface.d.ts +5 -0
- package/dist/types/interfaces/data-display/calendar/Scheduler.interface.d.ts +5 -0
- package/dist/types/interfaces/data-display/calendar/WeekView.interface.d.ts +5 -0
- package/dist/types/interfaces/feedback/Tooltip.interface.d.ts +11 -0
- package/dist/types/interfaces/forms/MenuButton.interface.d.ts +38 -0
- package/dist/types/interfaces/forms/SearchInput.interface.d.ts +36 -0
- package/dist/types/utils/cssLength.d.ts +5 -0
- package/dist/types/utils/tooltipArrow.d.ts +34 -0
- package/dist/utils/cssLength.cjs +13 -0
- package/dist/utils/cssLength.cjs.map +1 -0
- package/dist/utils/cssLength.mjs +13 -0
- package/dist/utils/cssLength.mjs.map +1 -0
- package/dist/utils/tooltipArrow.cjs +37 -0
- package/dist/utils/tooltipArrow.cjs.map +1 -0
- package/dist/utils/tooltipArrow.mjs +36 -0
- package/dist/utils/tooltipArrow.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
const require_useModoConfig = require("../../composables/useModoConfig.cjs");
|
|
3
|
+
const require_usePopover = require("../../composables/usePopover.cjs");
|
|
4
|
+
const require_useField = require("../../composables/useField.cjs");
|
|
3
5
|
const require_Loader = require("../feedback/Loader.cjs");
|
|
4
6
|
const require_Button = require("./Button.cjs");
|
|
7
|
+
const require_PopoverPanel = require("../layout/PopoverPanel.cjs");
|
|
5
8
|
const require_Typography = require("../data-display/Typography.cjs");
|
|
6
|
-
const require_useField = require("../../composables/useField.cjs");
|
|
7
9
|
let vue = require("vue");
|
|
8
10
|
let _heroicons_vue_24_outline = require("@heroicons/vue/24/outline");
|
|
9
11
|
//#region src/components/forms/SearchInput.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -26,7 +28,10 @@ var _hoisted_3 = [
|
|
|
26
28
|
"aria-label",
|
|
27
29
|
"aria-invalid",
|
|
28
30
|
"aria-describedby",
|
|
29
|
-
"aria-required"
|
|
31
|
+
"aria-required",
|
|
32
|
+
"aria-expanded",
|
|
33
|
+
"aria-controls",
|
|
34
|
+
"aria-activedescendant"
|
|
30
35
|
];
|
|
31
36
|
var _hoisted_4 = {
|
|
32
37
|
key: 2,
|
|
@@ -38,18 +43,52 @@ var _hoisted_4 = {
|
|
|
38
43
|
])
|
|
39
44
|
};
|
|
40
45
|
var _hoisted_5 = {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "px-3 py-6 flex items-center justify-center"
|
|
48
|
+
};
|
|
49
|
+
var _hoisted_6 = {
|
|
50
|
+
key: 1,
|
|
51
|
+
class: "px-3 py-6 text-center text-muted-foreground text-body"
|
|
52
|
+
};
|
|
53
|
+
var _hoisted_7 = ["id", "aria-busy"];
|
|
54
|
+
var _hoisted_8 = {
|
|
55
|
+
key: 0,
|
|
56
|
+
role: "presentation",
|
|
57
|
+
class: "px-3 pt-2 pb-1 text-caption font-medium text-muted-foreground select-none"
|
|
58
|
+
};
|
|
59
|
+
var _hoisted_9 = [
|
|
60
|
+
"id",
|
|
61
|
+
"aria-selected",
|
|
62
|
+
"aria-disabled"
|
|
63
|
+
];
|
|
64
|
+
var _hoisted_10 = { class: "flex flex-col min-w-0 flex-1" };
|
|
65
|
+
var _hoisted_11 = { class: "truncate" };
|
|
66
|
+
var _hoisted_12 = {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "text-caption text-muted-foreground truncate"
|
|
69
|
+
};
|
|
70
|
+
var _hoisted_13 = {
|
|
41
71
|
key: 1,
|
|
72
|
+
class: "ml-2 text-caption text-muted-foreground tabular-nums shrink-0",
|
|
73
|
+
"aria-hidden": "true"
|
|
74
|
+
};
|
|
75
|
+
var _hoisted_14 = {
|
|
76
|
+
key: 2,
|
|
42
77
|
class: "flex items-start justify-between gap-2"
|
|
43
78
|
};
|
|
44
|
-
var
|
|
79
|
+
var _hoisted_15 = {
|
|
45
80
|
key: 2,
|
|
46
81
|
class: "flex-1"
|
|
47
82
|
};
|
|
48
|
-
var
|
|
83
|
+
var _hoisted_16 = ["id"];
|
|
49
84
|
var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
50
85
|
__name: "SearchInput",
|
|
51
86
|
props: {
|
|
52
87
|
modelValue: {},
|
|
88
|
+
items: {},
|
|
89
|
+
open: { type: Boolean },
|
|
90
|
+
emptyText: {},
|
|
91
|
+
resultsPlacement: { default: "bottom-start" },
|
|
53
92
|
label: {},
|
|
54
93
|
placeholder: { default: "Search…" },
|
|
55
94
|
helperText: {},
|
|
@@ -100,17 +139,20 @@ var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
100
139
|
"focus",
|
|
101
140
|
"blur",
|
|
102
141
|
"clear",
|
|
103
|
-
"search"
|
|
142
|
+
"search",
|
|
143
|
+
"select",
|
|
144
|
+
"update:open"
|
|
104
145
|
],
|
|
105
146
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
106
147
|
const loc = require_useModoConfig.useModoLocale();
|
|
148
|
+
const slots = (0, vue.useSlots)();
|
|
107
149
|
const emit = __emit;
|
|
108
150
|
const props = __props;
|
|
109
151
|
require_useModoConfig.useResolvedSize(() => props.size);
|
|
110
152
|
const sz = require_useModoConfig.useSizeTokens(() => props.size);
|
|
111
153
|
const inputRef = (0, vue.ref)(null);
|
|
112
154
|
const focused = (0, vue.ref)(false);
|
|
113
|
-
const { fieldId, radius, stateColor, hasError, hasValue,
|
|
155
|
+
const { fieldId, radius, stateColor, hasError, hasValue, currentLength, showCounterEffective, counterOverflow, errorId, helperId, counterId, describedBy } = require_useField.useFieldState(props, {
|
|
114
156
|
componentName: "SearchInput",
|
|
115
157
|
idPrefix: "modo-search"
|
|
116
158
|
});
|
|
@@ -121,8 +163,76 @@ var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
121
163
|
radius,
|
|
122
164
|
halo: () => props.halo
|
|
123
165
|
});
|
|
166
|
+
const isDisabled = (0, vue.computed)(() => !!props.disabled);
|
|
124
167
|
const affordanceIconClass = (0, vue.computed)(() => require_useField.FIELD_AFFORDANCE_ICON_BY_COLOR[stateColor.value] ?? "text-muted-foreground");
|
|
125
168
|
const affordanceActionClass = (0, vue.computed)(() => require_useField.FIELD_AFFORDANCE_ACTION_BY_COLOR[stateColor.value] ?? "text-muted-foreground hover:text-foreground");
|
|
169
|
+
const resolvedRadius = require_useModoConfig.useResolvedRadius(() => props.radius);
|
|
170
|
+
const hasDropdown = (0, vue.computed)(() => props.items !== void 0 || !!slots.results);
|
|
171
|
+
const resultItems = (0, vue.computed)(() => props.items ?? []);
|
|
172
|
+
const highlightedIdx = (0, vue.ref)(-1);
|
|
173
|
+
const { triggerRef: popoverTrigger, panelRef, isOpen, panelStyle, open: openPopover, close: closePopover } = require_usePopover.usePopover({
|
|
174
|
+
placement: () => props.resultsPlacement,
|
|
175
|
+
matchTriggerWidth: true,
|
|
176
|
+
closeOnEscape: false,
|
|
177
|
+
closeOnScroll: false,
|
|
178
|
+
onOpen: () => emit("update:open", true),
|
|
179
|
+
onClose: () => {
|
|
180
|
+
emit("update:open", false);
|
|
181
|
+
highlightedIdx.value = -1;
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
const wrapperEl = (0, vue.ref)(null);
|
|
185
|
+
(0, vue.watch)(wrapperEl, (el) => {
|
|
186
|
+
popoverTrigger.value = el;
|
|
187
|
+
});
|
|
188
|
+
const renderRows = (0, vue.computed)(() => {
|
|
189
|
+
const rows = [];
|
|
190
|
+
let prevGroup;
|
|
191
|
+
resultItems.value.forEach((item, index) => {
|
|
192
|
+
if (item.group && item.group !== prevGroup) {
|
|
193
|
+
rows.push({
|
|
194
|
+
kind: "header",
|
|
195
|
+
label: item.group,
|
|
196
|
+
key: `h-${index}`
|
|
197
|
+
});
|
|
198
|
+
prevGroup = item.group;
|
|
199
|
+
}
|
|
200
|
+
rows.push({
|
|
201
|
+
kind: "option",
|
|
202
|
+
item,
|
|
203
|
+
index,
|
|
204
|
+
key: `o-${item.id ?? index}`
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
return rows;
|
|
208
|
+
});
|
|
209
|
+
const enabledIndices = (0, vue.computed)(() => resultItems.value.map((it, i) => it.disabled ? -1 : i).filter((i) => i !== -1));
|
|
210
|
+
const shouldShowResults = (0, vue.computed)(() => hasDropdown.value && focused.value && (resultItems.value.length > 0 || props.loading || !!props.emptyText || !!slots.empty));
|
|
211
|
+
function syncOpen() {
|
|
212
|
+
if (shouldShowResults.value) {
|
|
213
|
+
if (!isOpen.value) openPopover();
|
|
214
|
+
} else if (isOpen.value) closePopover();
|
|
215
|
+
}
|
|
216
|
+
(0, vue.watch)(shouldShowResults, syncOpen);
|
|
217
|
+
(0, vue.watch)(() => resultItems.value.length, () => {
|
|
218
|
+
if (isOpen.value || shouldShowResults.value) (0, vue.nextTick)(syncOpen);
|
|
219
|
+
});
|
|
220
|
+
(0, vue.watch)(() => props.open, (v) => {
|
|
221
|
+
if (v === void 0) return;
|
|
222
|
+
if (v && shouldShowResults.value) openPopover();
|
|
223
|
+
else if (!v) closePopover();
|
|
224
|
+
});
|
|
225
|
+
function moveHighlight(delta) {
|
|
226
|
+
const order = enabledIndices.value;
|
|
227
|
+
if (!order.length) return;
|
|
228
|
+
const cur = order.indexOf(highlightedIdx.value);
|
|
229
|
+
highlightedIdx.value = cur === -1 ? delta > 0 ? order[0] : order[order.length - 1] : order[(cur + delta + order.length) % order.length];
|
|
230
|
+
}
|
|
231
|
+
function selectResult(item) {
|
|
232
|
+
if (item.disabled) return;
|
|
233
|
+
emit("select", item);
|
|
234
|
+
closePopover();
|
|
235
|
+
}
|
|
126
236
|
let debounceTimer = null;
|
|
127
237
|
function scheduleSearch(value) {
|
|
128
238
|
if (!props.debounce || props.debounce <= 0) return;
|
|
@@ -144,18 +254,42 @@ var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
144
254
|
scheduleSearch(target.value);
|
|
145
255
|
}
|
|
146
256
|
function onKeydown(e) {
|
|
257
|
+
if (hasDropdown.value && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
|
|
258
|
+
e.preventDefault();
|
|
259
|
+
if (!isOpen.value && shouldShowResults.value) openPopover();
|
|
260
|
+
moveHighlight(e.key === "ArrowDown" ? 1 : -1);
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
147
263
|
if (e.key === "Enter") {
|
|
264
|
+
if (isOpen.value && highlightedIdx.value >= 0) {
|
|
265
|
+
const item = resultItems.value[highlightedIdx.value];
|
|
266
|
+
if (item && !item.disabled) {
|
|
267
|
+
e.preventDefault();
|
|
268
|
+
selectResult(item);
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
148
272
|
e.preventDefault();
|
|
149
273
|
cancelDebounce();
|
|
150
274
|
emit("search", String(props.modelValue ?? ""));
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
if (e.key === "Escape") {
|
|
278
|
+
if (isOpen.value) {
|
|
279
|
+
e.preventDefault();
|
|
280
|
+
closePopover();
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
if (hasValue.value) {
|
|
284
|
+
e.preventDefault();
|
|
285
|
+
onClear();
|
|
286
|
+
}
|
|
154
287
|
}
|
|
155
288
|
}
|
|
156
289
|
function onFocus(e) {
|
|
157
290
|
focused.value = true;
|
|
158
291
|
emit("focus", e);
|
|
292
|
+
if (hasDropdown.value) (0, vue.nextTick)(syncOpen);
|
|
159
293
|
}
|
|
160
294
|
function onBlur(e) {
|
|
161
295
|
focused.value = false;
|
|
@@ -238,14 +372,18 @@ var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
238
372
|
for: (0, vue.unref)(fieldId),
|
|
239
373
|
class: "text-caption font-medium text-foreground"
|
|
240
374
|
}, [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.label) + " ", 1), __props.required ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2, "*")) : (0, vue.createCommentVNode)("", true)], 8, _hoisted_1)) : (0, vue.createCommentVNode)("", true),
|
|
241
|
-
(0, vue.createElementVNode)("div", {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
375
|
+
(0, vue.createElementVNode)("div", {
|
|
376
|
+
ref_key: "wrapperEl",
|
|
377
|
+
ref: wrapperEl,
|
|
378
|
+
class: (0, vue.normalizeClass)([
|
|
379
|
+
"modo-field-wrapper flex items-center gap-2",
|
|
380
|
+
(0, vue.unref)(wrapperVariantClasses),
|
|
381
|
+
wrapperSizeClasses.value,
|
|
382
|
+
(0, vue.unref)(radiusClasses),
|
|
383
|
+
__props.fullWidth ? "w-full" : "",
|
|
384
|
+
isDisabled.value ? "opacity-60 cursor-not-allowed" : ""
|
|
385
|
+
])
|
|
386
|
+
}, [
|
|
249
387
|
(0, vue.createVNode)((0, vue.unref)(_heroicons_vue_24_outline.MagnifyingGlassIcon), {
|
|
250
388
|
"aria-hidden": "true",
|
|
251
389
|
class: (0, vue.normalizeClass)([
|
|
@@ -261,7 +399,7 @@ var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
261
399
|
type: "search",
|
|
262
400
|
value: __props.modelValue ?? "",
|
|
263
401
|
placeholder: __props.placeholder,
|
|
264
|
-
disabled:
|
|
402
|
+
disabled: isDisabled.value,
|
|
265
403
|
readonly: __props.readonly,
|
|
266
404
|
required: __props.required,
|
|
267
405
|
name: __props.name,
|
|
@@ -274,6 +412,9 @@ var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
274
412
|
"aria-invalid": (0, vue.unref)(hasError) || void 0,
|
|
275
413
|
"aria-describedby": (0, vue.unref)(describedBy),
|
|
276
414
|
"aria-required": __props.required || void 0,
|
|
415
|
+
"aria-expanded": hasDropdown.value ? (0, vue.unref)(isOpen) : void 0,
|
|
416
|
+
"aria-controls": hasDropdown.value && (0, vue.unref)(isOpen) ? `${(0, vue.unref)(fieldId)}-results` : void 0,
|
|
417
|
+
"aria-activedescendant": (0, vue.unref)(isOpen) && highlightedIdx.value >= 0 ? `${(0, vue.unref)(fieldId)}-opt-${highlightedIdx.value}` : void 0,
|
|
277
418
|
class: (0, vue.normalizeClass)([
|
|
278
419
|
"modo-field-native flex-1 min-w-0 bg-transparent p-0",
|
|
279
420
|
"text-foreground placeholder:text-muted-foreground",
|
|
@@ -289,7 +430,7 @@ var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
289
430
|
key: 0,
|
|
290
431
|
size: __props.size === "large" ? "medium" : "small",
|
|
291
432
|
class: (0, vue.normalizeClass)(["shrink-0", affordanceIconClass.value])
|
|
292
|
-
}, null, 8, ["size", "class"])) : (0, vue.unref)(hasValue) && !
|
|
433
|
+
}, null, 8, ["size", "class"])) : (0, vue.unref)(hasValue) && !isDisabled.value && !__props.readonly ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_Button.default, {
|
|
293
434
|
key: 1,
|
|
294
435
|
variant: "text",
|
|
295
436
|
size: "xs",
|
|
@@ -303,9 +444,75 @@ var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
303
444
|
"icon",
|
|
304
445
|
"ariaLabel",
|
|
305
446
|
"class"
|
|
306
|
-
])) : __props.shortcut
|
|
447
|
+
])) : __props.shortcut ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("kbd", _hoisted_4, (0, vue.toDisplayString)(shortcutLabel.value), 1)) : (0, vue.createCommentVNode)("", true)
|
|
307
448
|
], 2),
|
|
308
|
-
|
|
449
|
+
hasDropdown.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_PopoverPanel.default, {
|
|
450
|
+
key: 1,
|
|
451
|
+
open: (0, vue.unref)(isOpen),
|
|
452
|
+
style: (0, vue.normalizeStyle)((0, vue.unref)(panelStyle)),
|
|
453
|
+
radius: (0, vue.unref)(resolvedRadius),
|
|
454
|
+
role: "presentation",
|
|
455
|
+
"onUpdate:panelRef": _cache[1] || (_cache[1] = ($event) => panelRef.value = $event)
|
|
456
|
+
}, {
|
|
457
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", {
|
|
458
|
+
class: "modo-search-results",
|
|
459
|
+
onMousedown: _cache[0] || (_cache[0] = (0, vue.withModifiers)(() => {}, ["prevent"]))
|
|
460
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "results", {
|
|
461
|
+
items: resultItems.value,
|
|
462
|
+
query: String(__props.modelValue ?? ""),
|
|
463
|
+
highlighted: highlightedIdx.value,
|
|
464
|
+
select: selectResult,
|
|
465
|
+
close: (0, vue.unref)(closePopover)
|
|
466
|
+
}, () => [__props.loading && !resultItems.value.length ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_5, [(0, vue.renderSlot)(_ctx.$slots, "loading", {}, () => [(0, vue.createVNode)(require_Loader.default, { size: "small" })])])) : !resultItems.value.length ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_6, [(0, vue.renderSlot)(_ctx.$slots, "empty", {}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.emptyText), 1)])])) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("ul", {
|
|
467
|
+
key: 2,
|
|
468
|
+
id: `${(0, vue.unref)(fieldId)}-results`,
|
|
469
|
+
role: "listbox",
|
|
470
|
+
"aria-busy": __props.loading || void 0,
|
|
471
|
+
class: "flex flex-col"
|
|
472
|
+
}, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(renderRows.value, (row) => {
|
|
473
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: row.key }, [row.kind === "header" ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("li", _hoisted_8, (0, vue.toDisplayString)(row.label), 1)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("li", {
|
|
474
|
+
key: 1,
|
|
475
|
+
id: `${(0, vue.unref)(fieldId)}-opt-${row.index}`,
|
|
476
|
+
role: "option",
|
|
477
|
+
"aria-selected": row.index === highlightedIdx.value,
|
|
478
|
+
"aria-disabled": row.item.disabled || void 0
|
|
479
|
+
}, [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(row.item.href && !row.item.disabled ? "a" : "div"), {
|
|
480
|
+
href: row.item.href && !row.item.disabled ? row.item.href : void 0,
|
|
481
|
+
target: row.item.external ? "_blank" : void 0,
|
|
482
|
+
rel: row.item.external ? "noopener noreferrer" : void 0,
|
|
483
|
+
class: (0, vue.normalizeClass)(["flex items-center gap-2.5 px-3 py-2 text-body transition-colors duration-fast ease-standard", [row.item.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer", row.index === highlightedIdx.value && !row.item.disabled ? "bg-accent" : ""]]),
|
|
484
|
+
onMouseenter: ($event) => row.item.disabled ? null : highlightedIdx.value = row.index,
|
|
485
|
+
onClick: ($event) => selectResult(row.item)
|
|
486
|
+
}, {
|
|
487
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "item", {
|
|
488
|
+
item: row.item,
|
|
489
|
+
active: row.index === highlightedIdx.value
|
|
490
|
+
}, () => [
|
|
491
|
+
row.item.icon ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(row.item.icon), {
|
|
492
|
+
key: 0,
|
|
493
|
+
class: "size-4 shrink-0 text-muted-foreground",
|
|
494
|
+
"aria-hidden": "true"
|
|
495
|
+
})) : (0, vue.createCommentVNode)("", true),
|
|
496
|
+
(0, vue.createElementVNode)("span", _hoisted_10, [(0, vue.createElementVNode)("span", _hoisted_11, (0, vue.toDisplayString)(row.item.label), 1), row.item.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_12, (0, vue.toDisplayString)(row.item.description), 1)) : (0, vue.createCommentVNode)("", true)]),
|
|
497
|
+
row.item.shortcut ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_13, (0, vue.toDisplayString)(row.item.shortcut), 1)) : (0, vue.createCommentVNode)("", true)
|
|
498
|
+
])]),
|
|
499
|
+
_: 2
|
|
500
|
+
}, 1064, [
|
|
501
|
+
"href",
|
|
502
|
+
"target",
|
|
503
|
+
"rel",
|
|
504
|
+
"class",
|
|
505
|
+
"onMouseenter",
|
|
506
|
+
"onClick"
|
|
507
|
+
]))], 8, _hoisted_9))], 64);
|
|
508
|
+
}), 128))], 8, _hoisted_7))])], 32)]),
|
|
509
|
+
_: 3
|
|
510
|
+
}, 8, [
|
|
511
|
+
"open",
|
|
512
|
+
"style",
|
|
513
|
+
"radius"
|
|
514
|
+
])) : (0, vue.createCommentVNode)("", true),
|
|
515
|
+
__props.errorText || __props.helperText || (0, vue.unref)(showCounterEffective) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_14, [__props.errorText ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_Typography.default, {
|
|
309
516
|
key: 0,
|
|
310
517
|
id: (0, vue.unref)(errorId),
|
|
311
518
|
variant: "caption",
|
|
@@ -325,11 +532,11 @@ var SearchInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
325
532
|
}, {
|
|
326
533
|
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.helperText), 1)]),
|
|
327
534
|
_: 1
|
|
328
|
-
}, 8, ["id"])) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span",
|
|
535
|
+
}, 8, ["id"])) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_15)), (0, vue.unref)(showCounterEffective) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
329
536
|
key: 3,
|
|
330
537
|
id: (0, vue.unref)(counterId),
|
|
331
538
|
class: (0, vue.normalizeClass)(["text-caption shrink-0 tabular-nums", (0, vue.unref)(counterOverflow) ? "text-destructive" : "text-muted-foreground"])
|
|
332
|
-
}, (0, vue.toDisplayString)((0, vue.unref)(currentLength)) + "/" + (0, vue.toDisplayString)(__props.maxLength), 11,
|
|
539
|
+
}, (0, vue.toDisplayString)((0, vue.unref)(currentLength)) + "/" + (0, vue.toDisplayString)(__props.maxLength), 11, _hoisted_16)) : (0, vue.createCommentVNode)("", true)])) : (0, vue.createCommentVNode)("", true)
|
|
333
540
|
], 2);
|
|
334
541
|
};
|
|
335
542
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../../src/components/forms/SearchInput.vue"],"sourcesContent":["<template> \n <div :class=\"['flex flex-col gap-1.5', fullWidth ? 'w-full' : 'inline-flex']\"> \n <label \n v-if=\"label\" \n :for=\"fieldId\" \n class=\"text-caption font-medium text-foreground\" \n > \n {{ label }} \n <span v-if=\"required\" aria-hidden=\"true\" class=\"text-destructive ml-0.5\">*</span> \n </label> \n \n <div \n :class=\"[ \n 'modo-field-wrapper flex items-center gap-2', \n wrapperVariantClasses, \n wrapperSizeClasses, \n radiusClasses, \n fullWidth ? 'w-full' : '', \n isDisabled ? 'opacity-60 cursor-not-allowed' : '', \n ]\" \n > \n <MagnifyingGlassIcon \n aria-hidden=\"true\" \n :class=\"['shrink-0', affordanceIconClass, iconSizeClasses]\" \n /> \n \n <input \n :id=\"fieldId\" \n ref=\"inputRef\" \n type=\"search\" \n :value=\"modelValue ?? ''\" \n :placeholder=\"placeholder\" \n :disabled=\"isDisabled\" \n :readonly=\"readonly\" \n :required=\"required\" \n :name=\"name\" \n :maxlength=\"maxLength\" \n :autofocus=\"autofocus\" \n autocomplete=\"off\" \n spellcheck=\"false\" \n role=\"searchbox\" \n :aria-label=\"!label ? ariaLabel : undefined\" \n :aria-invalid=\"hasError || undefined\" \n :aria-describedby=\"describedBy\" \n :aria-required=\"required || undefined\" \n :class=\"[ \n 'modo-field-native flex-1 min-w-0 bg-transparent p-0', \n 'text-foreground placeholder:text-muted-foreground', \n 'disabled:cursor-not-allowed', \n inputTextClasses, \n ]\" \n @input=\"onInput\" \n @keydown=\"onKeydown\" \n @focus=\"onFocus\" \n @blur=\"onBlur\" \n /> \n \n <Loader \n v-if=\"loading\" \n :size=\"size === 'large' ? 'medium' : 'small'\" \n :class=\"['shrink-0', affordanceIconClass]\" \n /> \n \n <Button \n v-else-if=\"hasValue && !isDisabled && !readonly\" \n variant=\"text\" \n size=\"xs\" \n radius=\"full\" \n :icon=\"XMarkIcon\" \n :ariaLabel=\"loc.searchInput.clear\" \n tabindex=\"-1\" \n :class=\"['shrink-0', affordanceActionClass]\" \n @click=\"onClear\" \n /> \n \n <kbd \n v-else-if=\"shortcut && !focused\" \n aria-hidden=\"true\" \n :class=\"[ \n 'shrink-0 select-none rounded-md px-1.5 py-0.5', \n 'text-[11px] leading-none font-sans font-medium tabular-nums', \n 'bg-muted text-muted-foreground border border-border', \n ]\" \n > \n {{ shortcutLabel }} \n </kbd> \n </div> \n \n <div \n v-if=\"errorText || helperText || showCounterEffective\" \n class=\"flex items-start justify-between gap-2\" \n > \n <Typography \n v-if=\"errorText\" \n :id=\"errorId\" \n variant=\"caption\" \n size=\"medium\" \n color=\"danger\" \n as=\"p\" \n > \n {{ errorText }} \n </Typography> \n <Typography \n v-else-if=\"helperText\" \n :id=\"helperId\" \n variant=\"caption\" \n size=\"medium\" \n color=\"muted\" \n as=\"p\" \n > \n {{ helperText }} \n </Typography> \n <span v-else class=\"flex-1\" /> \n \n <span \n v-if=\"showCounterEffective\" \n :id=\"counterId\" \n :class=\"[ \n 'text-caption shrink-0 tabular-nums', \n counterOverflow ? 'text-destructive' : 'text-muted-foreground', \n ]\" \n > \n {{ currentLength }}/{{ maxLength }} \n </span> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, onBeforeUnmount, onMounted, ref } from 'vue'; \nimport type { SearchInput } from '../../interfaces/forms/SearchInput.interface'; \nimport {\n useFieldState,\n useFieldClasses,\n FIELD_AFFORDANCE_ACTION_BY_COLOR,\n FIELD_AFFORDANCE_ICON_BY_COLOR,\n} from '../../composables/useField'; \nimport Loader from '../feedback/Loader.vue'; \nimport Button from './Button.vue'; \nimport { MagnifyingGlassIcon, XMarkIcon } from '@heroicons/vue/24/outline'; \nimport Typography from '../data-display/Typography.vue'; \nimport { useModoLocale, useResolvedSize, useSizeTokens } from '../../composables/useModoConfig';\n \nconst loc = useModoLocale(); \n \nconst emit = defineEmits<{ \n 'update:modelValue': [value: string]; \n change: [value: string]; \n focus: [event: FocusEvent]; \n blur: [event: FocusEvent]; \n clear: []; \n /** Se emite al presionar Enter o tras el debounce. */ \n search: [value: string]; \n}>(); \n \nconst props = withDefaults(defineProps<SearchInput>(), { \n variant: 'outline', \n color: 'default', \n disabled: false, \n readonly: false, \n required: false, \n loading: false, \n fullWidth: false, \n showCounter: false, \n autofocus: false, \n debounce: 0, \n placeholder: 'Search…', \n}); \n \nconst resolvedSize = useResolvedSize(() => props.size);\nconst sz = useSizeTokens(() => props.size);\n\nconst inputRef = ref<HTMLInputElement | null>(null); \nconst focused = ref(false); \n \nconst { \n fieldId, \n radius, \n stateColor, \n hasError, \n hasValue, \n isDisabled, \n currentLength, \n showCounterEffective, \n counterOverflow, \n errorId, \n helperId, \n counterId, \n describedBy, \n} = useFieldState(props, { componentName: 'SearchInput', idPrefix: 'modo-search' }); \n \nconst { wrapperVariantClasses, radiusClasses } = useFieldClasses({ \n variant: () => props.variant, \n stateColor, \n hasError, \n radius, \n halo: () => props.halo, \n}); \n\nconst affordanceIconClass = computed(() => FIELD_AFFORDANCE_ICON_BY_COLOR[stateColor.value] ?? 'text-muted-foreground');\nconst affordanceActionClass = computed(() => FIELD_AFFORDANCE_ACTION_BY_COLOR[stateColor.value] ?? 'text-muted-foreground hover:text-foreground');\n \n/* ---------- Debounce ---------- */ \nlet debounceTimer: number | null = null; \nfunction scheduleSearch(value: string) { \n if (!props.debounce || props.debounce <= 0) return; \n if (debounceTimer !== null) clearTimeout(debounceTimer); \n debounceTimer = window.setTimeout(() => { \n emit('search', value); \n debounceTimer = null; \n }, props.debounce); \n} \nfunction cancelDebounce() { \n if (debounceTimer !== null) { \n clearTimeout(debounceTimer); \n debounceTimer = null; \n } \n} \n \n/* ---------- Events ---------- */ \nfunction onInput(e: Event) { \n const target = e.target as HTMLInputElement; \n emit('update:modelValue', target.value); \n scheduleSearch(target.value); \n} \n \nfunction onKeydown(e: KeyboardEvent) { \n if (e.key === 'Enter') { \n e.preventDefault(); \n cancelDebounce(); \n emit('search', String(props.modelValue ?? '')); \n } else if (e.key === 'Escape' && hasValue.value) { \n e.preventDefault(); \n onClear(); \n } \n} \n \nfunction onFocus(e: FocusEvent) { \n focused.value = true; \n emit('focus', e); \n} \n \nfunction onBlur(e: FocusEvent) { \n focused.value = false; \n emit('blur', e); \n} \n \nfunction onClear() { \n cancelDebounce(); \n emit('update:modelValue', ''); \n emit('clear'); \n emit('search', ''); \n inputRef.value?.focus(); \n} \n \n/* ---------- Shortcut ---------- */\n// Stays `false` on SSR and on the first client paint to keep them\n// identical, then flips to the real platform value in onMounted. Without\n// this guard the server would render `Ctrl+K` and the client would\n// immediately replace it with `⌘K`, triggering a hydration warning.\nconst isMac = ref(false);\nonMounted(() => {\n isMac.value = /Mac|iPod|iPhone|iPad/.test(navigator.platform);\n});\n \ninterface ParsedShortcut { \n key: string; \n ctrl: boolean; \n meta: boolean; \n shift: boolean; \n alt: boolean; \n} \n \nconst parsedShortcut = computed<ParsedShortcut | null>(() => { \n if (!props.shortcut) return null; \n const parts = props.shortcut.toLowerCase().split('+').map((p) => p.trim()); \n const result: ParsedShortcut = { key: '', ctrl: false, meta: false, shift: false, alt: false }; \n for (const part of parts) { \n if (part === 'cmd' || part === 'meta' || part === 'command') { \n if (isMac.value) result.meta = true; \n else result.ctrl = true; \n } else if (part === 'ctrl' || part === 'control') { \n result.ctrl = true; \n } else if (part === 'shift') { \n result.shift = true; \n } else if (part === 'alt' || part === 'option') { \n result.alt = true; \n } else { \n result.key = part; \n } \n } \n return result.key ? result : null; \n}); \n \nconst shortcutLabel = computed(() => { \n const s = parsedShortcut.value; \n if (!s) return ''; \n const segs: string[] = []; \n if (s.meta) segs.push(isMac.value ? '⌘' : 'Ctrl');\n else if (s.ctrl) segs.push(isMac.value ? '⌃' : 'Ctrl');\n if (s.alt) segs.push(isMac.value ? '⌥' : 'Alt');\n if (s.shift) segs.push(isMac.value ? '⇧' : 'Shift');\n segs.push(s.key.length === 1 ? s.key.toUpperCase() : s.key); \n return segs.join(isMac.value ? '' : '+'); \n}); \n \nfunction onGlobalKeydown(e: KeyboardEvent) { \n const s = parsedShortcut.value; \n if (!s) return; \n \n // No robar atajos mientras el usuario escribe en otro campo (a menos que sea una combinación con modificador). \n const target = e.target as HTMLElement | null; \n const typingElsewhere = !!target && (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable); \n const hasModifier = s.meta || s.ctrl || s.alt; \n if (typingElsewhere && !hasModifier && target !== inputRef.value) return; \n \n if ( \n e.key.toLowerCase() === s.key && \n e.metaKey === s.meta && \n e.ctrlKey === s.ctrl && \n e.shiftKey === s.shift && \n e.altKey === s.alt \n ) { \n e.preventDefault(); \n inputRef.value?.focus(); \n inputRef.value?.select(); \n } \n} \n \nonMounted(() => { \n if (parsedShortcut.value) { \n window.addEventListener('keydown', onGlobalKeydown); \n } \n}); \n \nonBeforeUnmount(() => { \n cancelDebounce(); \n window.removeEventListener('keydown', onGlobalKeydown); \n}); \n \n/* ---------- Classes ---------- */ \n \nconst wrapperSizeClasses = computed(() => `${sz.value.control} ${sz.value.padX}`);\n\nconst inputTextClasses = computed(() => sz.value.text);\n\nconst iconSizeClasses = computed(() => sz.value.icon); \n \ndefineExpose({ \n focus: () => inputRef.value?.focus(), \n blur: () => inputRef.value?.blur(), \n select: () => inputRef.value?.select(), \n clear: onClear, \n inputRef, \n}); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+IA,MAAM,MAAM,sBAAA,eAAe;EAE3B,MAAM,OAAO;EAUb,MAAM,QAAQ;EAcO,sBAAA,sBAAsB,MAAM,KAAK;EACtD,MAAM,KAAK,sBAAA,oBAAoB,MAAM,KAAK;EAE1C,MAAM,YAAA,GAAA,IAAA,KAAwC,KAAK;EACnD,MAAM,WAAA,GAAA,IAAA,KAAc,MAAM;EAE1B,MAAM,EACF,SACA,QACA,YACA,UACA,UACA,YACA,eACA,sBACA,iBACA,SACA,UACA,WACA,gBACA,iBAAA,cAAc,OAAO;GAAE,eAAe;GAAe,UAAU;GAAe,CAAC;EAEnF,MAAM,EAAE,uBAAuB,kBAAkB,iBAAA,gBAAgB;GAC7D,eAAe,MAAM;GACrB;GACA;GACA;GACA,YAAY,MAAM;GACrB,CAAC;EAEF,MAAM,uBAAA,GAAA,IAAA,gBAAqC,iBAAA,+BAA+B,WAAW,UAAU,wBAAwB;EACvH,MAAM,yBAAA,GAAA,IAAA,gBAAuC,iBAAA,iCAAiC,WAAW,UAAU,8CAA8C;EAGjJ,IAAI,gBAA+B;EACnC,SAAS,eAAe,OAAe;GACnC,IAAI,CAAC,MAAM,YAAY,MAAM,YAAY,GAAG;GAC5C,IAAI,kBAAkB,MAAM,aAAa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AA,aAAa,QAAA,eAAA,GAAA,IAAA,OAAc,qBAAoB,KAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,oBAmCnD,OApCN,YAoCM,CA/BQ,QAAA,cAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,aAQG,mBAAA,SAAA;;KAPR,KAAA,GAAA,IAAA,OAAI,QAAO;KACZ,SAAQ;KACR,MAAK;KACL,OAAM;KACN,IAAG;;qCAEY,EAAA,GAAA,IAAA,kBAAA,GAAA,IAAA,iBAAZ,QAAA,UAAS,EAAA,EAAA,CAAA,CAAA;;qBAGD,QAAA,eAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,aAQF,mBAAA,SAAA;;KAPR,KAAA,GAAA,IAAA,OAAI,SAAQ;KACb,SAAQ;KACR,MAAK;KACL,OAAM;KACN,IAAG;;qCAEa,EAAA,GAAA,IAAA,kBAAA,GAAA,IAAA,iBAAb,QAAA,WAAU,EAAA,EAAA,CAAA,CAAA;;wEAEa,QAA9B,WAA8B,IAAA,GAAA,IAAA,OAGpB,qBAAoB,KAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,oBAQvB,QAAA;;KAPF,KAAA,GAAA,IAAA,OAAI,UAAS;KACb,QAAA,GAAA,IAAA,gBAAK,CAAA,uCAAA,GAAA,IAAA,OAAoF,gBAAe,GAAA,qBAAA,wBAAA,CAAA;+CAKtG,cAAa,CAAA,GAAG,OAAA,GAAA,IAAA,iBAAI,QAAA,UAAS,EAAA,IAAA,WAAA,KAAA,GAAA,IAAA,oBAAA,IAAA,KAAA,CAAA,CAAA,KAAA,GAAA,IAAA,oBAAA,IAAA,KAAA"}
|
|
1
|
+
{"version":3,"file":"SearchInput.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../../src/components/forms/SearchInput.vue"],"sourcesContent":["<template> \n <div :class=\"['flex flex-col gap-1.5', fullWidth ? 'w-full' : 'inline-flex']\"> \n <label \n v-if=\"label\" \n :for=\"fieldId\" \n class=\"text-caption font-medium text-foreground\" \n > \n {{ label }} \n <span v-if=\"required\" aria-hidden=\"true\" class=\"text-destructive ml-0.5\">*</span> \n </label> \n \n <div\n ref=\"wrapperEl\"\n :class=\"[\n 'modo-field-wrapper flex items-center gap-2',\n wrapperVariantClasses,\n wrapperSizeClasses,\n radiusClasses,\n fullWidth ? 'w-full' : '',\n isDisabled ? 'opacity-60 cursor-not-allowed' : '',\n ]\"\n >\n <MagnifyingGlassIcon \n aria-hidden=\"true\" \n :class=\"['shrink-0', affordanceIconClass, iconSizeClasses]\" \n /> \n \n <input \n :id=\"fieldId\" \n ref=\"inputRef\" \n type=\"search\" \n :value=\"modelValue ?? ''\" \n :placeholder=\"placeholder\" \n :disabled=\"isDisabled\" \n :readonly=\"readonly\" \n :required=\"required\" \n :name=\"name\" \n :maxlength=\"maxLength\" \n :autofocus=\"autofocus\" \n autocomplete=\"off\" \n spellcheck=\"false\" \n role=\"searchbox\"\n :aria-label=\"!label ? ariaLabel : undefined\"\n :aria-invalid=\"hasError || undefined\"\n :aria-describedby=\"describedBy\"\n :aria-required=\"required || undefined\"\n :aria-expanded=\"hasDropdown ? isOpen : undefined\"\n :aria-controls=\"hasDropdown && isOpen ? `${fieldId}-results` : undefined\"\n :aria-activedescendant=\"isOpen && highlightedIdx >= 0 ? `${fieldId}-opt-${highlightedIdx}` : undefined\"\n :class=\"[ \n 'modo-field-native flex-1 min-w-0 bg-transparent p-0', \n 'text-foreground placeholder:text-muted-foreground', \n 'disabled:cursor-not-allowed', \n inputTextClasses, \n ]\" \n @input=\"onInput\" \n @keydown=\"onKeydown\" \n @focus=\"onFocus\" \n @blur=\"onBlur\" \n /> \n \n <Loader \n v-if=\"loading\" \n :size=\"size === 'large' ? 'medium' : 'small'\" \n :class=\"['shrink-0', affordanceIconClass]\" \n /> \n \n <Button \n v-else-if=\"hasValue && !isDisabled && !readonly\" \n variant=\"text\" \n size=\"xs\" \n radius=\"full\" \n :icon=\"XMarkIcon\" \n :ariaLabel=\"loc.searchInput.clear\" \n tabindex=\"-1\" \n :class=\"['shrink-0', affordanceActionClass]\" \n @click=\"onClear\" \n /> \n \n <!-- The shortcut hint stays while the field is empty (focused or not)\n so focusing never removes it and reflows the width. It yields to\n the clear button as soon as there is a value. -->\n <kbd\n v-else-if=\"shortcut\"\n aria-hidden=\"true\"\n :class=\"[ \n 'shrink-0 select-none rounded-md px-1.5 py-0.5', \n 'text-[11px] leading-none font-sans font-medium tabular-nums', \n 'bg-muted text-muted-foreground border border-border', \n ]\" \n > \n {{ shortcutLabel }}\n </kbd>\n </div>\n\n <!-- RESULTS DROPDOWN -->\n <PopoverPanel\n v-if=\"hasDropdown\"\n :open=\"isOpen\"\n :style=\"panelStyle\"\n :radius=\"resolvedRadius\"\n role=\"presentation\"\n @update:panelRef=\"panelRef = $event\"\n >\n <!-- mousedown.prevent keeps focus in the input while clicking a row -->\n <div class=\"modo-search-results\" @mousedown.prevent>\n <slot\n name=\"results\"\n :items=\"resultItems\"\n :query=\"String(modelValue ?? '')\"\n :highlighted=\"highlightedIdx\"\n :select=\"selectResult\"\n :close=\"closePopover\"\n >\n <!--\n The panel loader only takes over when there is nothing\n to show yet. Swapping a populated list for a spinner on\n every keystroke makes the dropdown collapse and reopen\n as the user types; the affordance spinner in the field\n already signals the in-flight request.\n -->\n <div v-if=\"loading && !resultItems.length\" class=\"px-3 py-6 flex items-center justify-center\">\n <slot name=\"loading\"><Loader size=\"small\" /></slot>\n </div>\n <div\n v-else-if=\"!resultItems.length\"\n class=\"px-3 py-6 text-center text-muted-foreground text-body\"\n >\n <slot name=\"empty\">{{ emptyText }}</slot>\n </div>\n <ul\n v-else\n :id=\"`${fieldId}-results`\"\n role=\"listbox\"\n :aria-busy=\"loading || undefined\"\n class=\"flex flex-col\"\n >\n <template v-for=\"row in renderRows\" :key=\"row.key\">\n <li\n v-if=\"row.kind === 'header'\"\n role=\"presentation\"\n class=\"px-3 pt-2 pb-1 text-caption font-medium text-muted-foreground select-none\"\n >\n {{ row.label }}\n </li>\n <li\n v-else\n :id=\"`${fieldId}-opt-${row.index}`\"\n role=\"option\"\n :aria-selected=\"row.index === highlightedIdx\"\n :aria-disabled=\"row.item.disabled || undefined\"\n >\n <component\n :is=\"row.item.href && !row.item.disabled ? 'a' : 'div'\"\n :href=\"row.item.href && !row.item.disabled ? row.item.href : undefined\"\n :target=\"row.item.external ? '_blank' : undefined\"\n :rel=\"row.item.external ? 'noopener noreferrer' : undefined\"\n class=\"flex items-center gap-2.5 px-3 py-2 text-body transition-colors duration-fast ease-standard\"\n :class=\"[\n row.item.disabled\n ? 'opacity-50 cursor-not-allowed'\n : 'cursor-pointer',\n row.index === highlightedIdx && !row.item.disabled ? 'bg-accent' : '',\n ]\"\n @mouseenter=\"row.item.disabled ? null : (highlightedIdx = row.index)\"\n @click=\"selectResult(row.item)\"\n >\n <slot name=\"item\" :item=\"row.item\" :active=\"row.index === highlightedIdx\">\n <component\n :is=\"row.item.icon\"\n v-if=\"row.item.icon\"\n class=\"size-4 shrink-0 text-muted-foreground\"\n aria-hidden=\"true\"\n />\n <span class=\"flex flex-col min-w-0 flex-1\">\n <span class=\"truncate\">{{ row.item.label }}</span>\n <span\n v-if=\"row.item.description\"\n class=\"text-caption text-muted-foreground truncate\"\n >{{ row.item.description }}</span>\n </span>\n <span\n v-if=\"row.item.shortcut\"\n class=\"ml-2 text-caption text-muted-foreground tabular-nums shrink-0\"\n aria-hidden=\"true\"\n >{{ row.item.shortcut }}</span>\n </slot>\n </component>\n </li>\n </template>\n </ul>\n </slot>\n </div>\n </PopoverPanel>\n\n <div\n v-if=\"errorText || helperText || showCounterEffective\" \n class=\"flex items-start justify-between gap-2\" \n > \n <Typography \n v-if=\"errorText\" \n :id=\"errorId\" \n variant=\"caption\" \n size=\"medium\" \n color=\"danger\" \n as=\"p\" \n > \n {{ errorText }} \n </Typography> \n <Typography \n v-else-if=\"helperText\" \n :id=\"helperId\" \n variant=\"caption\" \n size=\"medium\" \n color=\"muted\" \n as=\"p\" \n > \n {{ helperText }} \n </Typography> \n <span v-else class=\"flex-1\" /> \n \n <span \n v-if=\"showCounterEffective\" \n :id=\"counterId\" \n :class=\"[ \n 'text-caption shrink-0 tabular-nums', \n counterOverflow ? 'text-destructive' : 'text-muted-foreground', \n ]\" \n > \n {{ currentLength }}/{{ maxLength }} \n </span> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { computed, onBeforeUnmount, onMounted, ref, useSlots, watch, nextTick } from 'vue';\nimport type { SearchInput, SearchResultItem } from '../../interfaces/forms/SearchInput.interface';\nimport {\n useFieldState,\n useFieldClasses,\n FIELD_AFFORDANCE_ACTION_BY_COLOR,\n FIELD_AFFORDANCE_ICON_BY_COLOR,\n} from '../../composables/useField';\nimport Loader from '../feedback/Loader.vue';\nimport Button from './Button.vue';\nimport PopoverPanel from '../layout/PopoverPanel.vue';\nimport { usePopover } from '../../composables/usePopover';\nimport { MagnifyingGlassIcon, XMarkIcon } from '@heroicons/vue/24/outline';\nimport Typography from '../data-display/Typography.vue';\nimport { useModoLocale, useResolvedRadius, useResolvedSize, useSizeTokens } from '../../composables/useModoConfig';\n\nconst loc = useModoLocale();\nconst slots = useSlots();\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string];\n change: [value: string];\n focus: [event: FocusEvent];\n blur: [event: FocusEvent];\n clear: [];\n /** Se emite al presionar Enter o tras el debounce. */\n search: [value: string];\n /** A result row was chosen (click / Enter on the highlighted row). */\n select: [item: SearchResultItem];\n /** Results popover open state (for `v-model:open`). */\n 'update:open': [value: boolean];\n}>();\n\nconst props = withDefaults(defineProps<SearchInput>(), {\n variant: 'outline',\n color: 'default',\n disabled: false,\n readonly: false,\n required: false,\n loading: false,\n fullWidth: false,\n showCounter: false,\n autofocus: false,\n debounce: 0,\n placeholder: 'Search…',\n resultsPlacement: 'bottom-start',\n});\n \nconst resolvedSize = useResolvedSize(() => props.size);\nconst sz = useSizeTokens(() => props.size);\n\nconst inputRef = ref<HTMLInputElement | null>(null); \nconst focused = ref(false); \n \nconst { \n fieldId, \n radius, \n stateColor, \n hasError, \n hasValue, \n currentLength,\n showCounterEffective, \n counterOverflow, \n errorId, \n helperId, \n counterId, \n describedBy, \n} = useFieldState(props, { componentName: 'SearchInput', idPrefix: 'modo-search' }); \n \nconst { wrapperVariantClasses, radiusClasses } = useFieldClasses({ \n variant: () => props.variant, \n stateColor, \n hasError, \n radius, \n halo: () => props.halo, \n}); \n\n// Deliberately NOT `useFieldState`'s `isDisabled`, which also reports true\n// while `loading`. That is right for a field being submitted, but fatal for a\n// search box: the results are what load, not the input. Disabling it mid-query\n// makes the browser blur the element the user is typing in — focus is lost, the\n// results popover closes, and the next keystroke is dropped. For SearchInput,\n// only an explicit `disabled` disables.\nconst isDisabled = computed(() => !!props.disabled);\n\nconst affordanceIconClass = computed(() => FIELD_AFFORDANCE_ICON_BY_COLOR[stateColor.value] ?? 'text-muted-foreground');\nconst affordanceActionClass = computed(() => FIELD_AFFORDANCE_ACTION_BY_COLOR[stateColor.value] ?? 'text-muted-foreground hover:text-foreground');\n\n/* ---------- Results dropdown ---------- */\nconst resolvedRadius = useResolvedRadius(() => props.radius);\n\n// The dropdown is active when the host passes `items` (even empty) or a custom\n// `#results` slot. Filtering/async stays with the host — this only renders.\nconst hasDropdown = computed(() => props.items !== undefined || !!slots.results);\nconst resultItems = computed<SearchResultItem[]>(() => props.items ?? []);\n\nconst highlightedIdx = ref(-1);\nconst {\n triggerRef: popoverTrigger,\n panelRef,\n isOpen,\n panelStyle,\n open: openPopover,\n close: closePopover,\n} = usePopover({\n placement: () => props.resultsPlacement,\n matchTriggerWidth: true,\n closeOnEscape: false, // handled on the input so focus stays in the field\n closeOnScroll: false, // reposition on scroll; focusing the input can auto-scroll it into view\n onOpen: () => emit('update:open', true),\n onClose: () => { emit('update:open', false); highlightedIdx.value = -1; },\n});\n\nconst wrapperEl = ref<HTMLElement | null>(null);\nwatch(wrapperEl, (el) => { popoverTrigger.value = el; });\n\n// Flat render list with a group header inserted whenever `group` changes.\ntype RenderRow =\n | { kind: 'header'; label: string; key: string }\n | { kind: 'option'; item: SearchResultItem; index: number; key: string };\nconst renderRows = computed<RenderRow[]>(() => {\n const rows: RenderRow[] = [];\n let prevGroup: string | undefined;\n resultItems.value.forEach((item, index) => {\n if (item.group && item.group !== prevGroup) {\n rows.push({ kind: 'header', label: item.group, key: `h-${index}` });\n prevGroup = item.group;\n }\n rows.push({ kind: 'option', item, index, key: `o-${item.id ?? index}` });\n });\n return rows;\n});\n\nconst enabledIndices = computed(() =>\n resultItems.value.map((it, i) => (it.disabled ? -1 : i)).filter((i) => i !== -1),\n);\n\n// Show the popover only while focused and there is something to render.\nconst shouldShowResults = computed(() =>\n hasDropdown.value && focused.value &&\n (resultItems.value.length > 0 || props.loading || !!props.emptyText || !!slots.empty),\n);\n\nfunction syncOpen() {\n if (shouldShowResults.value) { if (!isOpen.value) openPopover(); }\n else if (isOpen.value) closePopover();\n}\nwatch(shouldShowResults, syncOpen);\nwatch(() => resultItems.value.length, () => { if (isOpen.value || shouldShowResults.value) nextTick(syncOpen); });\n\n// Optional external control via `v-model:open`.\nwatch(() => props.open, (v) => {\n if (v === undefined) return;\n if (v && shouldShowResults.value) openPopover();\n else if (!v) closePopover();\n});\n\nfunction moveHighlight(delta: 1 | -1) {\n const order = enabledIndices.value;\n if (!order.length) return;\n const cur = order.indexOf(highlightedIdx.value);\n highlightedIdx.value = cur === -1\n ? (delta > 0 ? order[0] : order[order.length - 1])\n : order[(cur + delta + order.length) % order.length];\n}\n\nfunction selectResult(item: SearchResultItem) {\n if (item.disabled) return;\n emit('select', item);\n closePopover();\n}\n\n/* ---------- Debounce ---------- */\nlet debounceTimer: number | null = null; \nfunction scheduleSearch(value: string) { \n if (!props.debounce || props.debounce <= 0) return; \n if (debounceTimer !== null) clearTimeout(debounceTimer); \n debounceTimer = window.setTimeout(() => { \n emit('search', value); \n debounceTimer = null; \n }, props.debounce); \n} \nfunction cancelDebounce() { \n if (debounceTimer !== null) { \n clearTimeout(debounceTimer); \n debounceTimer = null; \n } \n} \n \n/* ---------- Events ---------- */ \nfunction onInput(e: Event) { \n const target = e.target as HTMLInputElement; \n emit('update:modelValue', target.value); \n scheduleSearch(target.value); \n} \n \nfunction onKeydown(e: KeyboardEvent) {\n // Arrow keys drive the results dropdown when it is available.\n if (hasDropdown.value && (e.key === 'ArrowDown' || e.key === 'ArrowUp')) {\n e.preventDefault();\n if (!isOpen.value && shouldShowResults.value) openPopover();\n moveHighlight(e.key === 'ArrowDown' ? 1 : -1);\n return;\n }\n if (e.key === 'Enter') {\n // Enter picks the highlighted result if the dropdown is open; otherwise\n // it keeps the existing \"submit search\" behaviour.\n if (isOpen.value && highlightedIdx.value >= 0) {\n const item = resultItems.value[highlightedIdx.value];\n if (item && !item.disabled) {\n e.preventDefault();\n selectResult(item);\n return;\n }\n }\n e.preventDefault();\n cancelDebounce();\n emit('search', String(props.modelValue ?? ''));\n return;\n }\n if (e.key === 'Escape') {\n // First Escape closes the dropdown; a second (or when closed) clears.\n if (isOpen.value) {\n e.preventDefault();\n closePopover();\n return;\n }\n if (hasValue.value) {\n e.preventDefault();\n onClear();\n }\n }\n}\n \nfunction onFocus(e: FocusEvent) {\n focused.value = true;\n emit('focus', e);\n // Open the results popover on focus if there is anything to show. Done\n // explicitly (not only via the watcher) so it fires on the very first focus.\n if (hasDropdown.value) nextTick(syncOpen);\n}\n \nfunction onBlur(e: FocusEvent) {\n focused.value = false;\n emit('blur', e);\n}\n \nfunction onClear() { \n cancelDebounce(); \n emit('update:modelValue', ''); \n emit('clear'); \n emit('search', ''); \n inputRef.value?.focus(); \n} \n \n/* ---------- Shortcut ---------- */\n// Stays `false` on SSR and on the first client paint to keep them\n// identical, then flips to the real platform value in onMounted. Without\n// this guard the server would render `Ctrl+K` and the client would\n// immediately replace it with `⌘K`, triggering a hydration warning.\nconst isMac = ref(false);\nonMounted(() => {\n isMac.value = /Mac|iPod|iPhone|iPad/.test(navigator.platform);\n});\n \ninterface ParsedShortcut { \n key: string; \n ctrl: boolean; \n meta: boolean; \n shift: boolean; \n alt: boolean; \n} \n \nconst parsedShortcut = computed<ParsedShortcut | null>(() => { \n if (!props.shortcut) return null; \n const parts = props.shortcut.toLowerCase().split('+').map((p) => p.trim()); \n const result: ParsedShortcut = { key: '', ctrl: false, meta: false, shift: false, alt: false }; \n for (const part of parts) { \n if (part === 'cmd' || part === 'meta' || part === 'command') { \n if (isMac.value) result.meta = true; \n else result.ctrl = true; \n } else if (part === 'ctrl' || part === 'control') { \n result.ctrl = true; \n } else if (part === 'shift') { \n result.shift = true; \n } else if (part === 'alt' || part === 'option') { \n result.alt = true; \n } else { \n result.key = part; \n } \n } \n return result.key ? result : null; \n}); \n \nconst shortcutLabel = computed(() => { \n const s = parsedShortcut.value; \n if (!s) return ''; \n const segs: string[] = []; \n if (s.meta) segs.push(isMac.value ? '⌘' : 'Ctrl');\n else if (s.ctrl) segs.push(isMac.value ? '⌃' : 'Ctrl');\n if (s.alt) segs.push(isMac.value ? '⌥' : 'Alt');\n if (s.shift) segs.push(isMac.value ? '⇧' : 'Shift');\n segs.push(s.key.length === 1 ? s.key.toUpperCase() : s.key); \n return segs.join(isMac.value ? '' : '+'); \n}); \n \nfunction onGlobalKeydown(e: KeyboardEvent) { \n const s = parsedShortcut.value; \n if (!s) return; \n \n // No robar atajos mientras el usuario escribe en otro campo (a menos que sea una combinación con modificador). \n const target = e.target as HTMLElement | null; \n const typingElsewhere = !!target && (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable); \n const hasModifier = s.meta || s.ctrl || s.alt; \n if (typingElsewhere && !hasModifier && target !== inputRef.value) return; \n \n if ( \n e.key.toLowerCase() === s.key && \n e.metaKey === s.meta && \n e.ctrlKey === s.ctrl && \n e.shiftKey === s.shift && \n e.altKey === s.alt \n ) { \n e.preventDefault(); \n inputRef.value?.focus(); \n inputRef.value?.select(); \n } \n} \n \nonMounted(() => { \n if (parsedShortcut.value) { \n window.addEventListener('keydown', onGlobalKeydown); \n } \n}); \n \nonBeforeUnmount(() => { \n cancelDebounce(); \n window.removeEventListener('keydown', onGlobalKeydown); \n}); \n \n/* ---------- Classes ---------- */ \n \nconst wrapperSizeClasses = computed(() => `${sz.value.control} ${sz.value.padX}`);\n\nconst inputTextClasses = computed(() => sz.value.text);\n\nconst iconSizeClasses = computed(() => sz.value.icon); \n \ndefineExpose({ \n focus: () => inputRef.value?.focus(), \n blur: () => inputRef.value?.blur(), \n select: () => inputRef.value?.select(), \n clear: onClear, \n inputRef, \n}); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4PA,MAAM,MAAM,sBAAA,eAAe;EAC3B,MAAM,SAAA,GAAA,IAAA,WAAkB;EAExB,MAAM,OAAO;EAcb,MAAM,QAAQ;EAeO,sBAAA,sBAAsB,MAAM,KAAK;EACtD,MAAM,KAAK,sBAAA,oBAAoB,MAAM,KAAK;EAE1C,MAAM,YAAA,GAAA,IAAA,KAAwC,KAAK;EACnD,MAAM,WAAA,GAAA,IAAA,KAAc,MAAM;EAE1B,MAAM,EACF,SACA,QACA,YACA,UACA,UACA,eACA,sBACA,iBACA,SACA,UACA,WACA,gBACA,iBAAA,cAAc,OAAO;GAAE,eAAe;GAAe,UAAU;GAAe,CAAC;EAEnF,MAAM,EAAE,uBAAuB,kBAAkB,iBAAA,gBAAgB;GAC7D,eAAe,MAAM;GACrB;GACA;GACA;GACA,YAAY,MAAM;GACrB,CAAC;EAQF,MAAM,cAAA,GAAA,IAAA,gBAA4B,CAAC,CAAC,MAAM,SAAS;EAEnD,MAAM,uBAAA,GAAA,IAAA,gBAAqC,iBAAA,+BAA+B,WAAW,UAAU,wBAAwB;EACvH,MAAM,yBAAA,GAAA,IAAA,gBAAuC,iBAAA,iC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