@povio/ui 3.4.0-rc.4 → 3.4.0-rc.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -2
- package/dist/Accordion-BKBl-2EO.js +553 -0
- package/dist/Accordion-DonRhvvW.d.ts +58 -0
- package/dist/ActionModal-CKS0t-n3.d.ts +26 -0
- package/dist/Alert-1gjUqXaO.js +240 -0
- package/dist/Alert-C0GAvkdO.d.ts +33 -0
- package/dist/Autocomplete-CWiSRejc.d.ts +15 -0
- package/dist/BottomSheet-BZXBtOHF.d.ts +33 -0
- package/dist/BottomSheet-CUDfDj9h.js +404 -0
- package/dist/BottomSheet.lazy-DT02808T.d.ts +5 -0
- package/dist/Breadcrumbs-BypydWR6.js +535 -0
- package/dist/Breadcrumbs-C46_H95J.d.ts +19 -0
- package/dist/Button-7HZojyTP.js +690 -0
- package/dist/Button-D09S1dNt.js +161 -0
- package/dist/Button-D0M9lMOR.d.ts +31 -0
- package/dist/ButtonContent-17xvQXod.js +122 -0
- package/dist/Calendar-KJOP6Bcq.js +656 -0
- package/dist/CheckContent-DzWpxKGq.js +19 -0
- package/dist/Checkbox-BIZoNFiX.d.ts +24 -0
- package/dist/Checkbox-DUz32jLa.js +405 -0
- package/dist/CheckboxCheckmark-C7Oq15ms.js +195 -0
- package/dist/CheckboxGroup-U4poUqlk.d.ts +28 -0
- package/dist/DOMFunctions-BrQjsnDh.js +52 -0
- package/dist/DatePicker-DWnzyBQD.js +426 -0
- package/dist/DatePicker-IZwn9hAk.d.ts +43 -0
- package/dist/DatePickerInput-B7yVoI9Y.d.ts +18 -0
- package/dist/DatePickerInput-CvrlkpEN.js +602 -0
- package/dist/DateRangePicker-BEluwe3q.js +1503 -0
- package/dist/DateRangePicker-DLuRwuw1.d.ts +75 -0
- package/dist/DateTimePicker-C6DZnWcp.js +380 -0
- package/dist/DateTimePicker-Co6UXSVA.d.ts +43 -0
- package/dist/Dialog-B5J6LRRw.js +4344 -0
- package/dist/Drawer-DnSLe85M.d.ts +18 -0
- package/dist/FileTrigger-CjvQGNXu.js +2191 -0
- package/dist/FileUpload-B1L78k7y.d.ts +7 -0
- package/dist/FileUpload-DYGyICVb.js +766 -0
- package/dist/FileUploadContainer-CLPREIin.d.ts +5 -0
- package/dist/Form-CKUcoaMX.js +8 -0
- package/dist/Form-fI9WMU9d.d.ts +49 -0
- package/dist/FormField-Cl-t5Wi1.js +211 -0
- package/dist/FormField-Iy2O8A4g.d.ts +37 -0
- package/dist/FormFieldError-BT4uxbKY.d.ts +10 -0
- package/dist/FormFieldError-CFg0Wn3i.js +26 -0
- package/dist/FormFieldHeaderTooltip-C3nmuFKW.js +38 -0
- package/dist/Hidden-BtagiSrf.js +32 -0
- package/dist/IconButton-CUpL6CsP.d.ts +14 -0
- package/dist/InlineIconButton-AQ8SViM3.d.ts +17 -0
- package/dist/InlineTooltipWrapper-7ePcpH9g.js +24 -0
- package/dist/Input-BefLtZJe.js +46 -0
- package/dist/InputContent-jcMfOzpN.d.ts +27 -0
- package/dist/InputItem-122JkDYJ.js +63 -0
- package/dist/InputUpload-BBb6TzVi.js +233 -0
- package/dist/InputUpload-RPnj3b1Y.d.ts +66 -0
- package/dist/Inputs-BT0CNY2g.js +17 -0
- package/dist/Inputs-a9CXrVRS.d.ts +13 -0
- package/dist/Label-BVczUvgv.js +17 -0
- package/dist/Link-BWbPxs6p.js +83 -0
- package/dist/Link-CKi4C00S.d.ts +25 -0
- package/dist/Link-EHxXHf53.js +42 -0
- package/dist/ListBox-CIgWt1tg.js +743 -0
- package/dist/Loader-C6YkWZOO.js +113 -0
- package/dist/Loader-Sbr1b0iU.d.ts +29 -0
- package/dist/Menu-BHpiqpJ9.d.ts +61 -0
- package/dist/Menu-RXGizKMF.js +178 -0
- package/dist/MenuDesktop-Dv25P83N.js +248 -0
- package/dist/MenuItem-DLKC94Qs.d.ts +6 -0
- package/dist/Modal-BfN_MfR-.d.ts +53 -0
- package/dist/Modal-CEJ2QkF0.js +205 -0
- package/dist/Modal-r0ucQNPK.js +58 -0
- package/dist/NumberFormatter-KUrW7GbE.js +122 -0
- package/dist/NumberInput-gqs4vYJf.d.ts +27 -0
- package/dist/NumberRangeInput-C--wO5KF.js +403 -0
- package/dist/NumberRangeInput-CMHI9yks.d.ts +44 -0
- package/dist/OverlayArrow-CyFI2DhX.js +622 -0
- package/dist/Pagination-uuqyFAu_.d.ts +12 -0
- package/dist/PaginationList-BNswIyhS.js +218 -0
- package/dist/PaginationList-CmZBILfU.d.ts +18 -0
- package/dist/PasswordInput-CMKZF3YS.js +63 -0
- package/dist/PasswordInput-CcoU8g5c.d.ts +10 -0
- package/dist/Pill-vCBJdOTY.d.ts +18 -0
- package/dist/PillButton-CEF431l4.d.ts +15 -0
- package/dist/ProgressBar-C8dtVA-1.js +58 -0
- package/dist/ProgressBar-DG-ClG9v.d.ts +44 -0
- package/dist/QuerySelect-D_vXxG1S.d.ts +23 -0
- package/dist/RSPContexts-DHQi1l7F.js +12 -0
- package/dist/RadioGroup-Cs718lkQ.d.ts +24 -0
- package/dist/RadioGroup-oU2t4qb_.js +571 -0
- package/dist/ResponsivePopover-BmURECUv.d.ts +20 -0
- package/dist/Segment-BAVcQyuY.js +348 -0
- package/dist/Segment-C_Vbrl9f.d.ts +7 -0
- package/dist/Select-DIso4xMG.d.ts +15 -0
- package/dist/Select-DxHs-Mtq.js +155 -0
- package/dist/SelectBase-72enBk-1.d.ts +96 -0
- package/dist/SelectionIndicator-BvWiZS2N.js +817 -0
- package/dist/Slider-BaPUnnLF.js +672 -0
- package/dist/Slider-Baw84mjN.d.ts +22 -0
- package/dist/SplitButton-CR4psHKW.d.ts +15 -0
- package/dist/Stepper-CSfhZBK1.js +336 -0
- package/dist/Stepper-JUO4MbZx.d.ts +113 -0
- package/dist/TableDnd-CuHxANWh.js +133 -0
- package/dist/Tag-DJZ5qQme.js +95 -0
- package/dist/Tag-DUvBTljf.d.ts +34 -0
- package/dist/Text-BTtw_Syz.js +5 -0
- package/dist/TextArea-DGf6by6e.js +176 -0
- package/dist/TextArea-vdp0uSFx.d.ts +21 -0
- package/dist/TextButton-cigitfeH.d.ts +15 -0
- package/dist/TextEditor-B7vdoTeN.d.ts +26 -0
- package/dist/TextEditor-D18y8_ro.js +3440 -0
- package/dist/TextInput-Dxq5XKdp.d.ts +27 -0
- package/dist/TimePicker-B_atBC0F.d.ts +32 -0
- package/dist/TimePicker-D1ptdYlJ.js +375 -0
- package/dist/Toast-DL8_g0WV.d.ts +16 -0
- package/dist/ToastContainer-9OS5SK5K.d.ts +5 -0
- package/dist/ToastContainer-C45QhP2Q.js +55 -0
- package/dist/Toggle-CaBvb0l0.d.ts +19 -0
- package/dist/Toggle-JHUOY2Mh.js +178 -0
- package/dist/ToggleButton-3lINwoaV.d.ts +12 -0
- package/dist/ToggleButton-C01P8reg.js +218 -0
- package/dist/Tooltip-D1oFPqFF.d.ts +56 -0
- package/dist/Tooltip-D8YNkKCl.js +532 -0
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +11 -0
- package/dist/TooltipWrapper-CoRIizbz.js +57 -0
- package/dist/Typography-AcUd9df8.js +31 -0
- package/dist/Typography-BiHrVFpz.d.ts +12 -0
- package/dist/VisuallyHidden-CWgME09A.js +43 -0
- package/dist/autocomplete-CQqxdk49.d.ts +16 -0
- package/dist/button-BQmy1LZS.d.ts +1 -0
- package/dist/button.cva-zMNkoZH8.d.ts +92 -0
- package/dist/buttonContent.cva-CIOaLH0a.d.ts +6 -0
- package/dist/check-M2G7r3oH.js +13 -0
- package/dist/checkbox-Dx7xlf6g.d.ts +9 -0
- package/dist/checkbox-group-C4afLmyg.d.ts +9 -0
- package/dist/checkbox.cva-Caaf2Ysq.d.ts +77 -0
- package/dist/chevron-down-Ciz9yP9R.js +13 -0
- package/dist/chevron-left-VO8YZrXZ.js +13 -0
- package/dist/chevron-right-C_M98bh3.js +13 -0
- package/dist/chevron-up-CHRnDSA3.js +13 -0
- package/dist/chevrons-right-BXdmZ2TS.js +29 -0
- package/dist/clsx-CnD0nOiA.js +16 -0
- package/dist/common-UBFya8WY.d.ts +11 -0
- package/dist/components/accordion.d.ts +2 -0
- package/dist/components/accordion.js +2 -0
- package/dist/components/action-modal.d.ts +2 -0
- package/dist/components/action-modal.js +188 -0
- package/dist/components/alert.d.ts +2 -0
- package/dist/components/alert.js +2 -0
- package/dist/components/autocomplete/react-aria.d.ts +1 -0
- package/dist/components/autocomplete/react-aria.js +1 -0
- package/dist/components/autocomplete.d.ts +2 -0
- package/dist/components/autocomplete.js +131 -0
- package/dist/components/bottom-sheet.d.ts +3 -0
- package/dist/components/bottom-sheet.js +109 -0
- package/dist/components/breadcrumb/react-aria.d.ts +1 -0
- package/dist/components/breadcrumb/react-aria.js +1 -0
- package/dist/components/breadcrumbs/react-aria.d.ts +1 -0
- package/dist/components/breadcrumbs/react-aria.js +1 -0
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +2 -0
- package/dist/components/button/react-aria.d.ts +1 -0
- package/dist/components/button/react-aria.js +1 -0
- package/dist/components/button.d.ts +3 -0
- package/dist/components/button.js +2 -0
- package/dist/components/calendar/react-aria.d.ts +1 -0
- package/dist/components/calendar/react-aria.js +1 -0
- package/dist/components/calendar-cell/react-aria.d.ts +1 -0
- package/dist/components/calendar-cell/react-aria.js +1 -0
- package/dist/components/calendar-grid/react-aria.d.ts +1 -0
- package/dist/components/calendar-grid/react-aria.js +1 -0
- package/dist/components/calendar-grid-body/react-aria.d.ts +1 -0
- package/dist/components/calendar-grid-body/react-aria.js +1 -0
- package/dist/components/calendar-grid-header/react-aria.d.ts +1 -0
- package/dist/components/calendar-grid-header/react-aria.js +1 -0
- package/dist/components/calendar-header-cell/react-aria.d.ts +1 -0
- package/dist/components/calendar-header-cell/react-aria.js +1 -0
- package/dist/components/cell/react-aria.d.ts +1 -0
- package/dist/components/cell/react-aria.js +1 -0
- package/dist/components/checkbox/react-aria.d.ts +1 -0
- package/dist/components/checkbox/react-aria.js +1 -0
- package/dist/components/checkbox-group/react-aria.d.ts +1 -0
- package/dist/components/checkbox-group/react-aria.js +1 -0
- package/dist/components/checkbox-group.d.ts +2 -0
- package/dist/components/checkbox-group.js +161 -0
- package/dist/components/checkbox.d.ts +2 -0
- package/dist/components/checkbox.js +2 -0
- package/dist/components/collection/react-aria.d.ts +1 -0
- package/dist/components/collection/react-aria.js +1 -0
- package/dist/components/color-area/react-aria.d.ts +1 -0
- package/dist/components/color-area/react-aria.js +1 -0
- package/dist/components/color-field/react-aria.d.ts +1 -0
- package/dist/components/color-field/react-aria.js +1 -0
- package/dist/components/color-picker/react-aria.d.ts +1 -0
- package/dist/components/color-picker/react-aria.js +1 -0
- package/dist/components/color-slider/react-aria.d.ts +1 -0
- package/dist/components/color-slider/react-aria.js +1 -0
- package/dist/components/color-swatch/react-aria.d.ts +1 -0
- package/dist/components/color-swatch/react-aria.js +1 -0
- package/dist/components/color-swatch-picker/react-aria.d.ts +5 -0
- package/dist/components/color-swatch-picker/react-aria.js +1 -0
- package/dist/components/color-swatch-picker-item/react-aria.d.ts +5 -0
- package/dist/components/color-swatch-picker-item/react-aria.js +1 -0
- package/dist/components/color-thumb/react-aria.d.ts +1 -0
- package/dist/components/color-thumb/react-aria.js +1 -0
- package/dist/components/color-wheel/react-aria.d.ts +1 -0
- package/dist/components/color-wheel/react-aria.js +1 -0
- package/dist/components/color-wheel-track/react-aria.d.ts +1 -0
- package/dist/components/color-wheel-track/react-aria.js +1 -0
- package/dist/components/column/react-aria.d.ts +1 -0
- package/dist/components/column/react-aria.js +1 -0
- package/dist/components/column-resizer/react-aria.d.ts +1 -0
- package/dist/components/column-resizer/react-aria.js +1 -0
- package/dist/components/combo-box/react-aria.d.ts +1 -0
- package/dist/components/combo-box/react-aria.js +1 -0
- package/dist/components/date-field/react-aria.d.ts +1 -0
- package/dist/components/date-field/react-aria.js +1 -0
- package/dist/components/date-input/react-aria.d.ts +1 -0
- package/dist/components/date-input/react-aria.js +1 -0
- package/dist/components/date-picker/react-aria.d.ts +1 -0
- package/dist/components/date-picker/react-aria.js +1 -0
- package/dist/components/date-picker.d.ts +2 -0
- package/dist/components/date-picker.js +2 -0
- package/dist/components/date-range-picker/react-aria.d.ts +1 -0
- package/dist/components/date-range-picker/react-aria.js +1 -0
- package/dist/components/date-range-picker.d.ts +27 -0
- package/dist/components/date-range-picker.js +2 -0
- package/dist/components/date-segment/react-aria.d.ts +1 -0
- package/dist/components/date-segment/react-aria.js +1 -0
- package/dist/components/date-time-picker.d.ts +2 -0
- package/dist/components/date-time-picker.js +2 -0
- package/dist/components/default-collection-renderer/react-aria.d.ts +1 -0
- package/dist/components/default-collection-renderer/react-aria.js +1 -0
- package/dist/components/dialog/react-aria.d.ts +1 -0
- package/dist/components/dialog/react-aria.js +1 -0
- package/dist/components/dialog-trigger/react-aria.d.ts +1 -0
- package/dist/components/dialog-trigger/react-aria.js +1 -0
- package/dist/components/disclosure/react-aria.d.ts +1 -0
- package/dist/components/disclosure/react-aria.js +1 -0
- package/dist/components/disclosure-group/react-aria.d.ts +1 -0
- package/dist/components/disclosure-group/react-aria.js +1 -0
- package/dist/components/disclosure-panel/react-aria.d.ts +1 -0
- package/dist/components/disclosure-panel/react-aria.js +1 -0
- package/dist/components/dom-attributes/react-aria.d.ts +1 -0
- package/dist/components/dom-attributes/react-aria.js +0 -0
- package/dist/components/drawer.d.ts +2 -0
- package/dist/components/drawer.js +96 -0
- package/dist/components/drop-indicator/react-aria.d.ts +1 -0
- package/dist/components/drop-indicator/react-aria.js +1 -0
- package/dist/components/drop-zone/react-aria.d.ts +1 -0
- package/dist/components/drop-zone/react-aria.js +1 -0
- package/dist/components/field-error/react-aria.d.ts +1 -0
- package/dist/components/field-error/react-aria.js +1 -0
- package/dist/components/file-trigger/react-aria.d.ts +1 -0
- package/dist/components/file-trigger/react-aria.js +1 -0
- package/dist/components/file-upload-container.d.ts +3 -0
- package/dist/components/file-upload-container.js +15 -0
- package/dist/components/file-upload.d.ts +3 -0
- package/dist/components/file-upload.js +2 -0
- package/dist/components/focusable/react-aria.d.ts +1 -0
- package/dist/components/focusable/react-aria.js +1 -0
- package/dist/components/form/react-aria.d.ts +1 -0
- package/dist/components/form/react-aria.js +1 -0
- package/dist/components/form-field.d.ts +2 -0
- package/dist/components/form-field.js +2 -0
- package/dist/components/grid-list/react-aria.d.ts +1 -0
- package/dist/components/grid-list/react-aria.js +1 -0
- package/dist/components/grid-list-header/react-aria.d.ts +1 -0
- package/dist/components/grid-list-header/react-aria.js +1 -0
- package/dist/components/grid-list-item/react-aria.d.ts +1 -0
- package/dist/components/grid-list-item/react-aria.js +1 -0
- package/dist/components/grid-list-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/grid-list-load-more-item/react-aria.js +1 -0
- package/dist/components/grid-list-section/react-aria.d.ts +1 -0
- package/dist/components/grid-list-section/react-aria.js +1 -0
- package/dist/components/group/react-aria.d.ts +1 -0
- package/dist/components/group/react-aria.js +1 -0
- package/dist/components/header/react-aria.d.ts +1 -0
- package/dist/components/header/react-aria.js +1 -0
- package/dist/components/heading/react-aria.d.ts +1 -0
- package/dist/components/heading/react-aria.js +1 -0
- package/dist/components/i18n-provider/react-aria.d.ts +1 -0
- package/dist/components/i18n-provider/react-aria.js +1 -0
- package/dist/components/icon-button.d.ts +2 -0
- package/dist/components/icon-button.js +51 -0
- package/dist/components/inline-icon-button.d.ts +2 -0
- package/dist/components/inline-icon-button.js +40 -0
- package/dist/components/input/react-aria.d.ts +1 -0
- package/dist/components/input/react-aria.js +1 -0
- package/dist/components/input-upload.d.ts +2 -0
- package/dist/components/input-upload.js +2 -0
- package/dist/components/key/react-aria.d.ts +1 -0
- package/dist/components/key/react-aria.js +0 -0
- package/dist/components/keyboard/react-aria.d.ts +1 -0
- package/dist/components/keyboard/react-aria.js +1 -0
- package/dist/components/label/react-aria.d.ts +1 -0
- package/dist/components/label/react-aria.js +1 -0
- package/dist/components/link/react-aria.d.ts +1 -0
- package/dist/components/link/react-aria.js +1 -0
- package/dist/components/link.d.ts +2 -0
- package/dist/components/link.js +2 -0
- package/dist/components/list-box/react-aria.d.ts +1 -0
- package/dist/components/list-box/react-aria.js +1 -0
- package/dist/components/list-box-item/react-aria.d.ts +1 -0
- package/dist/components/list-box-item/react-aria.js +1 -0
- package/dist/components/list-box-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/list-box-load-more-item/react-aria.js +1 -0
- package/dist/components/list-box-section/react-aria.d.ts +1 -0
- package/dist/components/list-box-section/react-aria.js +1 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loader.js +2 -0
- package/dist/components/menu/react-aria.d.ts +1 -0
- package/dist/components/menu/react-aria.js +1 -0
- package/dist/components/menu-item/react-aria.d.ts +1 -0
- package/dist/components/menu-item/react-aria.js +1 -0
- package/dist/components/menu-section/react-aria.d.ts +1 -0
- package/dist/components/menu-section/react-aria.js +1 -0
- package/dist/components/menu-trigger/react-aria.d.ts +1 -0
- package/dist/components/menu-trigger/react-aria.js +1 -0
- package/dist/components/menu.d.ts +3 -0
- package/dist/components/menu.js +3 -0
- package/dist/components/meter/react-aria.d.ts +1 -0
- package/dist/components/meter/react-aria.js +1 -0
- package/dist/components/modal/react-aria.d.ts +1 -0
- package/dist/components/modal/react-aria.js +1 -0
- package/dist/components/modal-overlay/react-aria.d.ts +1 -0
- package/dist/components/modal-overlay/react-aria.js +1 -0
- package/dist/components/modal.d.ts +2 -0
- package/dist/components/modal.js +2 -0
- package/dist/components/number-field/react-aria.d.ts +1 -0
- package/dist/components/number-field/react-aria.js +1 -0
- package/dist/components/number-input.d.ts +2 -0
- package/dist/components/number-input.js +243 -0
- package/dist/components/number-range-input.d.ts +2 -0
- package/dist/components/number-range-input.js +2 -0
- package/dist/components/overlay-arrow/react-aria.d.ts +1 -0
- package/dist/components/overlay-arrow/react-aria.js +1 -0
- package/dist/components/pagination-list.d.ts +2 -0
- package/dist/components/pagination-list.js +2 -0
- package/dist/components/pagination.d.ts +2 -0
- package/dist/components/pagination.js +131 -0
- package/dist/components/password-input.d.ts +2 -0
- package/dist/components/password-input.js +2 -0
- package/dist/components/pill-button.d.ts +2 -0
- package/dist/components/pill-button.js +73 -0
- package/dist/components/pill.d.ts +2 -0
- package/dist/components/pill.js +44 -0
- package/dist/components/popover/react-aria.d.ts +1 -0
- package/dist/components/popover/react-aria.js +1 -0
- package/dist/components/pressable/react-aria.d.ts +1 -0
- package/dist/components/pressable/react-aria.js +1 -0
- package/dist/components/progress-bar/react-aria.d.ts +1 -0
- package/dist/components/progress-bar/react-aria.js +1 -0
- package/dist/components/progress-bar.d.ts +2 -0
- package/dist/components/progress-bar.js +2 -0
- package/dist/components/provider/react-aria.d.ts +1 -0
- package/dist/components/provider/react-aria.js +1 -0
- package/dist/components/query-autocomplete.d.ts +8 -0
- package/dist/components/query-autocomplete.js +109 -0
- package/dist/components/query-select.d.ts +2 -0
- package/dist/components/query-select.js +121 -0
- package/dist/components/radio/react-aria.d.ts +1 -0
- package/dist/components/radio/react-aria.js +1 -0
- package/dist/components/radio-group/react-aria.d.ts +1 -0
- package/dist/components/radio-group/react-aria.js +1 -0
- package/dist/components/radio-group.d.ts +2 -0
- package/dist/components/radio-group.js +2 -0
- package/dist/components/range-calendar/react-aria.d.ts +1 -0
- package/dist/components/range-calendar/react-aria.js +1 -0
- package/dist/components/resizable-table-container/react-aria.d.ts +1 -0
- package/dist/components/resizable-table-container/react-aria.js +1 -0
- package/dist/components/responsive-popover.d.ts +2 -0
- package/dist/components/responsive-popover.js +126 -0
- package/dist/components/router-provider/react-aria.d.ts +1 -0
- package/dist/components/router-provider/react-aria.js +1 -0
- package/dist/components/row/react-aria.d.ts +1 -0
- package/dist/components/row/react-aria.js +1 -0
- package/dist/components/search-field/react-aria.d.ts +1 -0
- package/dist/components/search-field/react-aria.js +1 -0
- package/dist/components/section/react-aria.d.ts +1 -0
- package/dist/components/section/react-aria.js +1 -0
- package/dist/components/segment.d.ts +3 -0
- package/dist/components/segment.js +2 -0
- package/dist/components/select/react-aria.d.ts +1 -0
- package/dist/components/select/react-aria.js +1 -0
- package/dist/components/select-value/react-aria.d.ts +1 -0
- package/dist/components/select-value/react-aria.js +1 -0
- package/dist/components/select.d.ts +3 -0
- package/dist/components/select.js +2 -0
- package/dist/components/selection/react-aria.d.ts +1 -0
- package/dist/components/selection/react-aria.js +0 -0
- package/dist/components/selection-indicator/react-aria.d.ts +1 -0
- package/dist/components/selection-indicator/react-aria.js +1 -0
- package/dist/components/separator/react-aria.d.ts +1 -0
- package/dist/components/separator/react-aria.js +1 -0
- package/dist/components/shared-element/react-aria.d.ts +1 -0
- package/dist/components/shared-element/react-aria.js +1 -0
- package/dist/components/shared-element-transition/react-aria.d.ts +1 -0
- package/dist/components/shared-element-transition/react-aria.js +1 -0
- package/dist/components/slider/react-aria.d.ts +1 -0
- package/dist/components/slider/react-aria.js +1 -0
- package/dist/components/slider-output/react-aria.d.ts +1 -0
- package/dist/components/slider-output/react-aria.js +1 -0
- package/dist/components/slider-thumb/react-aria.d.ts +1 -0
- package/dist/components/slider-thumb/react-aria.js +1 -0
- package/dist/components/slider-track/react-aria.d.ts +1 -0
- package/dist/components/slider-track/react-aria.js +1 -0
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +2 -0
- package/dist/components/split-button.d.ts +2 -0
- package/dist/components/split-button.js +123 -0
- package/dist/components/ssr-provider/react-aria.d.ts +1 -0
- package/dist/components/ssr-provider/react-aria.js +1 -0
- package/dist/components/stepper.d.ts +2 -0
- package/dist/components/stepper.js +2 -0
- package/dist/components/submenu-trigger/react-aria.d.ts +1 -0
- package/dist/components/submenu-trigger/react-aria.js +1 -0
- package/dist/components/switch/react-aria.d.ts +1 -0
- package/dist/components/switch/react-aria.js +1 -0
- package/dist/components/tab/react-aria.d.ts +1 -0
- package/dist/components/tab/react-aria.js +1 -0
- package/dist/components/tab-list/react-aria.d.ts +1 -0
- package/dist/components/tab-list/react-aria.js +1 -0
- package/dist/components/tab-panel/react-aria.d.ts +1 -0
- package/dist/components/tab-panel/react-aria.js +1 -0
- package/dist/components/tab-panels/react-aria.d.ts +1 -0
- package/dist/components/tab-panels/react-aria.js +1 -0
- package/dist/components/table/react-aria.d.ts +1 -0
- package/dist/components/table/react-aria.js +1 -0
- package/dist/components/table-body/react-aria.d.ts +1 -0
- package/dist/components/table-body/react-aria.js +1 -0
- package/dist/components/table-header/react-aria.d.ts +1 -0
- package/dist/components/table-header/react-aria.js +1 -0
- package/dist/components/table-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/table-load-more-item/react-aria.js +1 -0
- package/dist/components/tabs/react-aria.d.ts +1 -0
- package/dist/components/tabs/react-aria.js +1 -0
- package/dist/components/tag/react-aria.d.ts +1 -0
- package/dist/components/tag/react-aria.js +1 -0
- package/dist/components/tag-group/react-aria.d.ts +1 -0
- package/dist/components/tag-group/react-aria.js +1 -0
- package/dist/components/tag-list/react-aria.d.ts +1 -0
- package/dist/components/tag-list/react-aria.js +1 -0
- package/dist/components/tag.d.ts +2 -0
- package/dist/components/tag.js +2 -0
- package/dist/components/text/react-aria.d.ts +1 -0
- package/dist/components/text/react-aria.js +1 -0
- package/dist/components/text-area/react-aria.d.ts +1 -0
- package/dist/components/text-area/react-aria.js +1 -0
- package/dist/components/text-area.d.ts +2 -0
- package/dist/components/text-area.js +2 -0
- package/dist/components/text-button.d.ts +2 -0
- package/dist/components/text-button.js +36 -0
- package/dist/components/text-field/react-aria.d.ts +1 -0
- package/dist/components/text-field/react-aria.js +1 -0
- package/dist/components/text-input.d.ts +2 -0
- package/dist/components/text-input.js +240 -0
- package/dist/components/time-field/react-aria.d.ts +1 -0
- package/dist/components/time-field/react-aria.js +1 -0
- package/dist/components/time-picker.d.ts +2 -0
- package/dist/components/time-picker.js +2 -0
- package/dist/components/toast/react-aria.d.ts +1 -0
- package/dist/components/toast/react-aria.js +1 -0
- package/dist/components/toast-content/react-aria.d.ts +1 -0
- package/dist/components/toast-content/react-aria.js +1 -0
- package/dist/components/toast-list/react-aria.d.ts +1 -0
- package/dist/components/toast-list/react-aria.js +1 -0
- package/dist/components/toast-region/react-aria.d.ts +1 -0
- package/dist/components/toast-region/react-aria.js +1 -0
- package/dist/components/toast.d.ts +4 -0
- package/dist/components/toast.js +3 -0
- package/dist/components/toggle-button/react-aria.d.ts +1 -0
- package/dist/components/toggle-button/react-aria.js +1 -0
- package/dist/components/toggle-button-group/react-aria.d.ts +5 -0
- package/dist/components/toggle-button-group/react-aria.js +1 -0
- package/dist/components/toggle-button.d.ts +2 -0
- package/dist/components/toggle-button.js +34 -0
- package/dist/components/toggle.d.ts +2 -0
- package/dist/components/toggle.js +2 -0
- package/dist/components/toolbar/react-aria.d.ts +1 -0
- package/dist/components/toolbar/react-aria.js +1 -0
- package/dist/components/tooltip/react-aria.d.ts +1 -0
- package/dist/components/tooltip/react-aria.js +1 -0
- package/dist/components/tooltip-ellipsis.d.ts +2 -0
- package/dist/components/tooltip-ellipsis.js +46 -0
- package/dist/components/tooltip-trigger/react-aria.d.ts +1 -0
- package/dist/components/tooltip-trigger/react-aria.js +1 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/components/tree/react-aria.d.ts +1 -0
- package/dist/components/tree/react-aria.js +1 -0
- package/dist/components/tree-item/react-aria.d.ts +1 -0
- package/dist/components/tree-item/react-aria.js +1 -0
- package/dist/components/tree-item-content/react-aria.d.ts +1 -0
- package/dist/components/tree-item-content/react-aria.js +1 -0
- package/dist/components/tree-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/tree-load-more-item/react-aria.js +1 -0
- package/dist/components/typography.d.ts +3 -0
- package/dist/components/typography.js +2 -0
- package/dist/components/use-focus-visible/react-aria.d.ts +1 -0
- package/dist/components/use-focus-visible/react-aria.js +1 -0
- package/dist/components/use-focus-within/react-aria.d.ts +1 -0
- package/dist/components/use-focus-within/react-aria.js +1 -0
- package/dist/components/use-hover/react-aria.d.ts +1 -0
- package/dist/components/use-hover/react-aria.js +1 -0
- package/dist/components/use-label/react-aria.d.ts +1 -0
- package/dist/components/use-label/react-aria.js +1 -0
- package/dist/components/use-text-field/react-aria.d.ts +1 -0
- package/dist/components/use-text-field/react-aria.js +1 -0
- package/dist/components/use-toast.d.ts +2 -0
- package/dist/components/use-toast.js +42 -0
- package/dist/components/virtualizer/react-aria.d.ts +1 -0
- package/dist/components/virtualizer/react-aria.js +1 -0
- package/dist/components/visually-hidden/react-aria.d.ts +1 -0
- package/dist/components/visually-hidden/react-aria.js +1 -0
- package/dist/compoundMapper-CMoX98D2.d.ts +17 -0
- package/dist/compoundMapper-Di3SKZnS.js +13 -0
- package/dist/config/confirmation.d.ts +2 -0
- package/dist/config/confirmation.js +2 -0
- package/dist/config/link-context.d.ts +3 -0
- package/dist/config/link-context.js +2 -0
- package/dist/config/resources.d.ts +2 -0
- package/dist/config/resources.js +2 -0
- package/dist/config/theme-context.d.ts +2 -0
- package/dist/config/theme-context.js +2 -0
- package/dist/config/ui-config.d.ts +3 -0
- package/dist/config/ui-config.js +2 -0
- package/dist/config/ui-overrides.d.ts +2 -0
- package/dist/config/ui-overrides.js +2 -0
- package/dist/config/ui-router.d.ts +2 -0
- package/dist/config/ui-router.js +2 -0
- package/dist/confirmation.context-Cj2aHpa_.js +114 -0
- package/dist/confirmation.context-D_kJeU8m.d.ts +23 -0
- package/dist/context-74MZZLC0.js +93 -0
- package/dist/createLucideIcon-CskCrR9z.js +125 -0
- package/dist/date-picker-BT9DHqNa.d.ts +9 -0
- package/dist/date-range-picker-VxlXnCVb.d.ts +9 -0
- package/dist/date-time-picker-HxtcGQjQ.d.ts +9 -0
- package/dist/date-time.utils-0F9qduim.js +190 -0
- package/dist/date-time.utils-Cu9TVj46.d.ts +45 -0
- package/dist/date.transforms-DLg-eFcE.js +15 -0
- package/dist/date.utils-B8_QF9y6.js +42 -0
- package/dist/date.utils-BoQnMRlF.d.ts +7 -0
- package/dist/datePickerValue.utils-DtR1CyuD.js +223 -0
- package/dist/dist-gJbayyxp.js +925 -0
- package/dist/dom.utils-BOIN4YDz.js +49 -0
- package/dist/dynamicInputs-0GjoOaz5.js +194 -0
- package/dist/dynamicInputs-Be0THQ7Z.d.ts +756 -0
- package/dist/dynamicInputs-bhlywWDy.js +214 -0
- package/dist/fieldAdapter-C2YfWBmM.js +61 -0
- package/dist/fieldAdapter-C4sDFC8f.d.ts +9 -0
- package/dist/file-upload-CNJFJ3Jx.d.ts +10 -0
- package/dist/file.utils-Crb-mIHs.d.ts +21 -0
- package/dist/file.utils-DqQxnuAm.js +61 -0
- package/dist/fileUpload.types-BMs6Zkhr.d.ts +106 -0
- package/dist/focusWithoutScrolling-DEPiLwKq.js +49 -0
- package/dist/form.binding-DyZ4fH8l.js +34 -0
- package/dist/form.binding-QO3Py45C.d.ts +50 -0
- package/dist/form.types-CefwT7Po.d.ts +13 -0
- package/dist/form.types-ZNGbcqJS.d.ts +13 -0
- package/dist/hooks/use-filters.d.ts +2 -0
- package/dist/hooks/use-filters.js +2 -0
- package/dist/hooks/use-local-storage.d.ts +2 -0
- package/dist/hooks/use-local-storage.js +2 -0
- package/dist/hooks/use-translation-memo.d.ts +2 -0
- package/dist/hooks/use-translation-memo.js +2 -0
- package/dist/i18n-BDjNuy4Z.js +302 -0
- package/dist/i18n-D0Pz0p2u.d.ts +318 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +2 -0
- package/dist/import-BXAtbYEe.js +73 -0
- package/dist/index-B8r_kiw4.d.ts +193 -0
- package/dist/index-DCUSluLL.d.ts +269 -0
- package/dist/index.d.ts +106 -1
- package/dist/index.js +101 -159
- package/dist/input-upload-D3IM2ZuK.d.ts +9 -0
- package/dist/input.cva-CfgCOIQW.d.ts +80 -0
- package/dist/input.cva-KYGD4Bdz.js +324 -0
- package/dist/intl.utils-NaOZUD2G.d.ts +9 -0
- package/dist/intl.utils-zwAFoZ0U.js +38 -0
- package/dist/intlStrings-DrQB127v.js +346 -0
- package/dist/link.context-C1RcdC0i.d.ts +12 -0
- package/dist/link.context-J7aQtMOr.js +35 -0
- package/dist/logger-DpUn65wp.js +331 -0
- package/dist/logger-N35Xhi14.d.ts +10 -0
- package/dist/lucide-react-BJRvqSeV.d.ts +23 -0
- package/dist/modal.cva-CbziPHSN.js +43 -0
- package/dist/number-DTwXo26a.js +40 -0
- package/dist/number-input-nwfbc3kN.d.ts +8 -0
- package/dist/number-range-input-BxoPQzi8.d.ts +8 -0
- package/dist/numberStatic.utils-DcnGigJ6.js +636 -0
- package/dist/openLink-CIHtr0U7.js +95 -0
- package/dist/outline.clsx-50W_vNDl.js +6 -0
- package/dist/outline.clsx-B1hjrX9t.d.ts +4 -0
- package/dist/password-input-BEneLWqN.d.ts +8 -0
- package/dist/pillButton.cva-Da0WFN39.d.ts +34 -0
- package/dist/pillButton.cva-DbwzixcK.js +263 -0
- package/dist/platform-df1ZXSJE.js +47 -0
- package/dist/popover.cva-CXha_UMQ.js +5 -0
- package/dist/queries.utils-CmbhAoHU.js +18 -0
- package/dist/query-autocomplete-rqGMbEP9.d.ts +14 -0
- package/dist/query-select-DbQpRcE3.d.ts +15 -0
- package/dist/queryAutocomplete.types-Cnn4GjUo.d.ts +26 -0
- package/dist/radio-group-Cc6b39Jt.d.ts +9 -0
- package/dist/radio.cva-9lpsise2.d.ts +51 -0
- package/dist/rhf/autocomplete.d.ts +3 -0
- package/dist/rhf/autocomplete.js +8 -0
- package/dist/rhf/checkbox-group.d.ts +3 -0
- package/dist/rhf/checkbox-group.js +8 -0
- package/dist/rhf/checkbox.d.ts +3 -0
- package/dist/rhf/checkbox.js +8 -0
- package/dist/rhf/date-picker.d.ts +3 -0
- package/dist/rhf/date-picker.js +9 -0
- package/dist/rhf/date-range-picker.d.ts +3 -0
- package/dist/rhf/date-range-picker.js +9 -0
- package/dist/rhf/date-time-picker.d.ts +3 -0
- package/dist/rhf/date-time-picker.js +9 -0
- package/dist/rhf/file-upload.d.ts +3 -0
- package/dist/rhf/file-upload.js +6 -0
- package/dist/rhf/input-upload.d.ts +3 -0
- package/dist/rhf/input-upload.js +6 -0
- package/dist/rhf/inputs.d.ts +4 -0
- package/dist/rhf/inputs.js +2 -0
- package/dist/rhf/number-input.d.ts +3 -0
- package/dist/rhf/number-input.js +6 -0
- package/dist/rhf/number-range-input.d.ts +3 -0
- package/dist/rhf/number-range-input.js +6 -0
- package/dist/rhf/password-input.d.ts +3 -0
- package/dist/rhf/password-input.js +6 -0
- package/dist/rhf/query-autocomplete.d.ts +2 -0
- package/dist/rhf/query-autocomplete.js +8 -0
- package/dist/rhf/query-select.d.ts +2 -0
- package/dist/rhf/query-select.js +8 -0
- package/dist/rhf/radio-group.d.ts +3 -0
- package/dist/rhf/radio-group.js +8 -0
- package/dist/rhf/segment.d.ts +3 -0
- package/dist/rhf/segment.js +6 -0
- package/dist/rhf/select.d.ts +3 -0
- package/dist/rhf/select.js +8 -0
- package/dist/rhf/slider.d.ts +3 -0
- package/dist/rhf/slider.js +6 -0
- package/dist/rhf/text-area.d.ts +3 -0
- package/dist/rhf/text-area.js +6 -0
- package/dist/rhf/text-editor.d.ts +3 -0
- package/dist/rhf/text-editor.js +6 -0
- package/dist/rhf/text-input.d.ts +3 -0
- package/dist/rhf/text-input.js +6 -0
- package/dist/rhf/time-picker.d.ts +3 -0
- package/dist/rhf/time-picker.js +9 -0
- package/dist/rhf/toggle.d.ts +3 -0
- package/dist/rhf/toggle.js +8 -0
- package/dist/rhf-CKTAnaMF.js +256 -0
- package/dist/rhf.d.ts +106 -264
- package/dist/rhf.js +101 -0
- package/dist/router.context-BOYRh2p9.d.ts +16 -0
- package/dist/router.context-VhvhlIvV.js +63 -0
- package/dist/routing.utils-UTQonIhB.js +25 -0
- package/dist/segment-Csrt70e1.d.ts +9 -0
- package/dist/segment.types-BAFG_n38.d.ts +58 -0
- package/dist/select-v-_bJmJ_.d.ts +16 -0
- package/dist/slider-B2wS9JNA.d.ts +8 -0
- package/dist/staticDateTimeSegments-Cefwvojy.js +1503 -0
- package/dist/staticSelect.utils-C_e1tJ3T.js +4046 -0
- package/dist/string.utils-BPgv6QwA.js +12 -0
- package/dist/string.utils-Cj6AB7uZ.d.ts +7 -0
- package/dist/styles/input.d.ts +2 -0
- package/dist/styles/input.js +0 -0
- package/dist/styles/outline.d.ts +2 -0
- package/dist/styles/outline.js +2 -0
- package/dist/tanstack/autocomplete.d.ts +2 -0
- package/dist/tanstack/autocomplete.js +2 -0
- package/dist/tanstack/checkbox-group.d.ts +2 -0
- package/dist/tanstack/checkbox-group.js +2 -0
- package/dist/tanstack/checkbox.d.ts +2 -0
- package/dist/tanstack/checkbox.js +2 -0
- package/dist/tanstack/date-picker.d.ts +2 -0
- package/dist/tanstack/date-picker.js +2 -0
- package/dist/tanstack/date-range-picker.d.ts +2 -0
- package/dist/tanstack/date-range-picker.js +2 -0
- package/dist/tanstack/date-time-picker.d.ts +2 -0
- package/dist/tanstack/date-time-picker.js +2 -0
- package/dist/tanstack/file-upload.d.ts +3 -0
- package/dist/tanstack/file-upload.js +2 -0
- package/dist/tanstack/form.d.ts +3 -0
- package/dist/tanstack/form.js +2 -0
- package/dist/tanstack/input-upload.d.ts +2 -0
- package/dist/tanstack/input-upload.js +2 -0
- package/dist/tanstack/inputs.d.ts +5 -0
- package/dist/tanstack/inputs.js +3 -0
- package/dist/tanstack/number-input.d.ts +2 -0
- package/dist/tanstack/number-input.js +2 -0
- package/dist/tanstack/number-range-input.d.ts +2 -0
- package/dist/tanstack/number-range-input.js +2 -0
- package/dist/tanstack/password-input.d.ts +2 -0
- package/dist/tanstack/password-input.js +2 -0
- package/dist/tanstack/query-autocomplete.d.ts +2 -0
- package/dist/tanstack/query-autocomplete.js +2 -0
- package/dist/tanstack/query-select.d.ts +2 -0
- package/dist/tanstack/query-select.js +2 -0
- package/dist/tanstack/radio-group.d.ts +2 -0
- package/dist/tanstack/radio-group.js +2 -0
- package/dist/tanstack/segment.d.ts +3 -0
- package/dist/tanstack/segment.js +2 -0
- package/dist/tanstack/select.d.ts +2 -0
- package/dist/tanstack/select.js +2 -0
- package/dist/tanstack/slider.d.ts +2 -0
- package/dist/tanstack/slider.js +2 -0
- package/dist/tanstack/table.d.ts +2 -0
- package/dist/tanstack/table.js +2 -0
- package/dist/tanstack/text-area.d.ts +2 -0
- package/dist/tanstack/text-area.js +2 -0
- package/dist/tanstack/text-editor.d.ts +2 -0
- package/dist/tanstack/text-editor.js +2 -0
- package/dist/tanstack/text-input.d.ts +2 -0
- package/dist/tanstack/text-input.js +2 -0
- package/dist/tanstack/time-picker.d.ts +2 -0
- package/dist/tanstack/time-picker.js +2 -0
- package/dist/tanstack/toggle.d.ts +2 -0
- package/dist/tanstack/toggle.js +2 -0
- package/dist/tanstack.d.ts +92 -263
- package/dist/tanstack.js +96 -180
- package/dist/text-area-CYY-d5HB.d.ts +8 -0
- package/dist/text-editor-Bz57chW2.d.ts +8 -0
- package/dist/text-editor.d.ts +2 -2
- package/dist/text-editor.js +1 -1
- package/dist/text-input-CkMv3VpB.d.ts +8 -0
- package/dist/theme.context-B10jqjvZ.d.ts +20 -0
- package/dist/theme.context-B3wQDJ-i.js +120 -0
- package/dist/time-picker-CjqmM5sQ.d.ts +9 -0
- package/dist/toast.cva-C1ZPw_oP.d.ts +60 -0
- package/dist/toast.runtime-B24OkF4t.js +17 -0
- package/dist/toastActivation.store-BELtcr76.js +16 -0
- package/dist/toggle-BYNFK_xQ.d.ts +9 -0
- package/dist/toggle.cva-2CGLc8aa.d.ts +15 -0
- package/dist/tooltipWrapper.cva-CUu8pI-a.js +5 -0
- package/dist/triangle-B5uw3vnc.js +13 -0
- package/dist/tw-ui-plugin.d.ts +4 -2
- package/dist/tw-ui-plugin.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +0 -0
- package/dist/types-BT18i837.d.ts +69 -0
- package/dist/types-ZbFfCz06.d.ts +823 -0
- package/dist/typography.cva-7RYwLrA7.d.ts +51 -0
- package/dist/typography.cva-BI0FyIqm.js +129 -0
- package/dist/uiConfig.context-BG4jfp9p.js +364 -0
- package/dist/uiConfig.context-Bjb9TQ6Y.d.ts +126 -0
- package/dist/uiOverrides.context-BdokYcGO.d.ts +243 -0
- package/dist/uiOverrides.context-Bfm2n-n8.js +399 -0
- package/dist/useBreakpoint-DFoeJwp-.js +70 -0
- package/dist/useButton-CTZ6UEfP.js +56 -0
- package/dist/useControlledState-Bk39gTui.js +31 -0
- package/dist/useDescription-4EIEr0rR.js +36 -0
- package/dist/useEffectEvent-BdzIyMdT.js +17 -0
- package/dist/useEvent-CjGFQh-l.js +22 -0
- package/dist/useFieldAccessibility-dF3tgN_A.js +96 -0
- package/dist/useFilter-BsjdRENO.js +44 -0
- package/dist/useFilters-20jpzc29.js +190 -0
- package/dist/useFilters-BxRScJdn.d.ts +11 -0
- package/dist/useFocusRing-Cd0lBvKO.js +41 -0
- package/dist/useFormAutosave-DTv1J6w2.js +296 -0
- package/dist/useFormReset-BmSQIMid.js +18 -0
- package/dist/useFormValidation-DlNyD6aD.js +87 -0
- package/dist/useFormValidationState-Bpry7Uk5.js +142 -0
- package/dist/useGlobalListeners-DuENtiaD.js +39 -0
- package/dist/useIntersectionObserver-DYfHnGGU.js +98 -0
- package/dist/useLabels-Bt2BXuQ6.js +16 -0
- package/dist/useLocalStorage-DGsBUCT6.d.ts +13 -0
- package/dist/useLocalStorage-PlcaJ1tP.js +70 -0
- package/dist/useLocalizedStringFormatter-tBB7tXBj.js +108 -0
- package/dist/useNumberFormatter-Dgd8W1FX.js +10 -0
- package/dist/useQueryAutocomplete-CraXvRm_.js +152 -0
- package/dist/useSpinButton-Ba23Hqso.js +578 -0
- package/dist/useStaticInputHandoff-9V4kd391.js +321 -0
- package/dist/useTableColumnConfig-DzdaxZ50.js +1620 -0
- package/dist/useTableNav-DZjPiQUb.d.ts +291 -0
- package/dist/useToast-q70ayd29.d.ts +16 -0
- package/dist/useToggle-D8aP2d5t.js +63 -0
- package/dist/useToggleState-Dyx-sAjp.js +23 -0
- package/dist/useTranslationMemo-CrZbeyBv.js +32 -0
- package/dist/useTranslationMemo-Dy3p6m1g.d.ts +6 -0
- package/dist/utils/compound-mapper.d.ts +2 -0
- package/dist/utils/compound-mapper.js +2 -0
- package/dist/utils/date-time.d.ts +2 -0
- package/dist/utils/date-time.js +2 -0
- package/dist/utils/date.d.ts +2 -0
- package/dist/utils/date.js +2 -0
- package/dist/utils/file.d.ts +2 -0
- package/dist/utils/file.js +2 -0
- package/dist/utils/intl.d.ts +2 -0
- package/dist/utils/intl.js +2 -0
- package/dist/utils/logger.d.ts +2 -7
- package/dist/utils/logger.js +1 -18
- package/dist/utils/string.d.ts +2 -0
- package/dist/utils/string.js +2 -0
- package/dist/utils-D-KKbY-n.js +375 -0
- package/dist/x-BYOEO0gW.js +16 -0
- package/dist/zod.utils-DrrPDT9v.js +24 -0
- package/package.json +1348 -20
- package/dist/assets/icons/Account.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.js +0 -30
- package/dist/assets/icons/AlignLeft.d.ts +0 -2
- package/dist/assets/icons/AlignLeft.js +0 -30
- package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
- package/dist/assets/icons/AlignLeftRight.js +0 -30
- package/dist/assets/icons/AlignRight.d.ts +0 -2
- package/dist/assets/icons/AlignRight.js +0 -30
- package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
- package/dist/assets/icons/ArrowDropDown.js +0 -30
- package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
- package/dist/assets/icons/ArrowDropUp.js +0 -30
- package/dist/assets/icons/ArrowLeft.d.ts +0 -2
- package/dist/assets/icons/ArrowLeft.js +0 -30
- package/dist/assets/icons/ArrowRight.d.ts +0 -2
- package/dist/assets/icons/ArrowRight.js +0 -30
- package/dist/assets/icons/Board.d.ts +0 -2
- package/dist/assets/icons/Bold.d.ts +0 -2
- package/dist/assets/icons/Bold.js +0 -30
- package/dist/assets/icons/BulletedList.d.ts +0 -2
- package/dist/assets/icons/BulletedList.js +0 -30
- package/dist/assets/icons/Calendar.d.ts +0 -2
- package/dist/assets/icons/Calendar.js +0 -32
- package/dist/assets/icons/Check.d.ts +0 -2
- package/dist/assets/icons/Check.js +0 -32
- package/dist/assets/icons/CheckCircle.d.ts +0 -2
- package/dist/assets/icons/CheckCircle.js +0 -30
- package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
- package/dist/assets/icons/CheckboxCheckmark.js +0 -33
- package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
- package/dist/assets/icons/ChevronDown.d.ts +0 -2
- package/dist/assets/icons/ChevronDown.js +0 -32
- package/dist/assets/icons/ChevronLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronLeft.js +0 -32
- package/dist/assets/icons/ChevronRight.d.ts +0 -2
- package/dist/assets/icons/ChevronRight.js +0 -32
- package/dist/assets/icons/ChevronUp.d.ts +0 -2
- package/dist/assets/icons/ChevronUp.js +0 -32
- package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronsLeft.js +0 -32
- package/dist/assets/icons/ChevronsRight.d.ts +0 -2
- package/dist/assets/icons/ChevronsRight.js +0 -32
- package/dist/assets/icons/Clock.d.ts +0 -2
- package/dist/assets/icons/Clock.js +0 -30
- package/dist/assets/icons/Close.d.ts +0 -2
- package/dist/assets/icons/Close.js +0 -30
- package/dist/assets/icons/DateTime.d.ts +0 -2
- package/dist/assets/icons/DateTime.js +0 -39
- package/dist/assets/icons/DragIndicator.d.ts +0 -2
- package/dist/assets/icons/DragIndicator.js +0 -30
- package/dist/assets/icons/Edit.d.ts +0 -2
- package/dist/assets/icons/Emoji.d.ts +0 -2
- package/dist/assets/icons/File.d.ts +0 -2
- package/dist/assets/icons/File.js +0 -32
- package/dist/assets/icons/Grid.d.ts +0 -2
- package/dist/assets/icons/Highlight.d.ts +0 -2
- package/dist/assets/icons/Highlight.js +0 -30
- package/dist/assets/icons/HighlightOn.d.ts +0 -6
- package/dist/assets/icons/HighlightOn.js +0 -55
- package/dist/assets/icons/Home.d.ts +0 -2
- package/dist/assets/icons/Home.js +0 -30
- package/dist/assets/icons/Image.d.ts +0 -2
- package/dist/assets/icons/ImageError.d.ts +0 -2
- package/dist/assets/icons/Info.d.ts +0 -2
- package/dist/assets/icons/Info.js +0 -41
- package/dist/assets/icons/Italic.d.ts +0 -2
- package/dist/assets/icons/Italic.js +0 -30
- package/dist/assets/icons/Link.d.ts +0 -2
- package/dist/assets/icons/Link.js +0 -30
- package/dist/assets/icons/Loader.d.ts +0 -2
- package/dist/assets/icons/MapPin.d.ts +0 -2
- package/dist/assets/icons/Menu.d.ts +0 -2
- package/dist/assets/icons/Menu.js +0 -30
- package/dist/assets/icons/Minus.d.ts +0 -2
- package/dist/assets/icons/MoreHoriz.d.ts +0 -2
- package/dist/assets/icons/NumberedList.d.ts +0 -2
- package/dist/assets/icons/NumberedList.js +0 -30
- package/dist/assets/icons/Pause.d.ts +0 -2
- package/dist/assets/icons/Plus.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.js +0 -30
- package/dist/assets/icons/PointerVertical.d.ts +0 -2
- package/dist/assets/icons/PointerVertical.js +0 -30
- package/dist/assets/icons/Retry.d.ts +0 -2
- package/dist/assets/icons/Search.d.ts +0 -2
- package/dist/assets/icons/Search.js +0 -30
- package/dist/assets/icons/Send.d.ts +0 -2
- package/dist/assets/icons/Send.js +0 -32
- package/dist/assets/icons/Share.d.ts +0 -2
- package/dist/assets/icons/Slash.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.js +0 -30
- package/dist/assets/icons/TextColor.d.ts +0 -6
- package/dist/assets/icons/TextColor.js +0 -52
- package/dist/assets/icons/Today.d.ts +0 -2
- package/dist/assets/icons/Today.js +0 -30
- package/dist/assets/icons/Trash.d.ts +0 -2
- package/dist/assets/icons/Underlined.d.ts +0 -2
- package/dist/assets/icons/Underlined.js +0 -32
- package/dist/assets/icons/Upload.d.ts +0 -2
- package/dist/assets/icons/Upload.js +0 -39
- package/dist/assets/icons/User.d.ts +0 -2
- package/dist/assets/icons/Visibility.d.ts +0 -2
- package/dist/assets/icons/Visibility.js +0 -30
- package/dist/assets/icons/VisibilityOff.d.ts +0 -2
- package/dist/assets/icons/VisibilityOff.js +0 -30
- package/dist/assets/icons/WarningFilled.d.ts +0 -2
- package/dist/assets/icons/WarningFilled.js +0 -32
- package/dist/assets/icons/WarningOutlined.d.ts +0 -2
- package/dist/assets/locales/en/translation.json.d.ts +0 -158
- package/dist/assets/locales/en/translation.json.js +0 -147
- package/dist/assets/locales/sl/translation.json.d.ts +0 -154
- package/dist/assets/locales/sl/translation.json.js +0 -145
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -16
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -112
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +0 -45
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +0 -27
- package/dist/components/Menu/Menu.d.ts +0 -21
- package/dist/components/Menu/Menu.js +0 -27
- package/dist/components/Menu/MenuDesktop.d.ts +0 -2
- package/dist/components/Menu/MenuDesktop.js +0 -48
- package/dist/components/Menu/MenuItem.d.ts +0 -3
- package/dist/components/Menu/MenuItem.js +0 -46
- package/dist/components/Menu/MenuMobile.d.ts +0 -2
- package/dist/components/Menu/MenuMobile.js +0 -142
- package/dist/components/Menu/MenuPopover.d.ts +0 -5
- package/dist/components/Menu/MenuPopover.js +0 -121
- package/dist/components/Menu/menu.cva.d.ts +0 -39
- package/dist/components/Menu/menu.cva.js +0 -34
- package/dist/components/buttons/Button/Button.d.ts +0 -28
- package/dist/components/buttons/Button/Button.js +0 -66
- package/dist/components/buttons/Button/button.cva.d.ts +0 -99
- package/dist/components/buttons/Button/button.cva.js +0 -661
- package/dist/components/buttons/IconButton/IconButton.d.ts +0 -11
- package/dist/components/buttons/IconButton/IconButton.js +0 -51
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +0 -13
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +0 -15
- package/dist/components/buttons/PillButton/PillButton.d.ts +0 -12
- package/dist/components/buttons/PillButton/PillButton.js +0 -72
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +0 -40
- package/dist/components/buttons/PillButton/pillButton.cva.js +0 -264
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +0 -12
- package/dist/components/buttons/SplitButton/SplitButton.js +0 -123
- package/dist/components/buttons/TextButton/TextButton.d.ts +0 -12
- package/dist/components/buttons/TextButton/TextButton.js +0 -36
- package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +0 -9
- package/dist/components/buttons/ToggleButton/ToggleButton.js +0 -34
- package/dist/components/buttons/shared/ButtonContent.d.ts +0 -14
- package/dist/components/buttons/shared/ButtonContent.js +0 -37
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +0 -8
- package/dist/components/buttons/shared/buttonContent.cva.js +0 -30
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -20
- package/dist/components/inputs/Checkbox/Checkbox.js +0 -236
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.d.ts +0 -9
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +0 -26
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +0 -26
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +0 -392
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -94
- package/dist/components/inputs/Checkbox/checkbox.cva.js +0 -161
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +0 -40
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +0 -422
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +0 -45
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +0 -883
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +0 -40
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +0 -382
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +0 -28
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +0 -644
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +0 -29
- package/dist/components/inputs/DateTime/shared/Calendar.js +0 -177
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -22
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +0 -145
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -27
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +0 -54
- package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +0 -18
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +0 -121
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -17
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +0 -177
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +0 -21
- package/dist/components/inputs/DateTime/shared/DateField.js +0 -156
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +0 -45
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +0 -197
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -28
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +0 -124
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -18
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +0 -101
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -8
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +0 -27
- package/dist/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -11
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +0 -135
- package/dist/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -26
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +0 -209
- package/dist/components/inputs/DateTime/shared/TimeField.d.ts +0 -12
- package/dist/components/inputs/DateTime/shared/TimeField.js +0 -38
- package/dist/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -10
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +0 -329
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +0 -24
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +0 -242
- package/dist/components/inputs/DateTime/shared/YearPicker.d.ts +0 -12
- package/dist/components/inputs/DateTime/shared/YearPicker.js +0 -151
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -16
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -16
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -32
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -41
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -99
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +0 -33
- package/dist/components/inputs/File/FileUpload.d.ts +0 -4
- package/dist/components/inputs/File/FileUpload.js +0 -253
- package/dist/components/inputs/File/FileUploadContainer.d.ts +0 -3
- package/dist/components/inputs/File/FileUploadContainer.js +0 -22
- package/dist/components/inputs/File/InputUpload.d.ts +0 -4
- package/dist/components/inputs/File/InputUpload.js +0 -157
- package/dist/components/inputs/File/fileUpload.types.d.ts +0 -96
- package/dist/components/inputs/File/index.d.ts +0 -9
- package/dist/components/inputs/File/inputUpload.types.d.ts +0 -37
- package/dist/components/inputs/File/inputUpload.types.js +0 -9
- package/dist/components/inputs/File/shared/FileCard.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileCard.js +0 -121
- package/dist/components/inputs/File/shared/FileCardList.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileCardList.js +0 -60
- package/dist/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
- package/dist/components/inputs/File/shared/FileUploadContent.js +0 -208
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +0 -58
- package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
- package/dist/components/inputs/File/shared/FileUploadContentError.js +0 -113
- package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +0 -118
- package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +0 -80
- package/dist/components/inputs/File/shared/InputUploadContent.d.ts +0 -9
- package/dist/components/inputs/File/shared/InputUploadContent.js +0 -169
- package/dist/components/inputs/File/shared/InputUploadFilled.d.ts +0 -8
- package/dist/components/inputs/File/shared/InputUploadFilled.js +0 -69
- package/dist/components/inputs/File/shared/ProgressBar.d.ts +0 -6
- package/dist/components/inputs/File/shared/ProgressBar.js +0 -33
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -17
- package/dist/components/inputs/File/shared/fileUpload.cva.js +0 -42
- package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -27
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +0 -39
- package/dist/components/inputs/File/shared/progressBar.cva.d.ts +0 -38
- package/dist/components/inputs/File/shared/progressBar.cva.js +0 -28
- package/dist/components/inputs/FormField/FormField.d.ts +0 -20
- package/dist/components/inputs/FormField/FormField.js +0 -127
- package/dist/components/inputs/FormField/FormFieldError.d.ts +0 -7
- package/dist/components/inputs/FormField/FormFieldError.js +0 -33
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +0 -14
- package/dist/components/inputs/FormField/FormFieldHeader.js +0 -97
- package/dist/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +0 -41
- package/dist/components/inputs/FormField/FormFieldHelper.d.ts +0 -8
- package/dist/components/inputs/FormField/FormFieldHelper.js +0 -34
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -13
- package/dist/components/inputs/FormField/FormFieldLabel.js +0 -59
- package/dist/components/inputs/FormField/formFieldError.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldError.cva.js +0 -14
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -14
- package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldHelper.cva.js +0 -14
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +0 -23
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +0 -492
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -45
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -571
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -35
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -337
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +0 -7
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +0 -62
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -8
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +0 -18
- package/dist/components/inputs/Input/TextArea/TextArea.js +0 -345
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +0 -23
- package/dist/components/inputs/Input/TextInput/TextInput.js +0 -468
- package/dist/components/inputs/Input/shared/InputContent.d.ts +0 -28
- package/dist/components/inputs/Input/shared/InputContent.js +0 -211
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
- package/dist/components/inputs/Inputs/Form.d.ts +0 -26
- package/dist/components/inputs/Inputs/Form.js +0 -73
- package/dist/components/inputs/Inputs/InputItem.d.ts +0 -67
- package/dist/components/inputs/Inputs/InputItem.js +0 -112
- package/dist/components/inputs/Inputs/Inputs.d.ts +0 -10
- package/dist/components/inputs/Inputs/Inputs.js +0 -43
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +0 -22
- package/dist/components/inputs/RadioGroup/RadioGroup.js +0 -371
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -62
- package/dist/components/inputs/RadioGroup/radio.cva.js +0 -85
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +0 -12
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +0 -165
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +0 -4
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +0 -176
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -39
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -15
- package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -172
- package/dist/components/inputs/Selection/Select/Select.d.ts +0 -12
- package/dist/components/inputs/Selection/Select/Select.js +0 -235
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +0 -37
- package/dist/components/inputs/Selection/shared/SelectBase.js +0 -82
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +0 -419
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
- package/dist/components/inputs/Selection/shared/SelectInput.js +0 -469
- package/dist/components/inputs/Selection/shared/SelectInputTags.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +0 -105
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/SelectListBox.js +0 -75
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -7
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +0 -104
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +0 -88
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +0 -89
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +0 -76
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectMobile.js +0 -127
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -15
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -44
- package/dist/components/inputs/Selection/shared/select.context.d.ts +0 -32
- package/dist/components/inputs/Selection/shared/select.context.js +0 -231
- package/dist/components/inputs/Selection/shared/select.types.d.ts +0 -64
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -6
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -8
- package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +0 -16
- package/dist/components/inputs/Selection/shared/selectItem.cva.js +0 -24
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -54
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
- package/dist/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/useSelectItems.js +0 -84
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -83
- package/dist/components/inputs/Skeleton/InputFrame.js +0 -242
- package/dist/components/inputs/Slider/Slider.d.ts +0 -19
- package/dist/components/inputs/Slider/Slider.js +0 -285
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -22
- package/dist/components/inputs/TextEditor/TextEditor.js +0 -199
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +0 -44
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +0 -128
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +0 -221
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +0 -106
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +0 -58
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +0 -79
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +0 -60
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +0 -104
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +0 -141
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +0 -157
- package/dist/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
- package/dist/components/inputs/TextEditor/textEditor.types.js +0 -40
- package/dist/components/inputs/Toggle/Toggle.d.ts +0 -16
- package/dist/components/inputs/Toggle/Toggle.js +0 -234
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -19
- package/dist/components/inputs/Toggle/toggle.cva.js +0 -35
- package/dist/components/inputs/shared/CheckContent.d.ts +0 -9
- package/dist/components/inputs/shared/CheckContent.js +0 -29
- package/dist/components/inputs/shared/InputClear.d.ts +0 -10
- package/dist/components/inputs/shared/InputClear.js +0 -117
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +0 -10
- package/dist/components/inputs/shared/TooltipWrapper.js +0 -60
- package/dist/components/inputs/shared/form.binding.d.ts +0 -27
- package/dist/components/inputs/shared/form.binding.js +0 -57
- package/dist/components/inputs/shared/form.types.d.ts +0 -13
- package/dist/components/inputs/shared/form.types.js +0 -8
- package/dist/components/inputs/shared/input.cva.d.ts +0 -90
- package/dist/components/inputs/shared/input.cva.js +0 -334
- package/dist/components/inputs/shared/label.cva.d.ts +0 -19
- package/dist/components/inputs/shared/label.cva.js +0 -74
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -8
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -15
- package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -112
- package/dist/components/navigation/Accordion/Accordion.d.ts +0 -3
- package/dist/components/navigation/Accordion/Accordion.js +0 -34
- package/dist/components/navigation/Accordion/AccordionItem.d.ts +0 -2
- package/dist/components/navigation/Accordion/AccordionItem.js +0 -63
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +0 -110
- package/dist/components/navigation/Accordion/accordion.cva.js +0 -129
- package/dist/components/navigation/Accordion/accordion.types.d.ts +0 -52
- package/dist/components/navigation/Stepper/Stepper.d.ts +0 -2
- package/dist/components/navigation/Stepper/Stepper.js +0 -34
- package/dist/components/navigation/Stepper/StepperItem.d.ts +0 -2
- package/dist/components/navigation/Stepper/StepperItem.js +0 -126
- package/dist/components/navigation/Stepper/StepperSeparator.d.ts +0 -5
- package/dist/components/navigation/Stepper/StepperSeparator.js +0 -30
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +0 -93
- package/dist/components/navigation/Stepper/stepper.cva.js +0 -116
- package/dist/components/navigation/Stepper/stepper.types.d.ts +0 -41
- package/dist/components/outline.clsx.d.ts +0 -2
- package/dist/components/outline.clsx.js +0 -6
- package/dist/components/overlays/ActionModal/ActionModal.d.ts +0 -24
- package/dist/components/overlays/ActionModal/ActionModal.js +0 -54
- package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +0 -32
- package/dist/components/overlays/BottomSheet/BottomSheet.js +0 -328
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.d.ts +0 -13
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +0 -78
- package/dist/components/overlays/Drawer/Drawer.d.ts +0 -15
- package/dist/components/overlays/Drawer/Drawer.js +0 -95
- package/dist/components/overlays/Modal/Modal.d.ts +0 -15
- package/dist/components/overlays/Modal/Modal.js +0 -55
- package/dist/components/overlays/Modal/modal.cva.d.ts +0 -37
- package/dist/components/overlays/Modal/modal.cva.js +0 -44
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +0 -17
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +0 -45
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +0 -13
- package/dist/components/overlays/Tooltip/Tooltip.js +0 -163
- package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +0 -8
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +0 -46
- package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +0 -49
- package/dist/components/overlays/Tooltip/tooltip.cva.js +0 -44
- package/dist/components/segment/Segment.d.ts +0 -4
- package/dist/components/segment/Segment.js +0 -245
- package/dist/components/segment/SegmentItem.d.ts +0 -2
- package/dist/components/segment/SegmentItem.js +0 -85
- package/dist/components/segment/segment.cva.d.ts +0 -20
- package/dist/components/segment/segment.cva.js +0 -30
- package/dist/components/segment/segment.types.d.ts +0 -36
- package/dist/components/shared/pagination/Pagination.d.ts +0 -9
- package/dist/components/shared/pagination/Pagination.js +0 -45
- package/dist/components/shared/pagination/PaginationList.d.ts +0 -15
- package/dist/components/shared/pagination/PaginationList.js +0 -210
- package/dist/components/shared/pagination/minWidth.cva.d.ts +0 -3
- package/dist/components/shared/pagination/minWidth.cva.js +0 -11
- package/dist/components/shared/popover.cva.d.ts +0 -8
- package/dist/components/shared/popover.cva.js +0 -5
- package/dist/components/status/Alert/Alert.d.ts +0 -11
- package/dist/components/status/Alert/Alert.js +0 -47
- package/dist/components/status/Alert/alert.cva.d.ts +0 -19
- package/dist/components/status/Alert/alert.cva.js +0 -67
- package/dist/components/status/Loader/Loader.d.ts +0 -5
- package/dist/components/status/Loader/Loader.js +0 -89
- package/dist/components/status/Loader/loader.cva.d.ts +0 -28
- package/dist/components/status/Loader/loader.cva.js +0 -27
- package/dist/components/status/Toast/Toast.d.ts +0 -14
- package/dist/components/status/Toast/Toast.js +0 -82
- package/dist/components/status/Toast/toast.cva.d.ts +0 -80
- package/dist/components/status/Toast/toast.cva.js +0 -211
- package/dist/components/status/Toast/useToast.d.ts +0 -13
- package/dist/components/status/Toast/useToast.js +0 -70
- package/dist/components/status/shared/status.cva.d.ts +0 -30
- package/dist/components/status/shared/status.cva.js +0 -65
- package/dist/components/table/CellText.d.ts +0 -8
- package/dist/components/table/CellText.js +0 -21
- package/dist/components/table/ColumnConfig.d.ts +0 -10
- package/dist/components/table/ColumnConfig.js +0 -187
- package/dist/components/table/HeaderText.d.ts +0 -8
- package/dist/components/table/HeaderText.js +0 -20
- package/dist/components/table/InfiniteTable.d.ts +0 -9
- package/dist/components/table/InfiniteTable.js +0 -28
- package/dist/components/table/PaginatedTable.d.ts +0 -11
- package/dist/components/table/PaginatedTable.js +0 -94
- package/dist/components/table/Table.d.ts +0 -37
- package/dist/components/table/Table.js +0 -267
- package/dist/components/table/table.cva.d.ts +0 -65
- package/dist/components/table/table.cva.js +0 -49
- package/dist/components/text/Link/Link.d.ts +0 -9
- package/dist/components/text/Link/Link.js +0 -33
- package/dist/components/text/Link/link.cva.d.ts +0 -12
- package/dist/components/text/Link/link.cva.js +0 -12
- package/dist/components/text/Pill/Pill.d.ts +0 -15
- package/dist/components/text/Pill/Pill.js +0 -44
- package/dist/components/text/Tag/Tag.d.ts +0 -15
- package/dist/components/text/Tag/Tag.js +0 -43
- package/dist/components/text/Tag/tag.cva.d.ts +0 -16
- package/dist/components/text/Tag/tag.cva.js +0 -55
- package/dist/components/text/Typography/Typography.d.ts +0 -11
- package/dist/components/text/Typography/Typography.js +0 -16
- package/dist/components/text/Typography/typography.cva.d.ts +0 -49
- package/dist/components/text/Typography/typography.cva.js +0 -129
- package/dist/config/confirmation.context.d.ts +0 -20
- package/dist/config/confirmation.context.js +0 -80
- package/dist/config/i18n.d.ts +0 -313
- package/dist/config/i18n.js +0 -10
- package/dist/config/link.context.d.ts +0 -10
- package/dist/config/link.context.js +0 -35
- package/dist/config/router.context.d.ts +0 -14
- package/dist/config/router.context.js +0 -63
- package/dist/config/theme.context.d.ts +0 -17
- package/dist/config/theme.context.js +0 -67
- package/dist/config/uiConfig.context.d.ts +0 -77
- package/dist/config/uiConfig.context.js +0 -134
- package/dist/config/uiOverrides.context.d.ts +0 -205
- package/dist/config/uiOverrides.context.js +0 -113
- package/dist/helpers/dynamicColumns.d.ts +0 -44
- package/dist/helpers/dynamicColumns.js +0 -275
- package/dist/helpers/dynamicInputs.d.ts +0 -86
- package/dist/helpers/dynamicInputs.js +0 -193
- package/dist/hooks/useAutosave.d.ts +0 -10
- package/dist/hooks/useAutosave.js +0 -87
- package/dist/hooks/useBreakpoint.d.ts +0 -3
- package/dist/hooks/useBreakpoint.js +0 -43
- package/dist/hooks/useDebounceCallback.d.ts +0 -6
- package/dist/hooks/useDebounceCallback.js +0 -25
- package/dist/hooks/useDeepCompare.d.ts +0 -4
- package/dist/hooks/useDeepCompare.js +0 -23
- package/dist/hooks/useFilters.d.ts +0 -8
- package/dist/hooks/useFilters.js +0 -188
- package/dist/hooks/useForm.d.ts +0 -42
- package/dist/hooks/useForm.js +0 -101
- package/dist/hooks/useFormAutosave.d.ts +0 -14
- package/dist/hooks/useFormAutosave.js +0 -73
- package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
- package/dist/hooks/useIntersectionObserver.d.ts +0 -8
- package/dist/hooks/useIntersectionObserver.js +0 -98
- package/dist/hooks/useKeyInteractions.d.ts +0 -20
- package/dist/hooks/useKeyInteractions.js +0 -54
- package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
- package/dist/hooks/useLocalStorage.d.ts +0 -11
- package/dist/hooks/useLocalStorage.js +0 -70
- package/dist/hooks/useLongPressRepeat.d.ts +0 -9
- package/dist/hooks/useLongPressRepeat.js +0 -29
- package/dist/hooks/usePagination.d.ts +0 -7
- package/dist/hooks/usePagination.js +0 -62
- package/dist/hooks/useQueryAutocomplete.d.ts +0 -13
- package/dist/hooks/useQueryAutocomplete.js +0 -103
- package/dist/hooks/useScrollableListBox.d.ts +0 -3
- package/dist/hooks/useScrollableListBox.js +0 -47
- package/dist/hooks/useSorting.d.ts +0 -6
- package/dist/hooks/useSorting.js +0 -80
- package/dist/hooks/useStateAndRef.d.ts +0 -4
- package/dist/hooks/useStateAndRef.js +0 -31
- package/dist/hooks/useTableColumnConfig.d.ts +0 -16
- package/dist/hooks/useTableColumnConfig.js +0 -133
- package/dist/hooks/useTableNav.d.ts +0 -84
- package/dist/hooks/useTableNav.js +0 -383
- package/dist/hooks/useTranslationMemo.d.ts +0 -4
- package/dist/hooks/useTranslationMemo.js +0 -32
- package/dist/rhf/Inputs.d.ts +0 -60
- package/dist/rhf/Inputs.js +0 -148
- package/dist/rhf/components.d.ts +0 -80
- package/dist/rhf/components.js +0 -101
- package/dist/rhf/dynamicInputs.d.ts +0 -18
- package/dist/rhf/dynamicInputs.js +0 -5
- package/dist/rhf/entrypoints.type-test.d.ts +0 -1
- package/dist/rhf/fieldAdapter.d.ts +0 -7
- package/dist/rhf/fieldAdapter.js +0 -40
- package/dist/rhf/form.types.d.ts +0 -12
- package/dist/rhf/useAutosave.d.ts +0 -10
- package/dist/rhf/useAutosave.js +0 -71
- package/dist/rhf/useForm.d.ts +0 -18
- package/dist/rhf/useForm.js +0 -48
- package/dist/rhf/useFormAutosave.d.ts +0 -15
- package/dist/rhf/useFormAutosave.js +0 -59
- package/dist/types/common.d.ts +0 -12
- package/dist/types/error-handling.d.ts +0 -6
- package/dist/types/react-query.d.ts +0 -6
- package/dist/utils/array.utils.d.ts +0 -3
- package/dist/utils/array.utils.js +0 -10
- package/dist/utils/array.utils.spec.d.ts +0 -1
- package/dist/utils/compoundMapper.d.ts +0 -19
- package/dist/utils/compoundMapper.js +0 -13
- package/dist/utils/compoundMapper.spec.d.ts +0 -1
- package/dist/utils/date-time.utils.d.ts +0 -42
- package/dist/utils/date-time.utils.js +0 -192
- package/dist/utils/date-time.utils.spec.d.ts +0 -1
- package/dist/utils/date.utils.d.ts +0 -5
- package/dist/utils/date.utils.js +0 -19
- package/dist/utils/date.utils.spec.d.ts +0 -1
- package/dist/utils/dom.utils.d.ts +0 -5
- package/dist/utils/dom.utils.js +0 -19
- package/dist/utils/file.utils.d.ts +0 -13
- package/dist/utils/file.utils.js +0 -50
- package/dist/utils/intl.utils.d.ts +0 -7
- package/dist/utils/intl.utils.js +0 -38
- package/dist/utils/intl.utils.spec.d.ts +0 -1
- package/dist/utils/isEqual.d.ts +0 -1
- package/dist/utils/isEqual.js +0 -59
- package/dist/utils/object.utils.d.ts +0 -10
- package/dist/utils/object.utils.js +0 -38
- package/dist/utils/queries.utils.d.ts +0 -4
- package/dist/utils/queries.utils.js +0 -9
- package/dist/utils/query.utils.d.ts +0 -4
- package/dist/utils/query.utils.js +0 -8
- package/dist/utils/rest.utils.d.ts +0 -10
- package/dist/utils/rest.utils.js +0 -33
- package/dist/utils/routing.utils.d.ts +0 -4
- package/dist/utils/routing.utils.js +0 -25
- package/dist/utils/string.utils.d.ts +0 -4
- package/dist/utils/string.utils.js +0 -12
- package/dist/utils/style-merge.util.d.ts +0 -43
- package/dist/utils/style-merge.util.js +0 -233
- package/dist/utils/style-merge.util.spec.d.ts +0 -1
- package/dist/utils/zod.utils.d.ts +0 -20
- package/dist/utils/zod.utils.js +0 -24
- /package/dist/styles/{editor.css → styles/editor.css} +0 -0
|
@@ -0,0 +1,4046 @@
|
|
|
1
|
+
import { t as createLucideIcon } from "./createLucideIcon-CskCrR9z.js";
|
|
2
|
+
import { t as UIConfig } from "./uiConfig.context-BG4jfp9p.js";
|
|
3
|
+
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-C7Oq15ms.js";
|
|
4
|
+
import { t as Triangle } from "./triangle-B5uw3vnc.js";
|
|
5
|
+
import { t as X } from "./x-BYOEO0gW.js";
|
|
6
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
7
|
+
import { _ as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, c as $64fa3d84918910a7$export$ef03459518577ad4, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, l as $64fa3d84918910a7$export$fabf2dc03a41866e, n as $64fa3d84918910a7$export$29f1550f4b0d4415, p as $ff5963eb1fccf552$export$e08e3b67e392101e, r as $64fa3d84918910a7$export$4d86445c2cf5e3, s as $64fa3d84918910a7$export$df3a06d6289f983e, t as $64fa3d84918910a7$export$2881499e37b75b9a } from "./utils-D-KKbY-n.js";
|
|
8
|
+
import { a as $431fbd86ca7dc216$export$b204af158042fbac, n as $d4ee10de306f2510$export$cd4e5573fbe2b576, t as $d4ee10de306f2510$export$4282f70798064fe0 } from "./DOMFunctions-BrQjsnDh.js";
|
|
9
|
+
import { a as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./import-BXAtbYEe.js";
|
|
10
|
+
import { c as $c87311424ea30a05$export$e1865c3bedcd822b } from "./platform-df1ZXSJE.js";
|
|
11
|
+
import { a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "./openLink-CIHtr0U7.js";
|
|
12
|
+
import { t as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-Bt2BXuQ6.js";
|
|
13
|
+
import { t as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useEffectEvent-BdzIyMdT.js";
|
|
14
|
+
import { A as $ae20dd8cbca75726$export$d6daf82dcd84e87c, C as $168583247155ddda$export$dc9c12ed27dd1b49, F as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, L as $55f9b1ae81f22853$export$2b35b76d2e30e129, N as $5e3802645cc19319$export$1c3ebcada18427bf, O as $2a25aae57d74318e$export$a05409b8bb224a5a, T as $c5a24bc478652b5f$export$1005530eda016c13, c as $07b14b47974efb58$export$5b6b19405a83ff9d, h as $7135fc7d473fd974$export$4feb769f8ddf26c5, l as $07b14b47974efb58$export$9b9a0cd73afb7ca4, m as $7135fc7d473fd974$export$2dbbd341daed716d, r as $de32f1b87079253c$export$d2f961adcb0afbe, t as $de32f1b87079253c$export$2e1e1122cf0cba88, v as $e1995378a142960e$export$bf788dd355e3a401, w as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./Dialog-B5J6LRRw.js";
|
|
15
|
+
import { l as $9daab02d461809db$export$683480f191c0e3ea, r as $fc909762b330b746$export$61c6a8c84e605fb6 } from "./OverlayArrow-CyFI2DhX.js";
|
|
16
|
+
import { t as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-CjGFQh-l.js";
|
|
17
|
+
import { t as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BmSQIMid.js";
|
|
18
|
+
import { a as $e72dd72e1c76a225$export$2f645645f7bca764, c as $b1f0cad8af73213b$export$9145995848b05025, i as $eed445e0843c11d0$export$a11e76429ed99b4, n as $eed445e0843c11d0$export$7c5906fe4f1f2af2, o as $a02d57049d202695$export$d085fb9e920b5ca7, r as $eed445e0843c11d0$export$7ff8f37d2d81a48d, s as $b1f0cad8af73213b$export$3585ede4d035bf14, t as $eed445e0843c11d0$export$41f133550aa26f48 } from "./ListBox-CIgWt1tg.js";
|
|
19
|
+
import { t as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-Bk39gTui.js";
|
|
20
|
+
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, r as $319e236875307eab$export$a9b970dcc4ae71a9, t as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-D09S1dNt.js";
|
|
21
|
+
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-74MZZLC0.js";
|
|
22
|
+
import { n as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-tBB7tXBj.js";
|
|
23
|
+
import { t as $bb77f239b46e8c72$export$3274cf84b703fff } from "./useFilter-BsjdRENO.js";
|
|
24
|
+
import { i as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, n as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidationState-Bpry7Uk5.js";
|
|
25
|
+
import { t as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-BVczUvgv.js";
|
|
26
|
+
import { t as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-BTtw_Syz.js";
|
|
27
|
+
import { n as $ee014567cb39d3f0$export$ff05c3ac10437e03, t as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-CKUcoaMX.js";
|
|
28
|
+
import { n as $3985021b0ad6602f$export$f5b8910cec6cf069, t as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input-BefLtZJe.js";
|
|
29
|
+
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
30
|
+
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
31
|
+
import { t as Loader } from "./Loader-C6YkWZOO.js";
|
|
32
|
+
import { BottomSheet } from "./components/bottom-sheet.js";
|
|
33
|
+
import { t as useBreakpoint } from "./useBreakpoint-DFoeJwp-.js";
|
|
34
|
+
import { TextButton } from "./components/text-button.js";
|
|
35
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-Cl-t5Wi1.js";
|
|
36
|
+
import { t as Tag } from "./Tag-DJZ5qQme.js";
|
|
37
|
+
import "./i18n-BDjNuy4Z.js";
|
|
38
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-CoRIizbz.js";
|
|
39
|
+
import { a as inputSizeDefinition, n as inputClearClassDefinition, t as inputBaseDefinition } from "./input.cva-KYGD4Bdz.js";
|
|
40
|
+
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
41
|
+
import { t as popoverDefinition } from "./popover.cva-CXha_UMQ.js";
|
|
42
|
+
import { TextInput } from "./components/text-input.js";
|
|
43
|
+
import $HgANd$react, { Fragment, createContext, forwardRef, use, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
44
|
+
import { c } from "react/compiler-runtime";
|
|
45
|
+
import { flushSync } from "react-dom";
|
|
46
|
+
import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
|
|
47
|
+
import { useLabel } from "@react-aria/label";
|
|
48
|
+
import { useTextField } from "@react-aria/textfield";
|
|
49
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
50
|
+
import { useTranslation } from "react-i18next";
|
|
51
|
+
/**
|
|
52
|
+
* @license lucide-react v1.28.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/
|
|
57
|
+
const Search = createLucideIcon("search", [["path", {
|
|
58
|
+
d: "m21 21-4.34-4.34",
|
|
59
|
+
key: "14j7rj"
|
|
60
|
+
}], ["circle", {
|
|
61
|
+
cx: "11",
|
|
62
|
+
cy: "11",
|
|
63
|
+
r: "8",
|
|
64
|
+
key: "4ej97u"
|
|
65
|
+
}]]);
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/useUpdateEffect.mjs
|
|
68
|
+
function $4f58c5f72bcf79f7$export$496315a1608d9602(cb, dependencies) {
|
|
69
|
+
const isInitialMount = useRef(true);
|
|
70
|
+
const lastDeps = useRef(null);
|
|
71
|
+
let cbEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(cb);
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
isInitialMount.current = true;
|
|
74
|
+
return () => {
|
|
75
|
+
isInitialMount.current = false;
|
|
76
|
+
};
|
|
77
|
+
}, []);
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
let prevDeps = lastDeps.current;
|
|
80
|
+
if (isInitialMount.current) isInitialMount.current = false;
|
|
81
|
+
else if (!prevDeps || dependencies.some((dep, i) => !Object.is(dep, prevDeps[i]))) cbEvent();
|
|
82
|
+
lastDeps.current = dependencies;
|
|
83
|
+
}, dependencies);
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ar-AE.mjs
|
|
87
|
+
var $02cb4c75c506befe$exports = {};
|
|
88
|
+
$02cb4c75c506befe$exports = {
|
|
89
|
+
"buttonLabel": `\u{639}\u{631}\u{636} \u{627}\u{644}\u{645}\u{642}\u{62A}\u{631}\u{62D}\u{627}\u{62A}`,
|
|
90
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
91
|
+
one: () => `${formatter.number(args.optionCount)} \u{62E}\u{64A}\u{627}\u{631}`,
|
|
92
|
+
other: () => `${formatter.number(args.optionCount)} \u{62E}\u{64A}\u{627}\u{631}\u{627}\u{62A}`
|
|
93
|
+
})} \u{645}\u{62A}\u{627}\u{62D}\u{629}.`,
|
|
94
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
95
|
+
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, {
|
|
96
|
+
one: () => `${formatter.number(args.groupCount)} \u{62E}\u{64A}\u{627}\u{631}`,
|
|
97
|
+
other: () => `${formatter.number(args.groupCount)} \u{62E}\u{64A}\u{627}\u{631}\u{627}\u{62A}`
|
|
98
|
+
})}. `,
|
|
99
|
+
other: ``
|
|
100
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
101
|
+
true: `, \u{645}\u{62D}\u{62F}\u{62F}`,
|
|
102
|
+
other: ``
|
|
103
|
+
}, args.isSelected)}`,
|
|
104
|
+
"listboxLabel": `\u{645}\u{642}\u{62A}\u{631}\u{62D}\u{627}\u{62A}`,
|
|
105
|
+
"selectedAnnouncement": (args) => `${args.optionText}\u{60C} \u{645}\u{62D}\u{62F}\u{62F}`
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/bg-BG.mjs
|
|
109
|
+
var $568b8163f1e56faf$exports = {};
|
|
110
|
+
$568b8163f1e56faf$exports = {
|
|
111
|
+
"buttonLabel": `\u{41F}\u{43E}\u{43A}\u{430}\u{436}\u{438} \u{43F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
|
|
112
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
113
|
+
one: () => `${formatter.number(args.optionCount)} \u{43E}\u{43F}\u{446}\u{438}\u{44F}`,
|
|
114
|
+
other: () => `${formatter.number(args.optionCount)} \u{43E}\u{43F}\u{446}\u{438}\u{438}`
|
|
115
|
+
})} \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}.`,
|
|
116
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
117
|
+
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, {
|
|
118
|
+
one: () => `${formatter.number(args.groupCount)} \u{43E}\u{43F}\u{446}\u{438}\u{44F}`,
|
|
119
|
+
other: () => `${formatter.number(args.groupCount)} \u{43E}\u{43F}\u{446}\u{438}\u{438}`
|
|
120
|
+
})}. `,
|
|
121
|
+
other: ``
|
|
122
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
123
|
+
true: `, \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`,
|
|
124
|
+
other: ``
|
|
125
|
+
}, args.isSelected)}`,
|
|
126
|
+
"listboxLabel": `\u{41F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
|
|
127
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/cs-CZ.mjs
|
|
131
|
+
var $87581c0202d106b8$exports = {};
|
|
132
|
+
$87581c0202d106b8$exports = {
|
|
133
|
+
"buttonLabel": `Zobrazit doporu\u{10D}en\xed`,
|
|
134
|
+
"countAnnouncement": (args, formatter) => `K dispozici ${formatter.plural(args.optionCount, {
|
|
135
|
+
one: () => `je ${formatter.number(args.optionCount)} mo\u{17E}nost`,
|
|
136
|
+
other: () => `jsou/je ${formatter.number(args.optionCount)} mo\u{17E}nosti/-\xed`
|
|
137
|
+
})}.`,
|
|
138
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
139
|
+
true: () => `Zadan\xe1 skupina \u{201E}${args.groupTitle}\u{201C} ${formatter.plural(args.groupCount, {
|
|
140
|
+
one: () => `s ${formatter.number(args.groupCount)} mo\u{17E}nost\xed`,
|
|
141
|
+
other: () => `se ${formatter.number(args.groupCount)} mo\u{17E}nostmi`
|
|
142
|
+
})}. `,
|
|
143
|
+
other: ``
|
|
144
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
145
|
+
true: ` (vybr\xe1no)`,
|
|
146
|
+
other: ``
|
|
147
|
+
}, args.isSelected)}`,
|
|
148
|
+
"listboxLabel": `N\xe1vrhy`,
|
|
149
|
+
"selectedAnnouncement": (args) => `${args.optionText}, vybr\xe1no`
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/da-DK.mjs
|
|
153
|
+
var $a10a0369f5433ed1$exports = {};
|
|
154
|
+
$a10a0369f5433ed1$exports = {
|
|
155
|
+
"buttonLabel": `Vis forslag`,
|
|
156
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
157
|
+
one: () => `${formatter.number(args.optionCount)} mulighed tilg\xe6ngelig`,
|
|
158
|
+
other: () => `${formatter.number(args.optionCount)} muligheder tilg\xe6ngelige`
|
|
159
|
+
})}.`,
|
|
160
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
161
|
+
true: () => `Angivet gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
|
|
162
|
+
one: () => `${formatter.number(args.groupCount)} mulighed`,
|
|
163
|
+
other: () => `${formatter.number(args.groupCount)} muligheder`
|
|
164
|
+
})}. `,
|
|
165
|
+
other: ``
|
|
166
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
167
|
+
true: `, valgt`,
|
|
168
|
+
other: ``
|
|
169
|
+
}, args.isSelected)}`,
|
|
170
|
+
"listboxLabel": `Forslag`,
|
|
171
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valgt`
|
|
172
|
+
};
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/de-DE.mjs
|
|
175
|
+
var $bfd288727d5cb166$exports = {};
|
|
176
|
+
$bfd288727d5cb166$exports = {
|
|
177
|
+
"buttonLabel": `Empfehlungen anzeigen`,
|
|
178
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
179
|
+
one: () => `${formatter.number(args.optionCount)} Option`,
|
|
180
|
+
other: () => `${formatter.number(args.optionCount)} Optionen`
|
|
181
|
+
})} verf\xfcgbar.`,
|
|
182
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
183
|
+
true: () => `Eingetretene Gruppe ${args.groupTitle}, mit ${formatter.plural(args.groupCount, {
|
|
184
|
+
one: () => `${formatter.number(args.groupCount)} Option`,
|
|
185
|
+
other: () => `${formatter.number(args.groupCount)} Optionen`
|
|
186
|
+
})}. `,
|
|
187
|
+
other: ``
|
|
188
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
189
|
+
true: `, ausgew\xe4hlt`,
|
|
190
|
+
other: ``
|
|
191
|
+
}, args.isSelected)}`,
|
|
192
|
+
"listboxLabel": `Empfehlungen`,
|
|
193
|
+
"selectedAnnouncement": (args) => `${args.optionText}, ausgew\xe4hlt`
|
|
194
|
+
};
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/el-GR.mjs
|
|
197
|
+
var $ca177778f9a74e3c$exports = {};
|
|
198
|
+
$ca177778f9a74e3c$exports = {
|
|
199
|
+
"buttonLabel": `\u{3A0}\u{3C1}\u{3BF}\u{3B2}\u{3BF}\u{3BB}\u{3AE} \u{3C0}\u{3C1}\u{3BF}\u{3C4}\u{3AC}\u{3C3}\u{3B5}\u{3C9}\u{3BD}`,
|
|
200
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
201
|
+
one: () => `${formatter.number(args.optionCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,
|
|
202
|
+
other: () => `${formatter.number(args.optionCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AD}\u{3C2} `
|
|
203
|
+
})} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B5}\u{3C2}.`,
|
|
204
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
205
|
+
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, {
|
|
206
|
+
one: () => `${formatter.number(args.groupCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,
|
|
207
|
+
other: () => `${formatter.number(args.groupCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AD}\u{3C2}`
|
|
208
|
+
})}. `,
|
|
209
|
+
other: ``
|
|
210
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
211
|
+
true: `, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF}`,
|
|
212
|
+
other: ``
|
|
213
|
+
}, args.isSelected)}`,
|
|
214
|
+
"listboxLabel": `\u{3A0}\u{3C1}\u{3BF}\u{3C4}\u{3AC}\u{3C3}\u{3B5}\u{3B9}\u{3C2}`,
|
|
215
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5}`
|
|
216
|
+
};
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/en-US.mjs
|
|
219
|
+
var $9b5aa79ef84beb6c$exports = {};
|
|
220
|
+
$9b5aa79ef84beb6c$exports = {
|
|
221
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
222
|
+
true: () => `Entered group ${args.groupTitle}, with ${formatter.plural(args.groupCount, {
|
|
223
|
+
one: () => `${formatter.number(args.groupCount)} option`,
|
|
224
|
+
other: () => `${formatter.number(args.groupCount)} options`
|
|
225
|
+
})}. `,
|
|
226
|
+
other: ``
|
|
227
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
228
|
+
true: `, selected`,
|
|
229
|
+
other: ``
|
|
230
|
+
}, args.isSelected)}`,
|
|
231
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
232
|
+
one: () => `${formatter.number(args.optionCount)} option`,
|
|
233
|
+
other: () => `${formatter.number(args.optionCount)} options`
|
|
234
|
+
})} available.`,
|
|
235
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selected`,
|
|
236
|
+
"buttonLabel": `Show suggestions`,
|
|
237
|
+
"listboxLabel": `Suggestions`
|
|
238
|
+
};
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/es-ES.mjs
|
|
241
|
+
var $57968e8209de2557$exports = {};
|
|
242
|
+
$57968e8209de2557$exports = {
|
|
243
|
+
"buttonLabel": `Mostrar sugerencias`,
|
|
244
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
245
|
+
one: () => `${formatter.number(args.optionCount)} opci\xf3n`,
|
|
246
|
+
other: () => `${formatter.number(args.optionCount)} opciones`
|
|
247
|
+
})} disponible(s).`,
|
|
248
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
249
|
+
true: () => `Se ha unido al grupo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {
|
|
250
|
+
one: () => `${formatter.number(args.groupCount)} opci\xf3n`,
|
|
251
|
+
other: () => `${formatter.number(args.groupCount)} opciones`
|
|
252
|
+
})}. `,
|
|
253
|
+
other: ``
|
|
254
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
255
|
+
true: `, seleccionado`,
|
|
256
|
+
other: ``
|
|
257
|
+
}, args.isSelected)}`,
|
|
258
|
+
"listboxLabel": `Sugerencias`,
|
|
259
|
+
"selectedAnnouncement": (args) => `${args.optionText}, seleccionado`
|
|
260
|
+
};
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/et-EE.mjs
|
|
263
|
+
var $60690790bf4c1c6a$exports = {};
|
|
264
|
+
$60690790bf4c1c6a$exports = {
|
|
265
|
+
"buttonLabel": `Kuva soovitused`,
|
|
266
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
267
|
+
one: () => `${formatter.number(args.optionCount)} valik`,
|
|
268
|
+
other: () => `${formatter.number(args.optionCount)} valikud`
|
|
269
|
+
})} saadaval.`,
|
|
270
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
271
|
+
true: () => `Sisestatud r\xfchm ${args.groupTitle}, valikuga ${formatter.plural(args.groupCount, {
|
|
272
|
+
one: () => `${formatter.number(args.groupCount)} valik`,
|
|
273
|
+
other: () => `${formatter.number(args.groupCount)} valikud`
|
|
274
|
+
})}. `,
|
|
275
|
+
other: ``
|
|
276
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
277
|
+
true: `, valitud`,
|
|
278
|
+
other: ``
|
|
279
|
+
}, args.isSelected)}`,
|
|
280
|
+
"listboxLabel": `Soovitused`,
|
|
281
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valitud`
|
|
282
|
+
};
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/fi-FI.mjs
|
|
285
|
+
var $1101246e8c7d9357$exports = {};
|
|
286
|
+
$1101246e8c7d9357$exports = {
|
|
287
|
+
"buttonLabel": `N\xe4yt\xe4 ehdotukset`,
|
|
288
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
289
|
+
one: () => `${formatter.number(args.optionCount)} vaihtoehto`,
|
|
290
|
+
other: () => `${formatter.number(args.optionCount)} vaihtoehdot`
|
|
291
|
+
})} saatavilla.`,
|
|
292
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
293
|
+
true: () => `Mentiin ryhm\xe4\xe4n ${args.groupTitle}, ${formatter.plural(args.groupCount, {
|
|
294
|
+
one: () => `${formatter.number(args.groupCount)} vaihtoehdon`,
|
|
295
|
+
other: () => `${formatter.number(args.groupCount)} vaihtoehdon`
|
|
296
|
+
})} kanssa.`,
|
|
297
|
+
other: ``
|
|
298
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
299
|
+
true: `, valittu`,
|
|
300
|
+
other: ``
|
|
301
|
+
}, args.isSelected)}`,
|
|
302
|
+
"listboxLabel": `Ehdotukset`,
|
|
303
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valittu`
|
|
304
|
+
};
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/fr-FR.mjs
|
|
307
|
+
var $6404b5cb5b241730$exports = {};
|
|
308
|
+
$6404b5cb5b241730$exports = {
|
|
309
|
+
"buttonLabel": `Afficher les suggestions`,
|
|
310
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
311
|
+
one: () => `${formatter.number(args.optionCount)} option`,
|
|
312
|
+
other: () => `${formatter.number(args.optionCount)} options`
|
|
313
|
+
})} disponible(s).`,
|
|
314
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
315
|
+
true: () => `Groupe ${args.groupTitle} rejoint, avec ${formatter.plural(args.groupCount, {
|
|
316
|
+
one: () => `${formatter.number(args.groupCount)} option`,
|
|
317
|
+
other: () => `${formatter.number(args.groupCount)} options`
|
|
318
|
+
})}. `,
|
|
319
|
+
other: ``
|
|
320
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
321
|
+
true: `, s\xe9lectionn\xe9(s)`,
|
|
322
|
+
other: ``
|
|
323
|
+
}, args.isSelected)}`,
|
|
324
|
+
"listboxLabel": `Suggestions`,
|
|
325
|
+
"selectedAnnouncement": (args) => `${args.optionText}, s\xe9lectionn\xe9`
|
|
326
|
+
};
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/he-IL.mjs
|
|
329
|
+
var $dfeafa702e92e31f$exports = {};
|
|
330
|
+
$dfeafa702e92e31f$exports = {
|
|
331
|
+
"buttonLabel": `\u{5D4}\u{5E6}\u{5D2} \u{5D4}\u{5E6}\u{5E2}\u{5D5}\u{5EA}`,
|
|
332
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
333
|
+
one: () => `\u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5EA} ${formatter.number(args.optionCount)}`,
|
|
334
|
+
other: () => `${formatter.number(args.optionCount)} \u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5D9}\u{5D5}\u{5EA}`
|
|
335
|
+
})} \u{5D1}\u{5DE}\u{5E6}\u{5D1} \u{5D6}\u{5DE}\u{5D9}\u{5DF}.`,
|
|
336
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
337
|
+
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, {
|
|
338
|
+
one: () => `\u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5EA} ${formatter.number(args.groupCount)}`,
|
|
339
|
+
other: () => `${formatter.number(args.groupCount)} \u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5D9}\u{5D5}\u{5EA}`
|
|
340
|
+
})}. `,
|
|
341
|
+
other: ``
|
|
342
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
343
|
+
true: `, \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,
|
|
344
|
+
other: ``
|
|
345
|
+
}, args.isSelected)}`,
|
|
346
|
+
"listboxLabel": `\u{5D4}\u{5E6}\u{5E2}\u{5D5}\u{5EA}`,
|
|
347
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{5E0}\u{5D1}\u{5D7}\u{5E8}`
|
|
348
|
+
};
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/hr-HR.mjs
|
|
351
|
+
var $2d125e0b34676352$exports = {};
|
|
352
|
+
$2d125e0b34676352$exports = {
|
|
353
|
+
"buttonLabel": `Prika\u{17E}i prijedloge`,
|
|
354
|
+
"countAnnouncement": (args, formatter) => `Dostupno jo\u{161}: ${formatter.plural(args.optionCount, {
|
|
355
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
356
|
+
other: () => `${formatter.number(args.optionCount)} opcije/a`
|
|
357
|
+
})}.`,
|
|
358
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
359
|
+
true: () => `Unesena skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
360
|
+
one: () => `${formatter.number(args.groupCount)} opcijom`,
|
|
361
|
+
other: () => `${formatter.number(args.groupCount)} opcije/a`
|
|
362
|
+
})}. `,
|
|
363
|
+
other: ``
|
|
364
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
365
|
+
true: `, odabranih`,
|
|
366
|
+
other: ``
|
|
367
|
+
}, args.isSelected)}`,
|
|
368
|
+
"listboxLabel": `Prijedlozi`,
|
|
369
|
+
"selectedAnnouncement": (args) => `${args.optionText}, odabrano`
|
|
370
|
+
};
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/hu-HU.mjs
|
|
373
|
+
var $ea029611d7634059$exports = {};
|
|
374
|
+
$ea029611d7634059$exports = {
|
|
375
|
+
"buttonLabel": `Javaslatok megjelen\xedt\xe9se`,
|
|
376
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
377
|
+
one: () => `${formatter.number(args.optionCount)} lehet\u{151}s\xe9g`,
|
|
378
|
+
other: () => `${formatter.number(args.optionCount)} lehet\u{151}s\xe9g`
|
|
379
|
+
})} \xe1ll rendelkez\xe9sre.`,
|
|
380
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
381
|
+
true: () => `Bel\xe9pett a(z) ${args.groupTitle} csoportba, amely ${formatter.plural(args.groupCount, {
|
|
382
|
+
one: () => `${formatter.number(args.groupCount)} lehet\u{151}s\xe9get`,
|
|
383
|
+
other: () => `${formatter.number(args.groupCount)} lehet\u{151}s\xe9get`
|
|
384
|
+
})} tartalmaz. `,
|
|
385
|
+
other: ``
|
|
386
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
387
|
+
true: `, kijel\xf6lve`,
|
|
388
|
+
other: ``
|
|
389
|
+
}, args.isSelected)}`,
|
|
390
|
+
"listboxLabel": `Javaslatok`,
|
|
391
|
+
"selectedAnnouncement": (args) => `${args.optionText}, kijel\xf6lve`
|
|
392
|
+
};
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/it-IT.mjs
|
|
395
|
+
var $77f075bb86ad7091$exports = {};
|
|
396
|
+
$77f075bb86ad7091$exports = {
|
|
397
|
+
"buttonLabel": `Mostra suggerimenti`,
|
|
398
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
399
|
+
one: () => `${formatter.number(args.optionCount)} opzione disponibile`,
|
|
400
|
+
other: () => `${formatter.number(args.optionCount)} opzioni disponibili`
|
|
401
|
+
})}.`,
|
|
402
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
403
|
+
true: () => `Ingresso nel gruppo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {
|
|
404
|
+
one: () => `${formatter.number(args.groupCount)} opzione`,
|
|
405
|
+
other: () => `${formatter.number(args.groupCount)} opzioni`
|
|
406
|
+
})}. `,
|
|
407
|
+
other: ``
|
|
408
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
409
|
+
true: `, selezionato`,
|
|
410
|
+
other: ``
|
|
411
|
+
}, args.isSelected)}`,
|
|
412
|
+
"listboxLabel": `Suggerimenti`,
|
|
413
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selezionato`
|
|
414
|
+
};
|
|
415
|
+
//#endregion
|
|
416
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ja-JP.mjs
|
|
417
|
+
var $6e87462e84907983$exports = {};
|
|
418
|
+
$6e87462e84907983$exports = {
|
|
419
|
+
"buttonLabel": `\u{5019}\u{88DC}\u{3092}\u{8868}\u{793A}`,
|
|
420
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
421
|
+
one: () => `${formatter.number(args.optionCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`,
|
|
422
|
+
other: () => `${formatter.number(args.optionCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`
|
|
423
|
+
})}\u{3092}\u{5229}\u{7528}\u{3067}\u{304D}\u{307E}\u{3059}\u{3002}`,
|
|
424
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
425
|
+
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, {
|
|
426
|
+
one: () => `${formatter.number(args.groupCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`,
|
|
427
|
+
other: () => `${formatter.number(args.groupCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`
|
|
428
|
+
})}\u{3092}\u{542B}\u{3080}\u{3002}`,
|
|
429
|
+
other: ``
|
|
430
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
431
|
+
true: `\u{3001}\u{9078}\u{629E}\u{6E08}\u{307F}`,
|
|
432
|
+
other: ``
|
|
433
|
+
}, args.isSelected)}`,
|
|
434
|
+
"listboxLabel": `\u{5019}\u{88DC}`,
|
|
435
|
+
"selectedAnnouncement": (args) => `${args.optionText}\u{3001}\u{9078}\u{629E}\u{6E08}\u{307F}`
|
|
436
|
+
};
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ko-KR.mjs
|
|
439
|
+
var $9246f2c6edc6b232$exports = {};
|
|
440
|
+
$9246f2c6edc6b232$exports = {
|
|
441
|
+
"buttonLabel": `\u{C81C}\u{C548} \u{C0AC}\u{D56D} \u{D45C}\u{C2DC}`,
|
|
442
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
443
|
+
one: () => `${formatter.number(args.optionCount)}\u{AC1C} \u{C635}\u{C158}`,
|
|
444
|
+
other: () => `${formatter.number(args.optionCount)}\u{AC1C} \u{C635}\u{C158}`
|
|
445
|
+
})}\u{C744} \u{C0AC}\u{C6A9}\u{D560} \u{C218} \u{C788}\u{C2B5}\u{B2C8}\u{B2E4}.`,
|
|
446
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
447
|
+
true: () => `\u{C785}\u{B825}\u{D55C} \u{ADF8}\u{B8F9} ${args.groupTitle}, ${formatter.plural(args.groupCount, {
|
|
448
|
+
one: () => `${formatter.number(args.groupCount)}\u{AC1C} \u{C635}\u{C158}`,
|
|
449
|
+
other: () => `${formatter.number(args.groupCount)}\u{AC1C} \u{C635}\u{C158}`
|
|
450
|
+
})}. `,
|
|
451
|
+
other: ``
|
|
452
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
453
|
+
true: `, \u{C120}\u{D0DD}\u{B428}`,
|
|
454
|
+
other: ``
|
|
455
|
+
}, args.isSelected)}`,
|
|
456
|
+
"listboxLabel": `\u{C81C}\u{C548}`,
|
|
457
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{C120}\u{D0DD}\u{B428}`
|
|
458
|
+
};
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/lt-LT.mjs
|
|
461
|
+
var $e587accc6c0a434c$exports = {};
|
|
462
|
+
$e587accc6c0a434c$exports = {
|
|
463
|
+
"buttonLabel": `Rodyti pasi\u{16B}lymus`,
|
|
464
|
+
"countAnnouncement": (args, formatter) => `Yra ${formatter.plural(args.optionCount, {
|
|
465
|
+
one: () => `${formatter.number(args.optionCount)} parinktis`,
|
|
466
|
+
other: () => `${formatter.number(args.optionCount)} parinktys (-i\u{173})`
|
|
467
|
+
})}.`,
|
|
468
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
469
|
+
true: () => `\u{12E}vesta grup\u{117} ${args.groupTitle}, su ${formatter.plural(args.groupCount, {
|
|
470
|
+
one: () => `${formatter.number(args.groupCount)} parinktimi`,
|
|
471
|
+
other: () => `${formatter.number(args.groupCount)} parinktimis (-i\u{173})`
|
|
472
|
+
})}. `,
|
|
473
|
+
other: ``
|
|
474
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
475
|
+
true: `, pasirinkta`,
|
|
476
|
+
other: ``
|
|
477
|
+
}, args.isSelected)}`,
|
|
478
|
+
"listboxLabel": `Pasi\u{16B}lymai`,
|
|
479
|
+
"selectedAnnouncement": (args) => `${args.optionText}, pasirinkta`
|
|
480
|
+
};
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/lv-LV.mjs
|
|
483
|
+
var $03a1900e7400b5ab$exports = {};
|
|
484
|
+
$03a1900e7400b5ab$exports = {
|
|
485
|
+
"buttonLabel": `R\u{101}d\u{12B}t ieteikumus`,
|
|
486
|
+
"countAnnouncement": (args, formatter) => `Pieejamo opciju skaits: ${formatter.plural(args.optionCount, {
|
|
487
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
488
|
+
other: () => `${formatter.number(args.optionCount)} opcijas`
|
|
489
|
+
})}.`,
|
|
490
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
491
|
+
true: () => `Ievad\u{12B}ta grupa ${args.groupTitle}, ar ${formatter.plural(args.groupCount, {
|
|
492
|
+
one: () => `${formatter.number(args.groupCount)} opciju`,
|
|
493
|
+
other: () => `${formatter.number(args.groupCount)} opcij\u{101}m`
|
|
494
|
+
})}. `,
|
|
495
|
+
other: ``
|
|
496
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
497
|
+
true: `, atlas\u{12B}ta`,
|
|
498
|
+
other: ``
|
|
499
|
+
}, args.isSelected)}`,
|
|
500
|
+
"listboxLabel": `Ieteikumi`,
|
|
501
|
+
"selectedAnnouncement": (args) => `${args.optionText}, atlas\u{12B}ta`
|
|
502
|
+
};
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/nb-NO.mjs
|
|
505
|
+
var $1387676441be6cf6$exports = {};
|
|
506
|
+
$1387676441be6cf6$exports = {
|
|
507
|
+
"buttonLabel": `Vis forslag`,
|
|
508
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
509
|
+
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
510
|
+
other: () => `${formatter.number(args.optionCount)} alternativer`
|
|
511
|
+
})} finnes.`,
|
|
512
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
513
|
+
true: () => `Angitt gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
|
|
514
|
+
one: () => `${formatter.number(args.groupCount)} alternativ`,
|
|
515
|
+
other: () => `${formatter.number(args.groupCount)} alternativer`
|
|
516
|
+
})}. `,
|
|
517
|
+
other: ``
|
|
518
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
519
|
+
true: `, valgt`,
|
|
520
|
+
other: ``
|
|
521
|
+
}, args.isSelected)}`,
|
|
522
|
+
"listboxLabel": `Forslag`,
|
|
523
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valgt`
|
|
524
|
+
};
|
|
525
|
+
//#endregion
|
|
526
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/nl-NL.mjs
|
|
527
|
+
var $17e82ebf0f8ab91f$exports = {};
|
|
528
|
+
$17e82ebf0f8ab91f$exports = {
|
|
529
|
+
"buttonLabel": `Suggesties weergeven`,
|
|
530
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
531
|
+
one: () => `${formatter.number(args.optionCount)} optie`,
|
|
532
|
+
other: () => `${formatter.number(args.optionCount)} opties`
|
|
533
|
+
})} beschikbaar.`,
|
|
534
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
535
|
+
true: () => `Groep ${args.groupTitle} ingevoerd met ${formatter.plural(args.groupCount, {
|
|
536
|
+
one: () => `${formatter.number(args.groupCount)} optie`,
|
|
537
|
+
other: () => `${formatter.number(args.groupCount)} opties`
|
|
538
|
+
})}. `,
|
|
539
|
+
other: ``
|
|
540
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
541
|
+
true: `, geselecteerd`,
|
|
542
|
+
other: ``
|
|
543
|
+
}, args.isSelected)}`,
|
|
544
|
+
"listboxLabel": `Suggesties`,
|
|
545
|
+
"selectedAnnouncement": (args) => `${args.optionText}, geselecteerd`
|
|
546
|
+
};
|
|
547
|
+
//#endregion
|
|
548
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/pl-PL.mjs
|
|
549
|
+
var $2f5377d3471630e5$exports = {};
|
|
550
|
+
$2f5377d3471630e5$exports = {
|
|
551
|
+
"buttonLabel": `Wy\u{15B}wietlaj sugestie`,
|
|
552
|
+
"countAnnouncement": (args, formatter) => `dost\u{119}pna/dost\u{119}pne(-nych) ${formatter.plural(args.optionCount, {
|
|
553
|
+
one: () => `${formatter.number(args.optionCount)} opcja`,
|
|
554
|
+
other: () => `${formatter.number(args.optionCount)} opcje(-i)`
|
|
555
|
+
})}.`,
|
|
556
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
557
|
+
true: () => `Do\u{142}\u{105}czono do grupy ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
|
|
558
|
+
one: () => `${formatter.number(args.groupCount)} opcj\u{105}`,
|
|
559
|
+
other: () => `${formatter.number(args.groupCount)} opcjami`
|
|
560
|
+
})}. `,
|
|
561
|
+
other: ``
|
|
562
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
563
|
+
true: `, wybrano`,
|
|
564
|
+
other: ``
|
|
565
|
+
}, args.isSelected)}`,
|
|
566
|
+
"listboxLabel": `Sugestie`,
|
|
567
|
+
"selectedAnnouncement": (args) => `${args.optionText}, wybrano`
|
|
568
|
+
};
|
|
569
|
+
//#endregion
|
|
570
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/pt-BR.mjs
|
|
571
|
+
var $dee9868b6fa95ffe$exports = {};
|
|
572
|
+
$dee9868b6fa95ffe$exports = {
|
|
573
|
+
"buttonLabel": `Mostrar sugest\xf5es`,
|
|
574
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
575
|
+
one: () => `${formatter.number(args.optionCount)} op\xe7\xe3o`,
|
|
576
|
+
other: () => `${formatter.number(args.optionCount)} op\xe7\xf5es`
|
|
577
|
+
})} dispon\xedvel.`,
|
|
578
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
579
|
+
true: () => `Grupo inserido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
|
|
580
|
+
one: () => `${formatter.number(args.groupCount)} op\xe7\xe3o`,
|
|
581
|
+
other: () => `${formatter.number(args.groupCount)} op\xe7\xf5es`
|
|
582
|
+
})}. `,
|
|
583
|
+
other: ``
|
|
584
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
585
|
+
true: `, selecionado`,
|
|
586
|
+
other: ``
|
|
587
|
+
}, args.isSelected)}`,
|
|
588
|
+
"listboxLabel": `Sugest\xf5es`,
|
|
589
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`
|
|
590
|
+
};
|
|
591
|
+
//#endregion
|
|
592
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/pt-PT.mjs
|
|
593
|
+
var $f8b2e63637cbb5a6$exports = {};
|
|
594
|
+
$f8b2e63637cbb5a6$exports = {
|
|
595
|
+
"buttonLabel": `Apresentar sugest\xf5es`,
|
|
596
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
597
|
+
one: () => `${formatter.number(args.optionCount)} op\xe7\xe3o`,
|
|
598
|
+
other: () => `${formatter.number(args.optionCount)} op\xe7\xf5es`
|
|
599
|
+
})} dispon\xedvel.`,
|
|
600
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
601
|
+
true: () => `Grupo introduzido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
|
|
602
|
+
one: () => `${formatter.number(args.groupCount)} op\xe7\xe3o`,
|
|
603
|
+
other: () => `${formatter.number(args.groupCount)} op\xe7\xf5es`
|
|
604
|
+
})}. `,
|
|
605
|
+
other: ``
|
|
606
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
607
|
+
true: `, selecionado`,
|
|
608
|
+
other: ``
|
|
609
|
+
}, args.isSelected)}`,
|
|
610
|
+
"listboxLabel": `Sugest\xf5es`,
|
|
611
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`
|
|
612
|
+
};
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ro-RO.mjs
|
|
615
|
+
var $46a885db3b44ea95$exports = {};
|
|
616
|
+
$46a885db3b44ea95$exports = {
|
|
617
|
+
"buttonLabel": `Afi\u{219}are sugestii`,
|
|
618
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
619
|
+
one: () => `${formatter.number(args.optionCount)} op\u{21B}iune`,
|
|
620
|
+
other: () => `${formatter.number(args.optionCount)} op\u{21B}iuni`
|
|
621
|
+
})} disponibile.`,
|
|
622
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
623
|
+
true: () => `Grup ${args.groupTitle} introdus, cu ${formatter.plural(args.groupCount, {
|
|
624
|
+
one: () => `${formatter.number(args.groupCount)} op\u{21B}iune`,
|
|
625
|
+
other: () => `${formatter.number(args.groupCount)} op\u{21B}iuni`
|
|
626
|
+
})}. `,
|
|
627
|
+
other: ``
|
|
628
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
629
|
+
true: `, selectat`,
|
|
630
|
+
other: ``
|
|
631
|
+
}, args.isSelected)}`,
|
|
632
|
+
"listboxLabel": `Sugestii`,
|
|
633
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selectat`
|
|
634
|
+
};
|
|
635
|
+
//#endregion
|
|
636
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ru-RU.mjs
|
|
637
|
+
var $50d8a8f0afa9dee5$exports = {};
|
|
638
|
+
$50d8a8f0afa9dee5$exports = {
|
|
639
|
+
"buttonLabel": `\u{41F}\u{43E}\u{43A}\u{430}\u{437}\u{430}\u{442}\u{44C} \u{43F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
|
|
640
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
641
|
+
one: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
|
|
642
|
+
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}`
|
|
643
|
+
})} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}.`,
|
|
644
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
645
|
+
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, {
|
|
646
|
+
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}`,
|
|
647
|
+
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}`
|
|
648
|
+
})}. `,
|
|
649
|
+
other: ``
|
|
650
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
651
|
+
true: `, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{43C}\u{438}`,
|
|
652
|
+
other: ``
|
|
653
|
+
}, args.isSelected)}`,
|
|
654
|
+
"listboxLabel": `\u{41F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
|
|
655
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`
|
|
656
|
+
};
|
|
657
|
+
//#endregion
|
|
658
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/sk-SK.mjs
|
|
659
|
+
var $2867ee6173245507$exports = {};
|
|
660
|
+
$2867ee6173245507$exports = {
|
|
661
|
+
"buttonLabel": `Zobrazi\u{165} n\xe1vrhy`,
|
|
662
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
663
|
+
one: () => `${formatter.number(args.optionCount)} mo\u{17E}nos\u{165}`,
|
|
664
|
+
other: () => `${formatter.number(args.optionCount)} mo\u{17E}nosti/-\xed`
|
|
665
|
+
})} k dispoz\xedcii.`,
|
|
666
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
667
|
+
true: () => `Zadan\xe1 skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
668
|
+
one: () => `${formatter.number(args.groupCount)} mo\u{17E}nos\u{165}ou`,
|
|
669
|
+
other: () => `${formatter.number(args.groupCount)} mo\u{17E}nos\u{165}ami`
|
|
670
|
+
})}. `,
|
|
671
|
+
other: ``
|
|
672
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
673
|
+
true: `, vybrat\xe9`,
|
|
674
|
+
other: ``
|
|
675
|
+
}, args.isSelected)}`,
|
|
676
|
+
"listboxLabel": `N\xe1vrhy`,
|
|
677
|
+
"selectedAnnouncement": (args) => `${args.optionText}, vybrat\xe9`
|
|
678
|
+
};
|
|
679
|
+
//#endregion
|
|
680
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/sl-SI.mjs
|
|
681
|
+
var $0631b65beeb09b50$exports = {};
|
|
682
|
+
$0631b65beeb09b50$exports = {
|
|
683
|
+
"buttonLabel": `Prika\u{17E}i predloge`,
|
|
684
|
+
"countAnnouncement": (args, formatter) => `Na voljo je ${formatter.plural(args.optionCount, {
|
|
685
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
686
|
+
other: () => `${formatter.number(args.optionCount)} opcije`
|
|
687
|
+
})}.`,
|
|
688
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
689
|
+
true: () => `Vnesena skupina ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
|
|
690
|
+
one: () => `${formatter.number(args.groupCount)} opcija`,
|
|
691
|
+
other: () => `${formatter.number(args.groupCount)} opcije`
|
|
692
|
+
})}. `,
|
|
693
|
+
other: ``
|
|
694
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
695
|
+
true: `, izbrano`,
|
|
696
|
+
other: ``
|
|
697
|
+
}, args.isSelected)}`,
|
|
698
|
+
"listboxLabel": `Predlogi`,
|
|
699
|
+
"selectedAnnouncement": (args) => `${args.optionText}, izbrano`
|
|
700
|
+
};
|
|
701
|
+
//#endregion
|
|
702
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/sr-SP.mjs
|
|
703
|
+
var $65fc749265dcd686$exports = {};
|
|
704
|
+
$65fc749265dcd686$exports = {
|
|
705
|
+
"buttonLabel": `Prika\u{17E}i predloge`,
|
|
706
|
+
"countAnnouncement": (args, formatter) => `Dostupno jo\u{161}: ${formatter.plural(args.optionCount, {
|
|
707
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
708
|
+
other: () => `${formatter.number(args.optionCount)} opcije/a`
|
|
709
|
+
})}.`,
|
|
710
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
711
|
+
true: () => `Unesena grupa ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
712
|
+
one: () => `${formatter.number(args.groupCount)} opcijom`,
|
|
713
|
+
other: () => `${formatter.number(args.groupCount)} optione/a`
|
|
714
|
+
})}. `,
|
|
715
|
+
other: ``
|
|
716
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
717
|
+
true: `, izabranih`,
|
|
718
|
+
other: ``
|
|
719
|
+
}, args.isSelected)}`,
|
|
720
|
+
"listboxLabel": `Predlozi`,
|
|
721
|
+
"selectedAnnouncement": (args) => `${args.optionText}, izabrano`
|
|
722
|
+
};
|
|
723
|
+
//#endregion
|
|
724
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/sv-SE.mjs
|
|
725
|
+
var $69ba655c7853c08e$exports = {};
|
|
726
|
+
$69ba655c7853c08e$exports = {
|
|
727
|
+
"buttonLabel": `Visa f\xf6rslag`,
|
|
728
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
729
|
+
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
730
|
+
other: () => `${formatter.number(args.optionCount)} alternativ`
|
|
731
|
+
})} tillg\xe4ngliga.`,
|
|
732
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
733
|
+
true: () => `Ingick i gruppen ${args.groupTitle} med ${formatter.plural(args.groupCount, {
|
|
734
|
+
one: () => `${formatter.number(args.groupCount)} alternativ`,
|
|
735
|
+
other: () => `${formatter.number(args.groupCount)} alternativ`
|
|
736
|
+
})}. `,
|
|
737
|
+
other: ``
|
|
738
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
739
|
+
true: `, valda`,
|
|
740
|
+
other: ``
|
|
741
|
+
}, args.isSelected)}`,
|
|
742
|
+
"listboxLabel": `F\xf6rslag`,
|
|
743
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valda`
|
|
744
|
+
};
|
|
745
|
+
//#endregion
|
|
746
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/tr-TR.mjs
|
|
747
|
+
var $a79794784d61577c$exports = {};
|
|
748
|
+
$a79794784d61577c$exports = {
|
|
749
|
+
"buttonLabel": `\xd6nerileri g\xf6ster`,
|
|
750
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
751
|
+
one: () => `${formatter.number(args.optionCount)} se\xe7enek`,
|
|
752
|
+
other: () => `${formatter.number(args.optionCount)} se\xe7enekler`
|
|
753
|
+
})} kullan\u{131}labilir.`,
|
|
754
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
755
|
+
true: () => `Girilen grup ${args.groupTitle}, ile ${formatter.plural(args.groupCount, {
|
|
756
|
+
one: () => `${formatter.number(args.groupCount)} se\xe7enek`,
|
|
757
|
+
other: () => `${formatter.number(args.groupCount)} se\xe7enekler`
|
|
758
|
+
})}. `,
|
|
759
|
+
other: ``
|
|
760
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
761
|
+
true: `, se\xe7ildi`,
|
|
762
|
+
other: ``
|
|
763
|
+
}, args.isSelected)}`,
|
|
764
|
+
"listboxLabel": `\xd6neriler`,
|
|
765
|
+
"selectedAnnouncement": (args) => `${args.optionText}, se\xe7ildi`
|
|
766
|
+
};
|
|
767
|
+
//#endregion
|
|
768
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/uk-UA.mjs
|
|
769
|
+
var $c2845791417ebaf4$exports = {};
|
|
770
|
+
$c2845791417ebaf4$exports = {
|
|
771
|
+
"buttonLabel": `\u{41F}\u{43E}\u{43A}\u{430}\u{437}\u{430}\u{442}\u{438} \u{43F}\u{440}\u{43E}\u{43F}\u{43E}\u{437}\u{438}\u{446}\u{456}\u{457}`,
|
|
772
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
773
|
+
one: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
|
|
774
|
+
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})`
|
|
775
|
+
})} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}.`,
|
|
776
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
777
|
+
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, {
|
|
778
|
+
one: () => `${formatter.number(args.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
|
|
779
|
+
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})`
|
|
780
|
+
})}. `,
|
|
781
|
+
other: ``
|
|
782
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
783
|
+
true: `, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,
|
|
784
|
+
other: ``
|
|
785
|
+
}, args.isSelected)}`,
|
|
786
|
+
"listboxLabel": `\u{41F}\u{440}\u{43E}\u{43F}\u{43E}\u{437}\u{438}\u{446}\u{456}\u{457}`,
|
|
787
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`
|
|
788
|
+
};
|
|
789
|
+
//#endregion
|
|
790
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/zh-CN.mjs
|
|
791
|
+
var $29b642d0025cc7a4$exports = {};
|
|
792
|
+
$29b642d0025cc7a4$exports = {
|
|
793
|
+
"buttonLabel": `\u{663E}\u{793A}\u{5EFA}\u{8BAE}`,
|
|
794
|
+
"countAnnouncement": (args, formatter) => `\u{6709} ${formatter.plural(args.optionCount, {
|
|
795
|
+
one: () => `${formatter.number(args.optionCount)} \u{4E2A}\u{9009}\u{9879}`,
|
|
796
|
+
other: () => `${formatter.number(args.optionCount)} \u{4E2A}\u{9009}\u{9879}`
|
|
797
|
+
})}\u{53EF}\u{7528}\u{3002}`,
|
|
798
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
799
|
+
true: () => `\u{8FDB}\u{5165}\u{4E86} ${args.groupTitle} \u{7EC4}\u{FF0C}\u{5176}\u{4E2D}\u{6709} ${formatter.plural(args.groupCount, {
|
|
800
|
+
one: () => `${formatter.number(args.groupCount)} \u{4E2A}\u{9009}\u{9879}`,
|
|
801
|
+
other: () => `${formatter.number(args.groupCount)} \u{4E2A}\u{9009}\u{9879}`
|
|
802
|
+
})}. `,
|
|
803
|
+
other: ``
|
|
804
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
805
|
+
true: `, \u{5DF2}\u{9009}\u{62E9}`,
|
|
806
|
+
other: ``
|
|
807
|
+
}, args.isSelected)}`,
|
|
808
|
+
"listboxLabel": `\u{5EFA}\u{8BAE}`,
|
|
809
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{5DF2}\u{9009}\u{62E9}`
|
|
810
|
+
};
|
|
811
|
+
//#endregion
|
|
812
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/zh-TW.mjs
|
|
813
|
+
var $cd36dd33f9d46936$exports = {};
|
|
814
|
+
$cd36dd33f9d46936$exports = {
|
|
815
|
+
"buttonLabel": `\u{986F}\u{793A}\u{5EFA}\u{8B70}`,
|
|
816
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
817
|
+
one: () => `${formatter.number(args.optionCount)} \u{9078}\u{9805}`,
|
|
818
|
+
other: () => `${formatter.number(args.optionCount)} \u{9078}\u{9805}`
|
|
819
|
+
})} \u{53EF}\u{7528}\u{3002}`,
|
|
820
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
821
|
+
true: () => `\u{8F38}\u{5165}\u{7684}\u{7FA4}\u{7D44} ${args.groupTitle}, \u{6709} ${formatter.plural(args.groupCount, {
|
|
822
|
+
one: () => `${formatter.number(args.groupCount)} \u{9078}\u{9805}`,
|
|
823
|
+
other: () => `${formatter.number(args.groupCount)} \u{9078}\u{9805}`
|
|
824
|
+
})}. `,
|
|
825
|
+
other: ``
|
|
826
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
827
|
+
true: `, \u{5DF2}\u{9078}\u{53D6}`,
|
|
828
|
+
other: ``
|
|
829
|
+
}, args.isSelected)}`,
|
|
830
|
+
"listboxLabel": `\u{5EFA}\u{8B70}`,
|
|
831
|
+
"selectedAnnouncement": (args) => `${args.optionText}, \u{5DF2}\u{9078}\u{53D6}`
|
|
832
|
+
};
|
|
833
|
+
//#endregion
|
|
834
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/intlStrings.mjs
|
|
835
|
+
var $de5926a92e8ebc5b$exports = {};
|
|
836
|
+
$de5926a92e8ebc5b$exports = {
|
|
837
|
+
"ar-AE": $02cb4c75c506befe$exports,
|
|
838
|
+
"bg-BG": $568b8163f1e56faf$exports,
|
|
839
|
+
"cs-CZ": $87581c0202d106b8$exports,
|
|
840
|
+
"da-DK": $a10a0369f5433ed1$exports,
|
|
841
|
+
"de-DE": $bfd288727d5cb166$exports,
|
|
842
|
+
"el-GR": $ca177778f9a74e3c$exports,
|
|
843
|
+
"en-US": $9b5aa79ef84beb6c$exports,
|
|
844
|
+
"es-ES": $57968e8209de2557$exports,
|
|
845
|
+
"et-EE": $60690790bf4c1c6a$exports,
|
|
846
|
+
"fi-FI": $1101246e8c7d9357$exports,
|
|
847
|
+
"fr-FR": $6404b5cb5b241730$exports,
|
|
848
|
+
"he-IL": $dfeafa702e92e31f$exports,
|
|
849
|
+
"hr-HR": $2d125e0b34676352$exports,
|
|
850
|
+
"hu-HU": $ea029611d7634059$exports,
|
|
851
|
+
"it-IT": $77f075bb86ad7091$exports,
|
|
852
|
+
"ja-JP": $6e87462e84907983$exports,
|
|
853
|
+
"ko-KR": $9246f2c6edc6b232$exports,
|
|
854
|
+
"lt-LT": $e587accc6c0a434c$exports,
|
|
855
|
+
"lv-LV": $03a1900e7400b5ab$exports,
|
|
856
|
+
"nb-NO": $1387676441be6cf6$exports,
|
|
857
|
+
"nl-NL": $17e82ebf0f8ab91f$exports,
|
|
858
|
+
"pl-PL": $2f5377d3471630e5$exports,
|
|
859
|
+
"pt-BR": $dee9868b6fa95ffe$exports,
|
|
860
|
+
"pt-PT": $f8b2e63637cbb5a6$exports,
|
|
861
|
+
"ro-RO": $46a885db3b44ea95$exports,
|
|
862
|
+
"ru-RU": $50d8a8f0afa9dee5$exports,
|
|
863
|
+
"sk-SK": $2867ee6173245507$exports,
|
|
864
|
+
"sl-SI": $0631b65beeb09b50$exports,
|
|
865
|
+
"sr-SP": $65fc749265dcd686$exports,
|
|
866
|
+
"sv-SE": $69ba655c7853c08e$exports,
|
|
867
|
+
"tr-TR": $a79794784d61577c$exports,
|
|
868
|
+
"uk-UA": $c2845791417ebaf4$exports,
|
|
869
|
+
"zh-CN": $29b642d0025cc7a4$exports,
|
|
870
|
+
"zh-TW": $cd36dd33f9d46936$exports
|
|
871
|
+
};
|
|
872
|
+
//#endregion
|
|
873
|
+
//#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/useComboBox.mjs
|
|
874
|
+
function $parcel$interopDefault(a) {
|
|
875
|
+
return a && a.__esModule ? a.default : a;
|
|
876
|
+
}
|
|
877
|
+
function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
878
|
+
let { buttonRef, popoverRef, inputRef, listBoxRef, keyboardDelegate, layoutDelegate, shouldFocusWrap, isReadOnly, isDisabled } = props;
|
|
879
|
+
let backupBtnRef = useRef(null);
|
|
880
|
+
buttonRef = buttonRef !== null && buttonRef !== void 0 ? buttonRef : backupBtnRef;
|
|
881
|
+
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($de5926a92e8ebc5b$exports), "@react-aria/combobox");
|
|
882
|
+
let { menuTriggerProps, menuProps } = $168583247155ddda$export$dc9c12ed27dd1b49({
|
|
883
|
+
type: "listbox",
|
|
884
|
+
isDisabled: isDisabled || isReadOnly
|
|
885
|
+
}, state, buttonRef);
|
|
886
|
+
$b1f0cad8af73213b$export$3585ede4d035bf14.set(state, { id: menuProps.id });
|
|
887
|
+
let { collection } = state;
|
|
888
|
+
let { disabledKeys } = state.selectionManager;
|
|
889
|
+
let delegate = useMemo(() => keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
890
|
+
collection,
|
|
891
|
+
disabledKeys,
|
|
892
|
+
ref: listBoxRef,
|
|
893
|
+
layoutDelegate
|
|
894
|
+
}), [
|
|
895
|
+
keyboardDelegate,
|
|
896
|
+
layoutDelegate,
|
|
897
|
+
collection,
|
|
898
|
+
disabledKeys,
|
|
899
|
+
listBoxRef
|
|
900
|
+
]);
|
|
901
|
+
let { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
|
|
902
|
+
selectionManager: state.selectionManager,
|
|
903
|
+
keyboardDelegate: delegate,
|
|
904
|
+
disallowTypeAhead: true,
|
|
905
|
+
disallowEmptySelection: true,
|
|
906
|
+
shouldFocusWrap,
|
|
907
|
+
ref: inputRef,
|
|
908
|
+
isVirtualized: true
|
|
909
|
+
});
|
|
910
|
+
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
911
|
+
let onKeyDown = (e) => {
|
|
912
|
+
if (e.nativeEvent.isComposing) return;
|
|
913
|
+
switch (e.key) {
|
|
914
|
+
case "Enter":
|
|
915
|
+
case "Tab":
|
|
916
|
+
if (state.isOpen && e.key === "Enter") e.preventDefault();
|
|
917
|
+
if (state.isOpen && listBoxRef.current && state.selectionManager.focusedKey != null) {
|
|
918
|
+
let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);
|
|
919
|
+
if (collectionItem === null || collectionItem === void 0 ? void 0 : collectionItem.props.href) {
|
|
920
|
+
let item = listBoxRef.current.querySelector(`[data-key="${CSS.escape(state.selectionManager.focusedKey.toString())}"]`);
|
|
921
|
+
if (e.key === "Enter" && item instanceof HTMLAnchorElement) router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);
|
|
922
|
+
state.close();
|
|
923
|
+
break;
|
|
924
|
+
} else if (collectionItem === null || collectionItem === void 0 ? void 0 : collectionItem.props.onAction) {
|
|
925
|
+
collectionItem.props.onAction();
|
|
926
|
+
state.close();
|
|
927
|
+
break;
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
state.commit();
|
|
931
|
+
break;
|
|
932
|
+
case "Escape":
|
|
933
|
+
if (state.selectedKey !== null || state.inputValue === "" || props.allowsCustomValue) e.continuePropagation();
|
|
934
|
+
state.revert();
|
|
935
|
+
break;
|
|
936
|
+
case "ArrowDown":
|
|
937
|
+
state.open("first", "manual");
|
|
938
|
+
break;
|
|
939
|
+
case "ArrowUp":
|
|
940
|
+
state.open("last", "manual");
|
|
941
|
+
break;
|
|
942
|
+
case "ArrowLeft":
|
|
943
|
+
case "ArrowRight": state.selectionManager.setFocusedKey(null);
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
let onBlur = (e) => {
|
|
947
|
+
let blurFromButton = (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) && buttonRef.current === e.relatedTarget;
|
|
948
|
+
let blurIntoPopover = $d4ee10de306f2510$export$4282f70798064fe0(popoverRef.current, e.relatedTarget);
|
|
949
|
+
if (blurFromButton || blurIntoPopover) return;
|
|
950
|
+
if (props.onBlur) props.onBlur(e);
|
|
951
|
+
state.setFocused(false);
|
|
952
|
+
};
|
|
953
|
+
let onFocus = (e) => {
|
|
954
|
+
if (state.isFocused) return;
|
|
955
|
+
if (props.onFocus) props.onFocus(e);
|
|
956
|
+
state.setFocused(true);
|
|
957
|
+
};
|
|
958
|
+
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
959
|
+
let { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField({
|
|
960
|
+
...props,
|
|
961
|
+
onChange: state.setInputValue,
|
|
962
|
+
onKeyDown: !isReadOnly ? $ff5963eb1fccf552$export$e08e3b67e392101e(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown) : props.onKeyDown,
|
|
963
|
+
onBlur,
|
|
964
|
+
value: state.inputValue,
|
|
965
|
+
defaultValue: state.defaultInputValue,
|
|
966
|
+
onFocus,
|
|
967
|
+
autoComplete: "off",
|
|
968
|
+
validate: void 0,
|
|
969
|
+
[$e5be200c675c3b3a$export$a763b9476acd3eb]: state
|
|
970
|
+
}, inputRef);
|
|
971
|
+
$99facab73266f662$export$5add1d006293d136(inputRef, state.defaultSelectedKey, state.setSelectedKey);
|
|
972
|
+
let onPress = (e) => {
|
|
973
|
+
if (e.pointerType === "touch") {
|
|
974
|
+
var _inputRef_current;
|
|
975
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 || _inputRef_current.focus();
|
|
976
|
+
state.toggle(null, "manual");
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
let onPressStart = (e) => {
|
|
980
|
+
if (e.pointerType !== "touch") {
|
|
981
|
+
var _inputRef_current;
|
|
982
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 || _inputRef_current.focus();
|
|
983
|
+
state.toggle(e.pointerType === "keyboard" || e.pointerType === "virtual" ? "first" : null, "manual");
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
let triggerLabelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
987
|
+
id: menuTriggerProps.id,
|
|
988
|
+
"aria-label": stringFormatter.format("buttonLabel"),
|
|
989
|
+
"aria-labelledby": props["aria-labelledby"] || labelProps.id
|
|
990
|
+
});
|
|
991
|
+
let listBoxProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
992
|
+
id: menuProps.id,
|
|
993
|
+
"aria-label": stringFormatter.format("listboxLabel"),
|
|
994
|
+
"aria-labelledby": props["aria-labelledby"] || labelProps.id
|
|
995
|
+
});
|
|
996
|
+
let lastEventTime = useRef(0);
|
|
997
|
+
let onTouchEnd = (e) => {
|
|
998
|
+
if (isDisabled || isReadOnly) return;
|
|
999
|
+
if (e.timeStamp - lastEventTime.current < 500) {
|
|
1000
|
+
var _inputRef_current;
|
|
1001
|
+
e.preventDefault();
|
|
1002
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 || _inputRef_current.focus();
|
|
1003
|
+
return;
|
|
1004
|
+
}
|
|
1005
|
+
let rect = e.target.getBoundingClientRect();
|
|
1006
|
+
let touch = e.changedTouches[0];
|
|
1007
|
+
let centerX = Math.ceil(rect.left + .5 * rect.width);
|
|
1008
|
+
let centerY = Math.ceil(rect.top + .5 * rect.height);
|
|
1009
|
+
if (touch.clientX === centerX && touch.clientY === centerY) {
|
|
1010
|
+
var _inputRef_current1;
|
|
1011
|
+
e.preventDefault();
|
|
1012
|
+
(_inputRef_current1 = inputRef.current) === null || _inputRef_current1 === void 0 || _inputRef_current1.focus();
|
|
1013
|
+
state.toggle(null, "manual");
|
|
1014
|
+
lastEventTime.current = e.timeStamp;
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
let focusedItem = state.selectionManager.focusedKey != null && state.isOpen ? state.collection.getItem(state.selectionManager.focusedKey) : void 0;
|
|
1018
|
+
var _focusedItem_parentKey;
|
|
1019
|
+
let sectionKey = (_focusedItem_parentKey = focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) !== null && _focusedItem_parentKey !== void 0 ? _focusedItem_parentKey : null;
|
|
1020
|
+
var _state_selectionManager_focusedKey;
|
|
1021
|
+
let itemKey = (_state_selectionManager_focusedKey = state.selectionManager.focusedKey) !== null && _state_selectionManager_focusedKey !== void 0 ? _state_selectionManager_focusedKey : null;
|
|
1022
|
+
let lastSection = useRef(sectionKey);
|
|
1023
|
+
let lastItem = useRef(itemKey);
|
|
1024
|
+
useEffect(() => {
|
|
1025
|
+
if ($c87311424ea30a05$export$e1865c3bedcd822b() && focusedItem != null && itemKey != null && itemKey !== lastItem.current) {
|
|
1026
|
+
let isSelected = state.selectionManager.isSelected(itemKey);
|
|
1027
|
+
let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;
|
|
1028
|
+
let sectionTitle = (section === null || section === void 0 ? void 0 : section["aria-label"]) || (typeof (section === null || section === void 0 ? void 0 : section.rendered) === "string" ? section.rendered : "") || "";
|
|
1029
|
+
var _ref;
|
|
1030
|
+
let announcement = stringFormatter.format("focusAnnouncement", {
|
|
1031
|
+
isGroupChange: (_ref = section && sectionKey !== lastSection.current) !== null && _ref !== void 0 ? _ref : false,
|
|
1032
|
+
groupTitle: sectionTitle,
|
|
1033
|
+
groupCount: section ? [...$c5a24bc478652b5f$export$1005530eda016c13(section, state.collection)].length : 0,
|
|
1034
|
+
optionText: focusedItem["aria-label"] || focusedItem.textValue || "",
|
|
1035
|
+
isSelected
|
|
1036
|
+
});
|
|
1037
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(announcement);
|
|
1038
|
+
}
|
|
1039
|
+
lastSection.current = sectionKey;
|
|
1040
|
+
lastItem.current = itemKey;
|
|
1041
|
+
});
|
|
1042
|
+
let optionCount = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
|
|
1043
|
+
let lastSize = useRef(optionCount);
|
|
1044
|
+
let lastOpen = useRef(state.isOpen);
|
|
1045
|
+
useEffect(() => {
|
|
1046
|
+
let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || $c87311424ea30a05$export$e1865c3bedcd822b());
|
|
1047
|
+
if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) {
|
|
1048
|
+
let announcement = stringFormatter.format("countAnnouncement", { optionCount });
|
|
1049
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(announcement);
|
|
1050
|
+
}
|
|
1051
|
+
lastSize.current = optionCount;
|
|
1052
|
+
lastOpen.current = state.isOpen;
|
|
1053
|
+
});
|
|
1054
|
+
let lastSelectedKey = useRef(state.selectedKey);
|
|
1055
|
+
useEffect(() => {
|
|
1056
|
+
if ($c87311424ea30a05$export$e1865c3bedcd822b() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {
|
|
1057
|
+
let optionText = state.selectedItem["aria-label"] || state.selectedItem.textValue || "";
|
|
1058
|
+
let announcement = stringFormatter.format("selectedAnnouncement", { optionText });
|
|
1059
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(announcement);
|
|
1060
|
+
}
|
|
1061
|
+
lastSelectedKey.current = state.selectedKey;
|
|
1062
|
+
});
|
|
1063
|
+
useEffect(() => {
|
|
1064
|
+
if (state.isOpen) return $5e3802645cc19319$export$1c3ebcada18427bf([inputRef.current, popoverRef.current].filter((element) => element != null));
|
|
1065
|
+
}, [
|
|
1066
|
+
state.isOpen,
|
|
1067
|
+
inputRef,
|
|
1068
|
+
popoverRef
|
|
1069
|
+
]);
|
|
1070
|
+
$4f58c5f72bcf79f7$export$496315a1608d9602(() => {
|
|
1071
|
+
if (!focusedItem && inputRef.current && $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(inputRef.current)) === inputRef.current) $55f9b1ae81f22853$export$2b35b76d2e30e129(inputRef.current, null);
|
|
1072
|
+
}, [focusedItem]);
|
|
1073
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(listBoxRef, "react-aria-item-action", state.isOpen ? () => {
|
|
1074
|
+
state.close();
|
|
1075
|
+
} : void 0);
|
|
1076
|
+
return {
|
|
1077
|
+
labelProps,
|
|
1078
|
+
buttonProps: {
|
|
1079
|
+
...menuTriggerProps,
|
|
1080
|
+
...triggerLabelProps,
|
|
1081
|
+
excludeFromTabOrder: true,
|
|
1082
|
+
preventFocusOnPress: true,
|
|
1083
|
+
onPress,
|
|
1084
|
+
onPressStart,
|
|
1085
|
+
isDisabled: isDisabled || isReadOnly
|
|
1086
|
+
},
|
|
1087
|
+
inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(inputProps, {
|
|
1088
|
+
role: "combobox",
|
|
1089
|
+
"aria-expanded": menuTriggerProps["aria-expanded"],
|
|
1090
|
+
"aria-controls": state.isOpen ? menuProps.id : void 0,
|
|
1091
|
+
"aria-autocomplete": "list",
|
|
1092
|
+
"aria-activedescendant": focusedItem ? $b1f0cad8af73213b$export$9145995848b05025(state, focusedItem.key) : void 0,
|
|
1093
|
+
onTouchEnd,
|
|
1094
|
+
autoCorrect: "off",
|
|
1095
|
+
spellCheck: "false"
|
|
1096
|
+
}),
|
|
1097
|
+
listBoxProps: $3ef42575df84b30b$export$9d1611c77c2fe928(menuProps, listBoxProps, {
|
|
1098
|
+
autoFocus: state.focusStrategy || true,
|
|
1099
|
+
shouldUseVirtualFocus: true,
|
|
1100
|
+
shouldSelectOnPressUp: true,
|
|
1101
|
+
shouldFocusOnHover: true,
|
|
1102
|
+
linkBehavior: "selection",
|
|
1103
|
+
["UNSTABLE_itemBehavior"]: "action"
|
|
1104
|
+
}),
|
|
1105
|
+
descriptionProps,
|
|
1106
|
+
errorMessageProps,
|
|
1107
|
+
isInvalid,
|
|
1108
|
+
validationErrors,
|
|
1109
|
+
validationDetails
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
//#endregion
|
|
1113
|
+
//#region ../../node_modules/.bun/@react-stately+list@3.13.3+83d5fd7b249dbeef/node_modules/@react-stately/list/dist/useSingleSelectListState.mjs
|
|
1114
|
+
function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
1115
|
+
var _props_defaultSelectedKey;
|
|
1116
|
+
let [selectedKey, setSelectedKey] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange);
|
|
1117
|
+
let selectedKeys = useMemo(() => selectedKey != null ? [selectedKey] : [], [selectedKey]);
|
|
1118
|
+
let { collection, disabledKeys, selectionManager } = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
1119
|
+
...props,
|
|
1120
|
+
selectionMode: "single",
|
|
1121
|
+
disallowEmptySelection: true,
|
|
1122
|
+
allowDuplicateSelectionEvents: true,
|
|
1123
|
+
selectedKeys,
|
|
1124
|
+
onSelectionChange: (keys) => {
|
|
1125
|
+
if (keys === "all") return;
|
|
1126
|
+
var _keys_values_next_value;
|
|
1127
|
+
let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
|
|
1128
|
+
if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);
|
|
1129
|
+
setSelectedKey(key);
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
return {
|
|
1133
|
+
collection,
|
|
1134
|
+
disabledKeys,
|
|
1135
|
+
selectionManager,
|
|
1136
|
+
selectedKey,
|
|
1137
|
+
setSelectedKey,
|
|
1138
|
+
selectedItem: selectedKey != null ? collection.getItem(selectedKey) : null
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
//#endregion
|
|
1142
|
+
//#region ../../node_modules/.bun/@react-stately+combobox@3.12.2+83d5fd7b249dbeef/node_modules/@react-stately/combobox/dist/useComboBoxState.mjs
|
|
1143
|
+
function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
1144
|
+
var _collection_getItem;
|
|
1145
|
+
let { defaultFilter, menuTrigger = "input", allowsEmptyCollection = false, allowsCustomValue, shouldCloseOnBlur = true } = props;
|
|
1146
|
+
let [showAllItems, setShowAllItems] = useState(false);
|
|
1147
|
+
let [isFocused, setFocusedState] = useState(false);
|
|
1148
|
+
let [focusStrategy, setFocusStrategy] = useState(null);
|
|
1149
|
+
let onSelectionChange = (key) => {
|
|
1150
|
+
if (props.onSelectionChange) props.onSelectionChange(key);
|
|
1151
|
+
if (key === selectedKey) {
|
|
1152
|
+
resetInputValue();
|
|
1153
|
+
closeMenu();
|
|
1154
|
+
}
|
|
1155
|
+
};
|
|
1156
|
+
var _props_items;
|
|
1157
|
+
let { collection, selectionManager, selectedKey, setSelectedKey, selectedItem, disabledKeys } = $a0d645289fe9b86b$export$e7f05e985daf4b5f({
|
|
1158
|
+
...props,
|
|
1159
|
+
onSelectionChange,
|
|
1160
|
+
items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems
|
|
1161
|
+
});
|
|
1162
|
+
let [inputValue, setInputValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.inputValue, $a9e7382a7d111cb5$var$getDefaultInputValue(props.defaultInputValue, selectedKey, collection) || "", props.onInputChange);
|
|
1163
|
+
let [initialSelectedKey] = useState(selectedKey);
|
|
1164
|
+
let [initialValue] = useState(inputValue);
|
|
1165
|
+
let originalCollection = collection;
|
|
1166
|
+
let filteredCollection = useMemo(() => props.items != null || !defaultFilter ? collection : $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, defaultFilter), [
|
|
1167
|
+
collection,
|
|
1168
|
+
inputValue,
|
|
1169
|
+
defaultFilter,
|
|
1170
|
+
props.items
|
|
1171
|
+
]);
|
|
1172
|
+
let [lastCollection, setLastCollection] = useState(filteredCollection);
|
|
1173
|
+
let menuOpenTrigger = useRef("focus");
|
|
1174
|
+
let onOpenChange = (open) => {
|
|
1175
|
+
if (props.onOpenChange) props.onOpenChange(open, open ? menuOpenTrigger.current : void 0);
|
|
1176
|
+
selectionManager.setFocused(open);
|
|
1177
|
+
if (!open) selectionManager.setFocusedKey(null);
|
|
1178
|
+
};
|
|
1179
|
+
let triggerState = $fc909762b330b746$export$61c6a8c84e605fb6({
|
|
1180
|
+
...props,
|
|
1181
|
+
onOpenChange,
|
|
1182
|
+
isOpen: void 0,
|
|
1183
|
+
defaultOpen: void 0
|
|
1184
|
+
});
|
|
1185
|
+
let open = (focusStrategy = null, trigger) => {
|
|
1186
|
+
let displayAllItems = trigger === "manual" || trigger === "focus" && menuTrigger === "focus";
|
|
1187
|
+
if (allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) {
|
|
1188
|
+
if (displayAllItems && !triggerState.isOpen && props.items === void 0) setShowAllItems(true);
|
|
1189
|
+
menuOpenTrigger.current = trigger;
|
|
1190
|
+
setFocusStrategy(focusStrategy);
|
|
1191
|
+
triggerState.open();
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
let toggle = (focusStrategy = null, trigger) => {
|
|
1195
|
+
let displayAllItems = trigger === "manual" || trigger === "focus" && menuTrigger === "focus";
|
|
1196
|
+
if (!(allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) && !triggerState.isOpen) return;
|
|
1197
|
+
if (displayAllItems && !triggerState.isOpen && props.items === void 0) setShowAllItems(true);
|
|
1198
|
+
if (!triggerState.isOpen) menuOpenTrigger.current = trigger;
|
|
1199
|
+
toggleMenu(focusStrategy);
|
|
1200
|
+
};
|
|
1201
|
+
let updateLastCollection = useCallback(() => {
|
|
1202
|
+
setLastCollection(showAllItems ? originalCollection : filteredCollection);
|
|
1203
|
+
}, [
|
|
1204
|
+
showAllItems,
|
|
1205
|
+
originalCollection,
|
|
1206
|
+
filteredCollection
|
|
1207
|
+
]);
|
|
1208
|
+
let toggleMenu = useCallback((focusStrategy = null) => {
|
|
1209
|
+
if (triggerState.isOpen) updateLastCollection();
|
|
1210
|
+
setFocusStrategy(focusStrategy);
|
|
1211
|
+
triggerState.toggle();
|
|
1212
|
+
}, [triggerState, updateLastCollection]);
|
|
1213
|
+
let closeMenu = useCallback(() => {
|
|
1214
|
+
if (triggerState.isOpen) {
|
|
1215
|
+
updateLastCollection();
|
|
1216
|
+
triggerState.close();
|
|
1217
|
+
}
|
|
1218
|
+
}, [triggerState, updateLastCollection]);
|
|
1219
|
+
let [lastValue, setLastValue] = useState(inputValue);
|
|
1220
|
+
let resetInputValue = () => {
|
|
1221
|
+
var _collection_getItem;
|
|
1222
|
+
var _collection_getItem_textValue;
|
|
1223
|
+
let itemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
|
|
1224
|
+
setLastValue(itemText);
|
|
1225
|
+
setInputValue(itemText);
|
|
1226
|
+
};
|
|
1227
|
+
var _props_selectedKey, _ref;
|
|
1228
|
+
let lastSelectedKey = useRef((_ref = (_props_selectedKey = props.selectedKey) !== null && _props_selectedKey !== void 0 ? _props_selectedKey : props.defaultSelectedKey) !== null && _ref !== void 0 ? _ref : null);
|
|
1229
|
+
var _collection_getItem_textValue;
|
|
1230
|
+
let lastSelectedKeyText = useRef(selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "");
|
|
1231
|
+
useEffect(() => {
|
|
1232
|
+
var _collection_getItem;
|
|
1233
|
+
if (isFocused && (filteredCollection.size > 0 || allowsEmptyCollection) && !triggerState.isOpen && inputValue !== lastValue && menuTrigger !== "manual") open(null, "input");
|
|
1234
|
+
if (!showAllItems && !allowsEmptyCollection && triggerState.isOpen && filteredCollection.size === 0) closeMenu();
|
|
1235
|
+
if (selectedKey != null && selectedKey !== lastSelectedKey.current) closeMenu();
|
|
1236
|
+
if (inputValue !== lastValue) {
|
|
1237
|
+
selectionManager.setFocusedKey(null);
|
|
1238
|
+
setShowAllItems(false);
|
|
1239
|
+
if (inputValue === "" && (props.inputValue === void 0 || props.selectedKey === void 0)) setSelectedKey(null);
|
|
1240
|
+
}
|
|
1241
|
+
if (selectedKey !== lastSelectedKey.current && (props.inputValue === void 0 || props.selectedKey === void 0)) resetInputValue();
|
|
1242
|
+
else if (lastValue !== inputValue) setLastValue(inputValue);
|
|
1243
|
+
var _collection_getItem_textValue;
|
|
1244
|
+
let selectedItemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
|
|
1245
|
+
if (!isFocused && selectedKey != null && props.inputValue === void 0 && selectedKey === lastSelectedKey.current) {
|
|
1246
|
+
if (lastSelectedKeyText.current !== selectedItemText) {
|
|
1247
|
+
setLastValue(selectedItemText);
|
|
1248
|
+
setInputValue(selectedItemText);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
lastSelectedKey.current = selectedKey;
|
|
1252
|
+
lastSelectedKeyText.current = selectedItemText;
|
|
1253
|
+
});
|
|
1254
|
+
let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
1255
|
+
...props,
|
|
1256
|
+
value: useMemo(() => ({
|
|
1257
|
+
inputValue,
|
|
1258
|
+
selectedKey
|
|
1259
|
+
}), [inputValue, selectedKey])
|
|
1260
|
+
});
|
|
1261
|
+
let revert = () => {
|
|
1262
|
+
if (allowsCustomValue && selectedKey == null) commitCustomValue();
|
|
1263
|
+
else commitSelection();
|
|
1264
|
+
};
|
|
1265
|
+
let commitCustomValue = () => {
|
|
1266
|
+
lastSelectedKey.current = null;
|
|
1267
|
+
setSelectedKey(null);
|
|
1268
|
+
closeMenu();
|
|
1269
|
+
};
|
|
1270
|
+
let commitSelection = () => {
|
|
1271
|
+
if (props.selectedKey !== void 0 && props.inputValue !== void 0) {
|
|
1272
|
+
var _props_onSelectionChange, _collection_getItem;
|
|
1273
|
+
(_props_onSelectionChange = props.onSelectionChange) === null || _props_onSelectionChange === void 0 || _props_onSelectionChange.call(props, selectedKey);
|
|
1274
|
+
var _collection_getItem_textValue;
|
|
1275
|
+
let itemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
|
|
1276
|
+
setLastValue(itemText);
|
|
1277
|
+
closeMenu();
|
|
1278
|
+
} else {
|
|
1279
|
+
resetInputValue();
|
|
1280
|
+
closeMenu();
|
|
1281
|
+
}
|
|
1282
|
+
};
|
|
1283
|
+
const commitValue = () => {
|
|
1284
|
+
if (allowsCustomValue) {
|
|
1285
|
+
var _collection_getItem;
|
|
1286
|
+
var _collection_getItem_textValue;
|
|
1287
|
+
const itemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
|
|
1288
|
+
inputValue === itemText ? commitSelection() : commitCustomValue();
|
|
1289
|
+
} else commitSelection();
|
|
1290
|
+
};
|
|
1291
|
+
let commit = () => {
|
|
1292
|
+
if (triggerState.isOpen && selectionManager.focusedKey != null) if (selectedKey === selectionManager.focusedKey) commitSelection();
|
|
1293
|
+
else setSelectedKey(selectionManager.focusedKey);
|
|
1294
|
+
else commitValue();
|
|
1295
|
+
};
|
|
1296
|
+
let valueOnFocus = useRef(inputValue);
|
|
1297
|
+
let setFocused = (isFocused) => {
|
|
1298
|
+
if (isFocused) {
|
|
1299
|
+
valueOnFocus.current = inputValue;
|
|
1300
|
+
if (menuTrigger === "focus" && !props.isReadOnly) open(null, "focus");
|
|
1301
|
+
} else {
|
|
1302
|
+
if (shouldCloseOnBlur) commitValue();
|
|
1303
|
+
if (inputValue !== valueOnFocus.current) validation.commitValidation();
|
|
1304
|
+
}
|
|
1305
|
+
setFocusedState(isFocused);
|
|
1306
|
+
};
|
|
1307
|
+
let displayedCollection = useMemo(() => {
|
|
1308
|
+
if (triggerState.isOpen) if (showAllItems) return originalCollection;
|
|
1309
|
+
else return filteredCollection;
|
|
1310
|
+
else return lastCollection;
|
|
1311
|
+
}, [
|
|
1312
|
+
triggerState.isOpen,
|
|
1313
|
+
originalCollection,
|
|
1314
|
+
filteredCollection,
|
|
1315
|
+
showAllItems,
|
|
1316
|
+
lastCollection
|
|
1317
|
+
]);
|
|
1318
|
+
var _props_defaultSelectedKey;
|
|
1319
|
+
let defaultSelectedKey = (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : initialSelectedKey;
|
|
1320
|
+
var _getDefaultInputValue;
|
|
1321
|
+
return {
|
|
1322
|
+
...validation,
|
|
1323
|
+
...triggerState,
|
|
1324
|
+
focusStrategy,
|
|
1325
|
+
toggle,
|
|
1326
|
+
open,
|
|
1327
|
+
close: commitValue,
|
|
1328
|
+
selectionManager,
|
|
1329
|
+
selectedKey,
|
|
1330
|
+
defaultSelectedKey,
|
|
1331
|
+
setSelectedKey,
|
|
1332
|
+
disabledKeys,
|
|
1333
|
+
isFocused,
|
|
1334
|
+
setFocused,
|
|
1335
|
+
selectedItem,
|
|
1336
|
+
collection: displayedCollection,
|
|
1337
|
+
inputValue,
|
|
1338
|
+
defaultInputValue: (_getDefaultInputValue = $a9e7382a7d111cb5$var$getDefaultInputValue(props.defaultInputValue, defaultSelectedKey, collection)) !== null && _getDefaultInputValue !== void 0 ? _getDefaultInputValue : initialValue,
|
|
1339
|
+
setInputValue,
|
|
1340
|
+
commit,
|
|
1341
|
+
revert
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
function $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, filter) {
|
|
1345
|
+
return new $a02d57049d202695$export$d085fb9e920b5ca7($a9e7382a7d111cb5$var$filterNodes(collection, collection, inputValue, filter));
|
|
1346
|
+
}
|
|
1347
|
+
function $a9e7382a7d111cb5$var$filterNodes(collection, nodes, inputValue, filter) {
|
|
1348
|
+
let filteredNode = [];
|
|
1349
|
+
for (let node of nodes) if (node.type === "section" && node.hasChildNodes) {
|
|
1350
|
+
let filtered = $a9e7382a7d111cb5$var$filterNodes(collection, $c5a24bc478652b5f$export$1005530eda016c13(node, collection), inputValue, filter);
|
|
1351
|
+
if ([...filtered].some((node) => node.type === "item")) filteredNode.push({
|
|
1352
|
+
...node,
|
|
1353
|
+
childNodes: filtered
|
|
1354
|
+
});
|
|
1355
|
+
} else if (node.type === "item" && filter(node.textValue, inputValue)) filteredNode.push({ ...node });
|
|
1356
|
+
else if (node.type !== "item") filteredNode.push({ ...node });
|
|
1357
|
+
return filteredNode;
|
|
1358
|
+
}
|
|
1359
|
+
function $a9e7382a7d111cb5$var$getDefaultInputValue(defaultInputValue, selectedKey, collection) {
|
|
1360
|
+
if (defaultInputValue == null) {
|
|
1361
|
+
var _collection_getItem;
|
|
1362
|
+
var _collection_getItem_textValue;
|
|
1363
|
+
if (selectedKey != null) return (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "";
|
|
1364
|
+
}
|
|
1365
|
+
return defaultInputValue;
|
|
1366
|
+
}
|
|
1367
|
+
//#endregion
|
|
1368
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Group.mjs
|
|
1369
|
+
const $a049562f99e7db0e$export$f9c6924e160136d1 = /*#__PURE__*/ createContext({});
|
|
1370
|
+
//#endregion
|
|
1371
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/ComboBox.mjs
|
|
1372
|
+
const $d01f2c01039c0eec$export$d414ccceff7063c3 = /*#__PURE__*/ createContext(null);
|
|
1373
|
+
const $d01f2c01039c0eec$export$c02625b26074192c = /*#__PURE__*/ createContext(null);
|
|
1374
|
+
const $d01f2c01039c0eec$export$72b9695b8216309a = /*#__PURE__*/ forwardRef(function ComboBox(props, ref) {
|
|
1375
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d01f2c01039c0eec$export$d414ccceff7063c3);
|
|
1376
|
+
let { children, isDisabled = false, isInvalid = false, isRequired = false } = props;
|
|
1377
|
+
let content = useMemo(() => {
|
|
1378
|
+
var _props_items;
|
|
1379
|
+
return /*#__PURE__*/ $HgANd$react.createElement($eed445e0843c11d0$export$7ff8f37d2d81a48d.Provider, { value: { items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems } }, typeof children === "function" ? children({
|
|
1380
|
+
isOpen: false,
|
|
1381
|
+
isDisabled,
|
|
1382
|
+
isInvalid,
|
|
1383
|
+
isRequired,
|
|
1384
|
+
defaultChildren: null
|
|
1385
|
+
}) : children);
|
|
1386
|
+
}, [
|
|
1387
|
+
children,
|
|
1388
|
+
isDisabled,
|
|
1389
|
+
isInvalid,
|
|
1390
|
+
isRequired,
|
|
1391
|
+
props.items,
|
|
1392
|
+
props.defaultItems
|
|
1393
|
+
]);
|
|
1394
|
+
return /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$export$bf788dd355e3a401, { content }, (collection) => /*#__PURE__*/ $HgANd$react.createElement($d01f2c01039c0eec$var$ComboBoxInner, {
|
|
1395
|
+
props,
|
|
1396
|
+
collection,
|
|
1397
|
+
comboBoxRef: ref
|
|
1398
|
+
}));
|
|
1399
|
+
});
|
|
1400
|
+
const $d01f2c01039c0eec$var$CLEAR_CONTEXTS = [
|
|
1401
|
+
$01b77f81d0f07f68$export$75b6ee27786ba447,
|
|
1402
|
+
$d2b4bc8c273e7be6$export$24d547caef80ccd1,
|
|
1403
|
+
$3985021b0ad6602f$export$37fb8590cf2c088c,
|
|
1404
|
+
$a049562f99e7db0e$export$f9c6924e160136d1,
|
|
1405
|
+
$514c0188e459b4c0$export$9afb8bc826b033ea
|
|
1406
|
+
];
|
|
1407
|
+
function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: ref }) {
|
|
1408
|
+
let { name, formValue = "key", allowsCustomValue } = props;
|
|
1409
|
+
if (allowsCustomValue) formValue = "text";
|
|
1410
|
+
let { validationBehavior: formValidationBehavior } = $64fa3d84918910a7$export$fabf2dc03a41866e($d3e0e05bdfcf66bd$export$c24727297075ec6a) || {};
|
|
1411
|
+
var _props_validationBehavior, _ref;
|
|
1412
|
+
let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : "native";
|
|
1413
|
+
let { contains } = $bb77f239b46e8c72$export$3274cf84b703fff({ sensitivity: "base" });
|
|
1414
|
+
let state = $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({
|
|
1415
|
+
...props,
|
|
1416
|
+
defaultFilter: props.defaultFilter || contains,
|
|
1417
|
+
items: props.items,
|
|
1418
|
+
children: void 0,
|
|
1419
|
+
collection,
|
|
1420
|
+
validationBehavior
|
|
1421
|
+
});
|
|
1422
|
+
let buttonRef = useRef(null);
|
|
1423
|
+
let inputRef = useRef(null);
|
|
1424
|
+
let listBoxRef = useRef(null);
|
|
1425
|
+
let popoverRef = useRef(null);
|
|
1426
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1427
|
+
let { buttonProps, inputProps, listBoxProps, labelProps, descriptionProps, errorMessageProps, ...validation } = $c350ade66beef0af$export$8c18d1b4f7232bbf({
|
|
1428
|
+
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
1429
|
+
label,
|
|
1430
|
+
inputRef,
|
|
1431
|
+
buttonRef,
|
|
1432
|
+
listBoxRef,
|
|
1433
|
+
popoverRef,
|
|
1434
|
+
name: formValue === "text" ? name : void 0,
|
|
1435
|
+
validationBehavior
|
|
1436
|
+
}, state);
|
|
1437
|
+
let [menuWidth, setMenuWidth] = useState(null);
|
|
1438
|
+
let onResize = useCallback(() => {
|
|
1439
|
+
if (inputRef.current) {
|
|
1440
|
+
var _buttonRef_current;
|
|
1441
|
+
let buttonRect = (_buttonRef_current = buttonRef.current) === null || _buttonRef_current === void 0 ? void 0 : _buttonRef_current.getBoundingClientRect();
|
|
1442
|
+
let inputRect = inputRef.current.getBoundingClientRect();
|
|
1443
|
+
let minX = buttonRect ? Math.min(buttonRect.left, inputRect.left) : inputRect.left;
|
|
1444
|
+
let maxX = buttonRect ? Math.max(buttonRect.right, inputRect.right) : inputRect.right;
|
|
1445
|
+
setMenuWidth(maxX - minX + "px");
|
|
1446
|
+
}
|
|
1447
|
+
}, [
|
|
1448
|
+
buttonRef,
|
|
1449
|
+
inputRef,
|
|
1450
|
+
setMenuWidth
|
|
1451
|
+
]);
|
|
1452
|
+
$9daab02d461809db$export$683480f191c0e3ea({
|
|
1453
|
+
ref: inputRef,
|
|
1454
|
+
onResize
|
|
1455
|
+
});
|
|
1456
|
+
let renderPropsState = useMemo(() => ({
|
|
1457
|
+
isOpen: state.isOpen,
|
|
1458
|
+
isDisabled: props.isDisabled || false,
|
|
1459
|
+
isInvalid: validation.isInvalid || false,
|
|
1460
|
+
isRequired: props.isRequired || false
|
|
1461
|
+
}), [
|
|
1462
|
+
state.isOpen,
|
|
1463
|
+
props.isDisabled,
|
|
1464
|
+
validation.isInvalid,
|
|
1465
|
+
props.isRequired
|
|
1466
|
+
]);
|
|
1467
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1468
|
+
...props,
|
|
1469
|
+
values: renderPropsState,
|
|
1470
|
+
defaultClassName: "react-aria-ComboBox"
|
|
1471
|
+
});
|
|
1472
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
1473
|
+
delete DOMProps.id;
|
|
1474
|
+
var _state_selectedKey;
|
|
1475
|
+
return /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
1476
|
+
[$d01f2c01039c0eec$export$c02625b26074192c, state],
|
|
1477
|
+
[$01b77f81d0f07f68$export$75b6ee27786ba447, {
|
|
1478
|
+
...labelProps,
|
|
1479
|
+
ref: labelRef
|
|
1480
|
+
}],
|
|
1481
|
+
[$d2b4bc8c273e7be6$export$24d547caef80ccd1, {
|
|
1482
|
+
...buttonProps,
|
|
1483
|
+
ref: buttonRef,
|
|
1484
|
+
isPressed: state.isOpen
|
|
1485
|
+
}],
|
|
1486
|
+
[$3985021b0ad6602f$export$37fb8590cf2c088c, {
|
|
1487
|
+
...inputProps,
|
|
1488
|
+
ref: inputRef
|
|
1489
|
+
}],
|
|
1490
|
+
[$de32f1b87079253c$export$d2f961adcb0afbe, state],
|
|
1491
|
+
[$07b14b47974efb58$export$9b9a0cd73afb7ca4, {
|
|
1492
|
+
ref: popoverRef,
|
|
1493
|
+
triggerRef: inputRef,
|
|
1494
|
+
scrollRef: listBoxRef,
|
|
1495
|
+
placement: "bottom start",
|
|
1496
|
+
isNonModal: true,
|
|
1497
|
+
trigger: "ComboBox",
|
|
1498
|
+
style: { "--trigger-width": menuWidth },
|
|
1499
|
+
clearContexts: $d01f2c01039c0eec$var$CLEAR_CONTEXTS
|
|
1500
|
+
}],
|
|
1501
|
+
[$eed445e0843c11d0$export$7ff8f37d2d81a48d, {
|
|
1502
|
+
...listBoxProps,
|
|
1503
|
+
ref: listBoxRef
|
|
1504
|
+
}],
|
|
1505
|
+
[$eed445e0843c11d0$export$7c5906fe4f1f2af2, state],
|
|
1506
|
+
[$514c0188e459b4c0$export$9afb8bc826b033ea, { slots: {
|
|
1507
|
+
description: descriptionProps,
|
|
1508
|
+
errorMessage: errorMessageProps
|
|
1509
|
+
} }],
|
|
1510
|
+
[$a049562f99e7db0e$export$f9c6924e160136d1, {
|
|
1511
|
+
isInvalid: validation.isInvalid,
|
|
1512
|
+
isDisabled: props.isDisabled || false
|
|
1513
|
+
}],
|
|
1514
|
+
[$ee014567cb39d3f0$export$ff05c3ac10437e03, validation]
|
|
1515
|
+
] }, /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
1516
|
+
...DOMProps,
|
|
1517
|
+
...renderProps,
|
|
1518
|
+
ref,
|
|
1519
|
+
slot: props.slot || void 0,
|
|
1520
|
+
"data-focused": state.isFocused || void 0,
|
|
1521
|
+
"data-open": state.isOpen || void 0,
|
|
1522
|
+
"data-disabled": props.isDisabled || void 0,
|
|
1523
|
+
"data-invalid": validation.isInvalid || void 0,
|
|
1524
|
+
"data-required": props.isRequired || void 0
|
|
1525
|
+
}), name && formValue === "key" && /*#__PURE__*/ $HgANd$react.createElement("input", {
|
|
1526
|
+
type: "hidden",
|
|
1527
|
+
name,
|
|
1528
|
+
form: props.form,
|
|
1529
|
+
value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ""
|
|
1530
|
+
}));
|
|
1531
|
+
}
|
|
1532
|
+
//#endregion
|
|
1533
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Layout.mjs
|
|
1534
|
+
var $c74cda7d31af1253$export$c84671f46d6a1ca = class {
|
|
1535
|
+
/**
|
|
1536
|
+
* Returns whether the layout should invalidate in response to
|
|
1537
|
+
* visible rectangle changes. By default, it only invalidates
|
|
1538
|
+
* when the virtualizer's size changes. Return true always
|
|
1539
|
+
* to make the layout invalidate while scrolling (e.g. sticky headers).
|
|
1540
|
+
*/ shouldInvalidate(newRect, oldRect) {
|
|
1541
|
+
return newRect.width !== oldRect.width || newRect.height !== oldRect.height;
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Returns whether the layout should invalidate when the layout options change.
|
|
1545
|
+
* By default it invalidates when the object identity changes. Override this
|
|
1546
|
+
* method to optimize layout updates based on specific option changes.
|
|
1547
|
+
*/ shouldInvalidateLayoutOptions(newOptions, oldOptions) {
|
|
1548
|
+
return newOptions !== oldOptions;
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* This method allows the layout to perform any pre-computation
|
|
1552
|
+
* it needs to in order to prepare LayoutInfos for retrieval.
|
|
1553
|
+
* Called by the virtualizer before `getVisibleLayoutInfos`
|
|
1554
|
+
* or `getLayoutInfo` are called.
|
|
1555
|
+
*/ update(invalidationContext) {}
|
|
1556
|
+
/** @private */ getItemRect(key) {
|
|
1557
|
+
var _this_getLayoutInfo;
|
|
1558
|
+
var _this_getLayoutInfo_rect;
|
|
1559
|
+
return (_this_getLayoutInfo_rect = (_this_getLayoutInfo = this.getLayoutInfo(key)) === null || _this_getLayoutInfo === void 0 ? void 0 : _this_getLayoutInfo.rect) !== null && _this_getLayoutInfo_rect !== void 0 ? _this_getLayoutInfo_rect : null;
|
|
1560
|
+
}
|
|
1561
|
+
/** @private */ getVisibleRect() {
|
|
1562
|
+
return this.virtualizer.visibleRect;
|
|
1563
|
+
}
|
|
1564
|
+
constructor() {
|
|
1565
|
+
/** The Virtualizer the layout is currently attached to. */ this.virtualizer = null;
|
|
1566
|
+
}
|
|
1567
|
+
};
|
|
1568
|
+
//#endregion
|
|
1569
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/LayoutInfo.mjs
|
|
1570
|
+
var $d7fd61009c21d0bb$export$7e0eeb9da702a085 = class $d7fd61009c21d0bb$export$7e0eeb9da702a085 {
|
|
1571
|
+
/**
|
|
1572
|
+
* Returns a copy of the LayoutInfo.
|
|
1573
|
+
*/ copy() {
|
|
1574
|
+
let res = new $d7fd61009c21d0bb$export$7e0eeb9da702a085(this.type, this.key, this.rect.copy());
|
|
1575
|
+
res.estimatedSize = this.estimatedSize;
|
|
1576
|
+
res.opacity = this.opacity;
|
|
1577
|
+
res.transform = this.transform;
|
|
1578
|
+
res.parentKey = this.parentKey;
|
|
1579
|
+
res.content = this.content;
|
|
1580
|
+
res.isSticky = this.isSticky;
|
|
1581
|
+
res.zIndex = this.zIndex;
|
|
1582
|
+
res.allowOverflow = this.allowOverflow;
|
|
1583
|
+
return res;
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* @param type The type of element represented by this LayoutInfo. Should match the `type` of the corresponding collection node.
|
|
1587
|
+
* @param key A unique key for this LayoutInfo. Should match the `key` of the corresponding collection node.
|
|
1588
|
+
* @param rect The rectangle describing the size and position of this element.
|
|
1589
|
+
*/ constructor(type, key, rect) {
|
|
1590
|
+
this.type = type;
|
|
1591
|
+
this.key = key;
|
|
1592
|
+
this.parentKey = null;
|
|
1593
|
+
this.content = null;
|
|
1594
|
+
this.rect = rect;
|
|
1595
|
+
this.estimatedSize = false;
|
|
1596
|
+
this.isSticky = false;
|
|
1597
|
+
this.opacity = 1;
|
|
1598
|
+
this.transform = null;
|
|
1599
|
+
this.zIndex = 0;
|
|
1600
|
+
this.allowOverflow = false;
|
|
1601
|
+
}
|
|
1602
|
+
};
|
|
1603
|
+
//#endregion
|
|
1604
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Point.mjs
|
|
1605
|
+
var $3041db3296945e6e$export$baf26146a414f24a = class $3041db3296945e6e$export$baf26146a414f24a {
|
|
1606
|
+
/**
|
|
1607
|
+
* Returns a copy of this point.
|
|
1608
|
+
*/ copy() {
|
|
1609
|
+
return new $3041db3296945e6e$export$baf26146a414f24a(this.x, this.y);
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Checks if two points are equal.
|
|
1613
|
+
*/ equals(point) {
|
|
1614
|
+
return this.x === point.x && this.y === point.y;
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* Returns true if this point is the origin.
|
|
1618
|
+
*/ isOrigin() {
|
|
1619
|
+
return this.x === 0 && this.y === 0;
|
|
1620
|
+
}
|
|
1621
|
+
constructor(x = 0, y = 0) {
|
|
1622
|
+
this.x = x;
|
|
1623
|
+
this.y = y;
|
|
1624
|
+
}
|
|
1625
|
+
};
|
|
1626
|
+
//#endregion
|
|
1627
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Rect.mjs
|
|
1628
|
+
var $60423f92c7f9ad87$export$c79fc6492f3af13d = class $60423f92c7f9ad87$export$c79fc6492f3af13d {
|
|
1629
|
+
/**
|
|
1630
|
+
* The maximum x-coordinate in the rectangle.
|
|
1631
|
+
*/ get maxX() {
|
|
1632
|
+
return this.x + this.width;
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* The maximum y-coordinate in the rectangle.
|
|
1636
|
+
*/ get maxY() {
|
|
1637
|
+
return this.y + this.height;
|
|
1638
|
+
}
|
|
1639
|
+
/**
|
|
1640
|
+
* The area of the rectangle.
|
|
1641
|
+
*/ get area() {
|
|
1642
|
+
return this.width * this.height;
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* The top left corner of the rectangle.
|
|
1646
|
+
*/ get topLeft() {
|
|
1647
|
+
return new $3041db3296945e6e$export$baf26146a414f24a(this.x, this.y);
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* The top right corner of the rectangle.
|
|
1651
|
+
*/ get topRight() {
|
|
1652
|
+
return new $3041db3296945e6e$export$baf26146a414f24a(this.maxX, this.y);
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
* The bottom left corner of the rectangle.
|
|
1656
|
+
*/ get bottomLeft() {
|
|
1657
|
+
return new $3041db3296945e6e$export$baf26146a414f24a(this.x, this.maxY);
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* The bottom right corner of the rectangle.
|
|
1661
|
+
*/ get bottomRight() {
|
|
1662
|
+
return new $3041db3296945e6e$export$baf26146a414f24a(this.maxX, this.maxY);
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
* Returns whether this rectangle intersects another rectangle.
|
|
1666
|
+
* @param rect - The rectangle to check.
|
|
1667
|
+
*/ intersects(rect) {
|
|
1668
|
+
return this.area > 0 && rect.area > 0 && this.x <= rect.x + rect.width && rect.x <= this.x + this.width && this.y <= rect.y + rect.height && rect.y <= this.y + this.height;
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* Returns whether this rectangle fully contains another rectangle.
|
|
1672
|
+
* @param rect - The rectangle to check.
|
|
1673
|
+
*/ containsRect(rect) {
|
|
1674
|
+
return this.x <= rect.x && this.y <= rect.y && this.maxX >= rect.maxX && this.maxY >= rect.maxY;
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Returns whether the rectangle contains the given point.
|
|
1678
|
+
* @param point - The point to check.
|
|
1679
|
+
*/ containsPoint(point) {
|
|
1680
|
+
return this.x <= point.x && this.y <= point.y && this.maxX >= point.x && this.maxY >= point.y;
|
|
1681
|
+
}
|
|
1682
|
+
/**
|
|
1683
|
+
* Returns the first corner of this rectangle (from top to bottom, left to right)
|
|
1684
|
+
* that is contained in the given rectangle, or null of the rectangles do not intersect.
|
|
1685
|
+
* @param rect - The rectangle to check.
|
|
1686
|
+
*/ getCornerInRect(rect) {
|
|
1687
|
+
for (let key of [
|
|
1688
|
+
"topLeft",
|
|
1689
|
+
"topRight",
|
|
1690
|
+
"bottomLeft",
|
|
1691
|
+
"bottomRight"
|
|
1692
|
+
]) if (rect.containsPoint(this[key])) return key;
|
|
1693
|
+
return null;
|
|
1694
|
+
}
|
|
1695
|
+
equals(rect) {
|
|
1696
|
+
return rect.x === this.x && rect.y === this.y && rect.width === this.width && rect.height === this.height;
|
|
1697
|
+
}
|
|
1698
|
+
pointEquals(point) {
|
|
1699
|
+
return this.x === point.x && this.y === point.y;
|
|
1700
|
+
}
|
|
1701
|
+
sizeEquals(size) {
|
|
1702
|
+
return this.width === size.width && this.height === size.height;
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* Returns the union of this Rect and another.
|
|
1706
|
+
*/ union(other) {
|
|
1707
|
+
let x = Math.min(this.x, other.x);
|
|
1708
|
+
let y = Math.min(this.y, other.y);
|
|
1709
|
+
let width = Math.max(this.maxX, other.maxX) - x;
|
|
1710
|
+
let height = Math.max(this.maxY, other.maxY) - y;
|
|
1711
|
+
return new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, width, height);
|
|
1712
|
+
}
|
|
1713
|
+
/**
|
|
1714
|
+
* Returns the intersection of this Rect with another.
|
|
1715
|
+
* If the rectangles do not intersect, an all zero Rect is returned.
|
|
1716
|
+
*/ intersection(other) {
|
|
1717
|
+
if (!this.intersects(other)) return new $60423f92c7f9ad87$export$c79fc6492f3af13d(0, 0, 0, 0);
|
|
1718
|
+
let x = Math.max(this.x, other.x);
|
|
1719
|
+
let y = Math.max(this.y, other.y);
|
|
1720
|
+
return new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, Math.min(this.maxX, other.maxX) - x, Math.min(this.maxY, other.maxY) - y);
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* Returns a copy of this rectangle.
|
|
1724
|
+
*/ copy() {
|
|
1725
|
+
return new $60423f92c7f9ad87$export$c79fc6492f3af13d(this.x, this.y, this.width, this.height);
|
|
1726
|
+
}
|
|
1727
|
+
constructor(x = 0, y = 0, width = 0, height = 0) {
|
|
1728
|
+
this.x = x;
|
|
1729
|
+
this.y = y;
|
|
1730
|
+
this.width = width;
|
|
1731
|
+
this.height = height;
|
|
1732
|
+
}
|
|
1733
|
+
};
|
|
1734
|
+
//#endregion
|
|
1735
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Size.mjs
|
|
1736
|
+
var $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec = class $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec {
|
|
1737
|
+
/**
|
|
1738
|
+
* Returns a copy of this size.
|
|
1739
|
+
*/ copy() {
|
|
1740
|
+
return new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec(this.width, this.height);
|
|
1741
|
+
}
|
|
1742
|
+
/**
|
|
1743
|
+
* Returns whether this size is equal to another one.
|
|
1744
|
+
*/ equals(other) {
|
|
1745
|
+
return this.width === other.width && this.height === other.height;
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* The total area of the Size.
|
|
1749
|
+
*/ get area() {
|
|
1750
|
+
return this.width * this.height;
|
|
1751
|
+
}
|
|
1752
|
+
constructor(width = 0, height = 0) {
|
|
1753
|
+
this.width = Math.max(width, 0);
|
|
1754
|
+
this.height = Math.max(height, 0);
|
|
1755
|
+
}
|
|
1756
|
+
};
|
|
1757
|
+
//#endregion
|
|
1758
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/ReusableView.mjs
|
|
1759
|
+
let $ad1d98aa8f0c31b4$var$KEY = 0;
|
|
1760
|
+
var $ad1d98aa8f0c31b4$export$1a5223887c560441 = class {
|
|
1761
|
+
/**
|
|
1762
|
+
* Prepares the view for reuse. Called just before the view is removed from the DOM.
|
|
1763
|
+
*/ prepareForReuse() {
|
|
1764
|
+
this.content = null;
|
|
1765
|
+
this.rendered = null;
|
|
1766
|
+
this.layoutInfo = null;
|
|
1767
|
+
}
|
|
1768
|
+
getReusableView(reuseType) {
|
|
1769
|
+
let reusable = this.reusableViews.get(reuseType);
|
|
1770
|
+
return reusable && reusable.length > 0 ? reusable.shift() : new $ad1d98aa8f0c31b4$export$7a41b6f219e61634(this.virtualizer, this, reuseType);
|
|
1771
|
+
}
|
|
1772
|
+
reuseChild(child) {
|
|
1773
|
+
child.prepareForReuse();
|
|
1774
|
+
let reusable = this.reusableViews.get(child.viewType);
|
|
1775
|
+
if (!reusable) {
|
|
1776
|
+
reusable = [];
|
|
1777
|
+
this.reusableViews.set(child.viewType, reusable);
|
|
1778
|
+
}
|
|
1779
|
+
reusable.push(child);
|
|
1780
|
+
}
|
|
1781
|
+
constructor(virtualizer, viewType) {
|
|
1782
|
+
this.virtualizer = virtualizer;
|
|
1783
|
+
this.key = ++$ad1d98aa8f0c31b4$var$KEY;
|
|
1784
|
+
this.viewType = viewType;
|
|
1785
|
+
this.children = /* @__PURE__ */ new Set();
|
|
1786
|
+
this.reusableViews = /* @__PURE__ */ new Map();
|
|
1787
|
+
this.layoutInfo = null;
|
|
1788
|
+
this.content = null;
|
|
1789
|
+
this.rendered = null;
|
|
1790
|
+
}
|
|
1791
|
+
};
|
|
1792
|
+
var $ad1d98aa8f0c31b4$export$e21886a4eef6b29a = class extends $ad1d98aa8f0c31b4$export$1a5223887c560441 {
|
|
1793
|
+
constructor(virtualizer) {
|
|
1794
|
+
super(virtualizer, "root");
|
|
1795
|
+
}
|
|
1796
|
+
};
|
|
1797
|
+
var $ad1d98aa8f0c31b4$export$7a41b6f219e61634 = class extends $ad1d98aa8f0c31b4$export$1a5223887c560441 {
|
|
1798
|
+
constructor(virtualizer, parent, viewType) {
|
|
1799
|
+
super(virtualizer, viewType);
|
|
1800
|
+
this.parent = parent;
|
|
1801
|
+
}
|
|
1802
|
+
};
|
|
1803
|
+
//#endregion
|
|
1804
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/utils.mjs
|
|
1805
|
+
/** Returns whether two sets are equal. */ function $fc36f9a046a9ce79$export$a8d0d0c8d1c5df64(a, b) {
|
|
1806
|
+
if (a === b) return true;
|
|
1807
|
+
if (a.size !== b.size) return false;
|
|
1808
|
+
for (let key of a) if (!b.has(key)) return false;
|
|
1809
|
+
return true;
|
|
1810
|
+
}
|
|
1811
|
+
//#endregion
|
|
1812
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/OverscanManager.mjs
|
|
1813
|
+
var $364191b3decf3697$export$4455ee6afb38dcbb = class {
|
|
1814
|
+
setVisibleRect(rect) {
|
|
1815
|
+
let time = performance.now() - this.startTime;
|
|
1816
|
+
if (time < 500) {
|
|
1817
|
+
if (rect.x !== this.visibleRect.x && time > 0) this.velocity.x = (rect.x - this.visibleRect.x) / time;
|
|
1818
|
+
if (rect.y !== this.visibleRect.y && time > 0) this.velocity.y = (rect.y - this.visibleRect.y) / time;
|
|
1819
|
+
}
|
|
1820
|
+
this.startTime = performance.now();
|
|
1821
|
+
this.visibleRect = rect;
|
|
1822
|
+
}
|
|
1823
|
+
getOverscannedRect() {
|
|
1824
|
+
let overscanned = this.visibleRect.copy();
|
|
1825
|
+
let overscanY = this.visibleRect.height / 3;
|
|
1826
|
+
overscanned.height += overscanY;
|
|
1827
|
+
if (this.velocity.y < 0) overscanned.y -= overscanY;
|
|
1828
|
+
if (this.velocity.x !== 0) {
|
|
1829
|
+
let overscanX = this.visibleRect.width / 3;
|
|
1830
|
+
overscanned.width += overscanX;
|
|
1831
|
+
if (this.velocity.x < 0) overscanned.x -= overscanX;
|
|
1832
|
+
}
|
|
1833
|
+
return overscanned;
|
|
1834
|
+
}
|
|
1835
|
+
constructor() {
|
|
1836
|
+
this.startTime = 0;
|
|
1837
|
+
this.velocity = new $3041db3296945e6e$export$baf26146a414f24a(0, 0);
|
|
1838
|
+
this.visibleRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d();
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
//#endregion
|
|
1842
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Virtualizer.mjs
|
|
1843
|
+
var $38b9490c1cca8fc4$export$89be5a243e59c4b2 = class {
|
|
1844
|
+
/** Returns whether the given key, or an ancestor, is persisted. */ isPersistedKey(key) {
|
|
1845
|
+
if (this.persistedKeys.has(key)) return true;
|
|
1846
|
+
for (let k of this.persistedKeys) while (k != null) {
|
|
1847
|
+
let layoutInfo = this.layout.getLayoutInfo(k);
|
|
1848
|
+
if (!layoutInfo || layoutInfo.parentKey == null) break;
|
|
1849
|
+
k = layoutInfo.parentKey;
|
|
1850
|
+
if (k === key) return true;
|
|
1851
|
+
}
|
|
1852
|
+
return false;
|
|
1853
|
+
}
|
|
1854
|
+
getParentView(layoutInfo) {
|
|
1855
|
+
return layoutInfo.parentKey != null ? this._visibleViews.get(layoutInfo.parentKey) : this._rootView;
|
|
1856
|
+
}
|
|
1857
|
+
getReusableView(layoutInfo) {
|
|
1858
|
+
let view = this.getParentView(layoutInfo).getReusableView(layoutInfo.type);
|
|
1859
|
+
view.layoutInfo = layoutInfo;
|
|
1860
|
+
this._renderView(view);
|
|
1861
|
+
return view;
|
|
1862
|
+
}
|
|
1863
|
+
_renderView(reusableView) {
|
|
1864
|
+
if (reusableView.layoutInfo) {
|
|
1865
|
+
let { type, key, content } = reusableView.layoutInfo;
|
|
1866
|
+
reusableView.content = content || this.collection.getItem(key);
|
|
1867
|
+
reusableView.rendered = this._renderContent(type, reusableView.content);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
_renderContent(type, content) {
|
|
1871
|
+
let cached = content != null ? this._renderedContent.get(content) : null;
|
|
1872
|
+
if (cached != null) return cached;
|
|
1873
|
+
let rendered = this.delegate.renderView(type, content);
|
|
1874
|
+
if (content) this._renderedContent.set(content, rendered);
|
|
1875
|
+
return rendered;
|
|
1876
|
+
}
|
|
1877
|
+
/**
|
|
1878
|
+
* Returns the key for the item view currently at the given point.
|
|
1879
|
+
*/ keyAtPoint(point) {
|
|
1880
|
+
let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(point.x, point.y, 1, 1);
|
|
1881
|
+
let layoutInfos = rect.area === 0 ? [] : this.layout.getVisibleLayoutInfos(rect);
|
|
1882
|
+
for (let layoutInfo of layoutInfos) if (layoutInfo.rect.intersects(rect)) return layoutInfo.key;
|
|
1883
|
+
return null;
|
|
1884
|
+
}
|
|
1885
|
+
relayout(context = {}) {
|
|
1886
|
+
this.layout.update(context);
|
|
1887
|
+
this.contentSize = this.layout.getContentSize();
|
|
1888
|
+
let visibleRect = this.visibleRect;
|
|
1889
|
+
let contentOffsetX = context.contentChanged ? 0 : visibleRect.x;
|
|
1890
|
+
let contentOffsetY = context.contentChanged ? 0 : visibleRect.y;
|
|
1891
|
+
contentOffsetX = Math.max(0, Math.min(this.contentSize.width - visibleRect.width, contentOffsetX));
|
|
1892
|
+
contentOffsetY = Math.max(0, Math.min(this.contentSize.height - visibleRect.height, contentOffsetY));
|
|
1893
|
+
if (contentOffsetX !== visibleRect.x || contentOffsetY !== visibleRect.y) {
|
|
1894
|
+
let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(contentOffsetX, contentOffsetY, visibleRect.width, visibleRect.height);
|
|
1895
|
+
this.delegate.setVisibleRect(rect);
|
|
1896
|
+
} else this.updateSubviews();
|
|
1897
|
+
}
|
|
1898
|
+
getVisibleLayoutInfos() {
|
|
1899
|
+
let rect;
|
|
1900
|
+
rect = this._overscanManager.getOverscannedRect();
|
|
1901
|
+
let layoutInfos = this.layout.getVisibleLayoutInfos(rect);
|
|
1902
|
+
let map = /* @__PURE__ */ new Map();
|
|
1903
|
+
for (let layoutInfo of layoutInfos) map.set(layoutInfo.key, layoutInfo);
|
|
1904
|
+
return map;
|
|
1905
|
+
}
|
|
1906
|
+
updateSubviews() {
|
|
1907
|
+
let visibleLayoutInfos = this.getVisibleLayoutInfos();
|
|
1908
|
+
let removed = /* @__PURE__ */ new Set();
|
|
1909
|
+
for (let [key, view] of this._visibleViews) {
|
|
1910
|
+
let layoutInfo = visibleLayoutInfos.get(key);
|
|
1911
|
+
if (!layoutInfo || view.parent !== this.getParentView(layoutInfo)) {
|
|
1912
|
+
this._visibleViews.delete(key);
|
|
1913
|
+
view.parent.reuseChild(view);
|
|
1914
|
+
removed.add(view);
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
for (let [key, layoutInfo] of visibleLayoutInfos) {
|
|
1918
|
+
let view = this._visibleViews.get(key);
|
|
1919
|
+
if (!view) {
|
|
1920
|
+
view = this.getReusableView(layoutInfo);
|
|
1921
|
+
view.parent.children.add(view);
|
|
1922
|
+
this._visibleViews.set(key, view);
|
|
1923
|
+
removed.delete(view);
|
|
1924
|
+
} else {
|
|
1925
|
+
view.layoutInfo = layoutInfo;
|
|
1926
|
+
let item = this.collection.getItem(layoutInfo.key);
|
|
1927
|
+
if (view.content !== item) {
|
|
1928
|
+
if (view.content != null) this._renderedContent.delete(view.content);
|
|
1929
|
+
this._renderView(view);
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
for (let view of removed) {
|
|
1934
|
+
view.parent.children.delete(view);
|
|
1935
|
+
view.parent.reusableViews.clear();
|
|
1936
|
+
}
|
|
1937
|
+
if (!this._isScrolling) for (let key of visibleLayoutInfos.keys()) {
|
|
1938
|
+
let view = this._visibleViews.get(key);
|
|
1939
|
+
view.parent.children.delete(view);
|
|
1940
|
+
view.parent.children.add(view);
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
/** Performs layout and updates visible views as needed. */ render(opts) {
|
|
1944
|
+
let mutableThis = this;
|
|
1945
|
+
let needsLayout = false;
|
|
1946
|
+
let offsetChanged = false;
|
|
1947
|
+
let sizeChanged = false;
|
|
1948
|
+
let itemSizeChanged = false;
|
|
1949
|
+
let layoutOptionsChanged = false;
|
|
1950
|
+
let needsUpdate = false;
|
|
1951
|
+
if (opts.collection !== this.collection) {
|
|
1952
|
+
mutableThis.collection = opts.collection;
|
|
1953
|
+
needsLayout = true;
|
|
1954
|
+
}
|
|
1955
|
+
if (opts.layout !== this.layout || this.layout.virtualizer !== this) {
|
|
1956
|
+
if (this.layout) this.layout.virtualizer = null;
|
|
1957
|
+
opts.layout.virtualizer = this;
|
|
1958
|
+
mutableThis.layout = opts.layout;
|
|
1959
|
+
needsLayout = true;
|
|
1960
|
+
}
|
|
1961
|
+
if (opts.persistedKeys && !$fc36f9a046a9ce79$export$a8d0d0c8d1c5df64(opts.persistedKeys, this.persistedKeys)) {
|
|
1962
|
+
mutableThis.persistedKeys = opts.persistedKeys;
|
|
1963
|
+
needsUpdate = true;
|
|
1964
|
+
}
|
|
1965
|
+
if (!this.visibleRect.equals(opts.visibleRect)) {
|
|
1966
|
+
this._overscanManager.setVisibleRect(opts.visibleRect);
|
|
1967
|
+
if (this.layout.shouldInvalidate(opts.visibleRect, this.visibleRect)) {
|
|
1968
|
+
offsetChanged = !opts.visibleRect.pointEquals(this.visibleRect);
|
|
1969
|
+
sizeChanged = !opts.visibleRect.sizeEquals(this.visibleRect);
|
|
1970
|
+
needsLayout = true;
|
|
1971
|
+
} else needsUpdate = true;
|
|
1972
|
+
mutableThis.visibleRect = opts.visibleRect;
|
|
1973
|
+
}
|
|
1974
|
+
if (opts.invalidationContext !== this._invalidationContext) {
|
|
1975
|
+
if (opts.invalidationContext) {
|
|
1976
|
+
sizeChanged || (sizeChanged = opts.invalidationContext.sizeChanged || false);
|
|
1977
|
+
offsetChanged || (offsetChanged = opts.invalidationContext.offsetChanged || false);
|
|
1978
|
+
itemSizeChanged || (itemSizeChanged = opts.invalidationContext.itemSizeChanged || false);
|
|
1979
|
+
layoutOptionsChanged || (layoutOptionsChanged = opts.invalidationContext.layoutOptions != null && this._invalidationContext.layoutOptions != null && opts.invalidationContext.layoutOptions !== this._invalidationContext.layoutOptions && this.layout.shouldInvalidateLayoutOptions(opts.invalidationContext.layoutOptions, this._invalidationContext.layoutOptions));
|
|
1980
|
+
needsLayout || (needsLayout = itemSizeChanged || sizeChanged || offsetChanged || layoutOptionsChanged);
|
|
1981
|
+
}
|
|
1982
|
+
this._invalidationContext = opts.invalidationContext;
|
|
1983
|
+
}
|
|
1984
|
+
if (opts.isScrolling !== this._isScrolling) {
|
|
1985
|
+
this._isScrolling = opts.isScrolling;
|
|
1986
|
+
if (!opts.isScrolling) needsUpdate = true;
|
|
1987
|
+
}
|
|
1988
|
+
if (needsLayout) this.relayout({
|
|
1989
|
+
offsetChanged,
|
|
1990
|
+
sizeChanged,
|
|
1991
|
+
itemSizeChanged,
|
|
1992
|
+
layoutOptionsChanged,
|
|
1993
|
+
layoutOptions: this._invalidationContext.layoutOptions
|
|
1994
|
+
});
|
|
1995
|
+
else if (needsUpdate) this.updateSubviews();
|
|
1996
|
+
return Array.from(this._rootView.children);
|
|
1997
|
+
}
|
|
1998
|
+
getVisibleView(key) {
|
|
1999
|
+
return this._visibleViews.get(key);
|
|
2000
|
+
}
|
|
2001
|
+
invalidate(context) {
|
|
2002
|
+
this.delegate.invalidate(context);
|
|
2003
|
+
}
|
|
2004
|
+
updateItemSize(key, size) {
|
|
2005
|
+
if (!this.layout.updateItemSize) return;
|
|
2006
|
+
if (this.layout.updateItemSize(key, size)) this.invalidate({ itemSizeChanged: true });
|
|
2007
|
+
}
|
|
2008
|
+
constructor(options) {
|
|
2009
|
+
this.delegate = options.delegate;
|
|
2010
|
+
this.collection = options.collection;
|
|
2011
|
+
this.layout = options.layout;
|
|
2012
|
+
this.contentSize = new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec();
|
|
2013
|
+
this.visibleRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d();
|
|
2014
|
+
this.persistedKeys = /* @__PURE__ */ new Set();
|
|
2015
|
+
this._visibleViews = /* @__PURE__ */ new Map();
|
|
2016
|
+
this._renderedContent = /* @__PURE__ */ new WeakMap();
|
|
2017
|
+
this._rootView = new $ad1d98aa8f0c31b4$export$e21886a4eef6b29a(this);
|
|
2018
|
+
this._isScrolling = false;
|
|
2019
|
+
this._invalidationContext = {};
|
|
2020
|
+
this._overscanManager = new $364191b3decf3697$export$4455ee6afb38dcbb();
|
|
2021
|
+
}
|
|
2022
|
+
};
|
|
2023
|
+
//#endregion
|
|
2024
|
+
//#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/useVirtualizerState.mjs
|
|
2025
|
+
const $fc0b13b484ac1194$export$e5c5a5f917a5871c = typeof document !== "undefined" ? $HgANd$react.useLayoutEffect : () => {};
|
|
2026
|
+
function $fc0b13b484ac1194$export$1505db82fe357e65(opts) {
|
|
2027
|
+
let [visibleRect, setVisibleRect] = useState(new $60423f92c7f9ad87$export$c79fc6492f3af13d(0, 0, 0, 0));
|
|
2028
|
+
let [isScrolling, setScrolling] = useState(false);
|
|
2029
|
+
let [invalidationContext, setInvalidationContext] = useState({});
|
|
2030
|
+
let visibleRectChanged = useRef(false);
|
|
2031
|
+
let [virtualizer] = useState(() => new $38b9490c1cca8fc4$export$89be5a243e59c4b2({
|
|
2032
|
+
collection: opts.collection,
|
|
2033
|
+
layout: opts.layout,
|
|
2034
|
+
delegate: {
|
|
2035
|
+
setVisibleRect(rect) {
|
|
2036
|
+
setVisibleRect(rect);
|
|
2037
|
+
visibleRectChanged.current = true;
|
|
2038
|
+
},
|
|
2039
|
+
renderView: opts.renderView,
|
|
2040
|
+
invalidate: setInvalidationContext
|
|
2041
|
+
}
|
|
2042
|
+
}));
|
|
2043
|
+
$fc0b13b484ac1194$export$e5c5a5f917a5871c(() => {
|
|
2044
|
+
if (visibleRectChanged.current) {
|
|
2045
|
+
visibleRectChanged.current = false;
|
|
2046
|
+
opts.onVisibleRectChange(visibleRect);
|
|
2047
|
+
}
|
|
2048
|
+
});
|
|
2049
|
+
let mergedInvalidationContext = useMemo(() => {
|
|
2050
|
+
if (opts.layoutOptions != null) return {
|
|
2051
|
+
...invalidationContext,
|
|
2052
|
+
layoutOptions: opts.layoutOptions
|
|
2053
|
+
};
|
|
2054
|
+
return invalidationContext;
|
|
2055
|
+
}, [invalidationContext, opts.layoutOptions]);
|
|
2056
|
+
let visibleViews = virtualizer.render({
|
|
2057
|
+
layout: opts.layout,
|
|
2058
|
+
collection: opts.collection,
|
|
2059
|
+
persistedKeys: opts.persistedKeys,
|
|
2060
|
+
layoutOptions: opts.layoutOptions,
|
|
2061
|
+
visibleRect,
|
|
2062
|
+
invalidationContext: mergedInvalidationContext,
|
|
2063
|
+
isScrolling
|
|
2064
|
+
});
|
|
2065
|
+
let contentSize = virtualizer.contentSize;
|
|
2066
|
+
let startScrolling = useCallback(() => {
|
|
2067
|
+
setScrolling(true);
|
|
2068
|
+
}, []);
|
|
2069
|
+
let endScrolling = useCallback(() => {
|
|
2070
|
+
setScrolling(false);
|
|
2071
|
+
}, []);
|
|
2072
|
+
return useMemo(() => ({
|
|
2073
|
+
virtualizer,
|
|
2074
|
+
visibleViews,
|
|
2075
|
+
setVisibleRect,
|
|
2076
|
+
contentSize,
|
|
2077
|
+
isScrolling,
|
|
2078
|
+
startScrolling,
|
|
2079
|
+
endScrolling
|
|
2080
|
+
}), [
|
|
2081
|
+
virtualizer,
|
|
2082
|
+
visibleViews,
|
|
2083
|
+
setVisibleRect,
|
|
2084
|
+
contentSize,
|
|
2085
|
+
isScrolling,
|
|
2086
|
+
startScrolling,
|
|
2087
|
+
endScrolling
|
|
2088
|
+
]);
|
|
2089
|
+
}
|
|
2090
|
+
//#endregion
|
|
2091
|
+
//#region ../../node_modules/.bun/@react-stately+layout@4.5.3+67f6792bdf102c28/node_modules/@react-stately/layout/dist/ListLayout.mjs
|
|
2092
|
+
const $61ef60fc9b1041f4$var$DEFAULT_HEIGHT = 48;
|
|
2093
|
+
var $61ef60fc9b1041f4$export$cacbb3924155d68e = class extends $c74cda7d31af1253$export$c84671f46d6a1ca {
|
|
2094
|
+
get collection() {
|
|
2095
|
+
return this.virtualizer.collection;
|
|
2096
|
+
}
|
|
2097
|
+
getLayoutInfo(key) {
|
|
2098
|
+
var _this_layoutNodes_get;
|
|
2099
|
+
this.ensureLayoutInfo(key);
|
|
2100
|
+
return ((_this_layoutNodes_get = this.layoutNodes.get(key)) === null || _this_layoutNodes_get === void 0 ? void 0 : _this_layoutNodes_get.layoutInfo) || null;
|
|
2101
|
+
}
|
|
2102
|
+
getVisibleLayoutInfos(rect) {
|
|
2103
|
+
if (rect.height > 1) {
|
|
2104
|
+
var _this_rowHeight, _ref;
|
|
2105
|
+
let rowHeight = ((_ref = (_this_rowHeight = this.rowHeight) !== null && _this_rowHeight !== void 0 ? _this_rowHeight : this.estimatedRowHeight) !== null && _ref !== void 0 ? _ref : $61ef60fc9b1041f4$var$DEFAULT_HEIGHT) + this.gap;
|
|
2106
|
+
rect.y = Math.floor(rect.y / rowHeight) * rowHeight;
|
|
2107
|
+
rect.height = Math.ceil(rect.height / rowHeight) * rowHeight;
|
|
2108
|
+
}
|
|
2109
|
+
this.layoutIfNeeded(rect);
|
|
2110
|
+
let res = [];
|
|
2111
|
+
let addNodes = (nodes) => {
|
|
2112
|
+
for (let node of nodes) if (this.isVisible(node, rect)) {
|
|
2113
|
+
res.push(node.layoutInfo);
|
|
2114
|
+
if (node.children) addNodes(node.children);
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
addNodes(this.rootNodes);
|
|
2118
|
+
return res;
|
|
2119
|
+
}
|
|
2120
|
+
layoutIfNeeded(rect) {
|
|
2121
|
+
if (!this.lastCollection) return;
|
|
2122
|
+
if (!this.requestedRect.containsRect(rect)) {
|
|
2123
|
+
this.requestedRect = this.requestedRect.union(rect);
|
|
2124
|
+
this.rootNodes = this.buildCollection();
|
|
2125
|
+
}
|
|
2126
|
+
for (let key of this.virtualizer.persistedKeys) if (this.ensureLayoutInfo(key)) return;
|
|
2127
|
+
}
|
|
2128
|
+
ensureLayoutInfo(key) {
|
|
2129
|
+
if (!this.layoutNodes.has(key) && this.requestedRect.area < this.contentSize.area && this.lastCollection) {
|
|
2130
|
+
this.requestedRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(0, 0, Infinity, Infinity);
|
|
2131
|
+
this.rootNodes = this.buildCollection();
|
|
2132
|
+
this.requestedRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(0, 0, this.contentSize.width, this.contentSize.height);
|
|
2133
|
+
return true;
|
|
2134
|
+
}
|
|
2135
|
+
return false;
|
|
2136
|
+
}
|
|
2137
|
+
isVisible(node, rect) {
|
|
2138
|
+
return node.layoutInfo.rect.intersects(rect) || node.layoutInfo.isSticky || node.layoutInfo.type === "header" || node.layoutInfo.type === "loader" || this.virtualizer.isPersistedKey(node.layoutInfo.key);
|
|
2139
|
+
}
|
|
2140
|
+
shouldInvalidateEverything(invalidationContext) {
|
|
2141
|
+
let options = invalidationContext.layoutOptions;
|
|
2142
|
+
var _options_rowHeight, _options_headingHeight, _options_loaderHeight, _options_gap, _options_padding;
|
|
2143
|
+
return invalidationContext.sizeChanged || this.rowHeight !== ((_options_rowHeight = options === null || options === void 0 ? void 0 : options.rowHeight) !== null && _options_rowHeight !== void 0 ? _options_rowHeight : this.rowHeight) || this.headingHeight !== ((_options_headingHeight = options === null || options === void 0 ? void 0 : options.headingHeight) !== null && _options_headingHeight !== void 0 ? _options_headingHeight : this.headingHeight) || this.loaderHeight !== ((_options_loaderHeight = options === null || options === void 0 ? void 0 : options.loaderHeight) !== null && _options_loaderHeight !== void 0 ? _options_loaderHeight : this.loaderHeight) || this.gap !== ((_options_gap = options === null || options === void 0 ? void 0 : options.gap) !== null && _options_gap !== void 0 ? _options_gap : this.gap) || this.padding !== ((_options_padding = options === null || options === void 0 ? void 0 : options.padding) !== null && _options_padding !== void 0 ? _options_padding : this.padding);
|
|
2144
|
+
}
|
|
2145
|
+
shouldInvalidateLayoutOptions(newOptions, oldOptions) {
|
|
2146
|
+
return newOptions.rowHeight !== oldOptions.rowHeight || newOptions.estimatedRowHeight !== oldOptions.estimatedRowHeight || newOptions.headingHeight !== oldOptions.headingHeight || newOptions.estimatedHeadingHeight !== oldOptions.estimatedHeadingHeight || newOptions.loaderHeight !== oldOptions.loaderHeight || newOptions.dropIndicatorThickness !== oldOptions.dropIndicatorThickness || newOptions.gap !== oldOptions.gap || newOptions.padding !== oldOptions.padding;
|
|
2147
|
+
}
|
|
2148
|
+
update(invalidationContext) {
|
|
2149
|
+
let collection = this.virtualizer.collection;
|
|
2150
|
+
this.invalidateEverything = this.shouldInvalidateEverything(invalidationContext);
|
|
2151
|
+
if (this.invalidateEverything) {
|
|
2152
|
+
this.requestedRect = this.virtualizer.visibleRect.copy();
|
|
2153
|
+
this.layoutNodes.clear();
|
|
2154
|
+
}
|
|
2155
|
+
let options = invalidationContext.layoutOptions;
|
|
2156
|
+
var _options_rowHeight;
|
|
2157
|
+
this.rowHeight = (_options_rowHeight = options === null || options === void 0 ? void 0 : options.rowHeight) !== null && _options_rowHeight !== void 0 ? _options_rowHeight : this.rowHeight;
|
|
2158
|
+
var _options_estimatedRowHeight;
|
|
2159
|
+
this.estimatedRowHeight = (_options_estimatedRowHeight = options === null || options === void 0 ? void 0 : options.estimatedRowHeight) !== null && _options_estimatedRowHeight !== void 0 ? _options_estimatedRowHeight : this.estimatedRowHeight;
|
|
2160
|
+
var _options_headingHeight;
|
|
2161
|
+
this.headingHeight = (_options_headingHeight = options === null || options === void 0 ? void 0 : options.headingHeight) !== null && _options_headingHeight !== void 0 ? _options_headingHeight : this.headingHeight;
|
|
2162
|
+
var _options_estimatedHeadingHeight;
|
|
2163
|
+
this.estimatedHeadingHeight = (_options_estimatedHeadingHeight = options === null || options === void 0 ? void 0 : options.estimatedHeadingHeight) !== null && _options_estimatedHeadingHeight !== void 0 ? _options_estimatedHeadingHeight : this.estimatedHeadingHeight;
|
|
2164
|
+
var _options_loaderHeight;
|
|
2165
|
+
this.loaderHeight = (_options_loaderHeight = options === null || options === void 0 ? void 0 : options.loaderHeight) !== null && _options_loaderHeight !== void 0 ? _options_loaderHeight : this.loaderHeight;
|
|
2166
|
+
var _options_dropIndicatorThickness;
|
|
2167
|
+
this.dropIndicatorThickness = (_options_dropIndicatorThickness = options === null || options === void 0 ? void 0 : options.dropIndicatorThickness) !== null && _options_dropIndicatorThickness !== void 0 ? _options_dropIndicatorThickness : this.dropIndicatorThickness;
|
|
2168
|
+
var _options_gap;
|
|
2169
|
+
this.gap = (_options_gap = options === null || options === void 0 ? void 0 : options.gap) !== null && _options_gap !== void 0 ? _options_gap : this.gap;
|
|
2170
|
+
var _options_padding;
|
|
2171
|
+
this.padding = (_options_padding = options === null || options === void 0 ? void 0 : options.padding) !== null && _options_padding !== void 0 ? _options_padding : this.padding;
|
|
2172
|
+
this.rootNodes = this.buildCollection();
|
|
2173
|
+
if (this.lastCollection && collection !== this.lastCollection) {
|
|
2174
|
+
for (let key of this.lastCollection.getKeys()) if (!collection.getItem(key)) {
|
|
2175
|
+
if (this.layoutNodes.get(key)) this.layoutNodes.delete(key);
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
this.lastCollection = collection;
|
|
2179
|
+
this.invalidateEverything = false;
|
|
2180
|
+
this.validRect = this.requestedRect.copy();
|
|
2181
|
+
}
|
|
2182
|
+
buildCollection(y = this.padding) {
|
|
2183
|
+
let collection = this.virtualizer.collection;
|
|
2184
|
+
let collectionNodes = [...collection];
|
|
2185
|
+
let loaderNodes = collectionNodes.filter((node) => node.type === "loader");
|
|
2186
|
+
let nodes = [];
|
|
2187
|
+
let isEmptyOrLoading = (collection === null || collection === void 0 ? void 0 : collection.size) === 0;
|
|
2188
|
+
if (isEmptyOrLoading) y = 0;
|
|
2189
|
+
for (let node of collectionNodes) {
|
|
2190
|
+
var _this_rowHeight, _ref;
|
|
2191
|
+
let rowHeight = ((_ref = (_this_rowHeight = this.rowHeight) !== null && _this_rowHeight !== void 0 ? _this_rowHeight : this.estimatedRowHeight) !== null && _ref !== void 0 ? _ref : $61ef60fc9b1041f4$var$DEFAULT_HEIGHT) + this.gap;
|
|
2192
|
+
if (node.type === "item" && y + rowHeight < this.requestedRect.y && !this.isValid(node, y)) {
|
|
2193
|
+
y += rowHeight;
|
|
2194
|
+
continue;
|
|
2195
|
+
}
|
|
2196
|
+
let layoutNode = this.buildChild(node, this.padding, y, null);
|
|
2197
|
+
y = layoutNode.layoutInfo.rect.maxY + this.gap;
|
|
2198
|
+
nodes.push(layoutNode);
|
|
2199
|
+
if (node.type === "loader") {
|
|
2200
|
+
let index = loaderNodes.indexOf(node);
|
|
2201
|
+
loaderNodes.splice(index, 1);
|
|
2202
|
+
}
|
|
2203
|
+
if ((node.type === "item" || node.type === "loader") && y > this.requestedRect.maxY) {
|
|
2204
|
+
let lastProcessedIndex = collectionNodes.indexOf(node);
|
|
2205
|
+
for (let loaderNode of loaderNodes) {
|
|
2206
|
+
let loaderNodeIndex = collectionNodes.indexOf(loaderNode);
|
|
2207
|
+
y += (loaderNodeIndex - lastProcessedIndex - 1) * rowHeight;
|
|
2208
|
+
let loader = this.buildChild(loaderNode, this.padding, y, null);
|
|
2209
|
+
nodes.push(loader);
|
|
2210
|
+
y = loader.layoutInfo.rect.maxY;
|
|
2211
|
+
lastProcessedIndex = loaderNodeIndex;
|
|
2212
|
+
}
|
|
2213
|
+
y += (collectionNodes.length - lastProcessedIndex - 1) * rowHeight;
|
|
2214
|
+
break;
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
y -= this.gap;
|
|
2218
|
+
y += isEmptyOrLoading ? 0 : this.padding;
|
|
2219
|
+
this.contentSize = new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec(this.virtualizer.visibleRect.width, y);
|
|
2220
|
+
return nodes;
|
|
2221
|
+
}
|
|
2222
|
+
isValid(node, y) {
|
|
2223
|
+
let cached = this.layoutNodes.get(node.key);
|
|
2224
|
+
return !this.invalidateEverything && !!cached && cached.node === node && y === cached.layoutInfo.rect.y && cached.layoutInfo.rect.intersects(this.validRect) && cached.validRect.containsRect(cached.layoutInfo.rect.intersection(this.requestedRect));
|
|
2225
|
+
}
|
|
2226
|
+
buildChild(node, x, y, parentKey) {
|
|
2227
|
+
if (this.isValid(node, y)) return this.layoutNodes.get(node.key);
|
|
2228
|
+
let layoutNode = this.buildNode(node, x, y);
|
|
2229
|
+
layoutNode.layoutInfo.parentKey = parentKey !== null && parentKey !== void 0 ? parentKey : null;
|
|
2230
|
+
layoutNode.layoutInfo.allowOverflow = true;
|
|
2231
|
+
this.layoutNodes.set(node.key, layoutNode);
|
|
2232
|
+
return layoutNode;
|
|
2233
|
+
}
|
|
2234
|
+
buildNode(node, x, y) {
|
|
2235
|
+
switch (node.type) {
|
|
2236
|
+
case "section": return this.buildSection(node, x, y);
|
|
2237
|
+
case "item": return this.buildItem(node, x, y);
|
|
2238
|
+
case "header": return this.buildSectionHeader(node, x, y);
|
|
2239
|
+
case "loader": return this.buildLoader(node, x, y);
|
|
2240
|
+
case "separator": return this.buildItem(node, x, y);
|
|
2241
|
+
default: throw new Error("Unsupported node type: " + node.type);
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
buildLoader(node, x, y) {
|
|
2245
|
+
let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, this.padding, 0);
|
|
2246
|
+
let layoutInfo = new $d7fd61009c21d0bb$export$7e0eeb9da702a085("loader", node.key, rect);
|
|
2247
|
+
rect.width = this.virtualizer.contentSize.width - this.padding - x;
|
|
2248
|
+
var _this_loaderHeight, _ref, _ref1;
|
|
2249
|
+
rect.height = node.props.isLoading ? (_ref1 = (_ref = (_this_loaderHeight = this.loaderHeight) !== null && _this_loaderHeight !== void 0 ? _this_loaderHeight : this.rowHeight) !== null && _ref !== void 0 ? _ref : this.estimatedRowHeight) !== null && _ref1 !== void 0 ? _ref1 : $61ef60fc9b1041f4$var$DEFAULT_HEIGHT : 0;
|
|
2250
|
+
return {
|
|
2251
|
+
layoutInfo,
|
|
2252
|
+
validRect: rect.intersection(this.requestedRect)
|
|
2253
|
+
};
|
|
2254
|
+
}
|
|
2255
|
+
buildSection(node, x, y) {
|
|
2256
|
+
let collection = this.virtualizer.collection;
|
|
2257
|
+
let width = this.virtualizer.visibleRect.width - this.padding;
|
|
2258
|
+
let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, width - x, 0);
|
|
2259
|
+
let layoutInfo = new $d7fd61009c21d0bb$export$7e0eeb9da702a085(node.type, node.key, rect);
|
|
2260
|
+
let startY = y;
|
|
2261
|
+
let skipped = 0;
|
|
2262
|
+
let children = [];
|
|
2263
|
+
for (let child of $c5a24bc478652b5f$export$1005530eda016c13(node, collection)) {
|
|
2264
|
+
var _this_rowHeight, _ref;
|
|
2265
|
+
let rowHeight = ((_ref = (_this_rowHeight = this.rowHeight) !== null && _this_rowHeight !== void 0 ? _this_rowHeight : this.estimatedRowHeight) !== null && _ref !== void 0 ? _ref : $61ef60fc9b1041f4$var$DEFAULT_HEIGHT) + this.gap;
|
|
2266
|
+
if (y + rowHeight < this.requestedRect.y && !this.isValid(node, y)) {
|
|
2267
|
+
y += rowHeight;
|
|
2268
|
+
skipped++;
|
|
2269
|
+
continue;
|
|
2270
|
+
}
|
|
2271
|
+
let layoutNode = this.buildChild(child, x, y, layoutInfo.key);
|
|
2272
|
+
y = layoutNode.layoutInfo.rect.maxY + this.gap;
|
|
2273
|
+
children.push(layoutNode);
|
|
2274
|
+
if (y > this.requestedRect.maxY) {
|
|
2275
|
+
y += ([...$c5a24bc478652b5f$export$1005530eda016c13(node, collection)].length - (children.length + skipped)) * rowHeight;
|
|
2276
|
+
break;
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
y -= this.gap;
|
|
2280
|
+
rect.height = y - startY;
|
|
2281
|
+
return {
|
|
2282
|
+
layoutInfo,
|
|
2283
|
+
children,
|
|
2284
|
+
validRect: layoutInfo.rect.intersection(this.requestedRect),
|
|
2285
|
+
node
|
|
2286
|
+
};
|
|
2287
|
+
}
|
|
2288
|
+
buildSectionHeader(node, x, y) {
|
|
2289
|
+
let width = this.virtualizer.visibleRect.width - this.padding;
|
|
2290
|
+
let rectHeight = this.headingHeight;
|
|
2291
|
+
let isEstimated = false;
|
|
2292
|
+
if (rectHeight == null) {
|
|
2293
|
+
let previousLayoutNode = this.layoutNodes.get(node.key);
|
|
2294
|
+
let previousLayoutInfo = previousLayoutNode === null || previousLayoutNode === void 0 ? void 0 : previousLayoutNode.layoutInfo;
|
|
2295
|
+
if (previousLayoutInfo) {
|
|
2296
|
+
let curNode = this.virtualizer.collection.getItem(node.key);
|
|
2297
|
+
let lastNode = this.lastCollection ? this.lastCollection.getItem(node.key) : null;
|
|
2298
|
+
rectHeight = previousLayoutInfo.rect.height;
|
|
2299
|
+
isEstimated = width !== previousLayoutInfo.rect.width || curNode !== lastNode || previousLayoutInfo.estimatedSize;
|
|
2300
|
+
} else {
|
|
2301
|
+
rectHeight = node.rendered ? this.estimatedHeadingHeight : 0;
|
|
2302
|
+
isEstimated = true;
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
if (rectHeight == null) rectHeight = $61ef60fc9b1041f4$var$DEFAULT_HEIGHT;
|
|
2306
|
+
let headerRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, width - x, rectHeight);
|
|
2307
|
+
let header = new $d7fd61009c21d0bb$export$7e0eeb9da702a085("header", node.key, headerRect);
|
|
2308
|
+
header.estimatedSize = isEstimated;
|
|
2309
|
+
return {
|
|
2310
|
+
layoutInfo: header,
|
|
2311
|
+
children: [],
|
|
2312
|
+
validRect: header.rect.intersection(this.requestedRect),
|
|
2313
|
+
node
|
|
2314
|
+
};
|
|
2315
|
+
}
|
|
2316
|
+
buildItem(node, x, y) {
|
|
2317
|
+
let width = this.virtualizer.visibleRect.width - this.padding - x;
|
|
2318
|
+
let rectHeight = this.rowHeight;
|
|
2319
|
+
let isEstimated = false;
|
|
2320
|
+
if (rectHeight == null) {
|
|
2321
|
+
let previousLayoutNode = this.layoutNodes.get(node.key);
|
|
2322
|
+
if (previousLayoutNode) {
|
|
2323
|
+
rectHeight = previousLayoutNode.layoutInfo.rect.height;
|
|
2324
|
+
isEstimated = width !== previousLayoutNode.layoutInfo.rect.width || node !== previousLayoutNode.node || previousLayoutNode.layoutInfo.estimatedSize;
|
|
2325
|
+
} else {
|
|
2326
|
+
rectHeight = this.estimatedRowHeight;
|
|
2327
|
+
isEstimated = true;
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
if (rectHeight == null) rectHeight = $61ef60fc9b1041f4$var$DEFAULT_HEIGHT;
|
|
2331
|
+
let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, width, rectHeight);
|
|
2332
|
+
let layoutInfo = new $d7fd61009c21d0bb$export$7e0eeb9da702a085(node.type, node.key, rect);
|
|
2333
|
+
layoutInfo.estimatedSize = isEstimated;
|
|
2334
|
+
return {
|
|
2335
|
+
layoutInfo,
|
|
2336
|
+
children: [],
|
|
2337
|
+
validRect: layoutInfo.rect,
|
|
2338
|
+
node
|
|
2339
|
+
};
|
|
2340
|
+
}
|
|
2341
|
+
updateItemSize(key, size) {
|
|
2342
|
+
let layoutNode = this.layoutNodes.get(key);
|
|
2343
|
+
if (!layoutNode) return false;
|
|
2344
|
+
let collection = this.virtualizer.collection;
|
|
2345
|
+
let layoutInfo = layoutNode.layoutInfo;
|
|
2346
|
+
layoutInfo.estimatedSize = false;
|
|
2347
|
+
if (layoutInfo.rect.height !== size.height) {
|
|
2348
|
+
let newLayoutInfo = layoutInfo.copy();
|
|
2349
|
+
newLayoutInfo.rect.height = size.height;
|
|
2350
|
+
layoutNode.layoutInfo = newLayoutInfo;
|
|
2351
|
+
this.validRect.height = Math.min(this.validRect.height, layoutInfo.rect.y - this.validRect.y);
|
|
2352
|
+
this.requestedRect.height += newLayoutInfo.rect.height - layoutInfo.rect.height;
|
|
2353
|
+
this.updateLayoutNode(key, layoutInfo, newLayoutInfo);
|
|
2354
|
+
let node = layoutInfo.parentKey != null ? collection.getItem(layoutInfo.parentKey) : null;
|
|
2355
|
+
while (node) {
|
|
2356
|
+
this.updateLayoutNode(node.key, layoutInfo, newLayoutInfo);
|
|
2357
|
+
node = node.parentKey != null ? collection.getItem(node.parentKey) : null;
|
|
2358
|
+
}
|
|
2359
|
+
return true;
|
|
2360
|
+
}
|
|
2361
|
+
return false;
|
|
2362
|
+
}
|
|
2363
|
+
updateLayoutNode(key, oldLayoutInfo, newLayoutInfo) {
|
|
2364
|
+
let n = this.layoutNodes.get(key);
|
|
2365
|
+
if (n) {
|
|
2366
|
+
n.validRect = n.validRect.intersection(this.validRect);
|
|
2367
|
+
if (n.layoutInfo === oldLayoutInfo) n.layoutInfo = newLayoutInfo;
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
getContentSize() {
|
|
2371
|
+
return this.contentSize;
|
|
2372
|
+
}
|
|
2373
|
+
getDropTargetFromPoint(x, y, isValidDropTarget) {
|
|
2374
|
+
x += this.virtualizer.visibleRect.x;
|
|
2375
|
+
y += this.virtualizer.visibleRect.y;
|
|
2376
|
+
let searchRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, Math.max(0, y - this.gap), 1, Math.max(1, this.gap * 2));
|
|
2377
|
+
let candidates = this.getVisibleLayoutInfos(searchRect);
|
|
2378
|
+
let key = null;
|
|
2379
|
+
let minDistance = Infinity;
|
|
2380
|
+
for (let candidate of candidates) {
|
|
2381
|
+
if (!candidate.rect.intersects(searchRect)) continue;
|
|
2382
|
+
let yDist = Math.abs(candidate.rect.y - y);
|
|
2383
|
+
let maxYDist = Math.abs(candidate.rect.maxY - y);
|
|
2384
|
+
let dist = Math.min(yDist, maxYDist);
|
|
2385
|
+
if (dist < minDistance) {
|
|
2386
|
+
minDistance = dist;
|
|
2387
|
+
key = candidate.key;
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
if (key == null || this.virtualizer.collection.size === 0) return { type: "root" };
|
|
2391
|
+
let layoutInfo = this.getLayoutInfo(key);
|
|
2392
|
+
if (!layoutInfo) return null;
|
|
2393
|
+
let rect = layoutInfo.rect;
|
|
2394
|
+
let target = {
|
|
2395
|
+
type: "item",
|
|
2396
|
+
key: layoutInfo.key,
|
|
2397
|
+
dropPosition: "on"
|
|
2398
|
+
};
|
|
2399
|
+
if (!isValidDropTarget(target)) {
|
|
2400
|
+
if (y <= rect.y + rect.height / 2 && isValidDropTarget({
|
|
2401
|
+
...target,
|
|
2402
|
+
dropPosition: "before"
|
|
2403
|
+
})) target.dropPosition = "before";
|
|
2404
|
+
else if (isValidDropTarget({
|
|
2405
|
+
...target,
|
|
2406
|
+
dropPosition: "after"
|
|
2407
|
+
})) target.dropPosition = "after";
|
|
2408
|
+
} else if (y <= rect.y + 10 && isValidDropTarget({
|
|
2409
|
+
...target,
|
|
2410
|
+
dropPosition: "before"
|
|
2411
|
+
})) target.dropPosition = "before";
|
|
2412
|
+
else if (y >= rect.maxY - 10 && isValidDropTarget({
|
|
2413
|
+
...target,
|
|
2414
|
+
dropPosition: "after"
|
|
2415
|
+
})) target.dropPosition = "after";
|
|
2416
|
+
return target;
|
|
2417
|
+
}
|
|
2418
|
+
getDropTargetLayoutInfo(target) {
|
|
2419
|
+
let layoutInfo = this.getLayoutInfo(target.key);
|
|
2420
|
+
let rect;
|
|
2421
|
+
if (target.dropPosition === "before") rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(layoutInfo.rect.x, Math.max(0, layoutInfo.rect.y - this.dropIndicatorThickness / 2), layoutInfo.rect.width, this.dropIndicatorThickness);
|
|
2422
|
+
else if (target.dropPosition === "after") {
|
|
2423
|
+
let targetNode = this.collection.getItem(target.key);
|
|
2424
|
+
if (targetNode) {
|
|
2425
|
+
var _targetNode_level;
|
|
2426
|
+
let targetLevel = (_targetNode_level = targetNode.level) !== null && _targetNode_level !== void 0 ? _targetNode_level : 0;
|
|
2427
|
+
let currentKey = this.collection.getKeyAfter(target.key);
|
|
2428
|
+
while (currentKey != null) {
|
|
2429
|
+
let node = this.collection.getItem(currentKey);
|
|
2430
|
+
if (!node || node.level <= targetLevel) break;
|
|
2431
|
+
layoutInfo = this.getLayoutInfo(currentKey) || layoutInfo;
|
|
2432
|
+
currentKey = this.collection.getKeyAfter(currentKey);
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(layoutInfo.rect.x, layoutInfo.rect.maxY - this.dropIndicatorThickness / 2, layoutInfo.rect.width, this.dropIndicatorThickness);
|
|
2436
|
+
} else rect = layoutInfo.rect;
|
|
2437
|
+
return new $d7fd61009c21d0bb$export$7e0eeb9da702a085("dropIndicator", target.key + ":" + target.dropPosition, rect);
|
|
2438
|
+
}
|
|
2439
|
+
/**
|
|
2440
|
+
* Creates a new ListLayout with options. See the list of properties below for a description
|
|
2441
|
+
* of the options that can be provided.
|
|
2442
|
+
*/ constructor(options = {}) {
|
|
2443
|
+
super();
|
|
2444
|
+
var _options_rowHeight;
|
|
2445
|
+
this.rowHeight = (_options_rowHeight = options.rowHeight) !== null && _options_rowHeight !== void 0 ? _options_rowHeight : null;
|
|
2446
|
+
var _options_estimatedRowHeight;
|
|
2447
|
+
this.estimatedRowHeight = (_options_estimatedRowHeight = options.estimatedRowHeight) !== null && _options_estimatedRowHeight !== void 0 ? _options_estimatedRowHeight : null;
|
|
2448
|
+
var _options_headingHeight;
|
|
2449
|
+
this.headingHeight = (_options_headingHeight = options.headingHeight) !== null && _options_headingHeight !== void 0 ? _options_headingHeight : null;
|
|
2450
|
+
var _options_estimatedHeadingHeight;
|
|
2451
|
+
this.estimatedHeadingHeight = (_options_estimatedHeadingHeight = options.estimatedHeadingHeight) !== null && _options_estimatedHeadingHeight !== void 0 ? _options_estimatedHeadingHeight : null;
|
|
2452
|
+
var _options_loaderHeight;
|
|
2453
|
+
this.loaderHeight = (_options_loaderHeight = options.loaderHeight) !== null && _options_loaderHeight !== void 0 ? _options_loaderHeight : null;
|
|
2454
|
+
this.dropIndicatorThickness = options.dropIndicatorThickness || 2;
|
|
2455
|
+
this.gap = options.gap || 0;
|
|
2456
|
+
this.padding = options.padding || 0;
|
|
2457
|
+
this.layoutNodes = /* @__PURE__ */ new Map();
|
|
2458
|
+
this.rootNodes = [];
|
|
2459
|
+
this.lastCollection = null;
|
|
2460
|
+
this.invalidateEverything = false;
|
|
2461
|
+
this.validRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d();
|
|
2462
|
+
this.requestedRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d();
|
|
2463
|
+
this.contentSize = new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec();
|
|
2464
|
+
}
|
|
2465
|
+
};
|
|
2466
|
+
//#endregion
|
|
2467
|
+
//#region ../../node_modules/.bun/@react-aria+virtualizer@4.1.12+67f6792bdf102c28/node_modules/@react-aria/virtualizer/dist/utils.mjs
|
|
2468
|
+
let $ce415dc67314b753$var$cachedRTLResult = null;
|
|
2469
|
+
function $ce415dc67314b753$export$faf7630257ad4304(recalculate = false) {
|
|
2470
|
+
if ($ce415dc67314b753$var$cachedRTLResult === null || recalculate) {
|
|
2471
|
+
const outerDiv = document.createElement("div");
|
|
2472
|
+
const outerStyle = outerDiv.style;
|
|
2473
|
+
outerStyle.width = "50px";
|
|
2474
|
+
outerStyle.height = "50px";
|
|
2475
|
+
outerStyle.overflow = "scroll";
|
|
2476
|
+
outerStyle.direction = "rtl";
|
|
2477
|
+
const innerDiv = document.createElement("div");
|
|
2478
|
+
const innerStyle = innerDiv.style;
|
|
2479
|
+
innerStyle.width = "100px";
|
|
2480
|
+
innerStyle.height = "100px";
|
|
2481
|
+
outerDiv.appendChild(innerDiv);
|
|
2482
|
+
document.body.appendChild(outerDiv);
|
|
2483
|
+
if (outerDiv.scrollLeft > 0) $ce415dc67314b753$var$cachedRTLResult = "positive-descending";
|
|
2484
|
+
else {
|
|
2485
|
+
outerDiv.scrollLeft = 1;
|
|
2486
|
+
if (outerDiv.scrollLeft === 0) $ce415dc67314b753$var$cachedRTLResult = "negative";
|
|
2487
|
+
else $ce415dc67314b753$var$cachedRTLResult = "positive-ascending";
|
|
2488
|
+
}
|
|
2489
|
+
document.body.removeChild(outerDiv);
|
|
2490
|
+
return $ce415dc67314b753$var$cachedRTLResult;
|
|
2491
|
+
}
|
|
2492
|
+
return $ce415dc67314b753$var$cachedRTLResult;
|
|
2493
|
+
}
|
|
2494
|
+
function $ce415dc67314b753$export$1389d168952b34b5(node, direction) {
|
|
2495
|
+
let { scrollLeft } = node;
|
|
2496
|
+
if (direction === "rtl") {
|
|
2497
|
+
let { scrollWidth, clientWidth } = node;
|
|
2498
|
+
switch ($ce415dc67314b753$export$faf7630257ad4304()) {
|
|
2499
|
+
case "negative":
|
|
2500
|
+
scrollLeft = -scrollLeft;
|
|
2501
|
+
break;
|
|
2502
|
+
case "positive-descending": scrollLeft = scrollWidth - clientWidth - scrollLeft;
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
return scrollLeft;
|
|
2506
|
+
}
|
|
2507
|
+
//#endregion
|
|
2508
|
+
//#region ../../node_modules/.bun/@react-aria+virtualizer@4.1.12+67f6792bdf102c28/node_modules/@react-aria/virtualizer/dist/ScrollView.mjs
|
|
2509
|
+
function $44a6ee657928b002$export$2ea0c4974da4731b(props, ref) {
|
|
2510
|
+
let { contentSize, onVisibleRectChange, innerStyle, onScrollStart, onScrollEnd, scrollDirection = "both", ...otherProps } = props;
|
|
2511
|
+
let state = useRef({
|
|
2512
|
+
scrollTop: 0,
|
|
2513
|
+
scrollLeft: 0,
|
|
2514
|
+
scrollEndTime: 0,
|
|
2515
|
+
scrollTimeout: null,
|
|
2516
|
+
width: 0,
|
|
2517
|
+
height: 0,
|
|
2518
|
+
isScrolling: false
|
|
2519
|
+
}).current;
|
|
2520
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
2521
|
+
let [isScrolling, setScrolling] = useState(false);
|
|
2522
|
+
let onScroll = useCallback((e) => {
|
|
2523
|
+
if (e.target !== e.currentTarget) return;
|
|
2524
|
+
if (props.onScroll) props.onScroll(e);
|
|
2525
|
+
flushSync(() => {
|
|
2526
|
+
let scrollTop = e.currentTarget.scrollTop;
|
|
2527
|
+
let scrollLeft = $ce415dc67314b753$export$1389d168952b34b5(e.currentTarget, direction);
|
|
2528
|
+
state.scrollTop = Math.max(0, Math.min(scrollTop, contentSize.height - state.height));
|
|
2529
|
+
state.scrollLeft = Math.max(0, Math.min(scrollLeft, contentSize.width - state.width));
|
|
2530
|
+
onVisibleRectChange(new $60423f92c7f9ad87$export$c79fc6492f3af13d(state.scrollLeft, state.scrollTop, state.width, state.height));
|
|
2531
|
+
if (!state.isScrolling) {
|
|
2532
|
+
state.isScrolling = true;
|
|
2533
|
+
setScrolling(true);
|
|
2534
|
+
window.dispatchEvent(new Event("tk.disconnect-observer"));
|
|
2535
|
+
if (onScrollStart) onScrollStart();
|
|
2536
|
+
}
|
|
2537
|
+
let now = Date.now();
|
|
2538
|
+
if (state.scrollEndTime <= now + 50) {
|
|
2539
|
+
state.scrollEndTime = now + 300;
|
|
2540
|
+
if (state.scrollTimeout != null) clearTimeout(state.scrollTimeout);
|
|
2541
|
+
state.scrollTimeout = setTimeout(() => {
|
|
2542
|
+
state.isScrolling = false;
|
|
2543
|
+
setScrolling(false);
|
|
2544
|
+
state.scrollTimeout = null;
|
|
2545
|
+
window.dispatchEvent(new Event("tk.connect-observer"));
|
|
2546
|
+
if (onScrollEnd) onScrollEnd();
|
|
2547
|
+
}, 300);
|
|
2548
|
+
}
|
|
2549
|
+
});
|
|
2550
|
+
}, [
|
|
2551
|
+
props,
|
|
2552
|
+
direction,
|
|
2553
|
+
state,
|
|
2554
|
+
contentSize,
|
|
2555
|
+
onVisibleRectChange,
|
|
2556
|
+
onScrollStart,
|
|
2557
|
+
onScrollEnd
|
|
2558
|
+
]);
|
|
2559
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, "scroll", onScroll);
|
|
2560
|
+
useEffect(() => {
|
|
2561
|
+
return () => {
|
|
2562
|
+
if (state.scrollTimeout != null) clearTimeout(state.scrollTimeout);
|
|
2563
|
+
if (state.isScrolling) window.dispatchEvent(new Event("tk.connect-observer"));
|
|
2564
|
+
};
|
|
2565
|
+
}, []);
|
|
2566
|
+
let isUpdatingSize = useRef(false);
|
|
2567
|
+
let updateSize = useCallback((flush) => {
|
|
2568
|
+
let dom = ref.current;
|
|
2569
|
+
if (!dom || isUpdatingSize.current) return;
|
|
2570
|
+
isUpdatingSize.current = true;
|
|
2571
|
+
Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth");
|
|
2572
|
+
Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight");
|
|
2573
|
+
let clientWidth = dom.clientWidth;
|
|
2574
|
+
let clientHeight = dom.clientHeight;
|
|
2575
|
+
let w = clientWidth;
|
|
2576
|
+
let h = clientHeight;
|
|
2577
|
+
if (state.width !== w || state.height !== h) {
|
|
2578
|
+
state.width = w;
|
|
2579
|
+
state.height = h;
|
|
2580
|
+
flush(() => {
|
|
2581
|
+
onVisibleRectChange(new $60423f92c7f9ad87$export$c79fc6492f3af13d(state.scrollLeft, state.scrollTop, w, h));
|
|
2582
|
+
});
|
|
2583
|
+
if (clientWidth !== dom.clientWidth || clientHeight !== dom.clientHeight) {
|
|
2584
|
+
state.width = dom.clientWidth;
|
|
2585
|
+
state.height = dom.clientHeight;
|
|
2586
|
+
flush(() => {
|
|
2587
|
+
onVisibleRectChange(new $60423f92c7f9ad87$export$c79fc6492f3af13d(state.scrollLeft, state.scrollTop, state.width, state.height));
|
|
2588
|
+
});
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
isUpdatingSize.current = false;
|
|
2592
|
+
}, [
|
|
2593
|
+
ref,
|
|
2594
|
+
state,
|
|
2595
|
+
onVisibleRectChange
|
|
2596
|
+
]);
|
|
2597
|
+
let updateSizeEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(updateSize);
|
|
2598
|
+
let lastContentSize = useRef(null);
|
|
2599
|
+
let [update, setUpdate] = useState({});
|
|
2600
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
2601
|
+
if (!isUpdatingSize.current && (lastContentSize.current == null || !contentSize.equals(lastContentSize.current))) if (typeof IS_REACT_ACT_ENVIRONMENT === "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== "undefined") {
|
|
2602
|
+
setUpdate({});
|
|
2603
|
+
lastContentSize.current = contentSize;
|
|
2604
|
+
return;
|
|
2605
|
+
} else queueMicrotask(() => updateSizeEvent(flushSync));
|
|
2606
|
+
lastContentSize.current = contentSize;
|
|
2607
|
+
});
|
|
2608
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
2609
|
+
updateSizeEvent((fn) => fn());
|
|
2610
|
+
}, [update]);
|
|
2611
|
+
let onResize = useCallback(() => {
|
|
2612
|
+
updateSize(flushSync);
|
|
2613
|
+
}, [updateSize]);
|
|
2614
|
+
$9daab02d461809db$export$683480f191c0e3ea({
|
|
2615
|
+
ref,
|
|
2616
|
+
box: "border-box",
|
|
2617
|
+
onResize
|
|
2618
|
+
});
|
|
2619
|
+
let style = {
|
|
2620
|
+
padding: 0,
|
|
2621
|
+
...otherProps.style
|
|
2622
|
+
};
|
|
2623
|
+
if (scrollDirection === "horizontal") {
|
|
2624
|
+
style.overflowX = "auto";
|
|
2625
|
+
style.overflowY = "hidden";
|
|
2626
|
+
} else if (scrollDirection === "vertical" || contentSize.width === state.width) {
|
|
2627
|
+
style.overflowY = "auto";
|
|
2628
|
+
style.overflowX = "hidden";
|
|
2629
|
+
} else style.overflow = "auto";
|
|
2630
|
+
innerStyle = {
|
|
2631
|
+
width: Number.isFinite(contentSize.width) ? contentSize.width : void 0,
|
|
2632
|
+
height: Number.isFinite(contentSize.height) ? contentSize.height : void 0,
|
|
2633
|
+
pointerEvents: isScrolling ? "none" : "auto",
|
|
2634
|
+
position: "relative",
|
|
2635
|
+
...innerStyle
|
|
2636
|
+
};
|
|
2637
|
+
return {
|
|
2638
|
+
isScrolling,
|
|
2639
|
+
scrollViewProps: {
|
|
2640
|
+
...otherProps,
|
|
2641
|
+
style
|
|
2642
|
+
},
|
|
2643
|
+
contentProps: {
|
|
2644
|
+
role: "presentation",
|
|
2645
|
+
style: innerStyle
|
|
2646
|
+
}
|
|
2647
|
+
};
|
|
2648
|
+
}
|
|
2649
|
+
//#endregion
|
|
2650
|
+
//#region ../../node_modules/.bun/@react-aria+virtualizer@4.1.12+67f6792bdf102c28/node_modules/@react-aria/virtualizer/dist/useVirtualizerItem.mjs
|
|
2651
|
+
function $47736c1e63ba1c6d$export$1da781778207e0a2(options) {
|
|
2652
|
+
let { layoutInfo, virtualizer, ref } = options;
|
|
2653
|
+
let key = layoutInfo === null || layoutInfo === void 0 ? void 0 : layoutInfo.key;
|
|
2654
|
+
let updateSize = useCallback(() => {
|
|
2655
|
+
if (key != null && ref.current) {
|
|
2656
|
+
let size = $47736c1e63ba1c6d$var$getSize(ref.current);
|
|
2657
|
+
virtualizer.updateItemSize(key, size);
|
|
2658
|
+
}
|
|
2659
|
+
}, [
|
|
2660
|
+
virtualizer,
|
|
2661
|
+
key,
|
|
2662
|
+
ref
|
|
2663
|
+
]);
|
|
2664
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
2665
|
+
if (layoutInfo === null || layoutInfo === void 0 ? void 0 : layoutInfo.estimatedSize) updateSize();
|
|
2666
|
+
});
|
|
2667
|
+
return { updateSize };
|
|
2668
|
+
}
|
|
2669
|
+
function $47736c1e63ba1c6d$var$getSize(node) {
|
|
2670
|
+
let height = node.style.height;
|
|
2671
|
+
node.style.height = "";
|
|
2672
|
+
let size = new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec(node.scrollWidth, node.scrollHeight);
|
|
2673
|
+
node.style.height = height;
|
|
2674
|
+
return size;
|
|
2675
|
+
}
|
|
2676
|
+
//#endregion
|
|
2677
|
+
//#region ../../node_modules/.bun/@react-aria+virtualizer@4.1.12+67f6792bdf102c28/node_modules/@react-aria/virtualizer/dist/VirtualizerItem.mjs
|
|
2678
|
+
function $ccf8a0a04e4175ae$export$6796df8ba7398521(props) {
|
|
2679
|
+
let { style, className, layoutInfo, virtualizer, parent, children } = props;
|
|
2680
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
2681
|
+
let ref = useRef(null);
|
|
2682
|
+
$47736c1e63ba1c6d$export$1da781778207e0a2({
|
|
2683
|
+
layoutInfo,
|
|
2684
|
+
virtualizer,
|
|
2685
|
+
ref
|
|
2686
|
+
});
|
|
2687
|
+
return /*#__PURE__*/ $HgANd$react.createElement("div", {
|
|
2688
|
+
role: "presentation",
|
|
2689
|
+
ref,
|
|
2690
|
+
className,
|
|
2691
|
+
style: {
|
|
2692
|
+
...$ccf8a0a04e4175ae$export$1481e64fbe01b8b3(layoutInfo, direction, parent),
|
|
2693
|
+
...style
|
|
2694
|
+
}
|
|
2695
|
+
}, children);
|
|
2696
|
+
}
|
|
2697
|
+
let $ccf8a0a04e4175ae$var$cache = /* @__PURE__ */ new WeakMap();
|
|
2698
|
+
function $ccf8a0a04e4175ae$export$1481e64fbe01b8b3(layoutInfo, dir, parent) {
|
|
2699
|
+
let xProperty = dir === "rtl" ? "right" : "left";
|
|
2700
|
+
let cached = $ccf8a0a04e4175ae$var$cache.get(layoutInfo);
|
|
2701
|
+
if (cached && cached[xProperty] != null) {
|
|
2702
|
+
if (!parent) return cached;
|
|
2703
|
+
let top = layoutInfo.rect.y - parent.rect.y;
|
|
2704
|
+
let x = layoutInfo.rect.x - parent.rect.x;
|
|
2705
|
+
if (cached.top === top && cached[xProperty] === x) return cached;
|
|
2706
|
+
}
|
|
2707
|
+
let rectStyles = {
|
|
2708
|
+
top: layoutInfo.rect.y - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.y : 0),
|
|
2709
|
+
[xProperty]: layoutInfo.rect.x - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.x : 0),
|
|
2710
|
+
width: layoutInfo.rect.width,
|
|
2711
|
+
height: layoutInfo.rect.height
|
|
2712
|
+
};
|
|
2713
|
+
Object.entries(rectStyles).forEach(([key, value]) => {
|
|
2714
|
+
if (!Number.isFinite(value)) rectStyles[key] = void 0;
|
|
2715
|
+
});
|
|
2716
|
+
var _layoutInfo_transform;
|
|
2717
|
+
let style = {
|
|
2718
|
+
position: layoutInfo.isSticky ? "sticky" : "absolute",
|
|
2719
|
+
display: layoutInfo.isSticky ? "inline-block" : void 0,
|
|
2720
|
+
overflow: layoutInfo.allowOverflow ? "visible" : "hidden",
|
|
2721
|
+
opacity: layoutInfo.opacity,
|
|
2722
|
+
zIndex: layoutInfo.zIndex,
|
|
2723
|
+
transform: (_layoutInfo_transform = layoutInfo.transform) !== null && _layoutInfo_transform !== void 0 ? _layoutInfo_transform : void 0,
|
|
2724
|
+
contain: "size layout style",
|
|
2725
|
+
...rectStyles
|
|
2726
|
+
};
|
|
2727
|
+
$ccf8a0a04e4175ae$var$cache.set(layoutInfo, style);
|
|
2728
|
+
return style;
|
|
2729
|
+
}
|
|
2730
|
+
//#endregion
|
|
2731
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Virtualizer.mjs
|
|
2732
|
+
const $ce3a951440fc273f$var$VirtualizerContext = /*#__PURE__*/ createContext(null);
|
|
2733
|
+
const $ce3a951440fc273f$var$LayoutContext = /*#__PURE__*/ createContext(null);
|
|
2734
|
+
function $ce3a951440fc273f$export$89be5a243e59c4b2(props) {
|
|
2735
|
+
let { children, layout: layoutProp, layoutOptions } = props;
|
|
2736
|
+
let layout = useMemo(() => typeof layoutProp === "function" ? new layoutProp() : layoutProp, [layoutProp]);
|
|
2737
|
+
let renderer = useMemo(() => ({
|
|
2738
|
+
isVirtualized: true,
|
|
2739
|
+
layoutDelegate: layout,
|
|
2740
|
+
dropTargetDelegate: layout.getDropTargetFromPoint ? layout : void 0,
|
|
2741
|
+
CollectionRoot: $ce3a951440fc273f$var$CollectionRoot,
|
|
2742
|
+
CollectionBranch: $ce3a951440fc273f$var$CollectionBranch
|
|
2743
|
+
}), [layout]);
|
|
2744
|
+
return /*#__PURE__*/ $HgANd$react.createElement($7135fc7d473fd974$export$4feb769f8ddf26c5.Provider, { value: renderer }, /*#__PURE__*/ $HgANd$react.createElement($ce3a951440fc273f$var$LayoutContext.Provider, { value: {
|
|
2745
|
+
layout,
|
|
2746
|
+
layoutOptions
|
|
2747
|
+
} }, children));
|
|
2748
|
+
}
|
|
2749
|
+
function $ce3a951440fc273f$var$CollectionRoot({ collection, persistedKeys, scrollRef, renderDropIndicator }) {
|
|
2750
|
+
var _layout_useLayoutOptions;
|
|
2751
|
+
let { layout, layoutOptions } = useContext($ce3a951440fc273f$var$LayoutContext);
|
|
2752
|
+
let layoutOptions2 = (_layout_useLayoutOptions = layout.useLayoutOptions) === null || _layout_useLayoutOptions === void 0 ? void 0 : _layout_useLayoutOptions.call(layout);
|
|
2753
|
+
let state = $fc0b13b484ac1194$export$1505db82fe357e65({
|
|
2754
|
+
layout,
|
|
2755
|
+
collection,
|
|
2756
|
+
renderView: (type, item) => {
|
|
2757
|
+
var _item_render;
|
|
2758
|
+
return item === null || item === void 0 ? void 0 : (_item_render = item.render) === null || _item_render === void 0 ? void 0 : _item_render.call(item, item);
|
|
2759
|
+
},
|
|
2760
|
+
onVisibleRectChange(rect) {
|
|
2761
|
+
let element = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current;
|
|
2762
|
+
if (element) {
|
|
2763
|
+
element.scrollLeft = rect.x;
|
|
2764
|
+
element.scrollTop = rect.y;
|
|
2765
|
+
}
|
|
2766
|
+
},
|
|
2767
|
+
persistedKeys,
|
|
2768
|
+
layoutOptions: useMemo(() => {
|
|
2769
|
+
if (layoutOptions && layoutOptions2) return {
|
|
2770
|
+
...layoutOptions,
|
|
2771
|
+
...layoutOptions2
|
|
2772
|
+
};
|
|
2773
|
+
return layoutOptions || layoutOptions2;
|
|
2774
|
+
}, [layoutOptions, layoutOptions2])
|
|
2775
|
+
});
|
|
2776
|
+
let { contentProps } = $44a6ee657928b002$export$2ea0c4974da4731b({
|
|
2777
|
+
onVisibleRectChange: state.setVisibleRect,
|
|
2778
|
+
contentSize: state.contentSize,
|
|
2779
|
+
onScrollStart: state.startScrolling,
|
|
2780
|
+
onScrollEnd: state.endScrolling
|
|
2781
|
+
}, scrollRef);
|
|
2782
|
+
return /*#__PURE__*/ $HgANd$react.createElement("div", contentProps, /*#__PURE__*/ $HgANd$react.createElement($ce3a951440fc273f$var$VirtualizerContext.Provider, { value: state }, $ce3a951440fc273f$var$renderChildren(null, state.visibleViews, renderDropIndicator)));
|
|
2783
|
+
}
|
|
2784
|
+
function $ce3a951440fc273f$var$CollectionBranch({ parent, renderDropIndicator }) {
|
|
2785
|
+
let parentView = useContext($ce3a951440fc273f$var$VirtualizerContext).virtualizer.getVisibleView(parent.key);
|
|
2786
|
+
return $ce3a951440fc273f$var$renderChildren(parentView, Array.from(parentView.children), renderDropIndicator);
|
|
2787
|
+
}
|
|
2788
|
+
function $ce3a951440fc273f$var$renderChildren(parent, children, renderDropIndicator) {
|
|
2789
|
+
return children.map((view) => $ce3a951440fc273f$var$renderWrapper(parent, view, renderDropIndicator));
|
|
2790
|
+
}
|
|
2791
|
+
function $ce3a951440fc273f$var$renderWrapper(parent, reusableView, renderDropIndicator) {
|
|
2792
|
+
let rendered = /*#__PURE__*/ $HgANd$react.createElement($ccf8a0a04e4175ae$export$6796df8ba7398521, {
|
|
2793
|
+
key: reusableView.key,
|
|
2794
|
+
layoutInfo: reusableView.layoutInfo,
|
|
2795
|
+
virtualizer: reusableView.virtualizer,
|
|
2796
|
+
parent: parent === null || parent === void 0 ? void 0 : parent.layoutInfo
|
|
2797
|
+
}, reusableView.rendered);
|
|
2798
|
+
let { collection, layout } = reusableView.virtualizer;
|
|
2799
|
+
let node = reusableView.content;
|
|
2800
|
+
if ((node === null || node === void 0 ? void 0 : node.type) === "item" && renderDropIndicator && layout.getDropTargetLayoutInfo) rendered = /*#__PURE__*/ $HgANd$react.createElement($HgANd$react.Fragment, { key: reusableView.key }, $ce3a951440fc273f$var$renderDropIndicatorWrapper(parent, reusableView, {
|
|
2801
|
+
type: "item",
|
|
2802
|
+
key: reusableView.content.key,
|
|
2803
|
+
dropPosition: "before"
|
|
2804
|
+
}, renderDropIndicator), rendered, $7135fc7d473fd974$export$2dbbd341daed716d(collection, node, (target) => $ce3a951440fc273f$var$renderDropIndicatorWrapper(parent, reusableView, target, renderDropIndicator)));
|
|
2805
|
+
return rendered;
|
|
2806
|
+
}
|
|
2807
|
+
function $ce3a951440fc273f$var$renderDropIndicatorWrapper(parent, reusableView, target, renderDropIndicator) {
|
|
2808
|
+
let indicator = renderDropIndicator(target);
|
|
2809
|
+
if (indicator) {
|
|
2810
|
+
let layoutInfo = reusableView.virtualizer.layout.getDropTargetLayoutInfo(target);
|
|
2811
|
+
indicator = /*#__PURE__*/ $HgANd$react.createElement($ccf8a0a04e4175ae$export$6796df8ba7398521, {
|
|
2812
|
+
layoutInfo,
|
|
2813
|
+
virtualizer: reusableView.virtualizer,
|
|
2814
|
+
parent: parent === null || parent === void 0 ? void 0 : parent.layoutInfo
|
|
2815
|
+
}, indicator);
|
|
2816
|
+
}
|
|
2817
|
+
return indicator;
|
|
2818
|
+
}
|
|
2819
|
+
//#endregion
|
|
2820
|
+
//#region src/components/inputs/Selection/shared/SelectInputTags.tsx
|
|
2821
|
+
const SelectInputTags = ({ selectedItems, isDisabled, selectedTagsType, collapseAfter, onRemove }) => {
|
|
2822
|
+
const { displayedItems, remainingCount } = useMemo(() => {
|
|
2823
|
+
if (!collapseAfter || selectedItems.length <= collapseAfter) return {
|
|
2824
|
+
displayedItems: selectedItems,
|
|
2825
|
+
remainingCount: 0
|
|
2826
|
+
};
|
|
2827
|
+
return {
|
|
2828
|
+
displayedItems: selectedItems.slice(0, collapseAfter - 1),
|
|
2829
|
+
remainingCount: selectedItems.length - (collapseAfter - 1)
|
|
2830
|
+
};
|
|
2831
|
+
}, [selectedItems, collapseAfter]);
|
|
2832
|
+
if (selectedTagsType === "tags") return /* @__PURE__ */ jsxs(Fragment$1, { children: [displayedItems.map((item) => /* @__PURE__ */ jsx(Tag, {
|
|
2833
|
+
dismissable: true,
|
|
2834
|
+
isDisabled,
|
|
2835
|
+
onDismiss: () => onRemove(item.id),
|
|
2836
|
+
excludeFromTabOrder: true,
|
|
2837
|
+
className: "z-raised",
|
|
2838
|
+
children: item.label
|
|
2839
|
+
}, item.id)), remainingCount > 0 && /* @__PURE__ */ jsx(Tag, {
|
|
2840
|
+
isDisabled,
|
|
2841
|
+
excludeFromTabOrder: true,
|
|
2842
|
+
children: `+${remainingCount} more`
|
|
2843
|
+
}, "remaining-count")] });
|
|
2844
|
+
return /* @__PURE__ */ jsx("p", { children: selectedItems.map((item) => item.label).join(", ") });
|
|
2845
|
+
};
|
|
2846
|
+
//#endregion
|
|
2847
|
+
//#region src/components/inputs/Selection/shared/useSelectItems.tsx
|
|
2848
|
+
const SelectAllItemId = "all-item-id";
|
|
2849
|
+
const SelectAllItem = (inputValue) => ({
|
|
2850
|
+
id: SelectAllItemId,
|
|
2851
|
+
label: inputValue,
|
|
2852
|
+
isSelectAllItem: true
|
|
2853
|
+
});
|
|
2854
|
+
const NewItemId = "new-item-id";
|
|
2855
|
+
const NewItem = (inputValue) => ({
|
|
2856
|
+
id: NewItemId,
|
|
2857
|
+
label: inputValue,
|
|
2858
|
+
isNewItem: true
|
|
2859
|
+
});
|
|
2860
|
+
const LoadingItemId = "loading-item-id";
|
|
2861
|
+
const LoadingItem = (inputValue) => ({
|
|
2862
|
+
id: LoadingItemId,
|
|
2863
|
+
label: inputValue,
|
|
2864
|
+
isLoadingItem: true
|
|
2865
|
+
});
|
|
2866
|
+
const ReservedItemIds = [
|
|
2867
|
+
SelectAllItemId,
|
|
2868
|
+
NewItemId,
|
|
2869
|
+
LoadingItemId
|
|
2870
|
+
];
|
|
2871
|
+
function useSelectItems({ initialSelectedItems, selectedItems, cachedItems, inputValue, showAll, isMultiple, showSelectAllOption, showNewItemOption, newItemMinLength = 3, isLoading, hasLoadMore, isClientSearchDisabled }) {
|
|
2872
|
+
const { contains } = $bb77f239b46e8c72$export$3274cf84b703fff({ sensitivity: "base" });
|
|
2873
|
+
const allListItems = useMemo(() => {
|
|
2874
|
+
const showSelectAllItem = isMultiple && showSelectAllOption && inputValue.length === 0 && !hasLoadMore;
|
|
2875
|
+
const showNewItem = showNewItemOption && inputValue.length >= newItemMinLength && !cachedItems.find((item) => contains(item.label, inputValue));
|
|
2876
|
+
const showLoadingItem = isLoading || hasLoadMore;
|
|
2877
|
+
return [
|
|
2878
|
+
...showSelectAllItem ? [SelectAllItem(inputValue)] : [],
|
|
2879
|
+
...cachedItems,
|
|
2880
|
+
...showNewItem ? [NewItem(inputValue)] : [],
|
|
2881
|
+
...showLoadingItem ? [LoadingItem(inputValue)] : []
|
|
2882
|
+
];
|
|
2883
|
+
}, [
|
|
2884
|
+
isMultiple,
|
|
2885
|
+
showNewItemOption,
|
|
2886
|
+
inputValue,
|
|
2887
|
+
newItemMinLength,
|
|
2888
|
+
cachedItems,
|
|
2889
|
+
contains,
|
|
2890
|
+
isLoading,
|
|
2891
|
+
hasLoadMore,
|
|
2892
|
+
showSelectAllOption
|
|
2893
|
+
]);
|
|
2894
|
+
const allItems = useMemo(() => {
|
|
2895
|
+
const items = [
|
|
2896
|
+
...Array.isArray(initialSelectedItems) ? initialSelectedItems : [initialSelectedItems],
|
|
2897
|
+
...Array.isArray(selectedItems) ? selectedItems : [selectedItems],
|
|
2898
|
+
...allListItems
|
|
2899
|
+
].filter((item) => !!item);
|
|
2900
|
+
const allItemsMap = /* @__PURE__ */ new Map();
|
|
2901
|
+
items.forEach((item) => allItemsMap.set(item.id, item));
|
|
2902
|
+
return Array.from(allItemsMap.values());
|
|
2903
|
+
}, [
|
|
2904
|
+
allListItems,
|
|
2905
|
+
initialSelectedItems,
|
|
2906
|
+
selectedItems
|
|
2907
|
+
]);
|
|
2908
|
+
const filteredListItems = useMemo(() => allListItems.filter((item) => contains(item.label, inputValue)), [
|
|
2909
|
+
allListItems,
|
|
2910
|
+
contains,
|
|
2911
|
+
inputValue
|
|
2912
|
+
]);
|
|
2913
|
+
const listItems = useMemo(() => showAll || isClientSearchDisabled ? allListItems : filteredListItems, [
|
|
2914
|
+
showAll,
|
|
2915
|
+
isClientSearchDisabled,
|
|
2916
|
+
allListItems,
|
|
2917
|
+
filteredListItems
|
|
2918
|
+
]);
|
|
2919
|
+
return {
|
|
2920
|
+
allItems,
|
|
2921
|
+
allListItems,
|
|
2922
|
+
filteredListItems,
|
|
2923
|
+
listItems,
|
|
2924
|
+
selectableListItems: useMemo(() => listItems.filter((item) => !item.isDisabled && !ReservedItemIds.includes(String(item.id))), [listItems])
|
|
2925
|
+
};
|
|
2926
|
+
}
|
|
2927
|
+
//#endregion
|
|
2928
|
+
//#region src/hooks/useDebounceCallback.ts
|
|
2929
|
+
function useDebounceCallback(callback, t0) {
|
|
2930
|
+
const $ = c(10);
|
|
2931
|
+
let t1;
|
|
2932
|
+
if ($[0] !== t0) {
|
|
2933
|
+
t1 = t0 === void 0 ? {} : t0;
|
|
2934
|
+
$[0] = t0;
|
|
2935
|
+
$[1] = t1;
|
|
2936
|
+
} else t1 = $[1];
|
|
2937
|
+
const { delay: t2 } = t1;
|
|
2938
|
+
const delay = t2 === void 0 ? 500 : t2;
|
|
2939
|
+
const timeoutRef = useRef(null);
|
|
2940
|
+
const [isDebouncing, setIsDebouncing] = useState(false);
|
|
2941
|
+
let t3;
|
|
2942
|
+
if ($[2] !== callback || $[3] !== delay) {
|
|
2943
|
+
t3 = (...t4) => {
|
|
2944
|
+
const args = t4;
|
|
2945
|
+
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
2946
|
+
setIsDebouncing(true);
|
|
2947
|
+
timeoutRef.current = setTimeout(() => {
|
|
2948
|
+
setIsDebouncing(false);
|
|
2949
|
+
callback?.(...args);
|
|
2950
|
+
}, delay);
|
|
2951
|
+
};
|
|
2952
|
+
$[2] = callback;
|
|
2953
|
+
$[3] = delay;
|
|
2954
|
+
$[4] = t3;
|
|
2955
|
+
} else t3 = $[4];
|
|
2956
|
+
const debouncedCallback = t3;
|
|
2957
|
+
let t4;
|
|
2958
|
+
let t5;
|
|
2959
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2960
|
+
t4 = () => () => {
|
|
2961
|
+
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
2962
|
+
};
|
|
2963
|
+
t5 = [];
|
|
2964
|
+
$[5] = t4;
|
|
2965
|
+
$[6] = t5;
|
|
2966
|
+
} else {
|
|
2967
|
+
t4 = $[5];
|
|
2968
|
+
t5 = $[6];
|
|
2969
|
+
}
|
|
2970
|
+
useEffect(t4, t5);
|
|
2971
|
+
let t6;
|
|
2972
|
+
if ($[7] !== debouncedCallback || $[8] !== isDebouncing) {
|
|
2973
|
+
t6 = {
|
|
2974
|
+
callback: debouncedCallback,
|
|
2975
|
+
isDebouncing
|
|
2976
|
+
};
|
|
2977
|
+
$[7] = debouncedCallback;
|
|
2978
|
+
$[8] = isDebouncing;
|
|
2979
|
+
$[9] = t6;
|
|
2980
|
+
} else t6 = $[9];
|
|
2981
|
+
return t6;
|
|
2982
|
+
}
|
|
2983
|
+
//#endregion
|
|
2984
|
+
//#region src/components/inputs/Selection/shared/select.context.tsx
|
|
2985
|
+
let SelectContext;
|
|
2986
|
+
(function(_SelectContext) {
|
|
2987
|
+
const Context = createContext({});
|
|
2988
|
+
const defaultMapInitialToSelectItem = (item) => ({
|
|
2989
|
+
id: item.id,
|
|
2990
|
+
label: item.label ?? item.name ?? ""
|
|
2991
|
+
});
|
|
2992
|
+
_SelectContext.Provider = ({ items, onInputChange, onSearchChange, showSelectAllOption, showNewItemOption, newItemMinLength, onNewItemOption, isLoading, hasLoadMore, isClientSearchDisabled, ignoreInputValueFiltering, searchDebounceDelay, multiSelectAutoConfirm = false, onBlur: fieldOnBlur, onChange: fieldOnChange, initialSelection, isSearchable, selectionMode, value: controlledValue, children, mapInitialToSelectItem = defaultMapInitialToSelectItem }) => {
|
|
2993
|
+
const isMultiple = selectionMode === "multiple";
|
|
2994
|
+
const initialSelectedItems = useMemo(() => {
|
|
2995
|
+
if (!initialSelection) return null;
|
|
2996
|
+
if (Array.isArray(initialSelection)) return initialSelection.map(mapInitialToSelectItem);
|
|
2997
|
+
return mapInitialToSelectItem(initialSelection);
|
|
2998
|
+
}, [initialSelection, mapInitialToSelectItem]);
|
|
2999
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
3000
|
+
const [fieldState, setFieldState] = useState({
|
|
3001
|
+
value: controlledValue ?? (isMultiple ? [] : null),
|
|
3002
|
+
inputValue: "",
|
|
3003
|
+
searchValue: ""
|
|
3004
|
+
});
|
|
3005
|
+
const { callback: onSearchChangeDebounced, isDebouncing } = useDebounceCallback(onSearchChange, { delay: searchDebounceDelay });
|
|
3006
|
+
const [showAll, setShowAll] = useState(false);
|
|
3007
|
+
const [cachedItems, setCachedItems] = useState(items);
|
|
3008
|
+
const valueRef = useRef(initialSelectedItems);
|
|
3009
|
+
useEffect(() => {
|
|
3010
|
+
if (!isLoading) setCachedItems(items);
|
|
3011
|
+
}, [isLoading, items]);
|
|
3012
|
+
const { allItems, allListItems, listItems, selectableListItems } = useSelectItems({
|
|
3013
|
+
initialSelectedItems,
|
|
3014
|
+
selectedItems: valueRef.current,
|
|
3015
|
+
cachedItems,
|
|
3016
|
+
inputValue: fieldState.inputValue,
|
|
3017
|
+
showAll,
|
|
3018
|
+
isMultiple,
|
|
3019
|
+
showSelectAllOption,
|
|
3020
|
+
showNewItemOption,
|
|
3021
|
+
newItemMinLength,
|
|
3022
|
+
isLoading,
|
|
3023
|
+
hasLoadMore,
|
|
3024
|
+
isClientSearchDisabled: ignoreInputValueFiltering ?? isClientSearchDisabled
|
|
3025
|
+
});
|
|
3026
|
+
const selectedItems = useMemo(() => {
|
|
3027
|
+
const getItem = (id) => allItems.find((item) => item.id === id) ?? null;
|
|
3028
|
+
if (Array.isArray(fieldState.value)) return fieldState.value.map((id) => getItem(id)).filter((item) => item !== null);
|
|
3029
|
+
const selectedItem = fieldState.value != null ? getItem(fieldState.value) : null;
|
|
3030
|
+
return selectedItem ? [selectedItem] : [];
|
|
3031
|
+
}, [allItems, fieldState.value]);
|
|
3032
|
+
const selectedIds = useMemo(() => selectedItems.map(({ id }) => id), [selectedItems]);
|
|
3033
|
+
const getItem = useCallback((value) => allItems.find((item) => item && item.id === value) ?? null, [allItems]);
|
|
3034
|
+
const updateValue = useCallback((value) => {
|
|
3035
|
+
if (Array.isArray(value)) valueRef.current = value.map((id) => getItem(id)).filter((item) => item !== null);
|
|
3036
|
+
else valueRef.current = getItem(value);
|
|
3037
|
+
}, [getItem]);
|
|
3038
|
+
const getValueIds = () => Array.isArray(valueRef.current) ? valueRef.current.map(({ id }) => id) : valueRef.current?.id ?? null;
|
|
3039
|
+
const emitStateChanges = useCallback((changes, skipSelectionChange) => {
|
|
3040
|
+
const valueChanged = JSON.stringify(changes.value) !== JSON.stringify(getValueIds());
|
|
3041
|
+
if (valueChanged) {
|
|
3042
|
+
updateValue(changes.value);
|
|
3043
|
+
if (!skipSelectionChange) if (isMultiple) fieldOnChange?.(changes.value);
|
|
3044
|
+
else fieldOnChange?.(changes.value);
|
|
3045
|
+
}
|
|
3046
|
+
if (changes.inputValue !== fieldState.inputValue) onInputChange?.(changes.inputValue);
|
|
3047
|
+
if (changes.searchValue !== fieldState.searchValue) onSearchChangeDebounced?.(changes.searchValue);
|
|
3048
|
+
return valueChanged;
|
|
3049
|
+
}, [
|
|
3050
|
+
fieldState,
|
|
3051
|
+
isMultiple,
|
|
3052
|
+
fieldOnChange,
|
|
3053
|
+
onInputChange,
|
|
3054
|
+
onSearchChangeDebounced,
|
|
3055
|
+
updateValue
|
|
3056
|
+
]);
|
|
3057
|
+
const syncFieldState = (value) => {
|
|
3058
|
+
const newFieldState = {
|
|
3059
|
+
value,
|
|
3060
|
+
inputValue: isMultiple || Array.isArray(value) ? fieldState.inputValue : getItem(value)?.label ?? "",
|
|
3061
|
+
searchValue: ""
|
|
3062
|
+
};
|
|
3063
|
+
setFieldState(newFieldState);
|
|
3064
|
+
emitStateChanges(newFieldState, true);
|
|
3065
|
+
if (!isMultiple) setShowAll(true);
|
|
3066
|
+
};
|
|
3067
|
+
useEffect(() => {
|
|
3068
|
+
const value = controlledValue ?? null;
|
|
3069
|
+
if (JSON.stringify(value) !== JSON.stringify(fieldState.value)) syncFieldState(value);
|
|
3070
|
+
else updateValue(value);
|
|
3071
|
+
}, [controlledValue]);
|
|
3072
|
+
useEffect(() => {
|
|
3073
|
+
if (!isMultiple && controlledValue !== null && controlledValue !== void 0 && fieldState.value !== null && fieldState.value !== void 0 && fieldState.inputValue === "" && getItem(fieldState.value)?.label) syncFieldState(fieldState.value);
|
|
3074
|
+
}, [allListItems]);
|
|
3075
|
+
const handleInputChange = useCallback((inputValue) => {
|
|
3076
|
+
const newFieldState = {
|
|
3077
|
+
value: isMultiple || inputValue !== "" ? fieldState.value : null,
|
|
3078
|
+
inputValue,
|
|
3079
|
+
searchValue: inputValue
|
|
3080
|
+
};
|
|
3081
|
+
setFieldState(newFieldState);
|
|
3082
|
+
emitStateChanges(newFieldState);
|
|
3083
|
+
setShowAll(false);
|
|
3084
|
+
if (!isOpen && inputValue !== "" && isSearchable) setIsOpen(true);
|
|
3085
|
+
}, [
|
|
3086
|
+
emitStateChanges,
|
|
3087
|
+
fieldState.value,
|
|
3088
|
+
isMultiple
|
|
3089
|
+
]);
|
|
3090
|
+
const onChange = useCallback((value) => {
|
|
3091
|
+
if (value === "new-item-id") onNewItemOption?.(fieldState.inputValue);
|
|
3092
|
+
else {
|
|
3093
|
+
const newFieldState = {
|
|
3094
|
+
value,
|
|
3095
|
+
inputValue: isMultiple || Array.isArray(value) ? "" : getItem(value)?.label ?? "",
|
|
3096
|
+
searchValue: ""
|
|
3097
|
+
};
|
|
3098
|
+
setFieldState(newFieldState);
|
|
3099
|
+
emitStateChanges(newFieldState);
|
|
3100
|
+
}
|
|
3101
|
+
if (!isMultiple) {
|
|
3102
|
+
setIsOpen(false);
|
|
3103
|
+
setShowAll(true);
|
|
3104
|
+
}
|
|
3105
|
+
}, [
|
|
3106
|
+
emitStateChanges,
|
|
3107
|
+
onNewItemOption,
|
|
3108
|
+
fieldState.inputValue,
|
|
3109
|
+
getItem,
|
|
3110
|
+
isMultiple
|
|
3111
|
+
]);
|
|
3112
|
+
const onClear = useCallback(() => {
|
|
3113
|
+
if (selectedIds.length === 0) {
|
|
3114
|
+
const newFieldState = {
|
|
3115
|
+
...fieldState,
|
|
3116
|
+
inputValue: "",
|
|
3117
|
+
searchValue: ""
|
|
3118
|
+
};
|
|
3119
|
+
setFieldState(newFieldState);
|
|
3120
|
+
emitStateChanges(newFieldState, true);
|
|
3121
|
+
setShowAll(true);
|
|
3122
|
+
return;
|
|
3123
|
+
}
|
|
3124
|
+
if (isMultiple) onChange([]);
|
|
3125
|
+
else onChange(null);
|
|
3126
|
+
}, [
|
|
3127
|
+
emitStateChanges,
|
|
3128
|
+
fieldState,
|
|
3129
|
+
isMultiple,
|
|
3130
|
+
onChange,
|
|
3131
|
+
selectedIds.length
|
|
3132
|
+
]);
|
|
3133
|
+
const onSelectAll = useCallback(() => {
|
|
3134
|
+
onChange(selectableListItems.map(({ id }) => id));
|
|
3135
|
+
}, [selectableListItems, onChange]);
|
|
3136
|
+
const onRemove = useCallback((value) => {
|
|
3137
|
+
if (isMultiple && Array.isArray(fieldState.value)) onChange(fieldState.value.filter((id) => id !== value));
|
|
3138
|
+
}, [
|
|
3139
|
+
isMultiple,
|
|
3140
|
+
fieldState.value,
|
|
3141
|
+
onChange
|
|
3142
|
+
]);
|
|
3143
|
+
const onBlur = useCallback(() => {
|
|
3144
|
+
if (isSearchable && isMultiple && fieldState.searchValue !== "") {
|
|
3145
|
+
const newFieldState = {
|
|
3146
|
+
...fieldState,
|
|
3147
|
+
inputValue: "",
|
|
3148
|
+
searchValue: ""
|
|
3149
|
+
};
|
|
3150
|
+
setFieldState(newFieldState);
|
|
3151
|
+
emitStateChanges(newFieldState);
|
|
3152
|
+
setShowAll(true);
|
|
3153
|
+
}
|
|
3154
|
+
fieldOnBlur?.({});
|
|
3155
|
+
}, [
|
|
3156
|
+
isSearchable,
|
|
3157
|
+
isMultiple,
|
|
3158
|
+
fieldState,
|
|
3159
|
+
fieldOnBlur
|
|
3160
|
+
]);
|
|
3161
|
+
const value = useMemo(() => ({
|
|
3162
|
+
fieldState,
|
|
3163
|
+
isOpen,
|
|
3164
|
+
setIsOpen,
|
|
3165
|
+
isDebouncing,
|
|
3166
|
+
onInputChange: handleInputChange,
|
|
3167
|
+
onChange,
|
|
3168
|
+
onClear,
|
|
3169
|
+
onSelectAll,
|
|
3170
|
+
onRemove,
|
|
3171
|
+
onBlur,
|
|
3172
|
+
listItems,
|
|
3173
|
+
selectableListItems,
|
|
3174
|
+
selectedItems,
|
|
3175
|
+
selectedIds,
|
|
3176
|
+
isMultiple,
|
|
3177
|
+
multiSelectAutoConfirm,
|
|
3178
|
+
isLoading,
|
|
3179
|
+
hasLoadMore
|
|
3180
|
+
}), [
|
|
3181
|
+
fieldState,
|
|
3182
|
+
isOpen,
|
|
3183
|
+
setIsOpen,
|
|
3184
|
+
isDebouncing,
|
|
3185
|
+
handleInputChange,
|
|
3186
|
+
onChange,
|
|
3187
|
+
onClear,
|
|
3188
|
+
onSelectAll,
|
|
3189
|
+
onRemove,
|
|
3190
|
+
onBlur,
|
|
3191
|
+
listItems,
|
|
3192
|
+
selectableListItems,
|
|
3193
|
+
selectedIds,
|
|
3194
|
+
selectedItems,
|
|
3195
|
+
isMultiple,
|
|
3196
|
+
multiSelectAutoConfirm,
|
|
3197
|
+
isLoading,
|
|
3198
|
+
hasLoadMore
|
|
3199
|
+
]);
|
|
3200
|
+
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
3201
|
+
value,
|
|
3202
|
+
children
|
|
3203
|
+
});
|
|
3204
|
+
};
|
|
3205
|
+
_SelectContext.useSelect = () => {
|
|
3206
|
+
return use(Context);
|
|
3207
|
+
};
|
|
3208
|
+
})(SelectContext || (SelectContext = {}));
|
|
3209
|
+
//#endregion
|
|
3210
|
+
//#region src/components/inputs/Selection/shared/selectInput.cva.ts
|
|
3211
|
+
const selectInputTagsContentWrapperDefinition = UIOverrides.defineConfig({
|
|
3212
|
+
base: ["flex flex-1 flex-wrap gap-input-gap-input-text-to-elements truncate"],
|
|
3213
|
+
config: { variants: { isSearchable: { false: "pointer-events-none z-raised" } } }
|
|
3214
|
+
});
|
|
3215
|
+
//#endregion
|
|
3216
|
+
//#region src/hooks/useKeyInteractions.ts
|
|
3217
|
+
const KEY_TO_ACTION = {
|
|
3218
|
+
ArrowUp: "up",
|
|
3219
|
+
ArrowDown: "down",
|
|
3220
|
+
ArrowLeft: "left",
|
|
3221
|
+
ArrowRight: "right",
|
|
3222
|
+
" ": "space",
|
|
3223
|
+
Spacebar: "space",
|
|
3224
|
+
Escape: "escape",
|
|
3225
|
+
Enter: "enter",
|
|
3226
|
+
Backspace: "backspace"
|
|
3227
|
+
};
|
|
3228
|
+
const getKeyInteractionAction = (event) => {
|
|
3229
|
+
return KEY_TO_ACTION[event.key] ?? (event.code === "Space" ? "space" : void 0);
|
|
3230
|
+
};
|
|
3231
|
+
const createKeyInteractionsHandler = (interactions) => {
|
|
3232
|
+
return (event) => handleKeyInteraction({
|
|
3233
|
+
event,
|
|
3234
|
+
interactions
|
|
3235
|
+
});
|
|
3236
|
+
};
|
|
3237
|
+
const useKeyInteractions = (interactions) => {
|
|
3238
|
+
const $ = c(4);
|
|
3239
|
+
let t0;
|
|
3240
|
+
if ($[0] !== interactions) {
|
|
3241
|
+
t0 = (event) => handleKeyInteraction({
|
|
3242
|
+
event,
|
|
3243
|
+
interactions
|
|
3244
|
+
});
|
|
3245
|
+
$[0] = interactions;
|
|
3246
|
+
$[1] = t0;
|
|
3247
|
+
} else t0 = $[1];
|
|
3248
|
+
const onKeyDown = t0;
|
|
3249
|
+
let t1;
|
|
3250
|
+
if ($[2] !== onKeyDown) {
|
|
3251
|
+
t1 = { onKeyDown };
|
|
3252
|
+
$[2] = onKeyDown;
|
|
3253
|
+
$[3] = t1;
|
|
3254
|
+
} else t1 = $[3];
|
|
3255
|
+
return t1;
|
|
3256
|
+
};
|
|
3257
|
+
const handleKeyInteraction = ({ event, interactions }) => {
|
|
3258
|
+
const action = getKeyInteractionAction(event);
|
|
3259
|
+
if (!action) return;
|
|
3260
|
+
const interaction = interactions[action];
|
|
3261
|
+
const groupInteraction = interactions.interactions?.find((group) => group.actions.includes(action));
|
|
3262
|
+
const selectedInteraction = interaction ?? groupInteraction;
|
|
3263
|
+
if (!selectedInteraction || selectedInteraction.enabled === false) return;
|
|
3264
|
+
if (selectedInteraction.preventDefault) event.preventDefault();
|
|
3265
|
+
selectedInteraction.callback(event);
|
|
3266
|
+
};
|
|
3267
|
+
//#endregion
|
|
3268
|
+
//#region src/components/inputs/Selection/shared/SelectInput.tsx
|
|
3269
|
+
const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props }) => {
|
|
3270
|
+
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
3271
|
+
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
3272
|
+
const inputClearClassCva = UIOverrides.useCva("input.clearClassCva", inputClearClassDefinition);
|
|
3273
|
+
const selectInputTagsContentWrapperCva = UIOverrides.useCva("select.tagsContentWrapperCva", selectInputTagsContentWrapperDefinition);
|
|
3274
|
+
const { t } = useTranslation("ui");
|
|
3275
|
+
const state = use($d01f2c01039c0eec$export$c02625b26074192c);
|
|
3276
|
+
const { hoverProps, isHovered } = useHover({ isDisabled });
|
|
3277
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
3278
|
+
const { focusWithinProps } = useFocusWithin({ onFocusWithinChange: setIsFocused });
|
|
3279
|
+
const { isFocusVisible } = useFocusVisible();
|
|
3280
|
+
const inputRef = useRef(null);
|
|
3281
|
+
const { fieldState, isOpen, setIsOpen, selectableListItems, selectedItems, onChange, onClear, onRemove, isMultiple, multiSelectAutoConfirm, isLoading } = SelectContext.useSelect();
|
|
3282
|
+
const isEmpty = selectedItems.length === 0;
|
|
3283
|
+
const showTags = isMultiple && !isEmpty;
|
|
3284
|
+
const showClearButton = (!isDisabled || isClearableIfDisabled === true) && isClearable && (selectedItems.length > 0 || isSearchable && fieldState.inputValue !== "");
|
|
3285
|
+
const labelProps = useMemo(() => {
|
|
3286
|
+
const { labelProps: headerLabelProps } = headerProps ?? {};
|
|
3287
|
+
if (!(as && ["filter", "floating"].includes(as)) || isSearchable) return headerLabelProps;
|
|
3288
|
+
return {
|
|
3289
|
+
...headerLabelProps,
|
|
3290
|
+
className: clsx(headerLabelProps?.className, "pointer-events-none")
|
|
3291
|
+
};
|
|
3292
|
+
}, [
|
|
3293
|
+
as,
|
|
3294
|
+
headerProps,
|
|
3295
|
+
isSearchable
|
|
3296
|
+
]);
|
|
3297
|
+
let exactMatchItem;
|
|
3298
|
+
if (isMultiple && multiSelectAutoConfirm && fieldState.inputValue !== "") exactMatchItem = selectableListItems.find((item) => item.label.toLowerCase() === fieldState.inputValue.toLowerCase());
|
|
3299
|
+
let singleRemainingItem;
|
|
3300
|
+
if (!isLoading && selectableListItems.length === 1 && !selectableListItems[0].isDisabled) singleRemainingItem = selectableListItems[0];
|
|
3301
|
+
let autoConfirmItem;
|
|
3302
|
+
if (isMultiple) {
|
|
3303
|
+
if (multiSelectAutoConfirm) autoConfirmItem = exactMatchItem ?? singleRemainingItem;
|
|
3304
|
+
} else autoConfirmItem = singleRemainingItem;
|
|
3305
|
+
const { onKeyDown } = useKeyInteractions({
|
|
3306
|
+
enter: {
|
|
3307
|
+
enabled: !isLoading && !!autoConfirmItem,
|
|
3308
|
+
preventDefault: true,
|
|
3309
|
+
callback: () => {
|
|
3310
|
+
if (!autoConfirmItem) return;
|
|
3311
|
+
if (isMultiple) {
|
|
3312
|
+
if (Array.isArray(fieldState.value)) if (fieldState.value.includes(autoConfirmItem.id)) onChange(fieldState.value.filter((id) => id !== autoConfirmItem.id));
|
|
3313
|
+
else onChange(fieldState.value.concat(autoConfirmItem.id));
|
|
3314
|
+
else onChange([autoConfirmItem.id]);
|
|
3315
|
+
return;
|
|
3316
|
+
}
|
|
3317
|
+
onChange(autoConfirmItem.id);
|
|
3318
|
+
onCloseComboBox?.(state);
|
|
3319
|
+
}
|
|
3320
|
+
},
|
|
3321
|
+
backspace: {
|
|
3322
|
+
enabled: isMultiple && fieldState.inputValue === "" && Array.isArray(fieldState.value) && fieldState.value.length > 0,
|
|
3323
|
+
callback: () => {
|
|
3324
|
+
if (!Array.isArray(fieldState.value)) return;
|
|
3325
|
+
onChange(fieldState.value.slice(0, -1));
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
});
|
|
3329
|
+
const { onKeyDown: onTriggerKeyDown } = useKeyInteractions({ interactions: [{
|
|
3330
|
+
actions: ["up", "down"],
|
|
3331
|
+
enabled: !isSearchable && !isDisabled && !isOpen,
|
|
3332
|
+
preventDefault: true,
|
|
3333
|
+
callback: () => {
|
|
3334
|
+
setIsOpen(true);
|
|
3335
|
+
}
|
|
3336
|
+
}] });
|
|
3337
|
+
const onClick = () => {
|
|
3338
|
+
if (isDisabled) return;
|
|
3339
|
+
if (!isSearchable) {
|
|
3340
|
+
setIsOpen(!isOpen);
|
|
3341
|
+
return;
|
|
3342
|
+
}
|
|
3343
|
+
inputRef.current?.focus();
|
|
3344
|
+
};
|
|
3345
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
3346
|
+
ref,
|
|
3347
|
+
className: inputBaseCva({
|
|
3348
|
+
variant,
|
|
3349
|
+
as,
|
|
3350
|
+
...props,
|
|
3351
|
+
className: clsx("group/select-content relative flex px-0!", !isDisabled && isSearchable && "cursor-text", className)
|
|
3352
|
+
}),
|
|
3353
|
+
"data-rac": "",
|
|
3354
|
+
"data-disabled": isDisabled || void 0,
|
|
3355
|
+
"data-is-disabled": isDisabled || void 0,
|
|
3356
|
+
"data-hovered": isHovered || void 0,
|
|
3357
|
+
"data-focused": isOpen || isFocused || void 0,
|
|
3358
|
+
"data-focus-within": isFocused || void 0,
|
|
3359
|
+
"data-searchable-focus-within": isFocused && isSearchable || void 0,
|
|
3360
|
+
"data-focus-visible": isFocused && isFocusVisible || void 0,
|
|
3361
|
+
"data-has-selection": !isEmpty || void 0,
|
|
3362
|
+
"data-has-search": fieldState.searchValue !== "" || void 0,
|
|
3363
|
+
"data-invalid": isInvalid || void 0,
|
|
3364
|
+
"data-is-empty": isEmpty || void 0,
|
|
3365
|
+
"data-is-filled": !isEmpty || void 0,
|
|
3366
|
+
"data-is-required": isRequired || void 0,
|
|
3367
|
+
"data-is-dirty": isDirty || void 0,
|
|
3368
|
+
"data-select-input": "",
|
|
3369
|
+
onMouseEnter,
|
|
3370
|
+
onFocusCapture,
|
|
3371
|
+
...hoverProps,
|
|
3372
|
+
...focusWithinProps,
|
|
3373
|
+
children: [
|
|
3374
|
+
/* @__PURE__ */ jsxs("div", {
|
|
3375
|
+
className: clsx("relative flex flex-1 items-center gap-input-gap-input-text-to-elements truncate", !isDisabled && isSearchable && "cursor-text", !isDisabled && !isSearchable && "cursor-pointer", inputSizeCva({
|
|
3376
|
+
as,
|
|
3377
|
+
size,
|
|
3378
|
+
...props
|
|
3379
|
+
})),
|
|
3380
|
+
onClick,
|
|
3381
|
+
children: [
|
|
3382
|
+
as && ["filter", "floating"].includes(as) && headerProps && /* @__PURE__ */ jsx(FormFieldLabel, {
|
|
3383
|
+
as,
|
|
3384
|
+
...headerProps,
|
|
3385
|
+
labelProps
|
|
3386
|
+
}),
|
|
3387
|
+
leadingContent && /* @__PURE__ */ jsx("div", {
|
|
3388
|
+
className: "ml-input-side-default flex shrink-0 items-center",
|
|
3389
|
+
children: leadingContent
|
|
3390
|
+
}),
|
|
3391
|
+
(showTags || isSearchable) && /* @__PURE__ */ jsxs("div", {
|
|
3392
|
+
className: selectInputTagsContentWrapperCva({ isSearchable }),
|
|
3393
|
+
children: [showTags && /* @__PURE__ */ jsx(SelectInputTags, {
|
|
3394
|
+
selectedItems,
|
|
3395
|
+
isDisabled,
|
|
3396
|
+
collapseAfter,
|
|
3397
|
+
selectedTagsType,
|
|
3398
|
+
onRemove
|
|
3399
|
+
}), isSearchable && /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, {
|
|
3400
|
+
ref: inputRef,
|
|
3401
|
+
placeholder: as === "floating" ? void 0 : placeholder,
|
|
3402
|
+
onBlur,
|
|
3403
|
+
className: clsx("w-full flex-1 bg-transparent outline-none placeholder:text-text-default-3", "disabled:text-text-default-3 disabled:placeholder:text-interactive-text-secondary-disabled", inputClassName),
|
|
3404
|
+
onKeyDown,
|
|
3405
|
+
...fieldProps
|
|
3406
|
+
})]
|
|
3407
|
+
}),
|
|
3408
|
+
!isSearchable && /* @__PURE__ */ jsxs($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
3409
|
+
isDisabled,
|
|
3410
|
+
onPress: () => setIsOpen(!isOpen),
|
|
3411
|
+
onBlur,
|
|
3412
|
+
"data-type": "select-trigger",
|
|
3413
|
+
className: clsx("group/select-trigger w-full truncate text-start outline-none disabled:text-text-default-3", showTags && "absolute inset-0 z-base"),
|
|
3414
|
+
onKeyDown: onTriggerKeyDown,
|
|
3415
|
+
...fieldProps,
|
|
3416
|
+
children: [(as === "floating" && isEmpty || isMultiple && !isEmpty) && /* @__PURE__ */ jsx(Fragment$1, { children: "\xA0" }), (isEmpty || !isMultiple) && (as !== "floating" || !isEmpty) && /* @__PURE__ */ jsxs(Typography, {
|
|
3417
|
+
size: "label-1",
|
|
3418
|
+
as: "span",
|
|
3419
|
+
className: clsx("truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-text-default-3 group-disabled/select-trigger:text-interactive-text-secondary-disabled"),
|
|
3420
|
+
children: [isEmpty && placeholder, !isEmpty && (showSelectionContent ? selectedItems[0].content : selectedItems[0].label)]
|
|
3421
|
+
})]
|
|
3422
|
+
})
|
|
3423
|
+
]
|
|
3424
|
+
}),
|
|
3425
|
+
isClearable && (!isDisabled || isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
|
|
3426
|
+
onClear: () => {
|
|
3427
|
+
onClear();
|
|
3428
|
+
},
|
|
3429
|
+
className: inputClearClassCva({ as }),
|
|
3430
|
+
show: showClearButton
|
|
3431
|
+
}),
|
|
3432
|
+
trailingContent && /* @__PURE__ */ jsx("div", {
|
|
3433
|
+
className: "flex shrink-0 items-center",
|
|
3434
|
+
children: trailingContent
|
|
3435
|
+
}),
|
|
3436
|
+
!hideDropdownIcon && /* @__PURE__ */ jsx($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
3437
|
+
excludeFromTabOrder: true,
|
|
3438
|
+
"aria-label": t(($) => isOpen ? $.ui.closeAlt : $.ui.openAlt),
|
|
3439
|
+
className: clsx("self-stretch pl-1-5 outline-none", inputSizeCva({ size })),
|
|
3440
|
+
isDisabled,
|
|
3441
|
+
onPress: () => {
|
|
3442
|
+
if (!isSearchable) setIsOpen(!isOpen);
|
|
3443
|
+
},
|
|
3444
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3445
|
+
className: clsx("flex size-6 shrink-0 items-center justify-center", isOpen && "rotate-180", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle"),
|
|
3446
|
+
"aria-hidden": "true",
|
|
3447
|
+
children: /* @__PURE__ */ jsx(Triangle, { className: "h-2 w-3 rotate-180 fill-current stroke-0" })
|
|
3448
|
+
})
|
|
3449
|
+
})
|
|
3450
|
+
]
|
|
3451
|
+
});
|
|
3452
|
+
};
|
|
3453
|
+
//#endregion
|
|
3454
|
+
//#region src/components/inputs/Selection/shared/selectItem.cva.ts
|
|
3455
|
+
const selectListBoxItemDefinition = UIOverrides.defineConfig({
|
|
3456
|
+
base: [
|
|
3457
|
+
"group flex cursor-pointer items-center gap-2 px-list-side-item-left py-list-height-item",
|
|
3458
|
+
"border-b border-b-elevation-outline-default-1 outline-none",
|
|
3459
|
+
"font-labels-default text-label-2",
|
|
3460
|
+
"hover:text-interactive-text-secondary-hover",
|
|
3461
|
+
"focus-visible:bg-interactive-contained-primary-focus focus-visible:text-interactive-text-secondary-idle-inverted",
|
|
3462
|
+
"disabled:cursor-default disabled:text-interactive-text-secondary-disabled"
|
|
3463
|
+
],
|
|
3464
|
+
config: {
|
|
3465
|
+
variants: {
|
|
3466
|
+
isSingle: { true: "selected:bg-interactive-contained-primary-idle selected:text-interactive-contained-primary-on-idle" },
|
|
3467
|
+
isNewItem: {
|
|
3468
|
+
true: "text-interactive-text-primary-idle",
|
|
3469
|
+
false: "text-interactive-text-secondary-idle"
|
|
3470
|
+
}
|
|
3471
|
+
},
|
|
3472
|
+
defaultVariants: { isNewItem: false }
|
|
3473
|
+
}
|
|
3474
|
+
});
|
|
3475
|
+
//#endregion
|
|
3476
|
+
//#region src/components/inputs/Selection/shared/SelectListBoxItem.tsx
|
|
3477
|
+
const SelectListBoxItem = ({ isSearchable, isNewItem, newItemRender, id, label, content, isDisabled }) => {
|
|
3478
|
+
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
3479
|
+
const ref = useRef(null);
|
|
3480
|
+
const { t } = useTranslation("ui");
|
|
3481
|
+
const { selectedIds, isMultiple } = SelectContext.useSelect();
|
|
3482
|
+
const itemContent = useMemo(() => {
|
|
3483
|
+
if (isNewItem) return newItemRender?.(label) ?? `${t(($) => $.ui.autocomplete.createNewBtn)} '${label}'`;
|
|
3484
|
+
return content ?? label;
|
|
3485
|
+
}, [
|
|
3486
|
+
isNewItem,
|
|
3487
|
+
newItemRender,
|
|
3488
|
+
label,
|
|
3489
|
+
content,
|
|
3490
|
+
t
|
|
3491
|
+
]);
|
|
3492
|
+
return /* @__PURE__ */ jsxs($eed445e0843c11d0$export$a11e76429ed99b4, {
|
|
3493
|
+
ref,
|
|
3494
|
+
id,
|
|
3495
|
+
textValue: label,
|
|
3496
|
+
isDisabled,
|
|
3497
|
+
className: selectListItemCva({
|
|
3498
|
+
isSingle: !isMultiple,
|
|
3499
|
+
isNewItem
|
|
3500
|
+
}),
|
|
3501
|
+
children: [
|
|
3502
|
+
isMultiple && !isSearchable && /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
3503
|
+
variant: "default",
|
|
3504
|
+
className: "group-focus-visible:outline-none!"
|
|
3505
|
+
}),
|
|
3506
|
+
isMultiple && isSearchable && /* @__PURE__ */ jsx("div", {
|
|
3507
|
+
className: "group",
|
|
3508
|
+
"data-rac": "",
|
|
3509
|
+
"data-selected": selectedIds.includes(id) || void 0,
|
|
3510
|
+
children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
3511
|
+
variant: "default",
|
|
3512
|
+
className: "group-focus-visible:outline-none!"
|
|
3513
|
+
})
|
|
3514
|
+
}),
|
|
3515
|
+
itemContent
|
|
3516
|
+
]
|
|
3517
|
+
});
|
|
3518
|
+
};
|
|
3519
|
+
//#endregion
|
|
3520
|
+
//#region src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.tsx
|
|
3521
|
+
const SelectListBoxItemSelectAll = ({ id, label, isDisabled }) => {
|
|
3522
|
+
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
3523
|
+
const ref = useRef(null);
|
|
3524
|
+
const { t } = useTranslation("ui");
|
|
3525
|
+
const { selectableListItems, selectedIds } = SelectContext.useSelect();
|
|
3526
|
+
return /* @__PURE__ */ jsxs($eed445e0843c11d0$export$a11e76429ed99b4, {
|
|
3527
|
+
ref,
|
|
3528
|
+
id,
|
|
3529
|
+
textValue: label || t(($) => $.ui.select.allOption),
|
|
3530
|
+
isDisabled,
|
|
3531
|
+
className: selectListItemCva({}),
|
|
3532
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
3533
|
+
className: "group",
|
|
3534
|
+
"data-rac": "",
|
|
3535
|
+
"data-selected": selectedIds.length === selectableListItems.length || void 0,
|
|
3536
|
+
"data-indeterminate": selectedIds.length > 0 && selectedIds.length < selectableListItems.length || void 0,
|
|
3537
|
+
children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
3538
|
+
variant: "default",
|
|
3539
|
+
className: "group-focus-visible:outline-none!"
|
|
3540
|
+
})
|
|
3541
|
+
}), t(($) => $.ui.select.allOption)]
|
|
3542
|
+
});
|
|
3543
|
+
};
|
|
3544
|
+
//#endregion
|
|
3545
|
+
//#region src/components/inputs/Selection/shared/SelectListBoxLoadingItem.tsx
|
|
3546
|
+
const SelectListBoxLoadingItem = ({ id, label, onLoadMore }) => {
|
|
3547
|
+
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
3548
|
+
const { t } = useTranslation("ui");
|
|
3549
|
+
const { isDebouncing, isLoading, hasLoadMore } = SelectContext.useSelect();
|
|
3550
|
+
const onIntersection = useCallback(() => {
|
|
3551
|
+
if (!isDebouncing && !isLoading && hasLoadMore) onLoadMore?.();
|
|
3552
|
+
}, [
|
|
3553
|
+
isDebouncing,
|
|
3554
|
+
isLoading,
|
|
3555
|
+
hasLoadMore,
|
|
3556
|
+
onLoadMore
|
|
3557
|
+
]);
|
|
3558
|
+
const { ref } = useIntersectionObserver({
|
|
3559
|
+
onIntersection,
|
|
3560
|
+
rootMargin: "40px"
|
|
3561
|
+
});
|
|
3562
|
+
return /* @__PURE__ */ jsx($eed445e0843c11d0$export$a11e76429ed99b4, {
|
|
3563
|
+
id,
|
|
3564
|
+
textValue: label || t(($) => $.ui.loadingState.text),
|
|
3565
|
+
isDisabled: true,
|
|
3566
|
+
className: selectListItemCva({}),
|
|
3567
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
3568
|
+
ref,
|
|
3569
|
+
className: "flex flex-1 justify-center text-interactive-text-primary-idle",
|
|
3570
|
+
children: /* @__PURE__ */ jsx(Loader, {})
|
|
3571
|
+
})
|
|
3572
|
+
});
|
|
3573
|
+
};
|
|
3574
|
+
//#endregion
|
|
3575
|
+
//#region src/components/inputs/Selection/shared/SelectListBox.tsx
|
|
3576
|
+
const SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true, virtualizerOptions, totalItems, newItemRender, onLoadMore, className, onClose, ...props }) => {
|
|
3577
|
+
const { fieldState, onChange, listItems, selectableListItems, selectedIds, isMultiple, onClear, onSelectAll, hasLoadMore } = SelectContext.useSelect();
|
|
3578
|
+
const onSelectionChange = (value) => {
|
|
3579
|
+
const ids = Array.from(value);
|
|
3580
|
+
if (!isMultiple && ids.length === 0) {
|
|
3581
|
+
if (fieldState.value) {
|
|
3582
|
+
onClose?.();
|
|
3583
|
+
onChange(fieldState.value);
|
|
3584
|
+
}
|
|
3585
|
+
return;
|
|
3586
|
+
}
|
|
3587
|
+
if (isMultiple && ids.includes("all-item-id")) {
|
|
3588
|
+
if (ids.length > selectableListItems.length) onClear();
|
|
3589
|
+
else onSelectAll();
|
|
3590
|
+
return;
|
|
3591
|
+
}
|
|
3592
|
+
if (isMultiple) onChange(ids);
|
|
3593
|
+
else {
|
|
3594
|
+
onClose?.();
|
|
3595
|
+
onChange(ids[0]);
|
|
3596
|
+
}
|
|
3597
|
+
};
|
|
3598
|
+
const renderItem = (item) => {
|
|
3599
|
+
if (item.isSelectAllItem) return /* @__PURE__ */ jsx(SelectListBoxItemSelectAll, { ...item }, item.id);
|
|
3600
|
+
if (item.isLoadingItem) return /* @__PURE__ */ jsx(SelectListBoxLoadingItem, {
|
|
3601
|
+
...item,
|
|
3602
|
+
onLoadMore
|
|
3603
|
+
}, item.id);
|
|
3604
|
+
return /* @__PURE__ */ jsx(SelectListBoxItem, {
|
|
3605
|
+
...item,
|
|
3606
|
+
isSearchable,
|
|
3607
|
+
isNewItem: item.isNewItem,
|
|
3608
|
+
newItemRender
|
|
3609
|
+
}, item.id);
|
|
3610
|
+
};
|
|
3611
|
+
if (virtualizerOptions || (totalItems ?? listItems.length) > 100 || hasLoadMore) return /* @__PURE__ */ jsx($ce3a951440fc273f$export$89be5a243e59c4b2, {
|
|
3612
|
+
layout: $61ef60fc9b1041f4$export$cacbb3924155d68e,
|
|
3613
|
+
layoutOptions: virtualizerOptions,
|
|
3614
|
+
children: /* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, {
|
|
3615
|
+
...props,
|
|
3616
|
+
"aria-label": label,
|
|
3617
|
+
selectionMode,
|
|
3618
|
+
className: clsx("flex-1 outline-none [&>div:last-child>*]:border-b-0", isScrollable ? "max-h-full overflow-y-auto overflow-x-hidden" : "overflow-hidden", className),
|
|
3619
|
+
items: listItems,
|
|
3620
|
+
selectedKeys: selectedIds,
|
|
3621
|
+
onSelectionChange,
|
|
3622
|
+
escapeKeyBehavior: "none",
|
|
3623
|
+
shouldSelectOnPressUp: true,
|
|
3624
|
+
children: renderItem
|
|
3625
|
+
})
|
|
3626
|
+
});
|
|
3627
|
+
return /* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, {
|
|
3628
|
+
...props,
|
|
3629
|
+
"aria-label": label,
|
|
3630
|
+
selectionMode,
|
|
3631
|
+
className: clsx("flex-1 outline-none [&>div:last-child]:border-b-0", isScrollable ? "max-h-full overflow-y-auto overflow-x-hidden" : "overflow-hidden", className),
|
|
3632
|
+
items: listItems,
|
|
3633
|
+
selectedKeys: selectedIds,
|
|
3634
|
+
onSelectionChange,
|
|
3635
|
+
escapeKeyBehavior: "none",
|
|
3636
|
+
shouldSelectOnPressUp: true,
|
|
3637
|
+
children: renderItem
|
|
3638
|
+
});
|
|
3639
|
+
};
|
|
3640
|
+
//#endregion
|
|
3641
|
+
//#region src/components/inputs/Selection/shared/selectDesktop.cva.ts
|
|
3642
|
+
const selectPopoverDefinition = UIOverrides.defineConfig({ base: ["my-4 outline-none"] });
|
|
3643
|
+
//#endregion
|
|
3644
|
+
//#region src/components/inputs/Selection/shared/SelectDesktop.tsx
|
|
3645
|
+
const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, ...props }) => {
|
|
3646
|
+
const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, isLoading, as, size, collapseAfter, selectedTagsType } = props;
|
|
3647
|
+
const popoverCva = UIOverrides.useCva("popover.cva", popoverDefinition);
|
|
3648
|
+
const selectPopoverCva = UIOverrides.useCva("select.popoverCva", selectPopoverDefinition);
|
|
3649
|
+
const formFieldProps = {
|
|
3650
|
+
error,
|
|
3651
|
+
label,
|
|
3652
|
+
tooltipText,
|
|
3653
|
+
helperText,
|
|
3654
|
+
isRequired,
|
|
3655
|
+
rightContent,
|
|
3656
|
+
isHeaderHidden: isHeaderHidden || as === "inline" || as === "filter" || as === "floating",
|
|
3657
|
+
hideLabel,
|
|
3658
|
+
isDisabled,
|
|
3659
|
+
headerClassName,
|
|
3660
|
+
errorClassName
|
|
3661
|
+
};
|
|
3662
|
+
const { labelProps, fieldProps } = useLabel({ label });
|
|
3663
|
+
const triggerRef = useRef(null);
|
|
3664
|
+
const closeComboBoxRef = useRef(null);
|
|
3665
|
+
const wrapperRef = useRef(null);
|
|
3666
|
+
const [popoverWidth, setPopoverWidth] = useState(void 0);
|
|
3667
|
+
const { fieldState, isOpen, setIsOpen, onInputChange, onChange, onClear, onSelectAll, listItems, selectableListItems, selectedIds, isMultiple } = SelectContext.useSelect();
|
|
3668
|
+
$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({ isDisabled: !isOpen });
|
|
3669
|
+
useLayoutEffect(() => {
|
|
3670
|
+
if (!isOpen || !wrapperRef.current) return;
|
|
3671
|
+
setPopoverWidth(wrapperRef.current.getBoundingClientRect().width);
|
|
3672
|
+
const observer = new ResizeObserver((entries) => {
|
|
3673
|
+
setPopoverWidth(entries[0].contentRect.width);
|
|
3674
|
+
});
|
|
3675
|
+
observer.observe(wrapperRef.current);
|
|
3676
|
+
return () => {
|
|
3677
|
+
observer.disconnect();
|
|
3678
|
+
};
|
|
3679
|
+
}, [isOpen]);
|
|
3680
|
+
const onSelectionChange = (value) => {
|
|
3681
|
+
if (!value) return;
|
|
3682
|
+
if (value === "all-item-id") {
|
|
3683
|
+
if (selectedIds.length === selectableListItems.length) onClear();
|
|
3684
|
+
else onSelectAll();
|
|
3685
|
+
return;
|
|
3686
|
+
}
|
|
3687
|
+
if (!isMultiple) {
|
|
3688
|
+
onChange(value);
|
|
3689
|
+
return;
|
|
3690
|
+
}
|
|
3691
|
+
if (!Array.isArray(fieldState.value)) {
|
|
3692
|
+
onChange([value]);
|
|
3693
|
+
return;
|
|
3694
|
+
}
|
|
3695
|
+
if (fieldState.value.includes(value)) onChange(fieldState.value.filter((id) => id !== value));
|
|
3696
|
+
else onChange(fieldState.value.concat(value));
|
|
3697
|
+
};
|
|
3698
|
+
const openChangeHandler = (value) => {
|
|
3699
|
+
if (closeComboBoxRef.current && value) {
|
|
3700
|
+
closeComboBoxRef.current.setOpen(false);
|
|
3701
|
+
closeComboBoxRef.current = null;
|
|
3702
|
+
} else setIsOpen(value);
|
|
3703
|
+
};
|
|
3704
|
+
const WrapperComponent = isSearchable ? $d01f2c01039c0eec$export$72b9695b8216309a : Fragment;
|
|
3705
|
+
const comboBoxProps = {
|
|
3706
|
+
items: listItems,
|
|
3707
|
+
selectedKey: isMultiple ? null : fieldState.value,
|
|
3708
|
+
onSelectionChange,
|
|
3709
|
+
inputValue: fieldState.inputValue,
|
|
3710
|
+
onInputChange,
|
|
3711
|
+
onOpenChange: openChangeHandler,
|
|
3712
|
+
allowsEmptyCollection: true,
|
|
3713
|
+
isDisabled,
|
|
3714
|
+
isInvalid: !!error,
|
|
3715
|
+
menuTrigger: "focus",
|
|
3716
|
+
className: clsx("group w-full", containerClassName)
|
|
3717
|
+
};
|
|
3718
|
+
const headerProps = {
|
|
3719
|
+
label,
|
|
3720
|
+
tooltipText,
|
|
3721
|
+
helperText,
|
|
3722
|
+
isRequired,
|
|
3723
|
+
rightContent,
|
|
3724
|
+
isHeaderHidden: hideLabel || isHeaderHidden,
|
|
3725
|
+
isDisabled,
|
|
3726
|
+
className: headerClassName,
|
|
3727
|
+
labelProps
|
|
3728
|
+
};
|
|
3729
|
+
const dialogTriggerProps = {
|
|
3730
|
+
isOpen,
|
|
3731
|
+
onOpenChange: setIsOpen
|
|
3732
|
+
};
|
|
3733
|
+
const showPopover = useMemo(() => listItems.filter((item) => !item.isSelectAllItem).length > 0 || isLoading, [listItems, isLoading]);
|
|
3734
|
+
return /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
3735
|
+
as,
|
|
3736
|
+
error,
|
|
3737
|
+
children: /* @__PURE__ */ jsx(WrapperComponent, {
|
|
3738
|
+
...isSearchable ? comboBoxProps : {},
|
|
3739
|
+
children: /* @__PURE__ */ jsxs(FormField, {
|
|
3740
|
+
...formFieldProps,
|
|
3741
|
+
...!isSearchable && {
|
|
3742
|
+
labelProps,
|
|
3743
|
+
className: clsx("group w-full", containerClassName)
|
|
3744
|
+
},
|
|
3745
|
+
as,
|
|
3746
|
+
onMouseEnter,
|
|
3747
|
+
onFocusCapture,
|
|
3748
|
+
ref: wrapperRef,
|
|
3749
|
+
children: [customTrigger ? /* @__PURE__ */ jsx($de32f1b87079253c$export$2e1e1122cf0cba88, {
|
|
3750
|
+
...dialogTriggerProps,
|
|
3751
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
3752
|
+
...fieldProps,
|
|
3753
|
+
ref: $5dc95899b306f630$export$c9058316764c140e(ref, triggerRef),
|
|
3754
|
+
children: customTrigger
|
|
3755
|
+
})
|
|
3756
|
+
}) : /* @__PURE__ */ jsx(SelectInput, {
|
|
3757
|
+
ref: $5dc95899b306f630$export$c9058316764c140e(ref, triggerRef),
|
|
3758
|
+
placeholder,
|
|
3759
|
+
variant,
|
|
3760
|
+
as,
|
|
3761
|
+
size,
|
|
3762
|
+
isDisabled,
|
|
3763
|
+
isInvalid: !!error,
|
|
3764
|
+
className,
|
|
3765
|
+
hideDropdownIcon,
|
|
3766
|
+
isSearchable,
|
|
3767
|
+
isClearable,
|
|
3768
|
+
isClearableIfDisabled,
|
|
3769
|
+
showSelectionContent,
|
|
3770
|
+
inputClassName,
|
|
3771
|
+
leadingContent,
|
|
3772
|
+
trailingContent,
|
|
3773
|
+
collapseAfter,
|
|
3774
|
+
selectedTagsType,
|
|
3775
|
+
isRequired,
|
|
3776
|
+
isDirty,
|
|
3777
|
+
onBlur,
|
|
3778
|
+
onCloseComboBox: (state) => {
|
|
3779
|
+
if (isSearchable) closeComboBoxRef.current = state;
|
|
3780
|
+
},
|
|
3781
|
+
fieldProps,
|
|
3782
|
+
headerProps
|
|
3783
|
+
}), (!isSearchable || showPopover) && /* @__PURE__ */ jsx($07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
3784
|
+
triggerRef,
|
|
3785
|
+
isOpen,
|
|
3786
|
+
onOpenChange: setIsOpen,
|
|
3787
|
+
className: selectPopoverCva({}),
|
|
3788
|
+
style: { width: !ignoreTriggerWidth ? popoverWidth : void 0 },
|
|
3789
|
+
offset: 0,
|
|
3790
|
+
children: /* @__PURE__ */ jsx(SelectListBox, {
|
|
3791
|
+
...props,
|
|
3792
|
+
className: clsx(popoverCva({}), "max-h-80! [scrollbar-width:thin]"),
|
|
3793
|
+
autoFocus: !isSearchable
|
|
3794
|
+
})
|
|
3795
|
+
})]
|
|
3796
|
+
})
|
|
3797
|
+
})
|
|
3798
|
+
});
|
|
3799
|
+
};
|
|
3800
|
+
//#endregion
|
|
3801
|
+
//#region src/components/inputs/FormField/FormFieldHeaderClose.tsx
|
|
3802
|
+
const FormFieldHeaderClose = ({ onClose }) => {
|
|
3803
|
+
const { t } = useTranslation("ui");
|
|
3804
|
+
return /* @__PURE__ */ jsx($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
3805
|
+
onPress: onClose,
|
|
3806
|
+
"aria-label": t(($) => $.ui.closeAlt),
|
|
3807
|
+
className: "shrink-0 focus-visible:outline-interactive-text-secondary-focus",
|
|
3808
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-6 text-interactive-text-secondary-idle" })
|
|
3809
|
+
});
|
|
3810
|
+
};
|
|
3811
|
+
//#endregion
|
|
3812
|
+
//#region src/components/inputs/Selection/shared/SelectListBoxSelectionBar.tsx
|
|
3813
|
+
const SelectListBoxSelectionBar = ({ className }) => {
|
|
3814
|
+
const { t } = useTranslation("ui");
|
|
3815
|
+
const { onClear, onSelectAll } = SelectContext.useSelect();
|
|
3816
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
3817
|
+
className: clsx("flex items-center justify-between border-elevation-outline-default-1 border-b px-4 py-3", className),
|
|
3818
|
+
children: [/* @__PURE__ */ jsx(TextButton, {
|
|
3819
|
+
type: "button",
|
|
3820
|
+
color: "primary",
|
|
3821
|
+
onPress: onSelectAll,
|
|
3822
|
+
children: t(($) => $.ui.select.selectAll)
|
|
3823
|
+
}), /* @__PURE__ */ jsx(TextButton, {
|
|
3824
|
+
type: "button",
|
|
3825
|
+
color: "secondary",
|
|
3826
|
+
onPress: onClear,
|
|
3827
|
+
children: t(($) => $.ui.select.clearSelection)
|
|
3828
|
+
})]
|
|
3829
|
+
});
|
|
3830
|
+
};
|
|
3831
|
+
//#endregion
|
|
3832
|
+
//#region src/components/inputs/Selection/shared/SelectMobile.tsx
|
|
3833
|
+
const SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, bottomSheetProps, ...props }) => {
|
|
3834
|
+
const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, hideSearchIcon, isSearchable, isClearable, isClearableIfDisabled, as, size, collapseAfter, selectedTagsType } = props;
|
|
3835
|
+
const formFieldProps = {
|
|
3836
|
+
error,
|
|
3837
|
+
label,
|
|
3838
|
+
tooltipText,
|
|
3839
|
+
helperText,
|
|
3840
|
+
isRequired,
|
|
3841
|
+
rightContent,
|
|
3842
|
+
isHeaderHidden: isHeaderHidden || as === "inline" || as === "filter" || as === "floating",
|
|
3843
|
+
hideLabel,
|
|
3844
|
+
isDisabled,
|
|
3845
|
+
headerClassName,
|
|
3846
|
+
errorClassName
|
|
3847
|
+
};
|
|
3848
|
+
const { labelProps, fieldProps } = useLabel({ label });
|
|
3849
|
+
const headerProps = {
|
|
3850
|
+
label,
|
|
3851
|
+
tooltipText,
|
|
3852
|
+
helperText,
|
|
3853
|
+
isRequired,
|
|
3854
|
+
rightContent,
|
|
3855
|
+
isHeaderHidden: hideLabel || isHeaderHidden,
|
|
3856
|
+
isDisabled,
|
|
3857
|
+
className: headerClassName,
|
|
3858
|
+
labelProps
|
|
3859
|
+
};
|
|
3860
|
+
const { fieldState, isOpen, setIsOpen, onInputChange, isMultiple } = SelectContext.useSelect();
|
|
3861
|
+
const searchInputRef = useRef(null);
|
|
3862
|
+
const onBlurRef = useRef(onBlur);
|
|
3863
|
+
onBlurRef.current = onBlur;
|
|
3864
|
+
const handleOpenChange = (open) => {
|
|
3865
|
+
if (!open) onBlurRef.current?.({});
|
|
3866
|
+
setIsOpen(open);
|
|
3867
|
+
};
|
|
3868
|
+
const dialogTriggerProps = {
|
|
3869
|
+
isOpen,
|
|
3870
|
+
onOpenChange: handleOpenChange
|
|
3871
|
+
};
|
|
3872
|
+
return /* @__PURE__ */ jsx(FormField, {
|
|
3873
|
+
...formFieldProps,
|
|
3874
|
+
as,
|
|
3875
|
+
labelProps,
|
|
3876
|
+
className: clsx("group w-full", containerClassName),
|
|
3877
|
+
onMouseEnter,
|
|
3878
|
+
onFocusCapture,
|
|
3879
|
+
children: /* @__PURE__ */ jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, {
|
|
3880
|
+
...dialogTriggerProps,
|
|
3881
|
+
children: [customTrigger ? /* @__PURE__ */ jsx("div", {
|
|
3882
|
+
...fieldProps,
|
|
3883
|
+
ref,
|
|
3884
|
+
children: customTrigger
|
|
3885
|
+
}) : /* @__PURE__ */ jsx(SelectInput, {
|
|
3886
|
+
ref,
|
|
3887
|
+
placeholder,
|
|
3888
|
+
variant,
|
|
3889
|
+
as,
|
|
3890
|
+
size,
|
|
3891
|
+
isDisabled,
|
|
3892
|
+
isInvalid: !!error,
|
|
3893
|
+
className,
|
|
3894
|
+
hideDropdownIcon,
|
|
3895
|
+
isSearchable: false,
|
|
3896
|
+
isClearable,
|
|
3897
|
+
isClearableIfDisabled,
|
|
3898
|
+
showSelectionContent,
|
|
3899
|
+
onBlur: void 0,
|
|
3900
|
+
fieldProps,
|
|
3901
|
+
headerProps,
|
|
3902
|
+
leadingContent,
|
|
3903
|
+
trailingContent,
|
|
3904
|
+
collapseAfter,
|
|
3905
|
+
selectedTagsType,
|
|
3906
|
+
isRequired,
|
|
3907
|
+
isDirty
|
|
3908
|
+
}), /* @__PURE__ */ jsx(BottomSheet, {
|
|
3909
|
+
isDismissable: true,
|
|
3910
|
+
hideHeader: isSearchable,
|
|
3911
|
+
...bottomSheetProps,
|
|
3912
|
+
isOpen,
|
|
3913
|
+
onOpenChange: handleOpenChange,
|
|
3914
|
+
onStateChange: (state) => {
|
|
3915
|
+
if (state === "opened") searchInputRef.current?.focus();
|
|
3916
|
+
},
|
|
3917
|
+
label,
|
|
3918
|
+
footer: isMultiple && /* @__PURE__ */ jsx(SelectListBoxSelectionBar, {}),
|
|
3919
|
+
children: (close) => /* @__PURE__ */ jsxs("div", {
|
|
3920
|
+
className: "flex max-h-full flex-col overflow-hidden",
|
|
3921
|
+
children: [isSearchable && /* @__PURE__ */ jsx(TextInput, {
|
|
3922
|
+
ref: searchInputRef,
|
|
3923
|
+
label,
|
|
3924
|
+
placeholder,
|
|
3925
|
+
value: fieldState.inputValue,
|
|
3926
|
+
onChange: onInputChange,
|
|
3927
|
+
rightContent: /* @__PURE__ */ jsx(FormFieldHeaderClose, { onClose: close }),
|
|
3928
|
+
inputClassName,
|
|
3929
|
+
className: "mb-list-height-title-bottom px-list-side-title",
|
|
3930
|
+
leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(Search, { className: "size-6" }) : void 0,
|
|
3931
|
+
size: "default",
|
|
3932
|
+
isClearable
|
|
3933
|
+
}), /* @__PURE__ */ jsx(SelectListBox, {
|
|
3934
|
+
...props,
|
|
3935
|
+
autoFocus: !isSearchable,
|
|
3936
|
+
onClose: close,
|
|
3937
|
+
isScrollable: true
|
|
3938
|
+
})]
|
|
3939
|
+
})
|
|
3940
|
+
})]
|
|
3941
|
+
})
|
|
3942
|
+
});
|
|
3943
|
+
};
|
|
3944
|
+
//#endregion
|
|
3945
|
+
//#region src/components/inputs/Selection/shared/SelectBase.tsx
|
|
3946
|
+
const SelectBase = (dProps) => {
|
|
3947
|
+
const ui = UIConfig.useConfig();
|
|
3948
|
+
const props = useMemo(() => ({
|
|
3949
|
+
...dProps,
|
|
3950
|
+
selectionMode: dProps.selectionMode ?? ui.select.selectionMode,
|
|
3951
|
+
variant: dProps.variant ?? ui.input.variant,
|
|
3952
|
+
as: dProps.as ?? ui.input.as,
|
|
3953
|
+
size: dProps.size ?? ui.input.size,
|
|
3954
|
+
hideLabel: dProps.hideLabel ?? ui.input.hideLabel,
|
|
3955
|
+
isClearable: dProps.isClearable ?? ui.input.isClearable,
|
|
3956
|
+
isSearchable: dProps.isSearchable ?? ui.select.isSearchable,
|
|
3957
|
+
selectedTagsType: dProps.selectedTagsType ?? ui.select.selectedTagsType,
|
|
3958
|
+
ignoreTriggerWidth: dProps.virtualizerOptions || (dProps.totalItems ?? 0) > 100 || dProps.hasLoadMore ? false : dProps.ignoreTriggerWidth ?? false,
|
|
3959
|
+
collapseAfter: dProps.collapseAfter ?? ui.select.collapseAfter,
|
|
3960
|
+
hideSearchIcon: dProps.hideSearchIcon ?? ui.select.hideSearchIcon,
|
|
3961
|
+
multiSelectAutoConfirm: dProps.multiSelectAutoConfirm ?? ui.select.multiSelectAutoConfirm,
|
|
3962
|
+
searchDebounceDelay: dProps.searchDebounceDelay ?? ui.select.searchDebounceDelay,
|
|
3963
|
+
isClientSearchDisabled: dProps.ignoreInputValueFiltering ?? dProps.isClientSearchDisabled
|
|
3964
|
+
}), [
|
|
3965
|
+
dProps,
|
|
3966
|
+
ui.input,
|
|
3967
|
+
ui.select
|
|
3968
|
+
]);
|
|
3969
|
+
const isDesktop = useBreakpoint("md");
|
|
3970
|
+
return /* @__PURE__ */ jsx(SelectContext.Provider, {
|
|
3971
|
+
...props,
|
|
3972
|
+
children: isDesktop ? /* @__PURE__ */ jsx(SelectDesktop, { ...props }) : /* @__PURE__ */ jsx(SelectMobile, { ...props })
|
|
3973
|
+
});
|
|
3974
|
+
};
|
|
3975
|
+
//#endregion
|
|
3976
|
+
//#region src/components/inputs/Selection/shared/StaticSelectTrailingContent.tsx
|
|
3977
|
+
const StaticSelectTrailingContent = ({ trailingContent, hideDropdownIcon, isDisabled, size }) => {
|
|
3978
|
+
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
3979
|
+
if (!trailingContent && hideDropdownIcon) return null;
|
|
3980
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [trailingContent && /* @__PURE__ */ jsx("div", {
|
|
3981
|
+
className: "flex shrink-0 items-center",
|
|
3982
|
+
children: trailingContent
|
|
3983
|
+
}), !hideDropdownIcon ? /* @__PURE__ */ jsx("button", {
|
|
3984
|
+
type: "button",
|
|
3985
|
+
tabIndex: -1,
|
|
3986
|
+
className: clsx("self-stretch border-0! pl-1-5 outline-none", inputSizeCva({ size })),
|
|
3987
|
+
"aria-hidden": "true",
|
|
3988
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3989
|
+
className: clsx("flex size-6 shrink-0 items-center justify-center", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle"),
|
|
3990
|
+
children: /* @__PURE__ */ jsx(Triangle, { className: "h-2 w-3 rotate-180 fill-current stroke-0" })
|
|
3991
|
+
})
|
|
3992
|
+
}) : void 0] });
|
|
3993
|
+
};
|
|
3994
|
+
//#endregion
|
|
3995
|
+
//#region src/components/inputs/Selection/shared/staticSelect.utils.tsx
|
|
3996
|
+
const getStaticMultipleDisplayValue = ({ selectedItems, isDisabled, collapseAfter, selectedTagsType }) => {
|
|
3997
|
+
if (selectedItems.length === 0) return "";
|
|
3998
|
+
return /* @__PURE__ */ jsx(SelectInputTags, {
|
|
3999
|
+
selectedItems,
|
|
4000
|
+
isDisabled,
|
|
4001
|
+
collapseAfter,
|
|
4002
|
+
selectedTagsType,
|
|
4003
|
+
onRemove: () => void 0
|
|
4004
|
+
});
|
|
4005
|
+
};
|
|
4006
|
+
const getStaticSingleDisplayValue = ({ selectedItem, showSelectionContent }) => {
|
|
4007
|
+
if (!selectedItem) return "";
|
|
4008
|
+
if (showSelectionContent && selectedItem.content) return selectedItem.content;
|
|
4009
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4010
|
+
className: "min-w-0 flex-1 truncate",
|
|
4011
|
+
children: selectedItem.label
|
|
4012
|
+
});
|
|
4013
|
+
};
|
|
4014
|
+
const getStaticSelectValue = ({ items, value, selectionMode, initialSelection, mapInitialToSelectItem = ((item) => ({
|
|
4015
|
+
id: item.id,
|
|
4016
|
+
label: item.label ?? item.name ?? ""
|
|
4017
|
+
})), showSelectionContent, isDisabled, collapseAfter, selectedTagsType }) => {
|
|
4018
|
+
const initialSelectedItems = initialSelection ? (Array.isArray(initialSelection) ? initialSelection : [initialSelection]).map((item) => mapInitialToSelectItem(item)) : [];
|
|
4019
|
+
const allItemsMap = /* @__PURE__ */ new Map();
|
|
4020
|
+
[...initialSelectedItems, ...items].forEach((item) => allItemsMap.set(item.id, item));
|
|
4021
|
+
const getItem = (id) => allItemsMap.get(id) ?? null;
|
|
4022
|
+
const selectedItems = Array.isArray(value) ? value.map((id) => getItem(id)).filter((item) => item != null) : [];
|
|
4023
|
+
const selectedItem = !Array.isArray(value) && value != null ? getItem(value) : null;
|
|
4024
|
+
if (selectionMode === "multiple") return {
|
|
4025
|
+
selectedItem,
|
|
4026
|
+
selectedItems,
|
|
4027
|
+
displayValue: getStaticMultipleDisplayValue({
|
|
4028
|
+
selectedItems,
|
|
4029
|
+
isDisabled,
|
|
4030
|
+
collapseAfter,
|
|
4031
|
+
selectedTagsType
|
|
4032
|
+
}),
|
|
4033
|
+
isEmpty: selectedItems.length === 0
|
|
4034
|
+
};
|
|
4035
|
+
return {
|
|
4036
|
+
selectedItem,
|
|
4037
|
+
selectedItems,
|
|
4038
|
+
displayValue: getStaticSingleDisplayValue({
|
|
4039
|
+
selectedItem,
|
|
4040
|
+
showSelectionContent
|
|
4041
|
+
}),
|
|
4042
|
+
isEmpty: selectedItem == null
|
|
4043
|
+
};
|
|
4044
|
+
};
|
|
4045
|
+
//#endregion
|
|
4046
|
+
export { selectListBoxItemDefinition as a, useKeyInteractions as c, selectPopoverDefinition as i, selectInputTagsContentWrapperDefinition as l, StaticSelectTrailingContent as n, createKeyInteractionsHandler as o, SelectBase as r, getKeyInteractionAction as s, getStaticSelectValue as t, useDebounceCallback as u };
|