@proyecto-viviana/solidaria 0.3.0 → 0.4.1
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/_chunk/DragManager.js +627 -0
- package/dist/_chunk/DragManager.js.map +1 -0
- package/dist/_chunk/DragManager.jsx +627 -0
- package/dist/_chunk/DragManager.jsx.map +1 -0
- package/dist/_chunk/FocusScope.js +400 -0
- package/dist/_chunk/FocusScope.js.map +1 -0
- package/dist/_chunk/FocusScope.jsx +375 -0
- package/dist/_chunk/FocusScope.jsx.map +1 -0
- package/dist/_chunk/actiongroup.js +141 -0
- package/dist/_chunk/actiongroup.js.map +1 -0
- package/dist/_chunk/actiongroup.jsx +141 -0
- package/dist/_chunk/actiongroup.jsx.map +1 -0
- package/dist/_chunk/announce.js +207 -0
- package/dist/_chunk/announce.js.map +1 -0
- package/dist/_chunk/announce.jsx +207 -0
- package/dist/_chunk/announce.jsx.map +1 -0
- package/dist/_chunk/ariaHideOutside.js +122 -0
- package/dist/_chunk/ariaHideOutside.js.map +1 -0
- package/dist/_chunk/ariaHideOutside.jsx +122 -0
- package/dist/_chunk/ariaHideOutside.jsx.map +1 -0
- package/dist/_chunk/autocomplete.js +244 -0
- package/dist/_chunk/autocomplete.js.map +1 -0
- package/dist/_chunk/autocomplete.jsx +244 -0
- package/dist/_chunk/autocomplete.jsx.map +1 -0
- package/dist/_chunk/breadcrumbs.js +121 -0
- package/dist/_chunk/breadcrumbs.js.map +1 -0
- package/dist/_chunk/breadcrumbs.jsx +121 -0
- package/dist/_chunk/breadcrumbs.jsx.map +1 -0
- package/dist/_chunk/button.js +275 -0
- package/dist/_chunk/button.js.map +1 -0
- package/dist/_chunk/button.jsx +275 -0
- package/dist/_chunk/button.jsx.map +1 -0
- package/dist/_chunk/calendar.js +1037 -0
- package/dist/_chunk/calendar.js.map +1 -0
- package/dist/_chunk/calendar.jsx +1037 -0
- package/dist/_chunk/calendar.jsx.map +1 -0
- package/dist/_chunk/checkbox.js +235 -0
- package/dist/_chunk/checkbox.js.map +1 -0
- package/dist/_chunk/checkbox.jsx +235 -0
- package/dist/_chunk/checkbox.jsx.map +1 -0
- package/dist/_chunk/color.js +1458 -0
- package/dist/_chunk/color.js.map +1 -0
- package/dist/_chunk/color.jsx +1458 -0
- package/dist/_chunk/color.jsx.map +1 -0
- package/dist/_chunk/combobox.js +1062 -0
- package/dist/_chunk/combobox.js.map +1 -0
- package/dist/_chunk/combobox.jsx +1062 -0
- package/dist/_chunk/combobox.jsx.map +1 -0
- package/dist/_chunk/constants.js +19 -0
- package/dist/_chunk/constants.js.map +1 -0
- package/dist/_chunk/constants.jsx +19 -0
- package/dist/_chunk/constants.jsx.map +1 -0
- package/dist/_chunk/createCollator.js +61 -0
- package/dist/_chunk/createCollator.js.map +1 -0
- package/dist/_chunk/createCollator.jsx +61 -0
- package/dist/_chunk/createCollator.jsx.map +1 -0
- package/dist/_chunk/createCollectionRowInteraction.js +133 -0
- package/dist/_chunk/createCollectionRowInteraction.js.map +1 -0
- package/dist/_chunk/createCollectionRowInteraction.jsx +133 -0
- package/dist/_chunk/createCollectionRowInteraction.jsx.map +1 -0
- package/dist/_chunk/createField.js +55 -0
- package/dist/_chunk/createField.js.map +1 -0
- package/dist/_chunk/createField.jsx +55 -0
- package/dist/_chunk/createField.jsx.map +1 -0
- package/dist/_chunk/createFocus.js +105 -0
- package/dist/_chunk/createFocus.js.map +1 -0
- package/dist/_chunk/createFocus.jsx +105 -0
- package/dist/_chunk/createFocus.jsx.map +1 -0
- package/dist/_chunk/createFocusRing.js +54 -0
- package/dist/_chunk/createFocusRing.js.map +1 -0
- package/dist/_chunk/createFocusRing.jsx +54 -0
- package/dist/_chunk/createFocusRing.jsx.map +1 -0
- package/dist/_chunk/createFocusWithin.js +120 -0
- package/dist/_chunk/createFocusWithin.js.map +1 -0
- package/dist/_chunk/createFocusWithin.jsx +120 -0
- package/dist/_chunk/createFocusWithin.jsx.map +1 -0
- package/dist/_chunk/createFocusable.js +131 -0
- package/dist/_chunk/createFocusable.js.map +1 -0
- package/dist/_chunk/createFocusable.jsx +131 -0
- package/dist/_chunk/createFocusable.jsx.map +1 -0
- package/dist/_chunk/createFormReset.js +39 -0
- package/dist/_chunk/createFormReset.js.map +1 -0
- package/dist/_chunk/createFormReset.jsx +39 -0
- package/dist/_chunk/createFormReset.jsx.map +1 -0
- package/dist/_chunk/createFormValidation.js +135 -0
- package/dist/_chunk/createFormValidation.js.map +1 -0
- package/dist/_chunk/createFormValidation.jsx +135 -0
- package/dist/_chunk/createFormValidation.jsx.map +1 -0
- package/dist/_chunk/createHover.js +131 -0
- package/dist/_chunk/createHover.js.map +1 -0
- package/dist/_chunk/createHover.jsx +131 -0
- package/dist/_chunk/createHover.jsx.map +1 -0
- package/dist/_chunk/createInteractionModality.js +268 -0
- package/dist/_chunk/createInteractionModality.js.map +1 -0
- package/dist/_chunk/createInteractionModality.jsx +268 -0
- package/dist/_chunk/createInteractionModality.jsx.map +1 -0
- package/dist/_chunk/createLabel.js +47 -0
- package/dist/_chunk/createLabel.js.map +1 -0
- package/dist/_chunk/createLabel.jsx +47 -0
- package/dist/_chunk/createLabel.jsx.map +1 -0
- package/dist/_chunk/createLabels.js +32 -0
- package/dist/_chunk/createLabels.js.map +1 -0
- package/dist/_chunk/createLabels.jsx +32 -0
- package/dist/_chunk/createLabels.jsx.map +1 -0
- package/dist/_chunk/createLandmark.js +198 -0
- package/dist/_chunk/createLandmark.js.map +1 -0
- package/dist/_chunk/createLandmark.jsx +198 -0
- package/dist/_chunk/createLandmark.jsx.map +1 -0
- package/dist/_chunk/createOverlay.js +327 -0
- package/dist/_chunk/createOverlay.js.map +1 -0
- package/dist/_chunk/createOverlay.jsx +327 -0
- package/dist/_chunk/createOverlay.jsx.map +1 -0
- package/dist/_chunk/createPress.js +526 -0
- package/dist/_chunk/createPress.js.map +1 -0
- package/dist/_chunk/createPress.jsx +526 -0
- package/dist/_chunk/createPress.jsx.map +1 -0
- package/dist/_chunk/createProgressBar.js +82 -0
- package/dist/_chunk/createProgressBar.js.map +1 -0
- package/dist/_chunk/createProgressBar.jsx +82 -0
- package/dist/_chunk/createProgressBar.jsx.map +1 -0
- package/dist/_chunk/createSelectableItem.js +302 -0
- package/dist/_chunk/createSelectableItem.js.map +1 -0
- package/dist/_chunk/createSelectableItem.jsx +302 -0
- package/dist/_chunk/createSelectableItem.jsx.map +1 -0
- package/dist/_chunk/createStringFormatter.js +61 -0
- package/dist/_chunk/createStringFormatter.js.map +1 -0
- package/dist/_chunk/createStringFormatter.jsx +61 -0
- package/dist/_chunk/createStringFormatter.jsx.map +1 -0
- package/dist/_chunk/createToggle.js +159 -0
- package/dist/_chunk/createToggle.js.map +1 -0
- package/dist/_chunk/createToggle.jsx +159 -0
- package/dist/_chunk/createToggle.jsx.map +1 -0
- package/dist/_chunk/createTypeSelect.js +125 -0
- package/dist/_chunk/createTypeSelect.js.map +1 -0
- package/dist/_chunk/createTypeSelect.jsx +125 -0
- package/dist/_chunk/createTypeSelect.jsx.map +1 -0
- package/dist/_chunk/datepicker.js +1706 -0
- package/dist/_chunk/datepicker.js.map +1 -0
- package/dist/_chunk/datepicker.jsx +1706 -0
- package/dist/_chunk/datepicker.jsx.map +1 -0
- package/dist/_chunk/dialog.js +62 -0
- package/dist/_chunk/dialog.js.map +1 -0
- package/dist/_chunk/dialog.jsx +62 -0
- package/dist/_chunk/dialog.jsx.map +1 -0
- package/dist/_chunk/disclosure.js +185 -0
- package/dist/_chunk/disclosure.js.map +1 -0
- package/dist/_chunk/disclosure.jsx +185 -0
- package/dist/_chunk/disclosure.jsx.map +1 -0
- package/dist/_chunk/dnd.js +2395 -0
- package/dist/_chunk/dnd.js.map +1 -0
- package/dist/_chunk/dnd.jsx +2395 -0
- package/dist/_chunk/dnd.jsx.map +1 -0
- package/dist/_chunk/env.js +87 -0
- package/dist/_chunk/env.js.map +1 -0
- package/dist/_chunk/env.jsx +87 -0
- package/dist/_chunk/env.jsx.map +1 -0
- package/dist/_chunk/filterDOMProps.js +82 -0
- package/dist/_chunk/filterDOMProps.js.map +1 -0
- package/dist/_chunk/filterDOMProps.jsx +82 -0
- package/dist/_chunk/filterDOMProps.jsx.map +1 -0
- package/dist/_chunk/focus.js +399 -0
- package/dist/_chunk/focus.js.map +1 -0
- package/dist/_chunk/focus.jsx +399 -0
- package/dist/_chunk/focus.jsx.map +1 -0
- package/dist/_chunk/focus2.js +631 -0
- package/dist/_chunk/focus2.js.map +1 -0
- package/dist/_chunk/focus2.jsx +631 -0
- package/dist/_chunk/focus2.jsx.map +1 -0
- package/dist/_chunk/grid.js +623 -0
- package/dist/_chunk/grid.js.map +1 -0
- package/dist/_chunk/grid.jsx +623 -0
- package/dist/_chunk/grid.jsx.map +1 -0
- package/dist/_chunk/gridlist.js +369 -0
- package/dist/_chunk/gridlist.js.map +1 -0
- package/dist/_chunk/gridlist.jsx +369 -0
- package/dist/_chunk/gridlist.jsx.map +1 -0
- package/dist/_chunk/i18n.js +199 -0
- package/dist/_chunk/i18n.js.map +1 -0
- package/dist/_chunk/i18n.jsx +199 -0
- package/dist/_chunk/i18n.jsx.map +1 -0
- package/dist/_chunk/interactions.js +331 -0
- package/dist/_chunk/interactions.js.map +1 -0
- package/dist/_chunk/interactions.jsx +325 -0
- package/dist/_chunk/interactions.jsx.map +1 -0
- package/dist/_chunk/link.js +97 -0
- package/dist/_chunk/link.js.map +1 -0
- package/dist/_chunk/link.jsx +97 -0
- package/dist/_chunk/link.jsx.map +1 -0
- package/dist/_chunk/listbox.js +356 -0
- package/dist/_chunk/listbox.js.map +1 -0
- package/dist/_chunk/listbox.jsx +356 -0
- package/dist/_chunk/listbox.jsx.map +1 -0
- package/dist/_chunk/locale.js +173 -0
- package/dist/_chunk/locale.js.map +1 -0
- package/dist/_chunk/locale.jsx +167 -0
- package/dist/_chunk/locale.jsx.map +1 -0
- package/dist/_chunk/menu.js +519 -0
- package/dist/_chunk/menu.js.map +1 -0
- package/dist/_chunk/menu.jsx +519 -0
- package/dist/_chunk/menu.jsx.map +1 -0
- package/dist/_chunk/meter.js +33 -0
- package/dist/_chunk/meter.js.map +1 -0
- package/dist/_chunk/meter.jsx +33 -0
- package/dist/_chunk/meter.jsx.map +1 -0
- package/dist/_chunk/numberfield.js +259 -0
- package/dist/_chunk/numberfield.js.map +1 -0
- package/dist/_chunk/numberfield.jsx +259 -0
- package/dist/_chunk/numberfield.jsx.map +1 -0
- package/dist/_chunk/overlays.js +186 -0
- package/dist/_chunk/overlays.js.map +1 -0
- package/dist/_chunk/overlays.jsx +162 -0
- package/dist/_chunk/overlays.jsx.map +1 -0
- package/dist/_chunk/popover.js +574 -0
- package/dist/_chunk/popover.js.map +1 -0
- package/dist/_chunk/popover.jsx +574 -0
- package/dist/_chunk/popover.jsx.map +1 -0
- package/dist/_chunk/radio.js +320 -0
- package/dist/_chunk/radio.js.map +1 -0
- package/dist/_chunk/radio.jsx +320 -0
- package/dist/_chunk/radio.jsx.map +1 -0
- package/dist/_chunk/reactivity.js +21 -0
- package/dist/_chunk/reactivity.js.map +1 -0
- package/dist/_chunk/reactivity.jsx +21 -0
- package/dist/_chunk/reactivity.jsx.map +1 -0
- package/dist/_chunk/searchfield.js +210 -0
- package/dist/_chunk/searchfield.js.map +1 -0
- package/dist/_chunk/searchfield.jsx +210 -0
- package/dist/_chunk/searchfield.jsx.map +1 -0
- package/dist/_chunk/select.js +406 -0
- package/dist/_chunk/select.js.map +1 -0
- package/dist/_chunk/select.jsx +397 -0
- package/dist/_chunk/select.jsx.map +1 -0
- package/dist/_chunk/selection.js +666 -0
- package/dist/_chunk/selection.js.map +1 -0
- package/dist/_chunk/selection.jsx +666 -0
- package/dist/_chunk/selection.jsx.map +1 -0
- package/dist/_chunk/separator.js +29 -0
- package/dist/_chunk/separator.js.map +1 -0
- package/dist/_chunk/separator.jsx +29 -0
- package/dist/_chunk/separator.jsx.map +1 -0
- package/dist/_chunk/slider.js +256 -0
- package/dist/_chunk/slider.js.map +1 -0
- package/dist/_chunk/slider.jsx +256 -0
- package/dist/_chunk/slider.jsx.map +1 -0
- package/dist/_chunk/spinbutton.js +153 -0
- package/dist/_chunk/spinbutton.js.map +1 -0
- package/dist/_chunk/spinbutton.jsx +153 -0
- package/dist/_chunk/spinbutton.jsx.map +1 -0
- package/dist/_chunk/steplist.js +66 -0
- package/dist/_chunk/steplist.js.map +1 -0
- package/dist/_chunk/steplist.jsx +66 -0
- package/dist/_chunk/steplist.jsx.map +1 -0
- package/dist/_chunk/switch.js +34 -0
- package/dist/_chunk/switch.js.map +1 -0
- package/dist/_chunk/switch.jsx +34 -0
- package/dist/_chunk/switch.jsx.map +1 -0
- package/dist/_chunk/table.js +1088 -0
- package/dist/_chunk/table.js.map +1 -0
- package/dist/_chunk/table.jsx +1088 -0
- package/dist/_chunk/table.jsx.map +1 -0
- package/dist/_chunk/tabs.js +263 -0
- package/dist/_chunk/tabs.js.map +1 -0
- package/dist/_chunk/tabs.jsx +263 -0
- package/dist/_chunk/tabs.jsx.map +1 -0
- package/dist/_chunk/tag.js +322 -0
- package/dist/_chunk/tag.js.map +1 -0
- package/dist/_chunk/tag.jsx +322 -0
- package/dist/_chunk/tag.jsx.map +1 -0
- package/dist/_chunk/textfield.js +110 -0
- package/dist/_chunk/textfield.js.map +1 -0
- package/dist/_chunk/textfield.jsx +110 -0
- package/dist/_chunk/textfield.jsx.map +1 -0
- package/dist/_chunk/toast.js +250 -0
- package/dist/_chunk/toast.js.map +1 -0
- package/dist/_chunk/toast.jsx +250 -0
- package/dist/_chunk/toast.jsx.map +1 -0
- package/dist/_chunk/toolbar.js +226 -0
- package/dist/_chunk/toolbar.js.map +1 -0
- package/dist/_chunk/toolbar.jsx +226 -0
- package/dist/_chunk/toolbar.jsx.map +1 -0
- package/dist/_chunk/tooltip.js +185 -0
- package/dist/_chunk/tooltip.js.map +1 -0
- package/dist/_chunk/tooltip.jsx +185 -0
- package/dist/_chunk/tooltip.jsx.map +1 -0
- package/dist/_chunk/tree.js +452 -0
- package/dist/_chunk/tree.js.map +1 -0
- package/dist/_chunk/tree.jsx +452 -0
- package/dist/_chunk/tree.jsx.map +1 -0
- package/dist/_chunk/utils.js +705 -0
- package/dist/_chunk/utils.js.map +1 -0
- package/dist/_chunk/utils.jsx +705 -0
- package/dist/_chunk/utils.jsx.map +1 -0
- package/dist/_chunk/visually-hidden.js +93 -0
- package/dist/_chunk/visually-hidden.js.map +1 -0
- package/dist/_chunk/visually-hidden.jsx +93 -0
- package/dist/_chunk/visually-hidden.jsx.map +1 -0
- package/dist/actiongroup/createActionGroup.d.ts.map +1 -1
- package/dist/actiongroup/index.js +2 -0
- package/dist/actiongroup/index.jsx +2 -0
- package/dist/autocomplete/createAutocomplete.d.ts +12 -7
- package/dist/autocomplete/createAutocomplete.d.ts.map +1 -1
- package/dist/autocomplete/index.js +2 -0
- package/dist/autocomplete/index.jsx +2 -0
- package/dist/breadcrumbs/createBreadcrumbs.d.ts.map +1 -1
- package/dist/breadcrumbs/index.js +2 -0
- package/dist/breadcrumbs/index.jsx +2 -0
- package/dist/button/createToggleButtonGroup.d.ts.map +1 -1
- package/dist/button/index.js +2 -0
- package/dist/button/index.jsx +2 -0
- package/dist/calendar/createCalendar.d.ts.map +1 -1
- package/dist/calendar/createCalendarCell.d.ts.map +1 -1
- package/dist/calendar/createCalendarGrid.d.ts.map +1 -1
- package/dist/calendar/createCalendarMonthPicker.d.ts +41 -0
- package/dist/calendar/createCalendarMonthPicker.d.ts.map +1 -0
- package/dist/calendar/createCalendarYearPicker.d.ts +49 -0
- package/dist/calendar/createCalendarYearPicker.d.ts.map +1 -0
- package/dist/calendar/createRangeCalendar.d.ts.map +1 -1
- package/dist/calendar/createRangeCalendarCell.d.ts.map +1 -1
- package/dist/calendar/index.d.ts +2 -0
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/calendar/index.js +2 -0
- package/dist/calendar/index.jsx +2 -0
- package/dist/calendar/intl/index.d.ts +1 -1
- package/dist/calendar/intl/index.d.ts.map +1 -1
- package/dist/calendar/utils.d.ts +4 -0
- package/dist/calendar/utils.d.ts.map +1 -1
- package/dist/checkbox/createCheckbox.d.ts +4 -0
- package/dist/checkbox/createCheckbox.d.ts.map +1 -1
- package/dist/checkbox/createCheckboxGroupItem.d.ts.map +1 -1
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/index.jsx +2 -0
- package/dist/collections/index.js +160 -0
- package/dist/collections/index.js.map +1 -0
- package/dist/collections/index.jsx +160 -0
- package/dist/collections/index.jsx.map +1 -0
- package/dist/color/createColorArea.d.ts.map +1 -1
- package/dist/color/createColorField.d.ts.map +1 -1
- package/dist/color/createColorSlider.d.ts.map +1 -1
- package/dist/color/createColorSwatch.d.ts.map +1 -1
- package/dist/color/createColorWheel.d.ts.map +1 -1
- package/dist/color/index.js +2 -0
- package/dist/color/index.jsx +2 -0
- package/dist/color/intl/index.d.ts +30 -0
- package/dist/color/intl/index.d.ts.map +1 -0
- package/dist/combobox/createComboBox.d.ts.map +1 -1
- package/dist/combobox/index.js +2 -0
- package/dist/combobox/index.jsx +2 -0
- package/dist/combobox/intl/generated-locales.d.ts +16 -0
- package/dist/combobox/intl/generated-locales.d.ts.map +1 -0
- package/dist/combobox/intl/index.d.ts +2 -2
- package/dist/combobox/intl/index.d.ts.map +1 -1
- package/dist/datepicker/createDateField.d.ts +45 -23
- package/dist/datepicker/createDateField.d.ts.map +1 -1
- package/dist/datepicker/createDatePicker.d.ts +34 -6
- package/dist/datepicker/createDatePicker.d.ts.map +1 -1
- package/dist/datepicker/createDatePickerGroup.d.ts +13 -13
- package/dist/datepicker/createDatePickerGroup.d.ts.map +1 -1
- package/dist/datepicker/createDateRangePicker.d.ts +55 -7
- package/dist/datepicker/createDateRangePicker.d.ts.map +1 -1
- package/dist/datepicker/createDateSegment.d.ts +6 -15
- package/dist/datepicker/createDateSegment.d.ts.map +1 -1
- package/dist/datepicker/createDisplayNames.d.ts +17 -0
- package/dist/datepicker/createDisplayNames.d.ts.map +1 -0
- package/dist/datepicker/createTimeField.d.ts +12 -49
- package/dist/datepicker/createTimeField.d.ts.map +1 -1
- package/dist/datepicker/index.d.ts +3 -3
- package/dist/datepicker/index.d.ts.map +1 -1
- package/dist/datepicker/index.js +2 -0
- package/dist/datepicker/index.jsx +2 -0
- package/dist/datepicker/intl.d.ts +12 -0
- package/dist/datepicker/intl.d.ts.map +1 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog/index.jsx +2 -0
- package/dist/disclosure/index.js +2 -0
- package/dist/disclosure/index.jsx +2 -0
- package/dist/dnd/DragManager.d.ts +86 -0
- package/dist/dnd/DragManager.d.ts.map +1 -0
- package/dist/dnd/DropTargetKeyboardNavigation.d.ts +42 -0
- package/dist/dnd/DropTargetKeyboardNavigation.d.ts.map +1 -0
- package/dist/dnd/createDrag.d.ts.map +1 -1
- package/dist/dnd/createDraggableCollection.d.ts.map +1 -1
- package/dist/dnd/createDraggableItem.d.ts +12 -7
- package/dist/dnd/createDraggableItem.d.ts.map +1 -1
- package/dist/dnd/createDroppableCollection.d.ts +7 -15
- package/dist/dnd/createDroppableCollection.d.ts.map +1 -1
- package/dist/dnd/index.d.ts +5 -1
- package/dist/dnd/index.d.ts.map +1 -1
- package/dist/dnd/index.js +3 -0
- package/dist/dnd/index.jsx +3 -0
- package/dist/dnd/intl/index.d.ts +39 -0
- package/dist/dnd/intl/index.d.ts.map +1 -0
- package/dist/dnd/utils.d.ts +7 -2
- package/dist/dnd/utils.d.ts.map +1 -1
- package/dist/focus/FocusScope.d.ts +7 -0
- package/dist/focus/FocusScope.d.ts.map +1 -1
- package/dist/focus/index.d.ts +2 -1
- package/dist/focus/index.d.ts.map +1 -1
- package/dist/focus/index.js +3 -0
- package/dist/focus/index.jsx +3 -0
- package/dist/focus/virtualFocus.d.ts +26 -0
- package/dist/focus/virtualFocus.d.ts.map +1 -0
- package/dist/form/createFormValidation.d.ts.map +1 -1
- package/dist/form/index.js +3 -0
- package/dist/form/index.jsx +3 -0
- package/dist/grid/index.js +2 -0
- package/dist/grid/index.jsx +2 -0
- package/dist/gridlist/createGridList.d.ts +7 -1
- package/dist/gridlist/createGridList.d.ts.map +1 -1
- package/dist/gridlist/createGridListItem.d.ts +1 -1
- package/dist/gridlist/createGridListItem.d.ts.map +1 -1
- package/dist/gridlist/createGridListSection.d.ts +15 -0
- package/dist/gridlist/createGridListSection.d.ts.map +1 -0
- package/dist/gridlist/index.d.ts +2 -1
- package/dist/gridlist/index.d.ts.map +1 -1
- package/dist/gridlist/index.js +2 -0
- package/dist/gridlist/index.jsx +2 -0
- package/dist/gridlist/types.d.ts +50 -0
- package/dist/gridlist/types.d.ts.map +1 -1
- package/dist/i18n/index.js +5 -0
- package/dist/i18n/index.jsx +5 -0
- package/dist/index.d.ts +10 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +77 -18311
- package/dist/index.jsx +77 -18242
- package/dist/interactions/FocusableProvider.d.ts.map +1 -1
- package/dist/interactions/PressEvent.d.ts +11 -0
- package/dist/interactions/PressEvent.d.ts.map +1 -1
- package/dist/interactions/createFocus.d.ts.map +1 -1
- package/dist/interactions/createFocusWithin.d.ts.map +1 -1
- package/dist/interactions/createInteractionModality.d.ts +0 -1
- package/dist/interactions/createInteractionModality.d.ts.map +1 -1
- package/dist/interactions/createKeyboard.d.ts.map +1 -1
- package/dist/interactions/createPress.d.ts.map +1 -1
- package/dist/interactions/index.js +9 -0
- package/dist/interactions/index.jsx +9 -0
- package/dist/label/createLabels.d.ts.map +1 -1
- package/dist/label/index.js +4 -0
- package/dist/label/index.jsx +4 -0
- package/dist/landmark/index.js +2 -0
- package/dist/landmark/index.jsx +2 -0
- package/dist/link/index.js +2 -0
- package/dist/link/index.jsx +2 -0
- package/dist/listbox/createListBox.d.ts +37 -0
- package/dist/listbox/createListBox.d.ts.map +1 -1
- package/dist/listbox/createOption.d.ts +7 -1
- package/dist/listbox/createOption.d.ts.map +1 -1
- package/dist/listbox/index.js +2 -0
- package/dist/listbox/index.jsx +2 -0
- package/dist/live-announcer/index.js +2 -0
- package/dist/live-announcer/index.jsx +2 -0
- package/dist/menu/createMenu.d.ts +7 -4
- package/dist/menu/createMenu.d.ts.map +1 -1
- package/dist/menu/createMenuItem.d.ts +9 -1
- package/dist/menu/createMenuItem.d.ts.map +1 -1
- package/dist/menu/index.js +2 -0
- package/dist/menu/index.jsx +2 -0
- package/dist/meter/index.js +2 -0
- package/dist/meter/index.jsx +2 -0
- package/dist/numberfield/createNumberField.d.ts.map +1 -1
- package/dist/numberfield/index.js +2 -0
- package/dist/numberfield/index.jsx +2 -0
- package/dist/overlays/index.js +4 -0
- package/dist/overlays/index.jsx +4 -0
- package/dist/popover/calculatePosition.d.ts +2 -0
- package/dist/popover/calculatePosition.d.ts.map +1 -1
- package/dist/popover/createOverlayPosition.d.ts +8 -0
- package/dist/popover/createOverlayPosition.d.ts.map +1 -1
- package/dist/popover/index.js +2 -0
- package/dist/popover/index.jsx +2 -0
- package/dist/progress/index.js +2 -0
- package/dist/progress/index.jsx +2 -0
- package/dist/radio/createRadio.d.ts +2 -0
- package/dist/radio/createRadio.d.ts.map +1 -1
- package/dist/radio/index.js +2 -0
- package/dist/radio/index.jsx +2 -0
- package/dist/searchfield/index.js +2 -0
- package/dist/searchfield/index.jsx +2 -0
- package/dist/select/createSelect.d.ts +2 -0
- package/dist/select/createSelect.d.ts.map +1 -1
- package/dist/select/index.js +2 -0
- package/dist/select/index.jsx +2 -0
- package/dist/selection/DOMLayoutDelegate.d.ts +58 -0
- package/dist/selection/DOMLayoutDelegate.d.ts.map +1 -0
- package/dist/selection/ListKeyboardDelegate.d.ts +95 -0
- package/dist/selection/ListKeyboardDelegate.d.ts.map +1 -0
- package/dist/selection/constants.d.ts +15 -0
- package/dist/selection/constants.d.ts.map +1 -0
- package/dist/selection/createCollectionRowInteraction.d.ts +13 -0
- package/dist/selection/createCollectionRowInteraction.d.ts.map +1 -0
- package/dist/selection/createScrollIntoViewOnFocus.d.ts +31 -0
- package/dist/selection/createScrollIntoViewOnFocus.d.ts.map +1 -0
- package/dist/selection/createSelectableCollection.d.ts +69 -0
- package/dist/selection/createSelectableCollection.d.ts.map +1 -0
- package/dist/selection/createSelectableItem.d.ts +154 -0
- package/dist/selection/createSelectableItem.d.ts.map +1 -0
- package/dist/selection/createSelectableList.d.ts +43 -0
- package/dist/selection/createSelectableList.d.ts.map +1 -0
- package/dist/selection/createTypeSelect.d.ts.map +1 -1
- package/dist/selection/index.d.ts +9 -0
- package/dist/selection/index.d.ts.map +1 -1
- package/dist/selection/index.js +5 -0
- package/dist/selection/index.jsx +5 -0
- package/dist/selection/selectItem.d.ts +29 -0
- package/dist/selection/selectItem.d.ts.map +1 -0
- package/dist/selection/utils.d.ts +40 -0
- package/dist/selection/utils.d.ts.map +1 -0
- package/dist/separator/index.js +2 -0
- package/dist/separator/index.jsx +2 -0
- package/dist/slider/createSlider.d.ts.map +1 -1
- package/dist/slider/index.js +2 -0
- package/dist/slider/index.jsx +2 -0
- package/dist/spinbutton/createSpinButton.d.ts +41 -0
- package/dist/spinbutton/createSpinButton.d.ts.map +1 -0
- package/dist/spinbutton/index.d.ts +3 -0
- package/dist/spinbutton/index.d.ts.map +1 -0
- package/dist/spinbutton/index.js +2 -0
- package/dist/spinbutton/index.jsx +2 -0
- package/dist/spinbutton/intl.d.ts +5 -0
- package/dist/spinbutton/intl.d.ts.map +1 -0
- package/dist/ssr/index.d.ts +17 -0
- package/dist/ssr/index.d.ts.map +1 -1
- package/dist/ssr/index.js +299 -0
- package/dist/ssr/index.js.map +1 -0
- package/dist/ssr/index.jsx +292 -0
- package/dist/ssr/index.jsx.map +1 -0
- package/dist/steplist/index.js +2 -0
- package/dist/steplist/index.jsx +2 -0
- package/dist/switch/createSwitch.d.ts +4 -0
- package/dist/switch/createSwitch.d.ts.map +1 -1
- package/dist/switch/index.js +2 -0
- package/dist/switch/index.jsx +2 -0
- package/dist/table/createTable.d.ts.map +1 -1
- package/dist/table/createTableColumnHeader.d.ts.map +1 -1
- package/dist/table/createTableRow.d.ts +1 -1
- package/dist/table/createTableRow.d.ts.map +1 -1
- package/dist/table/createTableSelectAllCheckbox.d.ts.map +1 -1
- package/dist/table/createTableSelectionCheckbox.d.ts.map +1 -1
- package/dist/table/index.js +2 -0
- package/dist/table/index.jsx +2 -0
- package/dist/table/types.d.ts +35 -1
- package/dist/table/types.d.ts.map +1 -1
- package/dist/table/utils.d.ts +15 -0
- package/dist/table/utils.d.ts.map +1 -0
- package/dist/tabs/createTabs.d.ts +5 -3
- package/dist/tabs/createTabs.d.ts.map +1 -1
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/index.jsx +2 -0
- package/dist/tag/createTag.d.ts +2 -0
- package/dist/tag/createTag.d.ts.map +1 -1
- package/dist/tag/createTagGroup.d.ts +7 -0
- package/dist/tag/createTagGroup.d.ts.map +1 -1
- package/dist/tag/index.js +2 -0
- package/dist/tag/index.jsx +2 -0
- package/dist/textfield/index.js +2 -0
- package/dist/textfield/index.jsx +2 -0
- package/dist/toast/createToast.d.ts.map +1 -1
- package/dist/toast/index.js +2 -0
- package/dist/toast/index.jsx +2 -0
- package/dist/toggle/createToggle.d.ts +4 -0
- package/dist/toggle/createToggle.d.ts.map +1 -1
- package/dist/toggle/index.js +3 -0
- package/dist/toggle/index.jsx +3 -0
- package/dist/toolbar/createToolbar.d.ts +1 -1
- package/dist/toolbar/createToolbar.d.ts.map +1 -1
- package/dist/toolbar/index.js +2 -0
- package/dist/toolbar/index.jsx +2 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip/index.jsx +2 -0
- package/dist/tree/createTree.d.ts +5 -1
- package/dist/tree/createTree.d.ts.map +1 -1
- package/dist/tree/createTreeItem.d.ts +1 -1
- package/dist/tree/createTreeItem.d.ts.map +1 -1
- package/dist/tree/createTreeSelectionCheckbox.d.ts.map +1 -1
- package/dist/tree/index.js +2 -0
- package/dist/tree/index.jsx +2 -0
- package/dist/tree/types.d.ts +10 -0
- package/dist/tree/types.d.ts.map +1 -1
- package/dist/utils/animation.d.ts +60 -0
- package/dist/utils/animation.d.ts.map +1 -0
- package/dist/utils/dom.d.ts +49 -2
- package/dist/utils/dom.d.ts.map +1 -1
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +6 -0
- package/dist/utils/index.jsx +6 -0
- package/dist/utils/keyboard.d.ts +17 -0
- package/dist/utils/keyboard.d.ts.map +1 -0
- package/dist/utils/mergeProps.d.ts.map +1 -1
- package/dist/utils/scrollIntoView.d.ts +30 -0
- package/dist/utils/scrollIntoView.d.ts.map +1 -0
- package/dist/visually-hidden/index.js +2 -0
- package/dist/visually-hidden/index.jsx +2 -0
- package/package.json +304 -3
- package/src/actiongroup/createActionGroup.ts +26 -109
- package/src/autocomplete/createAutocomplete.ts +202 -35
- package/src/breadcrumbs/createBreadcrumbs.ts +12 -4
- package/src/button/createToggleButtonGroup.ts +19 -14
- package/src/calendar/createCalendar.ts +5 -4
- package/src/calendar/createCalendarCell.ts +36 -5
- package/src/calendar/createCalendarGrid.ts +47 -12
- package/src/calendar/createCalendarMonthPicker.ts +105 -0
- package/src/calendar/createCalendarYearPicker.ts +144 -0
- package/src/calendar/createRangeCalendar.ts +27 -15
- package/src/calendar/createRangeCalendarCell.ts +17 -3
- package/src/calendar/index.ts +17 -0
- package/src/calendar/intl/index.ts +8 -0
- package/src/calendar/utils.ts +4 -0
- package/src/checkbox/createCheckbox.ts +10 -0
- package/src/checkbox/createCheckboxGroupItem.ts +12 -16
- package/src/color/createColorArea.ts +17 -10
- package/src/color/createColorField.ts +8 -1
- package/src/color/createColorSlider.ts +1 -2
- package/src/color/createColorSwatch.ts +4 -2
- package/src/color/createColorWheel.ts +0 -6
- package/src/color/intl/index.ts +316 -0
- package/src/combobox/createComboBox.ts +35 -4
- package/src/combobox/intl/generated-locales.ts +635 -0
- package/src/combobox/intl/index.ts +8 -2
- package/src/datepicker/createDateField.ts +228 -213
- package/src/datepicker/createDatePicker.ts +157 -146
- package/src/datepicker/createDatePickerGroup.ts +88 -82
- package/src/datepicker/createDateRangePicker.ts +230 -179
- package/src/datepicker/createDateSegment.ts +386 -384
- package/src/datepicker/createDisplayNames.ts +45 -0
- package/src/datepicker/createTimeField.ts +36 -129
- package/src/datepicker/index.ts +13 -14
- package/src/datepicker/intl.ts +633 -0
- package/src/dnd/DragManager.ts +693 -0
- package/src/dnd/DropTargetKeyboardNavigation.ts +337 -0
- package/src/dnd/createDrag.ts +31 -5
- package/src/dnd/createDraggableCollection.ts +33 -15
- package/src/dnd/createDraggableItem.ts +92 -5
- package/src/dnd/createDroppableCollection.ts +488 -371
- package/src/dnd/index.ts +11 -0
- package/src/dnd/intl/ar-AE.json +29 -0
- package/src/dnd/intl/bg-BG.json +29 -0
- package/src/dnd/intl/cs-CZ.json +29 -0
- package/src/dnd/intl/da-DK.json +29 -0
- package/src/dnd/intl/de-DE.json +29 -0
- package/src/dnd/intl/el-GR.json +29 -0
- package/src/dnd/intl/en-US.json +29 -0
- package/src/dnd/intl/es-ES.json +29 -0
- package/src/dnd/intl/et-EE.json +29 -0
- package/src/dnd/intl/fi-FI.json +29 -0
- package/src/dnd/intl/fr-FR.json +29 -0
- package/src/dnd/intl/he-IL.json +29 -0
- package/src/dnd/intl/hr-HR.json +29 -0
- package/src/dnd/intl/hu-HU.json +29 -0
- package/src/dnd/intl/index.ts +139 -0
- package/src/dnd/intl/it-IT.json +29 -0
- package/src/dnd/intl/ja-JP.json +29 -0
- package/src/dnd/intl/ko-KR.json +29 -0
- package/src/dnd/intl/lt-LT.json +29 -0
- package/src/dnd/intl/lv-LV.json +29 -0
- package/src/dnd/intl/nb-NO.json +29 -0
- package/src/dnd/intl/nl-NL.json +29 -0
- package/src/dnd/intl/pl-PL.json +29 -0
- package/src/dnd/intl/pt-BR.json +29 -0
- package/src/dnd/intl/pt-PT.json +29 -0
- package/src/dnd/intl/ro-RO.json +29 -0
- package/src/dnd/intl/ru-RU.json +29 -0
- package/src/dnd/intl/sk-SK.json +29 -0
- package/src/dnd/intl/sl-SI.json +29 -0
- package/src/dnd/intl/sr-SP.json +29 -0
- package/src/dnd/intl/sv-SE.json +29 -0
- package/src/dnd/intl/tr-TR.json +29 -0
- package/src/dnd/intl/uk-UA.json +29 -0
- package/src/dnd/intl/zh-CN.json +29 -0
- package/src/dnd/intl/zh-TW.json +29 -0
- package/src/dnd/utils.ts +63 -3
- package/src/focus/FocusScope.tsx +266 -24
- package/src/focus/index.ts +8 -0
- package/src/focus/virtualFocus.ts +55 -0
- package/src/form/createFormValidation.ts +8 -1
- package/src/gridlist/createGridList.ts +187 -48
- package/src/gridlist/createGridListItem.ts +87 -155
- package/src/gridlist/createGridListSection.ts +54 -0
- package/src/gridlist/index.ts +3 -0
- package/src/gridlist/types.ts +47 -0
- package/src/index.ts +51 -3
- package/src/interactions/FocusableProvider.tsx +11 -6
- package/src/interactions/PressEvent.ts +14 -0
- package/src/interactions/createFocus.ts +26 -21
- package/src/interactions/createFocusWithin.ts +23 -24
- package/src/interactions/createInteractionModality.ts +26 -15
- package/src/interactions/createKeyboard.ts +10 -0
- package/src/interactions/createPress.ts +29 -6
- package/src/label/createLabels.ts +7 -4
- package/src/listbox/createListBox.ts +203 -10
- package/src/listbox/createOption.ts +84 -74
- package/src/menu/createMenu.ts +93 -16
- package/src/menu/createMenuItem.ts +253 -41
- package/src/numberfield/createNumberField.ts +82 -14
- package/src/popover/calculatePosition.ts +19 -7
- package/src/popover/createOverlayPosition.ts +9 -0
- package/src/radio/createRadio.ts +19 -2
- package/src/select/createSelect.ts +41 -4
- package/src/selection/DOMLayoutDelegate.ts +102 -0
- package/src/selection/ListKeyboardDelegate.ts +398 -0
- package/src/selection/constants.ts +16 -0
- package/src/selection/createCollectionRowInteraction.ts +209 -0
- package/src/selection/createScrollIntoViewOnFocus.ts +65 -0
- package/src/selection/createSelectableCollection.ts +645 -0
- package/src/selection/createSelectableItem.ts +512 -0
- package/src/selection/createSelectableList.ts +93 -0
- package/src/selection/createTypeSelect.ts +112 -51
- package/src/selection/index.ts +31 -0
- package/src/selection/selectItem.ts +80 -0
- package/src/selection/utils.ts +82 -0
- package/src/slider/createSlider.ts +48 -1
- package/src/spinbutton/createSpinButton.ts +163 -0
- package/src/spinbutton/index.ts +10 -0
- package/src/spinbutton/intl.ts +115 -0
- package/src/ssr/index.tsx +31 -0
- package/src/switch/createSwitch.ts +10 -0
- package/src/table/createTable.ts +82 -27
- package/src/table/createTableColumnHeader.ts +10 -0
- package/src/table/createTableRow.ts +208 -203
- package/src/table/createTableSelectAllCheckbox.ts +3 -4
- package/src/table/createTableSelectionCheckbox.ts +24 -1
- package/src/table/types.ts +37 -1
- package/src/table/utils.ts +41 -0
- package/src/tabs/createTabs.ts +95 -24
- package/src/tag/createTag.ts +30 -36
- package/src/tag/createTagGroup.ts +92 -0
- package/src/toast/createToast.ts +1 -0
- package/src/toggle/createToggle.ts +20 -0
- package/src/toolbar/createToolbar.ts +43 -94
- package/src/tree/createTree.ts +165 -52
- package/src/tree/createTreeItem.ts +105 -120
- package/src/tree/createTreeSelectionCheckbox.ts +14 -1
- package/src/tree/types.ts +10 -0
- package/src/utils/animation.ts +243 -0
- package/src/utils/dom.ts +216 -25
- package/src/utils/index.ts +10 -0
- package/src/utils/keyboard.ts +25 -0
- package/src/utils/mergeProps.ts +8 -1
- package/src/utils/scrollIntoView.ts +181 -0
- package/dist/datepicker/createTimeSegment.d.ts +0 -29
- package/dist/datepicker/createTimeSegment.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.jsx.map +0 -1
- package/src/datepicker/createTimeSegment.ts +0 -352
|
@@ -0,0 +1,1062 @@
|
|
|
1
|
+
import { t as createPress } from "./createPress.jsx";
|
|
2
|
+
import { i as mergeProps$1, t as isDevEnv } from "./env.jsx";
|
|
3
|
+
import { t as filterDOMProps } from "./filterDOMProps.jsx";
|
|
4
|
+
import { t as access } from "./reactivity.jsx";
|
|
5
|
+
import { w as isAppleDevice } from "./utils.jsx";
|
|
6
|
+
import { b as openLink } from "./focus.jsx";
|
|
7
|
+
import { t as createFocusRing } from "./createFocusRing.jsx";
|
|
8
|
+
import { n as createStringFormatter } from "./createStringFormatter.jsx";
|
|
9
|
+
import { createId } from "../ssr/index.jsx";
|
|
10
|
+
import { t as createLabels } from "./createLabels.jsx";
|
|
11
|
+
import { t as createLabel } from "./createLabel.jsx";
|
|
12
|
+
import { t as ariaHideOutside } from "./ariaHideOutside.jsx";
|
|
13
|
+
import { t as announce } from "./announce.jsx";
|
|
14
|
+
import { createEffect, onCleanup } from "solid-js";
|
|
15
|
+
import { isServer } from "solid-js/web";
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/combobox/intl/index.ts
|
|
18
|
+
const comboBoxIntlStrings = {
|
|
19
|
+
"ar-AE": {
|
|
20
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
21
|
+
true: () => `\u{627}\u{644}\u{645}\u{62C}\u{645}\u{648}\u{639}\u{629} \u{627}\u{644}\u{645}\u{62F}\u{62E}\u{644}\u{629} ${args.groupTitle}, \u{645}\u{639} ${formatter.plural(args.groupCount, {
|
|
22
|
+
one: () => `${formatter.number(args.groupCount)} \u{62E}\u{64A}\u{627}\u{631}`,
|
|
23
|
+
other: () => `${formatter.number(args.groupCount)} \u{62E}\u{64A}\u{627}\u{631}\u{627}\u{62A}`
|
|
24
|
+
})}. `,
|
|
25
|
+
other: ``
|
|
26
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
27
|
+
true: `, \u{645}\u{62D}\u{62F}\u{62F}`,
|
|
28
|
+
other: ``
|
|
29
|
+
}, args.isSelected)}`,
|
|
30
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
31
|
+
one: () => `${formatter.number(args.optionCount)} \u{62E}\u{64A}\u{627}\u{631}`,
|
|
32
|
+
other: () => `${formatter.number(args.optionCount)} \u{62E}\u{64A}\u{627}\u{631}\u{627}\u{62A}`
|
|
33
|
+
})} \u{645}\u{62A}\u{627}\u{62D}\u{629}.`,
|
|
34
|
+
"selectedAnnouncement": (args) => `${args.optionText}\u{60C} \u{645}\u{62D}\u{62F}\u{62F}`,
|
|
35
|
+
"buttonLabel": "عرض المقترحات",
|
|
36
|
+
"listboxLabel": "مقترحات"
|
|
37
|
+
},
|
|
38
|
+
"bg-BG": {
|
|
39
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
40
|
+
true: () => `\u{412}\u{44A}\u{432}\u{435}\u{434}\u{435}\u{43D}\u{430} \u{433}\u{440}\u{443}\u{43F}\u{430} ${args.groupTitle}, \u{441} ${formatter.plural(args.groupCount, {
|
|
41
|
+
one: () => `${formatter.number(args.groupCount)} \u{43E}\u{43F}\u{446}\u{438}\u{44F}`,
|
|
42
|
+
other: () => `${formatter.number(args.groupCount)} \u{43E}\u{43F}\u{446}\u{438}\u{438}`
|
|
43
|
+
})}. `,
|
|
44
|
+
other: ``
|
|
45
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
46
|
+
true: `, \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`,
|
|
47
|
+
other: ``
|
|
48
|
+
}, args.isSelected)}`,
|
|
49
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
50
|
+
one: () => `${formatter.number(args.optionCount)} \u{43E}\u{43F}\u{446}\u{438}\u{44F}`,
|
|
51
|
+
other: () => `${formatter.number(args.optionCount)} \u{43E}\u{43F}\u{446}\u{438}\u{438}`
|
|
52
|
+
})} \u{43D}\u{430} \u{440}\u{430}\u{437}\u{43F}\u{43E}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{435}.`,
|
|
53
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`,
|
|
54
|
+
"buttonLabel": "Покажи предложения",
|
|
55
|
+
"listboxLabel": "Предложения"
|
|
56
|
+
},
|
|
57
|
+
"cs-CZ": {
|
|
58
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
59
|
+
true: () => `Zadan\xe1 skupina \u{201E}${args.groupTitle}\u{201C} ${formatter.plural(args.groupCount, {
|
|
60
|
+
one: () => `s ${formatter.number(args.groupCount)} mo\u{17E}nost\xed`,
|
|
61
|
+
other: () => `se ${formatter.number(args.groupCount)} mo\u{17E}nostmi`
|
|
62
|
+
})}. `,
|
|
63
|
+
other: ``
|
|
64
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
65
|
+
true: ` (vybr\xe1no)`,
|
|
66
|
+
other: ``
|
|
67
|
+
}, args.isSelected)}`,
|
|
68
|
+
"countAnnouncement": (args, formatter) => `K dispozici ${formatter.plural(args.optionCount, {
|
|
69
|
+
one: () => `je ${formatter.number(args.optionCount)} mo\u{17E}nost`,
|
|
70
|
+
other: () => `jsou/je ${formatter.number(args.optionCount)} mo\u{17E}nosti/-\xed`
|
|
71
|
+
})}.`,
|
|
72
|
+
"selectedAnnouncement": (args) => `${args.optionText}, vybr\xe1no`,
|
|
73
|
+
"buttonLabel": "Zobrazit doporučení",
|
|
74
|
+
"listboxLabel": "Návrhy"
|
|
75
|
+
},
|
|
76
|
+
"da-DK": {
|
|
77
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
78
|
+
true: () => `Angivet gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
|
|
79
|
+
one: () => `${formatter.number(args.groupCount)} mulighed`,
|
|
80
|
+
other: () => `${formatter.number(args.groupCount)} muligheder`
|
|
81
|
+
})}. `,
|
|
82
|
+
other: ``
|
|
83
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
84
|
+
true: `, valgt`,
|
|
85
|
+
other: ``
|
|
86
|
+
}, args.isSelected)}`,
|
|
87
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
88
|
+
one: () => `${formatter.number(args.optionCount)} mulighed tilg\xe6ngelig`,
|
|
89
|
+
other: () => `${formatter.number(args.optionCount)} muligheder tilg\xe6ngelige`
|
|
90
|
+
})}.`,
|
|
91
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valgt`,
|
|
92
|
+
"buttonLabel": "Vis forslag",
|
|
93
|
+
"listboxLabel": "Forslag"
|
|
94
|
+
},
|
|
95
|
+
"de-DE": {
|
|
96
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
97
|
+
true: () => `Eingetretene Gruppe ${args.groupTitle}, mit ${formatter.plural(args.groupCount, {
|
|
98
|
+
one: () => `${formatter.number(args.groupCount)} Option`,
|
|
99
|
+
other: () => `${formatter.number(args.groupCount)} Optionen`
|
|
100
|
+
})}. `,
|
|
101
|
+
other: ``
|
|
102
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
103
|
+
true: `, ausgew\xe4hlt`,
|
|
104
|
+
other: ``
|
|
105
|
+
}, args.isSelected)}`,
|
|
106
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
107
|
+
one: () => `${formatter.number(args.optionCount)} Option`,
|
|
108
|
+
other: () => `${formatter.number(args.optionCount)} Optionen`
|
|
109
|
+
})} verf\xfcgbar.`,
|
|
110
|
+
"selectedAnnouncement": (args) => `${args.optionText}, ausgew\xe4hlt`,
|
|
111
|
+
"buttonLabel": "Empfehlungen anzeigen",
|
|
112
|
+
"listboxLabel": "Empfehlungen"
|
|
113
|
+
},
|
|
114
|
+
"el-GR": {
|
|
115
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
116
|
+
true: () => `\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3BF}\u{3BC}\u{3AC}\u{3B4}\u{3B1} ${args.groupTitle}, \u{3BC}\u{3B5} ${formatter.plural(args.groupCount, {
|
|
117
|
+
one: () => `${formatter.number(args.groupCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,
|
|
118
|
+
other: () => `${formatter.number(args.groupCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AD}\u{3C2}`
|
|
119
|
+
})}. `,
|
|
120
|
+
other: ``
|
|
121
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
122
|
+
true: `, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF}`,
|
|
123
|
+
other: ``
|
|
124
|
+
}, args.isSelected)}`,
|
|
125
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
126
|
+
one: () => `${formatter.number(args.optionCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,
|
|
127
|
+
other: () => `${formatter.number(args.optionCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AD}\u{3C2} `
|
|
128
|
+
})} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B5}\u{3C2}.`,
|
|
129
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5}`,
|
|
130
|
+
"buttonLabel": "Προβολή προτάσεων",
|
|
131
|
+
"listboxLabel": "Προτάσεις"
|
|
132
|
+
},
|
|
133
|
+
"et-EE": {
|
|
134
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
135
|
+
true: () => `Sisestatud r\xfchm ${args.groupTitle}, valikuga ${formatter.plural(args.groupCount, {
|
|
136
|
+
one: () => `${formatter.number(args.groupCount)} valik`,
|
|
137
|
+
other: () => `${formatter.number(args.groupCount)} valikud`
|
|
138
|
+
})}. `,
|
|
139
|
+
other: ``
|
|
140
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
141
|
+
true: `, valitud`,
|
|
142
|
+
other: ``
|
|
143
|
+
}, args.isSelected)}`,
|
|
144
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
145
|
+
one: () => `${formatter.number(args.optionCount)} valik`,
|
|
146
|
+
other: () => `${formatter.number(args.optionCount)} valikud`
|
|
147
|
+
})} saadaval.`,
|
|
148
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valitud`,
|
|
149
|
+
"buttonLabel": "Kuva soovitused",
|
|
150
|
+
"listboxLabel": "Soovitused"
|
|
151
|
+
},
|
|
152
|
+
"fi-FI": {
|
|
153
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
154
|
+
true: () => `Mentiin ryhm\xe4\xe4n ${args.groupTitle}, ${formatter.plural(args.groupCount, {
|
|
155
|
+
one: () => `${formatter.number(args.groupCount)} vaihtoehdon`,
|
|
156
|
+
other: () => `${formatter.number(args.groupCount)} vaihtoehdon`
|
|
157
|
+
})} kanssa.`,
|
|
158
|
+
other: ``
|
|
159
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
160
|
+
true: `, valittu`,
|
|
161
|
+
other: ``
|
|
162
|
+
}, args.isSelected)}`,
|
|
163
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
164
|
+
one: () => `${formatter.number(args.optionCount)} vaihtoehto`,
|
|
165
|
+
other: () => `${formatter.number(args.optionCount)} vaihtoehdot`
|
|
166
|
+
})} saatavilla.`,
|
|
167
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valittu`,
|
|
168
|
+
"buttonLabel": "Näytä ehdotukset",
|
|
169
|
+
"listboxLabel": "Ehdotukset"
|
|
170
|
+
},
|
|
171
|
+
"fr-FR": {
|
|
172
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
173
|
+
true: () => `Groupe ${args.groupTitle} rejoint, avec ${formatter.plural(args.groupCount, {
|
|
174
|
+
one: () => `${formatter.number(args.groupCount)} option`,
|
|
175
|
+
other: () => `${formatter.number(args.groupCount)} options`
|
|
176
|
+
})}. `,
|
|
177
|
+
other: ``
|
|
178
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
179
|
+
true: `, s\xe9lectionn\xe9(s)`,
|
|
180
|
+
other: ``
|
|
181
|
+
}, args.isSelected)}`,
|
|
182
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
183
|
+
one: () => `${formatter.number(args.optionCount)} option`,
|
|
184
|
+
other: () => `${formatter.number(args.optionCount)} options`
|
|
185
|
+
})} disponible(s).`,
|
|
186
|
+
"selectedAnnouncement": (args) => `${args.optionText}, s\xe9lectionn\xe9`,
|
|
187
|
+
"buttonLabel": "Afficher les suggestions",
|
|
188
|
+
"listboxLabel": "Suggestions"
|
|
189
|
+
},
|
|
190
|
+
"he-IL": {
|
|
191
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
192
|
+
true: () => `\u{5E0}\u{5DB}\u{5E0}\u{5E1} \u{5DC}\u{5E7}\u{5D1}\u{5D5}\u{5E6}\u{5D4} ${args.groupTitle}, \u{5E2}\u{5DD} ${formatter.plural(args.groupCount, {
|
|
193
|
+
one: () => `\u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5EA} ${formatter.number(args.groupCount)}`,
|
|
194
|
+
other: () => `${formatter.number(args.groupCount)} \u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5D9}\u{5D5}\u{5EA}`
|
|
195
|
+
})}. `,
|
|
196
|
+
other: ``
|
|
197
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
198
|
+
true: `, \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,
|
|
199
|
+
other: ``
|
|
200
|
+
}, args.isSelected)}`,
|
|
201
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
202
|
+
one: () => `\u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5EA} ${formatter.number(args.optionCount)}`,
|
|
203
|
+
other: () => `${formatter.number(args.optionCount)} \u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5D9}\u{5D5}\u{5EA}`
|
|
204
|
+
})} \u{5D1}\u{5DE}\u{5E6}\u{5D1} \u{5D6}\u{5DE}\u{5D9}\u{5DF}.`,
|
|
205
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,
|
|
206
|
+
"buttonLabel": "הצג הצעות",
|
|
207
|
+
"listboxLabel": "הצעות"
|
|
208
|
+
},
|
|
209
|
+
"hr-HR": {
|
|
210
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
211
|
+
true: () => `Unesena skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
212
|
+
one: () => `${formatter.number(args.groupCount)} opcijom`,
|
|
213
|
+
other: () => `${formatter.number(args.groupCount)} opcije/a`
|
|
214
|
+
})}. `,
|
|
215
|
+
other: ``
|
|
216
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
217
|
+
true: `, odabranih`,
|
|
218
|
+
other: ``
|
|
219
|
+
}, args.isSelected)}`,
|
|
220
|
+
"countAnnouncement": (args, formatter) => `Dostupno jo\u{161}: ${formatter.plural(args.optionCount, {
|
|
221
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
222
|
+
other: () => `${formatter.number(args.optionCount)} opcije/a`
|
|
223
|
+
})}.`,
|
|
224
|
+
"selectedAnnouncement": (args) => `${args.optionText}, odabrano`,
|
|
225
|
+
"buttonLabel": "Prikaži prijedloge",
|
|
226
|
+
"listboxLabel": "Prijedlozi"
|
|
227
|
+
},
|
|
228
|
+
"hu-HU": {
|
|
229
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
230
|
+
true: () => `Bel\xe9pett a(z) ${args.groupTitle} csoportba, amely ${formatter.plural(args.groupCount, {
|
|
231
|
+
one: () => `${formatter.number(args.groupCount)} lehet\u{151}s\xe9get`,
|
|
232
|
+
other: () => `${formatter.number(args.groupCount)} lehet\u{151}s\xe9get`
|
|
233
|
+
})} tartalmaz. `,
|
|
234
|
+
other: ``
|
|
235
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
236
|
+
true: `, kijel\xf6lve`,
|
|
237
|
+
other: ``
|
|
238
|
+
}, args.isSelected)}`,
|
|
239
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
240
|
+
one: () => `${formatter.number(args.optionCount)} lehet\u{151}s\xe9g`,
|
|
241
|
+
other: () => `${formatter.number(args.optionCount)} lehet\u{151}s\xe9g`
|
|
242
|
+
})} \xe1ll rendelkez\xe9sre.`,
|
|
243
|
+
"selectedAnnouncement": (args) => `${args.optionText}, kijel\xf6lve`,
|
|
244
|
+
"buttonLabel": "Javaslatok megjelenítése",
|
|
245
|
+
"listboxLabel": "Javaslatok"
|
|
246
|
+
},
|
|
247
|
+
"it-IT": {
|
|
248
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
249
|
+
true: () => `Ingresso nel gruppo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {
|
|
250
|
+
one: () => `${formatter.number(args.groupCount)} opzione`,
|
|
251
|
+
other: () => `${formatter.number(args.groupCount)} opzioni`
|
|
252
|
+
})}. `,
|
|
253
|
+
other: ``
|
|
254
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
255
|
+
true: `, selezionato`,
|
|
256
|
+
other: ``
|
|
257
|
+
}, args.isSelected)}`,
|
|
258
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
259
|
+
one: () => `${formatter.number(args.optionCount)} opzione disponibile`,
|
|
260
|
+
other: () => `${formatter.number(args.optionCount)} opzioni disponibili`
|
|
261
|
+
})}.`,
|
|
262
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selezionato`,
|
|
263
|
+
"buttonLabel": "Mostra suggerimenti",
|
|
264
|
+
"listboxLabel": "Suggerimenti"
|
|
265
|
+
},
|
|
266
|
+
"ja-JP": {
|
|
267
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
268
|
+
true: () => `\u{5165}\u{529B}\u{3055}\u{308C}\u{305F}\u{30B0}\u{30EB}\u{30FC}\u{30D7} ${args.groupTitle}\u{3001}${formatter.plural(args.groupCount, {
|
|
269
|
+
one: () => `${formatter.number(args.groupCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`,
|
|
270
|
+
other: () => `${formatter.number(args.groupCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`
|
|
271
|
+
})}\u{3092}\u{542B}\u{3080}\u{3002}`,
|
|
272
|
+
other: ``
|
|
273
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
274
|
+
true: `\u{3001}\u{9078}\u{629E}\u{6E08}\u{307F}`,
|
|
275
|
+
other: ``
|
|
276
|
+
}, args.isSelected)}`,
|
|
277
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
278
|
+
one: () => `${formatter.number(args.optionCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`,
|
|
279
|
+
other: () => `${formatter.number(args.optionCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`
|
|
280
|
+
})}\u{3092}\u{5229}\u{7528}\u{3067}\u{304D}\u{307E}\u{3059}\u{3002}`,
|
|
281
|
+
"selectedAnnouncement": (args) => `${args.optionText}\u{3001}\u{9078}\u{629E}\u{6E08}\u{307F}`,
|
|
282
|
+
"buttonLabel": "候補を表示",
|
|
283
|
+
"listboxLabel": "候補"
|
|
284
|
+
},
|
|
285
|
+
"ko-KR": {
|
|
286
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
287
|
+
true: () => `\u{C785}\u{B825}\u{D55C} \u{ADF8}\u{B8F9} ${args.groupTitle}, ${formatter.plural(args.groupCount, {
|
|
288
|
+
one: () => `${formatter.number(args.groupCount)}\u{AC1C} \u{C635}\u{C158}`,
|
|
289
|
+
other: () => `${formatter.number(args.groupCount)}\u{AC1C} \u{C635}\u{C158}`
|
|
290
|
+
})}. `,
|
|
291
|
+
other: ``
|
|
292
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
293
|
+
true: `, \u{C120}\u{D0DD}\u{B428}`,
|
|
294
|
+
other: ``
|
|
295
|
+
}, args.isSelected)}`,
|
|
296
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
297
|
+
one: () => `${formatter.number(args.optionCount)}\u{AC1C} \u{C635}\u{C158}`,
|
|
298
|
+
other: () => `${formatter.number(args.optionCount)}\u{AC1C} \u{C635}\u{C158}`
|
|
299
|
+
})}\u{C744} \u{C0AC}\u{C6A9}\u{D560} \u{C218} \u{C788}\u{C2B5}\u{B2C8}\u{B2E4}.`,
|
|
300
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{C120}\u{D0DD}\u{B428}`,
|
|
301
|
+
"buttonLabel": "제안 사항 표시",
|
|
302
|
+
"listboxLabel": "제안"
|
|
303
|
+
},
|
|
304
|
+
"lt-LT": {
|
|
305
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
306
|
+
true: () => `\u{12E}vesta grup\u{117} ${args.groupTitle}, su ${formatter.plural(args.groupCount, {
|
|
307
|
+
one: () => `${formatter.number(args.groupCount)} parinktimi`,
|
|
308
|
+
other: () => `${formatter.number(args.groupCount)} parinktimis (-i\u{173})`
|
|
309
|
+
})}. `,
|
|
310
|
+
other: ``
|
|
311
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
312
|
+
true: `, pasirinkta`,
|
|
313
|
+
other: ``
|
|
314
|
+
}, args.isSelected)}`,
|
|
315
|
+
"countAnnouncement": (args, formatter) => `Yra ${formatter.plural(args.optionCount, {
|
|
316
|
+
one: () => `${formatter.number(args.optionCount)} parinktis`,
|
|
317
|
+
other: () => `${formatter.number(args.optionCount)} parinktys (-i\u{173})`
|
|
318
|
+
})}.`,
|
|
319
|
+
"selectedAnnouncement": (args) => `${args.optionText}, pasirinkta`,
|
|
320
|
+
"buttonLabel": "Rodyti pasiūlymus",
|
|
321
|
+
"listboxLabel": "Pasiūlymai"
|
|
322
|
+
},
|
|
323
|
+
"lv-LV": {
|
|
324
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
325
|
+
true: () => `Ievad\u{12B}ta grupa ${args.groupTitle}, ar ${formatter.plural(args.groupCount, {
|
|
326
|
+
one: () => `${formatter.number(args.groupCount)} opciju`,
|
|
327
|
+
other: () => `${formatter.number(args.groupCount)} opcij\u{101}m`
|
|
328
|
+
})}. `,
|
|
329
|
+
other: ``
|
|
330
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
331
|
+
true: `, atlas\u{12B}ta`,
|
|
332
|
+
other: ``
|
|
333
|
+
}, args.isSelected)}`,
|
|
334
|
+
"countAnnouncement": (args, formatter) => `Pieejamo opciju skaits: ${formatter.plural(args.optionCount, {
|
|
335
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
336
|
+
other: () => `${formatter.number(args.optionCount)} opcijas`
|
|
337
|
+
})}.`,
|
|
338
|
+
"selectedAnnouncement": (args) => `${args.optionText}, atlas\u{12B}ta`,
|
|
339
|
+
"buttonLabel": "Rādīt ieteikumus",
|
|
340
|
+
"listboxLabel": "Ieteikumi"
|
|
341
|
+
},
|
|
342
|
+
"nb-NO": {
|
|
343
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
344
|
+
true: () => `Angitt gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
|
|
345
|
+
one: () => `${formatter.number(args.groupCount)} alternativ`,
|
|
346
|
+
other: () => `${formatter.number(args.groupCount)} alternativer`
|
|
347
|
+
})}. `,
|
|
348
|
+
other: ``
|
|
349
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
350
|
+
true: `, valgt`,
|
|
351
|
+
other: ``
|
|
352
|
+
}, args.isSelected)}`,
|
|
353
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
354
|
+
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
355
|
+
other: () => `${formatter.number(args.optionCount)} alternativer`
|
|
356
|
+
})} finnes.`,
|
|
357
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valgt`,
|
|
358
|
+
"buttonLabel": "Vis forslag",
|
|
359
|
+
"listboxLabel": "Forslag"
|
|
360
|
+
},
|
|
361
|
+
"nl-NL": {
|
|
362
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
363
|
+
true: () => `Groep ${args.groupTitle} ingevoerd met ${formatter.plural(args.groupCount, {
|
|
364
|
+
one: () => `${formatter.number(args.groupCount)} optie`,
|
|
365
|
+
other: () => `${formatter.number(args.groupCount)} opties`
|
|
366
|
+
})}. `,
|
|
367
|
+
other: ``
|
|
368
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
369
|
+
true: `, geselecteerd`,
|
|
370
|
+
other: ``
|
|
371
|
+
}, args.isSelected)}`,
|
|
372
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
373
|
+
one: () => `${formatter.number(args.optionCount)} optie`,
|
|
374
|
+
other: () => `${formatter.number(args.optionCount)} opties`
|
|
375
|
+
})} beschikbaar.`,
|
|
376
|
+
"selectedAnnouncement": (args) => `${args.optionText}, geselecteerd`,
|
|
377
|
+
"buttonLabel": "Suggesties weergeven",
|
|
378
|
+
"listboxLabel": "Suggesties"
|
|
379
|
+
},
|
|
380
|
+
"pl-PL": {
|
|
381
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
382
|
+
true: () => `Do\u{142}\u{105}czono do grupy ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
|
|
383
|
+
one: () => `${formatter.number(args.groupCount)} opcj\u{105}`,
|
|
384
|
+
other: () => `${formatter.number(args.groupCount)} opcjami`
|
|
385
|
+
})}. `,
|
|
386
|
+
other: ``
|
|
387
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
388
|
+
true: `, wybrano`,
|
|
389
|
+
other: ``
|
|
390
|
+
}, args.isSelected)}`,
|
|
391
|
+
"countAnnouncement": (args, formatter) => `dost\u{119}pna/dost\u{119}pne(-nych) ${formatter.plural(args.optionCount, {
|
|
392
|
+
one: () => `${formatter.number(args.optionCount)} opcja`,
|
|
393
|
+
other: () => `${formatter.number(args.optionCount)} opcje(-i)`
|
|
394
|
+
})}.`,
|
|
395
|
+
"selectedAnnouncement": (args) => `${args.optionText}, wybrano`,
|
|
396
|
+
"buttonLabel": "Wyświetlaj sugestie",
|
|
397
|
+
"listboxLabel": "Sugestie"
|
|
398
|
+
},
|
|
399
|
+
"pt-BR": {
|
|
400
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
401
|
+
true: () => `Grupo inserido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
|
|
402
|
+
one: () => `${formatter.number(args.groupCount)} op\xe7\xe3o`,
|
|
403
|
+
other: () => `${formatter.number(args.groupCount)} op\xe7\xf5es`
|
|
404
|
+
})}. `,
|
|
405
|
+
other: ``
|
|
406
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
407
|
+
true: `, selecionado`,
|
|
408
|
+
other: ``
|
|
409
|
+
}, args.isSelected)}`,
|
|
410
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
411
|
+
one: () => `${formatter.number(args.optionCount)} op\xe7\xe3o`,
|
|
412
|
+
other: () => `${formatter.number(args.optionCount)} op\xe7\xf5es`
|
|
413
|
+
})} dispon\xedvel.`,
|
|
414
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`,
|
|
415
|
+
"buttonLabel": "Mostrar sugestões",
|
|
416
|
+
"listboxLabel": "Sugestões"
|
|
417
|
+
},
|
|
418
|
+
"pt-PT": {
|
|
419
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
420
|
+
true: () => `Grupo introduzido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
|
|
421
|
+
one: () => `${formatter.number(args.groupCount)} op\xe7\xe3o`,
|
|
422
|
+
other: () => `${formatter.number(args.groupCount)} op\xe7\xf5es`
|
|
423
|
+
})}. `,
|
|
424
|
+
other: ``
|
|
425
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
426
|
+
true: `, selecionado`,
|
|
427
|
+
other: ``
|
|
428
|
+
}, args.isSelected)}`,
|
|
429
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
430
|
+
one: () => `${formatter.number(args.optionCount)} op\xe7\xe3o`,
|
|
431
|
+
other: () => `${formatter.number(args.optionCount)} op\xe7\xf5es`
|
|
432
|
+
})} dispon\xedvel.`,
|
|
433
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`,
|
|
434
|
+
"buttonLabel": "Apresentar sugestões",
|
|
435
|
+
"listboxLabel": "Sugestões"
|
|
436
|
+
},
|
|
437
|
+
"ro-RO": {
|
|
438
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
439
|
+
true: () => `Grup ${args.groupTitle} introdus, cu ${formatter.plural(args.groupCount, {
|
|
440
|
+
one: () => `${formatter.number(args.groupCount)} op\u{21B}iune`,
|
|
441
|
+
other: () => `${formatter.number(args.groupCount)} op\u{21B}iuni`
|
|
442
|
+
})}. `,
|
|
443
|
+
other: ``
|
|
444
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
445
|
+
true: `, selectat`,
|
|
446
|
+
other: ``
|
|
447
|
+
}, args.isSelected)}`,
|
|
448
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
449
|
+
one: () => `${formatter.number(args.optionCount)} op\u{21B}iune`,
|
|
450
|
+
other: () => `${formatter.number(args.optionCount)} op\u{21B}iuni`
|
|
451
|
+
})} disponibile.`,
|
|
452
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selectat`,
|
|
453
|
+
"buttonLabel": "Afișare sugestii",
|
|
454
|
+
"listboxLabel": "Sugestii"
|
|
455
|
+
},
|
|
456
|
+
"ru-RU": {
|
|
457
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
458
|
+
true: () => `\u{412}\u{432}\u{435}\u{434}\u{435}\u{43D}\u{43D}\u{430}\u{44F} \u{433}\u{440}\u{443}\u{43F}\u{43F}\u{430} ${args.groupTitle}, \u{441} ${formatter.plural(args.groupCount, {
|
|
459
|
+
one: () => `${formatter.number(args.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{43E}\u{43C}`,
|
|
460
|
+
other: () => `${formatter.number(args.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{430}\u{43C}\u{438}`
|
|
461
|
+
})}. `,
|
|
462
|
+
other: ``
|
|
463
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
464
|
+
true: `, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{43C}\u{438}`,
|
|
465
|
+
other: ``
|
|
466
|
+
}, args.isSelected)}`,
|
|
467
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
468
|
+
one: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
|
|
469
|
+
other: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{43E}\u{432}`
|
|
470
|
+
})} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}.`,
|
|
471
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,
|
|
472
|
+
"buttonLabel": "Показать предложения",
|
|
473
|
+
"listboxLabel": "Предложения"
|
|
474
|
+
},
|
|
475
|
+
"sk-SK": {
|
|
476
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
477
|
+
true: () => `Zadan\xe1 skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
478
|
+
one: () => `${formatter.number(args.groupCount)} mo\u{17E}nos\u{165}ou`,
|
|
479
|
+
other: () => `${formatter.number(args.groupCount)} mo\u{17E}nos\u{165}ami`
|
|
480
|
+
})}. `,
|
|
481
|
+
other: ``
|
|
482
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
483
|
+
true: `, vybrat\xe9`,
|
|
484
|
+
other: ``
|
|
485
|
+
}, args.isSelected)}`,
|
|
486
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
487
|
+
one: () => `${formatter.number(args.optionCount)} mo\u{17E}nos\u{165}`,
|
|
488
|
+
other: () => `${formatter.number(args.optionCount)} mo\u{17E}nosti/-\xed`
|
|
489
|
+
})} k dispoz\xedcii.`,
|
|
490
|
+
"selectedAnnouncement": (args) => `${args.optionText}, vybrat\xe9`,
|
|
491
|
+
"buttonLabel": "Zobraziť návrhy",
|
|
492
|
+
"listboxLabel": "Návrhy"
|
|
493
|
+
},
|
|
494
|
+
"sl-SI": {
|
|
495
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
496
|
+
true: () => `Vnesena skupina ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
|
|
497
|
+
one: () => `${formatter.number(args.groupCount)} opcija`,
|
|
498
|
+
other: () => `${formatter.number(args.groupCount)} opcije`
|
|
499
|
+
})}. `,
|
|
500
|
+
other: ``
|
|
501
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
502
|
+
true: `, izbrano`,
|
|
503
|
+
other: ``
|
|
504
|
+
}, args.isSelected)}`,
|
|
505
|
+
"countAnnouncement": (args, formatter) => `Na voljo je ${formatter.plural(args.optionCount, {
|
|
506
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
507
|
+
other: () => `${formatter.number(args.optionCount)} opcije`
|
|
508
|
+
})}.`,
|
|
509
|
+
"selectedAnnouncement": (args) => `${args.optionText}, izbrano`,
|
|
510
|
+
"buttonLabel": "Prikaži predloge",
|
|
511
|
+
"listboxLabel": "Predlogi"
|
|
512
|
+
},
|
|
513
|
+
"sr-SP": {
|
|
514
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
515
|
+
true: () => `Unesena grupa ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
516
|
+
one: () => `${formatter.number(args.groupCount)} opcijom`,
|
|
517
|
+
other: () => `${formatter.number(args.groupCount)} optione/a`
|
|
518
|
+
})}. `,
|
|
519
|
+
other: ``
|
|
520
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
521
|
+
true: `, izabranih`,
|
|
522
|
+
other: ``
|
|
523
|
+
}, args.isSelected)}`,
|
|
524
|
+
"countAnnouncement": (args, formatter) => `Dostupno jo\u{161}: ${formatter.plural(args.optionCount, {
|
|
525
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
526
|
+
other: () => `${formatter.number(args.optionCount)} opcije/a`
|
|
527
|
+
})}.`,
|
|
528
|
+
"selectedAnnouncement": (args) => `${args.optionText}, izabrano`,
|
|
529
|
+
"buttonLabel": "Prikaži predloge",
|
|
530
|
+
"listboxLabel": "Predlozi"
|
|
531
|
+
},
|
|
532
|
+
"sv-SE": {
|
|
533
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
534
|
+
true: () => `Ingick i gruppen ${args.groupTitle} med ${formatter.plural(args.groupCount, {
|
|
535
|
+
one: () => `${formatter.number(args.groupCount)} alternativ`,
|
|
536
|
+
other: () => `${formatter.number(args.groupCount)} alternativ`
|
|
537
|
+
})}. `,
|
|
538
|
+
other: ``
|
|
539
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
540
|
+
true: `, valda`,
|
|
541
|
+
other: ``
|
|
542
|
+
}, args.isSelected)}`,
|
|
543
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
544
|
+
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
545
|
+
other: () => `${formatter.number(args.optionCount)} alternativ`
|
|
546
|
+
})} tillg\xe4ngliga.`,
|
|
547
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valda`,
|
|
548
|
+
"buttonLabel": "Visa förslag",
|
|
549
|
+
"listboxLabel": "Förslag"
|
|
550
|
+
},
|
|
551
|
+
"tr-TR": {
|
|
552
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
553
|
+
true: () => `Girilen grup ${args.groupTitle}, ile ${formatter.plural(args.groupCount, {
|
|
554
|
+
one: () => `${formatter.number(args.groupCount)} se\xe7enek`,
|
|
555
|
+
other: () => `${formatter.number(args.groupCount)} se\xe7enekler`
|
|
556
|
+
})}. `,
|
|
557
|
+
other: ``
|
|
558
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
559
|
+
true: `, se\xe7ildi`,
|
|
560
|
+
other: ``
|
|
561
|
+
}, args.isSelected)}`,
|
|
562
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
563
|
+
one: () => `${formatter.number(args.optionCount)} se\xe7enek`,
|
|
564
|
+
other: () => `${formatter.number(args.optionCount)} se\xe7enekler`
|
|
565
|
+
})} kullan\u{131}labilir.`,
|
|
566
|
+
"selectedAnnouncement": (args) => `${args.optionText}, se\xe7ildi`,
|
|
567
|
+
"buttonLabel": "Önerileri göster",
|
|
568
|
+
"listboxLabel": "Öneriler"
|
|
569
|
+
},
|
|
570
|
+
"uk-UA": {
|
|
571
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
572
|
+
true: () => `\u{412}\u{432}\u{435}\u{434}\u{435}\u{43D}\u{430} \u{433}\u{440}\u{443}\u{43F}\u{430} ${args.groupTitle}, \u{437} ${formatter.plural(args.groupCount, {
|
|
573
|
+
one: () => `${formatter.number(args.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
|
|
574
|
+
other: () => `${formatter.number(args.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{438}(-\u{456}\u{432})`
|
|
575
|
+
})}. `,
|
|
576
|
+
other: ``
|
|
577
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
578
|
+
true: `, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,
|
|
579
|
+
other: ``
|
|
580
|
+
}, args.isSelected)}`,
|
|
581
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
582
|
+
one: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
|
|
583
|
+
other: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{438}(-\u{456}\u{432})`
|
|
584
|
+
})} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}.`,
|
|
585
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,
|
|
586
|
+
"buttonLabel": "Показати пропозиції",
|
|
587
|
+
"listboxLabel": "Пропозиції"
|
|
588
|
+
},
|
|
589
|
+
"zh-CN": {
|
|
590
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
591
|
+
true: () => `\u{8FDB}\u{5165}\u{4E86} ${args.groupTitle} \u{7EC4}\u{FF0C}\u{5176}\u{4E2D}\u{6709} ${formatter.plural(args.groupCount, {
|
|
592
|
+
one: () => `${formatter.number(args.groupCount)} \u{4E2A}\u{9009}\u{9879}`,
|
|
593
|
+
other: () => `${formatter.number(args.groupCount)} \u{4E2A}\u{9009}\u{9879}`
|
|
594
|
+
})}. `,
|
|
595
|
+
other: ``
|
|
596
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
597
|
+
true: `, \u{5DF2}\u{9009}\u{62E9}`,
|
|
598
|
+
other: ``
|
|
599
|
+
}, args.isSelected)}`,
|
|
600
|
+
"countAnnouncement": (args, formatter) => `\u{6709} ${formatter.plural(args.optionCount, {
|
|
601
|
+
one: () => `${formatter.number(args.optionCount)} \u{4E2A}\u{9009}\u{9879}`,
|
|
602
|
+
other: () => `${formatter.number(args.optionCount)} \u{4E2A}\u{9009}\u{9879}`
|
|
603
|
+
})}\u{53EF}\u{7528}\u{3002}`,
|
|
604
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{5DF2}\u{9009}\u{62E9}`,
|
|
605
|
+
"buttonLabel": "显示建议",
|
|
606
|
+
"listboxLabel": "建议"
|
|
607
|
+
},
|
|
608
|
+
"zh-TW": {
|
|
609
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
610
|
+
true: () => `\u{8F38}\u{5165}\u{7684}\u{7FA4}\u{7D44} ${args.groupTitle}, \u{6709} ${formatter.plural(args.groupCount, {
|
|
611
|
+
one: () => `${formatter.number(args.groupCount)} \u{9078}\u{9805}`,
|
|
612
|
+
other: () => `${formatter.number(args.groupCount)} \u{9078}\u{9805}`
|
|
613
|
+
})}. `,
|
|
614
|
+
other: ``
|
|
615
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
616
|
+
true: `, \u{5DF2}\u{9078}\u{53D6}`,
|
|
617
|
+
other: ``
|
|
618
|
+
}, args.isSelected)}`,
|
|
619
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
620
|
+
one: () => `${formatter.number(args.optionCount)} \u{9078}\u{9805}`,
|
|
621
|
+
other: () => `${formatter.number(args.optionCount)} \u{9078}\u{9805}`
|
|
622
|
+
})} \u{53EF}\u{7528}\u{3002}`,
|
|
623
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{5DF2}\u{9078}\u{53D6}`,
|
|
624
|
+
"buttonLabel": "顯示建議",
|
|
625
|
+
"listboxLabel": "建議"
|
|
626
|
+
},
|
|
627
|
+
"en-US": {
|
|
628
|
+
focusAnnouncement: "{isGroupChange, select, true {Entered group {groupTitle}, with {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, selected} other {}}",
|
|
629
|
+
countAnnouncement: "{optionCount, plural, one {# option} other {# options}} available.",
|
|
630
|
+
selectedAnnouncement: "{optionText}, selected",
|
|
631
|
+
buttonLabel: "Show suggestions",
|
|
632
|
+
listboxLabel: "Suggestions"
|
|
633
|
+
},
|
|
634
|
+
"es-ES": {
|
|
635
|
+
focusAnnouncement: "{isGroupChange, select, true {Grupo {groupTitle} activado, con {groupCount, plural, one {# opción} other {# opciones}}. } other {}}{optionText}{isSelected, select, true {, seleccionado} other {}}",
|
|
636
|
+
countAnnouncement: "{optionCount, plural, one {# opción disponible} other {# opciones disponibles}}.",
|
|
637
|
+
selectedAnnouncement: "{optionText}, seleccionado",
|
|
638
|
+
buttonLabel: "Mostrar sugerencias",
|
|
639
|
+
listboxLabel: "Sugerencias"
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
//#endregion
|
|
643
|
+
//#region src/combobox/createComboBox.ts
|
|
644
|
+
/**
|
|
645
|
+
* Provides the behavior and accessibility implementation for a combobox component.
|
|
646
|
+
* A combobox combines a text input with a listbox, allowing users to filter a list of options.
|
|
647
|
+
* Based on @react-aria/combobox useComboBox.
|
|
648
|
+
*/
|
|
649
|
+
/**
|
|
650
|
+
* Helper to count items in a collection
|
|
651
|
+
*/
|
|
652
|
+
function getItemCount(collection) {
|
|
653
|
+
let count = 0;
|
|
654
|
+
for (const _ of collection.getKeys()) count++;
|
|
655
|
+
return count;
|
|
656
|
+
}
|
|
657
|
+
const comboBoxData = /* @__PURE__ */ new WeakMap();
|
|
658
|
+
function getComboBoxData(state) {
|
|
659
|
+
return comboBoxData.get(state);
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Provides the behavior and accessibility implementation for a combobox component.
|
|
663
|
+
*/
|
|
664
|
+
function createComboBox(props, state, inputRef, buttonRef, listBoxRef) {
|
|
665
|
+
const getProps = () => access(props);
|
|
666
|
+
const id = createId(getProps().id);
|
|
667
|
+
if (isDevEnv()) {
|
|
668
|
+
const p = getProps();
|
|
669
|
+
if (!p.label && !p["aria-label"] && !p["aria-labelledby"]) console.warn("[solidaria] A ComboBox requires a label, aria-label, or aria-labelledby attribute for accessibility.");
|
|
670
|
+
}
|
|
671
|
+
let isPointerDownInsideListBox = false;
|
|
672
|
+
const inputId = `${id}-input`;
|
|
673
|
+
const buttonId = `${id}-button`;
|
|
674
|
+
const listBoxId = `${id}-listbox`;
|
|
675
|
+
const descriptionId = `${id}-description`;
|
|
676
|
+
const errorMessageId = `${id}-error`;
|
|
677
|
+
const getAriaDescribedBy = () => {
|
|
678
|
+
const p = getProps();
|
|
679
|
+
const ids = [];
|
|
680
|
+
if (p["aria-describedby"]) ids.push(p["aria-describedby"]);
|
|
681
|
+
if (p.description) ids.push(descriptionId);
|
|
682
|
+
if (p.isInvalid && p.errorMessage) ids.push(errorMessageId);
|
|
683
|
+
return ids.length > 0 ? ids.join(" ") : void 0;
|
|
684
|
+
};
|
|
685
|
+
createEffect(() => {
|
|
686
|
+
if (typeof document === "undefined") return;
|
|
687
|
+
const handleGlobalPointerDown = (e) => {
|
|
688
|
+
if (e.target.closest(`[id="${listBoxId}"]`)) isPointerDownInsideListBox = true;
|
|
689
|
+
};
|
|
690
|
+
document.addEventListener("pointerdown", handleGlobalPointerDown, true);
|
|
691
|
+
onCleanup(() => {
|
|
692
|
+
document.removeEventListener("pointerdown", handleGlobalPointerDown, true);
|
|
693
|
+
});
|
|
694
|
+
});
|
|
695
|
+
const domProps = () => filterDOMProps(getProps(), {
|
|
696
|
+
labelable: true,
|
|
697
|
+
propNames: new Set(["form"])
|
|
698
|
+
});
|
|
699
|
+
createEffect(() => {
|
|
700
|
+
comboBoxData.set(state, {
|
|
701
|
+
id,
|
|
702
|
+
listBoxId
|
|
703
|
+
});
|
|
704
|
+
onCleanup(() => {
|
|
705
|
+
comboBoxData.delete(state);
|
|
706
|
+
});
|
|
707
|
+
});
|
|
708
|
+
const { labelProps, fieldProps } = createLabel({
|
|
709
|
+
get id() {
|
|
710
|
+
return inputId;
|
|
711
|
+
},
|
|
712
|
+
get label() {
|
|
713
|
+
return getProps().label;
|
|
714
|
+
},
|
|
715
|
+
get "aria-label"() {
|
|
716
|
+
return getProps()["aria-label"];
|
|
717
|
+
},
|
|
718
|
+
get "aria-labelledby"() {
|
|
719
|
+
return getProps()["aria-labelledby"];
|
|
720
|
+
},
|
|
721
|
+
labelElementType: "label"
|
|
722
|
+
});
|
|
723
|
+
const { isFocusVisible, focusProps } = createFocusRing({
|
|
724
|
+
isTextInput: true,
|
|
725
|
+
get autoFocus() {
|
|
726
|
+
return getProps().autoFocus;
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
const isFocused = state.isFocused;
|
|
730
|
+
const stringFormatter = !isServer ? createStringFormatter(comboBoxIntlStrings) : null;
|
|
731
|
+
let lastFocusedKey = null;
|
|
732
|
+
let lastSelectedKey = null;
|
|
733
|
+
let lastOptionCount = 0;
|
|
734
|
+
let lastIsOpen = false;
|
|
735
|
+
createEffect(() => {
|
|
736
|
+
if (isServer || !stringFormatter) return;
|
|
737
|
+
const focusedKey = state.focusedKey();
|
|
738
|
+
const isOpen = state.isOpen();
|
|
739
|
+
const collection = state.collection();
|
|
740
|
+
const focusedItem = focusedKey != null && isOpen ? collection.getItem(focusedKey) : null;
|
|
741
|
+
if (isAppleDevice() && focusedItem != null && focusedKey !== lastFocusedKey) {
|
|
742
|
+
const isSelected = state.selectedKey() === focusedKey;
|
|
743
|
+
const optionText = focusedItem.textValue || "";
|
|
744
|
+
announce(stringFormatter().format("focusAnnouncement", {
|
|
745
|
+
isGroupChange: false,
|
|
746
|
+
groupTitle: "",
|
|
747
|
+
groupCount: 0,
|
|
748
|
+
optionText,
|
|
749
|
+
isSelected
|
|
750
|
+
}), "polite");
|
|
751
|
+
}
|
|
752
|
+
lastFocusedKey = focusedKey;
|
|
753
|
+
});
|
|
754
|
+
createEffect(() => {
|
|
755
|
+
if (isServer || !stringFormatter) return;
|
|
756
|
+
const isOpen = state.isOpen();
|
|
757
|
+
const optionCount = getItemCount(state.collection());
|
|
758
|
+
const focusedKey = state.focusedKey();
|
|
759
|
+
const didOpenWithoutFocusedItem = isOpen !== lastIsOpen && (focusedKey == null || isAppleDevice());
|
|
760
|
+
if (isOpen && (didOpenWithoutFocusedItem || optionCount !== lastOptionCount)) announce(stringFormatter().format("countAnnouncement", { optionCount }), "polite");
|
|
761
|
+
lastOptionCount = optionCount;
|
|
762
|
+
lastIsOpen = isOpen;
|
|
763
|
+
});
|
|
764
|
+
createEffect(() => {
|
|
765
|
+
if (isServer || !stringFormatter) return;
|
|
766
|
+
const selectedKey = state.selectedKey();
|
|
767
|
+
const selectedItem = state.selectedItem();
|
|
768
|
+
if (isAppleDevice() && state.isFocused() && selectedItem && selectedKey !== lastSelectedKey) {
|
|
769
|
+
const optionText = selectedItem.textValue || "";
|
|
770
|
+
announce(stringFormatter().format("selectedAnnouncement", { optionText }), "polite");
|
|
771
|
+
}
|
|
772
|
+
lastSelectedKey = selectedKey;
|
|
773
|
+
});
|
|
774
|
+
createEffect(() => {
|
|
775
|
+
if (isServer) return;
|
|
776
|
+
const isOpen = state.isOpen();
|
|
777
|
+
const inputEl = inputRef();
|
|
778
|
+
const listBoxEl = listBoxRef?.();
|
|
779
|
+
if (isOpen && inputEl && listBoxEl) onCleanup(ariaHideOutside([inputEl, listBoxEl]));
|
|
780
|
+
});
|
|
781
|
+
let wasOpenOnButtonPressStart = false;
|
|
782
|
+
const scheduleButtonOpenFallback = (startedOpen) => {
|
|
783
|
+
if (startedOpen) return;
|
|
784
|
+
setTimeout(() => {
|
|
785
|
+
const p = getProps();
|
|
786
|
+
const isDisabled = p.isDisabled ?? state.isDisabled;
|
|
787
|
+
const isReadOnly = p.isReadOnly ?? state.isReadOnly;
|
|
788
|
+
if (!state.isOpen() && !isDisabled && !isReadOnly) {
|
|
789
|
+
inputRef()?.focus();
|
|
790
|
+
state.open(null, "manual");
|
|
791
|
+
}
|
|
792
|
+
}, 0);
|
|
793
|
+
};
|
|
794
|
+
const { pressProps } = createPress({
|
|
795
|
+
get isDisabled() {
|
|
796
|
+
return (getProps().isDisabled ?? state.isDisabled) || (getProps().isReadOnly ?? state.isReadOnly);
|
|
797
|
+
},
|
|
798
|
+
preventFocusOnPress: true,
|
|
799
|
+
onPressStart(e) {
|
|
800
|
+
if (e.pointerType === "touch") return;
|
|
801
|
+
wasOpenOnButtonPressStart = state.isOpen();
|
|
802
|
+
inputRef()?.focus();
|
|
803
|
+
state.toggle(e.pointerType === "keyboard" || e.pointerType === "virtual" ? "first" : null, "manual");
|
|
804
|
+
scheduleButtonOpenFallback(wasOpenOnButtonPressStart);
|
|
805
|
+
},
|
|
806
|
+
onPress(e) {
|
|
807
|
+
if (e.pointerType !== "touch") return;
|
|
808
|
+
wasOpenOnButtonPressStart = state.isOpen();
|
|
809
|
+
inputRef()?.focus();
|
|
810
|
+
state.toggle(null, "manual");
|
|
811
|
+
scheduleButtonOpenFallback(wasOpenOnButtonPressStart);
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
const onInputChange = (e) => {
|
|
815
|
+
const target = e.target;
|
|
816
|
+
state.setInputValue(target.value);
|
|
817
|
+
};
|
|
818
|
+
const onInputKeyDown = (e) => {
|
|
819
|
+
const p = getProps();
|
|
820
|
+
if (p.isDisabled || p.isReadOnly) return;
|
|
821
|
+
const collection = state.collection();
|
|
822
|
+
const focusedKey = state.focusedKey();
|
|
823
|
+
const shouldWrap = p.shouldFocusWrap ?? false;
|
|
824
|
+
switch (e.key) {
|
|
825
|
+
case "Enter":
|
|
826
|
+
if (state.isOpen() && focusedKey != null) {
|
|
827
|
+
e.preventDefault();
|
|
828
|
+
const collectionItem = collection.getItem(focusedKey);
|
|
829
|
+
if (collectionItem?.props?.href ?? (collectionItem?.value)?.href) {
|
|
830
|
+
const listBox = listBoxRef?.();
|
|
831
|
+
if (listBox) {
|
|
832
|
+
const item = listBox.querySelector(`[data-key="${CSS.escape(String(focusedKey))}"]`);
|
|
833
|
+
if (item instanceof HTMLAnchorElement) openLink(item, e);
|
|
834
|
+
}
|
|
835
|
+
state.close();
|
|
836
|
+
} else state.commit();
|
|
837
|
+
}
|
|
838
|
+
break;
|
|
839
|
+
case "Escape":
|
|
840
|
+
if (state.isOpen()) {
|
|
841
|
+
e.preventDefault();
|
|
842
|
+
e.stopPropagation();
|
|
843
|
+
state.revert();
|
|
844
|
+
}
|
|
845
|
+
break;
|
|
846
|
+
case "ArrowDown":
|
|
847
|
+
e.preventDefault();
|
|
848
|
+
if (!state.isOpen()) state.open("first", "manual");
|
|
849
|
+
else if (focusedKey == null) {
|
|
850
|
+
const firstKey = collection.getFirstKey();
|
|
851
|
+
if (firstKey != null) state.setFocusedKey(firstKey);
|
|
852
|
+
} else {
|
|
853
|
+
let nextKey = collection.getKeyAfter(focusedKey);
|
|
854
|
+
while (nextKey != null && state.isKeyDisabled(nextKey)) nextKey = collection.getKeyAfter(nextKey);
|
|
855
|
+
if (nextKey != null) state.setFocusedKey(nextKey);
|
|
856
|
+
else if (shouldWrap) {
|
|
857
|
+
let firstKey = collection.getFirstKey();
|
|
858
|
+
while (firstKey != null && state.isKeyDisabled(firstKey)) firstKey = collection.getKeyAfter(firstKey);
|
|
859
|
+
if (firstKey != null) state.setFocusedKey(firstKey);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
break;
|
|
863
|
+
case "ArrowUp":
|
|
864
|
+
e.preventDefault();
|
|
865
|
+
if (!state.isOpen()) state.open("last", "manual");
|
|
866
|
+
else if (focusedKey == null) {
|
|
867
|
+
const lastKey = collection.getLastKey();
|
|
868
|
+
if (lastKey != null) state.setFocusedKey(lastKey);
|
|
869
|
+
} else {
|
|
870
|
+
let prevKey = collection.getKeyBefore(focusedKey);
|
|
871
|
+
while (prevKey != null && state.isKeyDisabled(prevKey)) prevKey = collection.getKeyBefore(prevKey);
|
|
872
|
+
if (prevKey != null) state.setFocusedKey(prevKey);
|
|
873
|
+
else if (shouldWrap) {
|
|
874
|
+
let lastKey = collection.getLastKey();
|
|
875
|
+
while (lastKey != null && state.isKeyDisabled(lastKey)) lastKey = collection.getKeyBefore(lastKey);
|
|
876
|
+
if (lastKey != null) state.setFocusedKey(lastKey);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
break;
|
|
880
|
+
case "Home":
|
|
881
|
+
if (state.isOpen()) {
|
|
882
|
+
e.preventDefault();
|
|
883
|
+
let firstKey = collection.getFirstKey();
|
|
884
|
+
while (firstKey != null && state.isKeyDisabled(firstKey)) firstKey = collection.getKeyAfter(firstKey);
|
|
885
|
+
if (firstKey != null) state.setFocusedKey(firstKey);
|
|
886
|
+
}
|
|
887
|
+
break;
|
|
888
|
+
case "End":
|
|
889
|
+
if (state.isOpen()) {
|
|
890
|
+
e.preventDefault();
|
|
891
|
+
let lastKey = collection.getLastKey();
|
|
892
|
+
while (lastKey != null && state.isKeyDisabled(lastKey)) lastKey = collection.getKeyBefore(lastKey);
|
|
893
|
+
if (lastKey != null) state.setFocusedKey(lastKey);
|
|
894
|
+
}
|
|
895
|
+
break;
|
|
896
|
+
case "Backspace":
|
|
897
|
+
if (state.selectionMode() === "multiple" && state.inputValue() === "") {
|
|
898
|
+
const keys = state.selectedKeys();
|
|
899
|
+
if (keys.size > 0) {
|
|
900
|
+
const lastKey = Array.from(keys).pop();
|
|
901
|
+
state.removeSelectedKey(lastKey);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
break;
|
|
905
|
+
case "Tab":
|
|
906
|
+
if (state.isOpen() && focusedKey != null) state.commit();
|
|
907
|
+
break;
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
const handleFocus = (e) => {
|
|
911
|
+
state.setFocused(true);
|
|
912
|
+
getProps().onFocus?.(e);
|
|
913
|
+
getProps().onFocusChange?.(true);
|
|
914
|
+
};
|
|
915
|
+
let lastEventTime = 0;
|
|
916
|
+
const handleBlur = (e) => {
|
|
917
|
+
const relatedTarget = e.relatedTarget;
|
|
918
|
+
const button = buttonRef?.();
|
|
919
|
+
const listBox = listBoxRef?.();
|
|
920
|
+
const blurFromButton = button && button === relatedTarget;
|
|
921
|
+
const blurIntoPopover = listBox?.contains(relatedTarget);
|
|
922
|
+
if (blurFromButton || blurIntoPopover) return;
|
|
923
|
+
if (isPointerDownInsideListBox) {
|
|
924
|
+
isPointerDownInsideListBox = false;
|
|
925
|
+
return;
|
|
926
|
+
}
|
|
927
|
+
getProps().onBlur?.(e);
|
|
928
|
+
state.setFocused(false);
|
|
929
|
+
getProps().onFocusChange?.(false);
|
|
930
|
+
};
|
|
931
|
+
const handleTouchEnd = (e) => {
|
|
932
|
+
const p = getProps();
|
|
933
|
+
const isDisabled = p.isDisabled ?? state.isDisabled;
|
|
934
|
+
const isReadOnly = p.isReadOnly ?? state.isReadOnly;
|
|
935
|
+
if (isDisabled || isReadOnly) return;
|
|
936
|
+
if (e.timeStamp - lastEventTime < 500) {
|
|
937
|
+
e.preventDefault();
|
|
938
|
+
inputRef()?.focus();
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
const rect = e.target.getBoundingClientRect();
|
|
942
|
+
const touch = e.changedTouches[0];
|
|
943
|
+
const centerX = Math.ceil(rect.left + .5 * rect.width);
|
|
944
|
+
const centerY = Math.ceil(rect.top + .5 * rect.height);
|
|
945
|
+
if (touch.clientX === centerX && touch.clientY === centerY) {
|
|
946
|
+
e.preventDefault();
|
|
947
|
+
inputRef()?.focus();
|
|
948
|
+
state.toggle(null, "manual");
|
|
949
|
+
lastEventTime = e.timeStamp;
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
return {
|
|
953
|
+
get labelProps() {
|
|
954
|
+
return labelProps;
|
|
955
|
+
},
|
|
956
|
+
get inputProps() {
|
|
957
|
+
const p = getProps();
|
|
958
|
+
const isOpen = state.isOpen();
|
|
959
|
+
const isDisabled = p.isDisabled ?? state.isDisabled;
|
|
960
|
+
const isReadOnly = p.isReadOnly ?? state.isReadOnly;
|
|
961
|
+
const focusedKey = state.focusedKey();
|
|
962
|
+
return mergeProps$1(domProps(), focusProps, fieldProps, {
|
|
963
|
+
id: inputId,
|
|
964
|
+
type: "text",
|
|
965
|
+
role: "combobox",
|
|
966
|
+
get value() {
|
|
967
|
+
return state.inputValue();
|
|
968
|
+
},
|
|
969
|
+
tabIndex: isDisabled ? void 0 : 0,
|
|
970
|
+
disabled: isDisabled || void 0,
|
|
971
|
+
readOnly: isReadOnly || void 0,
|
|
972
|
+
placeholder: p.placeholder,
|
|
973
|
+
autoComplete: "off",
|
|
974
|
+
"aria-autocomplete": p.autoComplete ?? "list",
|
|
975
|
+
"aria-haspopup": "listbox",
|
|
976
|
+
"aria-expanded": isOpen,
|
|
977
|
+
"aria-controls": isOpen ? listBoxId : void 0,
|
|
978
|
+
"aria-activedescendant": isOpen && focusedKey != null ? `${listBoxId}-option-${focusedKey}` : void 0,
|
|
979
|
+
"aria-disabled": isDisabled || void 0,
|
|
980
|
+
"aria-required": p.isRequired || void 0,
|
|
981
|
+
"aria-invalid": p.isInvalid || void 0,
|
|
982
|
+
"aria-describedby": getAriaDescribedBy(),
|
|
983
|
+
name: p.name,
|
|
984
|
+
onInput: onInputChange,
|
|
985
|
+
onKeyDown: onInputKeyDown,
|
|
986
|
+
onFocus: handleFocus,
|
|
987
|
+
onBlur: handleBlur,
|
|
988
|
+
onTouchEnd: handleTouchEnd,
|
|
989
|
+
"data-open": isOpen || void 0,
|
|
990
|
+
"data-disabled": isDisabled || void 0,
|
|
991
|
+
"data-readonly": isReadOnly || void 0,
|
|
992
|
+
"data-focus-visible": isFocusVisible() || void 0
|
|
993
|
+
});
|
|
994
|
+
},
|
|
995
|
+
get buttonProps() {
|
|
996
|
+
const p = getProps();
|
|
997
|
+
const isOpen = state.isOpen();
|
|
998
|
+
const isDisabled = p.isDisabled ?? state.isDisabled;
|
|
999
|
+
const isReadOnly = p.isReadOnly ?? state.isReadOnly;
|
|
1000
|
+
const triggerLabels = createLabels({
|
|
1001
|
+
id: buttonId,
|
|
1002
|
+
"aria-label": stringFormatter?.().format("buttonLabel") ?? "Show suggestions",
|
|
1003
|
+
"aria-labelledby": p["aria-labelledby"] ?? labelProps.id
|
|
1004
|
+
});
|
|
1005
|
+
return mergeProps$1(pressProps, {
|
|
1006
|
+
id: buttonId,
|
|
1007
|
+
type: "button",
|
|
1008
|
+
tabIndex: -1,
|
|
1009
|
+
"aria-haspopup": "listbox",
|
|
1010
|
+
"aria-expanded": isOpen,
|
|
1011
|
+
"aria-controls": isOpen ? listBoxId : void 0,
|
|
1012
|
+
"aria-disabled": isDisabled || isReadOnly || void 0,
|
|
1013
|
+
disabled: isDisabled || isReadOnly || void 0,
|
|
1014
|
+
"aria-label": triggerLabels["aria-label"],
|
|
1015
|
+
"aria-labelledby": triggerLabels["aria-labelledby"],
|
|
1016
|
+
"data-open": isOpen || void 0,
|
|
1017
|
+
"data-disabled": isDisabled || isReadOnly || void 0
|
|
1018
|
+
});
|
|
1019
|
+
},
|
|
1020
|
+
get listBoxProps() {
|
|
1021
|
+
const p = getProps();
|
|
1022
|
+
const isMulti = state.selectionMode() === "multiple";
|
|
1023
|
+
const boxLabels = createLabels({
|
|
1024
|
+
id: listBoxId,
|
|
1025
|
+
"aria-label": stringFormatter?.().format("listboxLabel") ?? "Suggestions",
|
|
1026
|
+
"aria-labelledby": p["aria-labelledby"] ?? labelProps.id
|
|
1027
|
+
});
|
|
1028
|
+
return {
|
|
1029
|
+
id: listBoxId,
|
|
1030
|
+
role: "listbox",
|
|
1031
|
+
"aria-label": boxLabels["aria-label"],
|
|
1032
|
+
"aria-labelledby": boxLabels["aria-labelledby"],
|
|
1033
|
+
"aria-multiselectable": isMulti || void 0,
|
|
1034
|
+
shouldSelectOnPressUp: true,
|
|
1035
|
+
shouldFocusOnHover: true,
|
|
1036
|
+
onPointerDownCapture: () => {
|
|
1037
|
+
isPointerDownInsideListBox = true;
|
|
1038
|
+
},
|
|
1039
|
+
onMouseDownCapture: () => {
|
|
1040
|
+
isPointerDownInsideListBox = true;
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
},
|
|
1044
|
+
get descriptionProps() {
|
|
1045
|
+
return { id: descriptionId };
|
|
1046
|
+
},
|
|
1047
|
+
get errorMessageProps() {
|
|
1048
|
+
return {
|
|
1049
|
+
id: errorMessageId,
|
|
1050
|
+
role: "alert"
|
|
1051
|
+
};
|
|
1052
|
+
},
|
|
1053
|
+
isFocused,
|
|
1054
|
+
isFocusVisible: () => isFocused() && isFocusVisible(),
|
|
1055
|
+
isOpen: state.isOpen,
|
|
1056
|
+
selectedItem: state.selectedItem
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
//#endregion
|
|
1060
|
+
export { getComboBoxData as n, createComboBox as t };
|
|
1061
|
+
|
|
1062
|
+
//# sourceMappingURL=combobox.jsx.map
|