@kapiuara/ui 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1202 -49
- package/dist/components/chat/KapiChatDivider.d.ts +8 -5
- package/dist/components/chat/KapiChatDivider.js +7 -6
- package/dist/components/chat/KapiChatList.d.ts +10 -6
- package/dist/components/chat/KapiChatList.js +12 -11
- package/dist/components/chat/KapiChatThread.d.ts +2 -3
- package/dist/components/chat/KapiChatThread.js +73 -52
- package/dist/components/chat/KapiComposer.d.ts +3 -4
- package/dist/components/chat/KapiComposer.js +2 -1
- package/dist/components/chat/KapiMessageBubble.d.ts +3 -4
- package/dist/components/chat/KapiMessageBubble.js +1 -0
- package/dist/components/chat/KapiTypingIndicator.d.ts +2 -3
- package/dist/components/chat/KapiTypingIndicator.js +1 -0
- package/dist/components/chat/chatLogic.d.ts +6 -0
- package/dist/components/chat/chatLogic.js +2 -2
- package/dist/components/chat/index.d.ts +18 -14
- package/dist/components/data/KapiBarChart.d.ts +13 -14
- package/dist/components/data/KapiBarChart.js +54 -52
- package/dist/components/data/KapiDataTable.d.ts +56 -0
- package/dist/components/data/KapiDataTable.js +143 -0
- package/dist/components/data/KapiEventCalendar.d.ts +9 -4
- package/dist/components/data/KapiEventCalendar.js +100 -96
- package/dist/components/data/KapiHeatmap.d.ts +8 -9
- package/dist/components/data/KapiHeatmap.js +64 -63
- package/dist/components/data/KapiLineChart.d.ts +9 -10
- package/dist/components/data/KapiLineChart.js +59 -56
- package/dist/components/data/KapiPagination.d.ts +6 -4
- package/dist/components/data/KapiPagination.js +2 -1
- package/dist/components/data/KapiPaginationFooter.d.ts +2 -3
- package/dist/components/data/KapiPaginationFooter.js +7 -4
- package/dist/components/data/KapiSparkline.d.ts +8 -9
- package/dist/components/data/KapiSparkline.js +1 -0
- package/dist/components/data/KapiTable.d.ts +7 -360
- package/dist/components/data/KapiTable.js +417 -692
- package/dist/components/data/KapiTableFilter.d.ts +16 -10
- package/dist/components/data/KapiTableFilter.js +50 -48
- package/dist/components/data/KapiTableRow.d.ts +55 -0
- package/dist/components/data/KapiTableRow.js +103 -0
- package/dist/components/data/KapiTableToolbar.d.ts +37 -0
- package/dist/components/data/KapiTableToolbar.js +237 -0
- package/dist/components/data/chartFrame.d.ts +1 -1
- package/dist/components/data/chartFrame.js +54 -55
- package/dist/components/data/datasetSelectionLogic.d.ts +7 -4
- package/dist/components/data/datasetSelectionLogic.js +3 -2
- package/dist/components/data/eventCalendarLogic.d.ts +7 -3
- package/dist/components/data/eventCalendarLogic.js +5 -4
- package/dist/components/data/index.d.ts +108 -30
- package/dist/components/data/rowClickLogic.d.ts +51 -0
- package/dist/components/data/rowClickLogic.js +56 -0
- package/dist/components/data/tableCells.d.ts +38 -0
- package/dist/components/data/tableCells.js +121 -0
- package/dist/components/data/tableHeaderMenu.d.ts +21 -0
- package/dist/components/data/tableHeaderMenu.js +45 -0
- package/dist/components/data/tableLabels.d.ts +76 -0
- package/dist/components/data/tableLabels.js +48 -0
- package/dist/components/data/tableLogic.d.ts +119 -21
- package/dist/components/data/tableLogic.js +121 -84
- package/dist/components/data/tablePaginationLogic.d.ts +15 -0
- package/dist/components/data/tablePaginationLogic.js +15 -0
- package/dist/components/data/tableResizeLogic.d.ts +12 -4
- package/dist/components/data/tableResizeLogic.js +14 -10
- package/dist/components/data/tableTypes.d.ts +509 -0
- package/dist/components/data/useColumnResize.d.ts +28 -0
- package/dist/components/data/useColumnResize.js +116 -0
- package/dist/components/data/useRowKeyWarning.d.ts +10 -0
- package/dist/components/data/useRowKeyWarning.js +29 -0
- package/dist/components/data/useTableEdges.d.ts +15 -0
- package/dist/components/data/useTableEdges.js +26 -0
- package/dist/components/data/useTableSelection.d.ts +51 -0
- package/dist/components/data/useTableSelection.js +80 -0
- package/dist/components/display/KapiAnnotation.d.ts +10 -9
- package/dist/components/display/KapiAnnotation.js +98 -101
- package/dist/components/display/KapiAvatar.d.ts +19 -13
- package/dist/components/display/KapiAvatar.js +26 -24
- package/dist/components/display/KapiAvatarGroup.d.ts +26 -10
- package/dist/components/display/KapiAvatarGroup.js +26 -24
- package/dist/components/display/KapiBadge.d.ts +23 -12
- package/dist/components/display/KapiBadge.js +20 -15
- package/dist/components/display/KapiComment.d.ts +1 -2
- package/dist/components/display/KapiComment.js +3 -2
- package/dist/components/display/KapiCommentComposer.d.ts +2 -3
- package/dist/components/display/KapiCommentComposer.js +3 -2
- package/dist/components/display/KapiDescriptionList.d.ts +6 -5
- package/dist/components/display/KapiDescriptionList.js +1 -0
- package/dist/components/display/KapiFileItem.d.ts +2 -3
- package/dist/components/display/KapiFileItem.js +3 -2
- package/dist/components/display/KapiFileViewer.d.ts +8 -9
- package/dist/components/display/KapiFileViewer.js +1 -0
- package/dist/components/display/KapiIconTile.d.ts +7 -6
- package/dist/components/display/KapiIconTile.js +1 -0
- package/dist/components/display/KapiStat.d.ts +9 -8
- package/dist/components/display/KapiStat.js +1 -0
- package/dist/components/display/KapiTag.d.ts +5 -4
- package/dist/components/display/KapiTag.js +1 -0
- package/dist/components/display/KapiTimeline.d.ts +6 -5
- package/dist/components/display/KapiTimeline.js +1 -0
- package/dist/components/display/KapiTruncate.d.ts +1 -2
- package/dist/components/display/KapiTruncate.js +1 -0
- package/dist/components/display/fileItemLogic.d.ts +1 -1
- package/dist/components/display/iconTileLogic.d.ts +2 -2
- package/dist/components/display/index.d.ts +86 -44
- package/dist/components/display/statLogic.d.ts +1 -1
- package/dist/components/feedback/KapiAlert.d.ts +30 -7
- package/dist/components/feedback/KapiAlert.js +47 -23
- package/dist/components/feedback/KapiBulkBar.d.ts +11 -6
- package/dist/components/feedback/KapiBulkBar.js +6 -3
- package/dist/components/feedback/KapiCountdown.d.ts +15 -12
- package/dist/components/feedback/KapiCountdown.js +17 -16
- package/dist/components/feedback/KapiEmpty.d.ts +3 -2
- package/dist/components/feedback/KapiEmpty.js +1 -0
- package/dist/components/feedback/KapiFab.d.ts +39 -9
- package/dist/components/feedback/KapiFab.js +172 -91
- package/dist/components/feedback/KapiOfflineBanner.d.ts +7 -6
- package/dist/components/feedback/KapiOfflineBanner.js +1 -0
- package/dist/components/feedback/KapiProgress.d.ts +8 -7
- package/dist/components/feedback/KapiProgress.js +1 -0
- package/dist/components/feedback/KapiSkeleton.d.ts +6 -4
- package/dist/components/feedback/KapiToastContainer.d.ts +16 -8
- package/dist/components/feedback/KapiToastContainer.js +118 -63
- package/dist/components/feedback/KapiTour.d.ts +6 -7
- package/dist/components/feedback/KapiTour.js +91 -86
- package/dist/components/feedback/KapiUnsavedBar.d.ts +15 -8
- package/dist/components/feedback/KapiUnsavedBar.js +8 -4
- package/dist/components/feedback/bulkBarLogic.d.ts +6 -1
- package/dist/components/feedback/bulkBarLogic.js +7 -4
- package/dist/components/feedback/countdownLogic.d.ts +19 -11
- package/dist/components/feedback/fabLogic.d.ts +28 -0
- package/dist/components/feedback/fabLogic.js +18 -2
- package/dist/components/feedback/index.d.ts +65 -33
- package/dist/components/feedback/toastLayer.d.ts +18 -0
- package/dist/components/feedback/toastLayer.js +22 -0
- package/dist/components/feedback/toastStore.d.ts +97 -9
- package/dist/components/feedback/toastStore.js +132 -29
- package/dist/components/feedback/tourLogic.d.ts +4 -16
- package/dist/components/feedback/unsavedBarLogic.d.ts +7 -1
- package/dist/components/feedback/unsavedBarLogic.js +9 -5
- package/dist/components/inputs/KapiAutocomplete.d.ts +73 -48
- package/dist/components/inputs/KapiAutocomplete.js +128 -146
- package/dist/components/inputs/KapiButton.d.ts +30 -11
- package/dist/components/inputs/KapiButton.js +34 -27
- package/dist/components/inputs/KapiCalendar.d.ts +14 -8
- package/dist/components/inputs/KapiCalendar.js +36 -34
- package/dist/components/inputs/KapiCalendarGrid.d.ts +11 -6
- package/dist/components/inputs/KapiCalendarGrid.js +44 -38
- package/dist/components/inputs/KapiCheckCard.d.ts +2 -3
- package/dist/components/inputs/KapiCheckCard.js +1 -0
- package/dist/components/inputs/KapiCheckbox.d.ts +1 -1
- package/dist/components/inputs/KapiChecklist.d.ts +77 -0
- package/dist/components/inputs/KapiChecklist.js +175 -0
- package/dist/components/inputs/KapiDatePicker.d.ts +60 -22
- package/dist/components/inputs/KapiDatePicker.js +124 -100
- package/dist/components/inputs/KapiDateRangePicker.d.ts +44 -10
- package/dist/components/inputs/KapiDateRangePicker.js +138 -108
- package/dist/components/inputs/KapiFacetedSearch.d.ts +7 -6
- package/dist/components/inputs/KapiFacetedSearch.js +130 -167
- package/dist/components/inputs/KapiField.d.ts +16 -8
- package/dist/components/inputs/KapiField.js +44 -43
- package/dist/components/inputs/KapiFileUpload.d.ts +15 -16
- package/dist/components/inputs/KapiFileUpload.js +1 -0
- package/dist/components/inputs/KapiIconButton.d.ts +1 -1
- package/dist/components/inputs/KapiInput.d.ts +13 -12
- package/dist/components/inputs/KapiInput.js +70 -70
- package/dist/components/inputs/KapiInputGroup.d.ts +13 -10
- package/dist/components/inputs/KapiInputGroup.js +21 -19
- package/dist/components/inputs/KapiMaskedInput.d.ts +22 -17
- package/dist/components/inputs/KapiMaskedInput.js +71 -55
- package/dist/components/inputs/KapiNumberStepper.d.ts +30 -18
- package/dist/components/inputs/KapiNumberStepper.js +80 -65
- package/dist/components/inputs/KapiRadio.d.ts +1 -1
- package/dist/components/inputs/KapiRating.d.ts +40 -23
- package/dist/components/inputs/KapiRating.js +82 -65
- package/dist/components/inputs/KapiSearchChip.d.ts +9 -8
- package/dist/components/inputs/KapiSearchChip.js +46 -42
- package/dist/components/inputs/KapiSegmented.d.ts +49 -16
- package/dist/components/inputs/KapiSegmented.js +82 -51
- package/dist/components/inputs/KapiSelect.d.ts +120 -39
- package/dist/components/inputs/KapiSelect.js +311 -371
- package/dist/components/inputs/KapiSelectMenu.d.ts +38 -0
- package/dist/components/inputs/KapiSelectMenu.js +173 -0
- package/dist/components/inputs/KapiSlider.d.ts +37 -19
- package/dist/components/inputs/KapiSlider.js +67 -54
- package/dist/components/inputs/KapiSwitch.d.ts +13 -7
- package/dist/components/inputs/KapiSwitch.js +30 -21
- package/dist/components/inputs/KapiTagInput.d.ts +35 -24
- package/dist/components/inputs/KapiTagInput.js +86 -73
- package/dist/components/inputs/KapiTextarea.d.ts +12 -11
- package/dist/components/inputs/KapiTextarea.js +71 -49
- package/dist/components/inputs/asyncSelectLogic.d.ts +8 -4
- package/dist/components/inputs/asyncSelectLogic.js +13 -12
- package/dist/components/inputs/autocompleteLogic.d.ts +2 -29
- package/dist/components/inputs/autocompleteLogic.js +6 -6
- package/dist/components/inputs/checkControl.d.ts +3 -3
- package/dist/components/inputs/checkControl.js +2 -0
- package/dist/components/inputs/checklistLogic.d.ts +33 -0
- package/dist/components/inputs/checklistLogic.js +16 -0
- package/dist/components/inputs/datePickerLogic.d.ts +63 -13
- package/dist/components/inputs/datePickerLogic.js +119 -50
- package/dist/components/inputs/dateRangeLogic.d.ts +8 -3
- package/dist/components/inputs/dateRangeLogic.js +49 -43
- package/dist/components/inputs/facetedSearchLogic.d.ts +1 -3
- package/dist/components/inputs/facetedSearchLogic.js +4 -5
- package/dist/components/inputs/fieldLogic.d.ts +37 -1
- package/dist/components/inputs/fieldLogic.js +36 -19
- package/dist/components/inputs/index.d.ts +118 -57
- package/dist/components/inputs/inputGroupLogic.d.ts +1 -1
- package/dist/components/inputs/inputLogic.d.ts +1 -1
- package/dist/components/inputs/maskLogic.d.ts +3 -2
- package/dist/components/inputs/maskLogic.js +12 -10
- package/dist/components/inputs/misuseWarnings.d.ts +37 -0
- package/dist/components/inputs/misuseWarnings.js +36 -0
- package/dist/components/inputs/numberStepLogic.d.ts +10 -0
- package/dist/components/inputs/numberStepLogic.js +16 -7
- package/dist/components/inputs/ownField.d.ts +37 -0
- package/dist/components/inputs/ownField.js +37 -0
- package/dist/components/inputs/segmentedLogic.d.ts +4 -3
- package/dist/components/inputs/segmentedLogic.js +7 -11
- package/dist/components/inputs/selectKeyLogic.d.ts +45 -0
- package/dist/components/inputs/selectKeyLogic.js +52 -0
- package/dist/components/inputs/selectLogic.d.ts +79 -22
- package/dist/components/inputs/selectLogic.js +87 -51
- package/dist/components/inputs/useCalendarFocus.js +13 -12
- package/dist/components/inputs/useSelectCreate.d.ts +22 -0
- package/dist/components/inputs/useSelectCreate.js +35 -0
- package/dist/components/inputs/useSelectSource.d.ts +39 -0
- package/dist/components/inputs/useSelectSource.js +42 -0
- package/dist/components/layout/KapiAccessCard.d.ts +11 -12
- package/dist/components/layout/KapiAccessCard.js +41 -37
- package/dist/components/layout/KapiAccountMenu.d.ts +23 -8
- package/dist/components/layout/KapiAccountMenu.js +124 -104
- package/dist/components/layout/KapiCard.d.ts +14 -7
- package/dist/components/layout/KapiCard.js +1 -0
- package/dist/components/layout/KapiCluster.d.ts +8 -7
- package/dist/components/layout/KapiCluster.js +1 -0
- package/dist/components/layout/KapiContextSlot.d.ts +10 -11
- package/dist/components/layout/KapiContextSlot.js +97 -92
- package/dist/components/layout/KapiDivider.d.ts +3 -2
- package/dist/components/layout/KapiDivider.js +1 -0
- package/dist/components/layout/KapiGrid.d.ts +8 -7
- package/dist/components/layout/KapiGrid.js +1 -0
- package/dist/components/layout/KapiMasonry.d.ts +1 -2
- package/dist/components/layout/KapiMasonry.js +1 -0
- package/dist/components/layout/KapiNotificationBell.d.ts +14 -15
- package/dist/components/layout/KapiNotificationBell.js +113 -116
- package/dist/components/layout/KapiPageHeader.d.ts +14 -6
- package/dist/components/layout/KapiPageHeader.js +99 -87
- package/dist/components/layout/KapiPanelParts.d.ts +11 -7
- package/dist/components/layout/KapiPanelParts.js +1 -0
- package/dist/components/layout/KapiRail.d.ts +17 -11
- package/dist/components/layout/KapiRail.js +96 -83
- package/dist/components/layout/KapiRailAccount.d.ts +26 -0
- package/dist/components/layout/KapiRailAccount.js +37 -0
- package/dist/components/layout/KapiRoot.d.ts +85 -0
- package/dist/components/layout/KapiRoot.js +58 -0
- package/dist/components/layout/KapiScrollArea.d.ts +2 -3
- package/dist/components/layout/KapiScrollArea.js +1 -0
- package/dist/components/layout/KapiShell.d.ts +15 -10
- package/dist/components/layout/KapiShell.js +51 -46
- package/dist/components/layout/KapiStack.d.ts +6 -5
- package/dist/components/layout/KapiStack.js +1 -0
- package/dist/components/layout/KapiThemeScript.d.ts +23 -0
- package/dist/components/layout/KapiThemeScript.js +13 -0
- package/dist/components/layout/accessCardLogic.d.ts +2 -2
- package/dist/components/layout/index.d.ts +55 -35
- package/dist/components/layout/notificationBellLogic.d.ts +1 -1
- package/dist/components/layout/railContext.d.ts +6 -0
- package/dist/components/layout/railContext.js +6 -0
- package/dist/components/layout/railLogic.d.ts +14 -14
- package/dist/components/layout/useMasonrySpans.js +31 -30
- package/dist/components/layout/useRailOverflow.js +30 -29
- package/dist/components/locale/KapiLocaleProvider.d.ts +33 -4
- package/dist/components/locale/KapiLocaleProvider.js +28 -17
- package/dist/components/locale/index.d.ts +7 -5
- package/dist/components/locale/labelRegistry.d.ts +67 -59
- package/dist/components/locale/localeLogic.d.ts +20 -0
- package/dist/components/locale/localeLogic.js +30 -0
- package/dist/components/navigation/CtxSlidingList.d.ts +5 -3
- package/dist/components/navigation/CtxSlidingList.js +16 -15
- package/dist/components/navigation/KapiAccordion.d.ts +9 -8
- package/dist/components/navigation/KapiAccordion.js +29 -29
- package/dist/components/navigation/KapiBreadcrumb.d.ts +4 -5
- package/dist/components/navigation/KapiBreadcrumb.js +1 -0
- package/dist/components/navigation/KapiCollapsiblePanel.d.ts +22 -16
- package/dist/components/navigation/KapiCollapsiblePanel.js +46 -43
- package/dist/components/navigation/KapiContextPanel.d.ts +31 -32
- package/dist/components/navigation/KapiContextPanel.js +119 -108
- package/dist/components/navigation/KapiFilterChips.d.ts +15 -10
- package/dist/components/navigation/KapiFilterChips.js +27 -22
- package/dist/components/navigation/KapiNavBadge.d.ts +7 -5
- package/dist/components/navigation/KapiNavBadge.js +12 -10
- package/dist/components/navigation/KapiPanelGroup.d.ts +22 -23
- package/dist/components/navigation/KapiPanelGroup.js +62 -60
- package/dist/components/navigation/KapiSteps.d.ts +4 -5
- package/dist/components/navigation/KapiSteps.js +1 -0
- package/dist/components/navigation/KapiTabs.d.ts +34 -16
- package/dist/components/navigation/KapiTabs.js +65 -49
- package/dist/components/navigation/KapiTree.d.ts +58 -18
- package/dist/components/navigation/KapiTree.js +135 -83
- package/dist/components/navigation/KapiWizard.d.ts +21 -11
- package/dist/components/navigation/KapiWizard.js +79 -72
- package/dist/components/navigation/MiniNavItem.d.ts +3 -4
- package/dist/components/navigation/MiniNavItem.js +1 -0
- package/dist/components/navigation/breadcrumbLogic.d.ts +1 -1
- package/dist/components/navigation/contextPanelLogic.d.ts +9 -5
- package/dist/components/navigation/filterChipsLogic.d.ts +13 -7
- package/dist/components/navigation/filterChipsLogic.js +12 -14
- package/dist/components/navigation/index.d.ts +75 -39
- package/dist/components/navigation/panelGroupLogic.d.ts +5 -1
- package/dist/components/navigation/panelMini.d.ts +1 -1
- package/dist/components/navigation/panelMini.js +1 -1
- package/dist/components/navigation/tabsLogic.d.ts +3 -2
- package/dist/components/navigation/tabsLogic.js +8 -12
- package/dist/components/navigation/treeLogic.d.ts +5 -5
- package/dist/components/navigation/treeLogic.js +3 -9
- package/dist/components/overlays/KapiCanvasForm.d.ts +8 -8
- package/dist/components/overlays/KapiCanvasForm.js +1 -1
- package/dist/components/overlays/KapiCommandPalette.d.ts +14 -10
- package/dist/components/overlays/KapiCommandPalette.js +70 -67
- package/dist/components/overlays/KapiConfirm.d.ts +16 -11
- package/dist/components/overlays/KapiConfirm.js +47 -44
- package/dist/components/overlays/KapiContextMenu.d.ts +77 -16
- package/dist/components/overlays/KapiContextMenu.js +55 -70
- package/dist/components/overlays/KapiDialogHost.d.ts +5 -7
- package/dist/components/overlays/KapiDialogHost.js +67 -64
- package/dist/components/overlays/KapiDropdown.d.ts +43 -21
- package/dist/components/overlays/KapiDropdown.js +31 -80
- package/dist/components/overlays/KapiLoading.d.ts +10 -5
- package/dist/components/overlays/KapiLoading.js +28 -25
- package/dist/components/overlays/KapiMenuButton.d.ts +48 -17
- package/dist/components/overlays/KapiMenuButton.js +73 -95
- package/dist/components/overlays/KapiModal.d.ts +16 -8
- package/dist/components/overlays/KapiModal.js +72 -65
- package/dist/components/overlays/KapiOffcanvas.d.ts +23 -13
- package/dist/components/overlays/KapiOffcanvas.js +159 -143
- package/dist/components/overlays/KapiOffcanvasStack.d.ts +4 -4
- package/dist/components/overlays/KapiOffcanvasStack.js +63 -52
- package/dist/components/overlays/KapiPhotoView.d.ts +7 -8
- package/dist/components/overlays/KapiPhotoView.js +67 -64
- package/dist/components/overlays/KapiPopover.d.ts +18 -17
- package/dist/components/overlays/KapiPopover.js +32 -42
- package/dist/components/overlays/KapiShapeSheet.d.ts +18 -12
- package/dist/components/overlays/KapiShapeSheet.js +51 -45
- package/dist/components/overlays/KapiSplitModal.d.ts +12 -11
- package/dist/components/overlays/KapiSplitModal.js +78 -68
- package/dist/components/overlays/KapiTooltip.d.ts +20 -10
- package/dist/components/overlays/KapiTooltip.js +91 -68
- package/dist/components/overlays/commandPaletteLogic.d.ts +2 -4
- package/dist/components/overlays/commandPaletteLogic.js +2 -2
- package/dist/components/overlays/dialogStore.d.ts +41 -20
- package/dist/components/overlays/dialogStore.js +4 -4
- package/dist/components/overlays/dialogUtils.d.ts +22 -0
- package/dist/components/overlays/dialogUtils.js +6 -2
- package/dist/components/overlays/index.d.ts +48 -38
- package/dist/components/overlays/menuButtonLogic.d.ts +33 -31
- package/dist/components/overlays/menuButtonLogic.js +9 -3
- package/dist/components/overlays/menuKeyboardLogic.d.ts +42 -8
- package/dist/components/overlays/menuKeyboardLogic.js +46 -15
- package/dist/components/overlays/menuList.d.ts +91 -0
- package/dist/components/overlays/menuList.js +223 -0
- package/dist/components/overlays/modalStack.d.ts +21 -0
- package/dist/components/overlays/modalStack.js +23 -0
- package/dist/components/overlays/offcanvasCompanion.d.ts +1 -1
- package/dist/components/overlays/offcanvasResize.d.ts +1 -1
- package/dist/components/overlays/offcanvasSide.d.ts +12 -1
- package/dist/components/overlays/offcanvasSide.js +4 -4
- package/dist/components/overlays/popoverLogic.d.ts +12 -12
- package/dist/components/overlays/useExitPresence.js +23 -22
- package/dist/components/overlays/useNativeDialog.d.ts +15 -4
- package/dist/components/overlays/useNativeDialog.js +52 -33
- package/dist/components/rootProps.d.ts +6 -4
- package/dist/components/tone.d.ts +55 -0
- package/dist/components/tone.js +92 -0
- package/dist/css/base.css +1 -0
- package/dist/css/components/chat/chat.css +1 -0
- package/dist/css/components/data/KapiBarChart.css +1 -0
- package/dist/css/components/data/KapiEventCalendar.css +1 -0
- package/dist/css/components/data/KapiHeatmap.css +1 -0
- package/dist/css/components/data/KapiLineChart.css +1 -0
- package/dist/css/components/data/KapiSparkline.css +1 -0
- package/dist/css/components/data/KapiTable.css +1 -0
- package/dist/css/components/data/KapiTableFilter.css +1 -0
- package/dist/css/components/display/KapiAnnotation.css +1 -0
- package/dist/css/components/display/KapiComment.css +1 -0
- package/dist/css/components/display/KapiFileItem.css +1 -0
- package/dist/css/components/display/KapiFileViewer.css +1 -0
- package/dist/css/components/display/KapiTruncate.css +1 -0
- package/dist/css/components/display/display.css +1 -0
- package/dist/css/components/feedback/KapiBulkBar.css +1 -0
- package/dist/css/components/feedback/KapiOfflineBanner.css +1 -0
- package/dist/css/components/feedback/KapiUnsavedBar.css +1 -0
- package/dist/css/components/feedback/feedback.css +1 -0
- package/dist/css/components/inputs/KapiAutocomplete.css +1 -0
- package/dist/css/components/inputs/KapiButton.css +1 -0
- package/dist/css/components/inputs/KapiChecklist.css +1 -0
- package/dist/css/components/inputs/KapiDatePicker.css +1 -0
- package/dist/css/components/inputs/KapiFacetedSearch.css +1 -0
- package/dist/css/components/inputs/KapiFileUpload.css +1 -0
- package/dist/css/components/inputs/KapiInputGroup.css +1 -0
- package/dist/css/components/inputs/KapiSearchChip.css +1 -0
- package/dist/css/components/inputs/KapiSelect.css +1 -0
- package/dist/css/components/inputs/KapiTagInput.css +1 -0
- package/dist/css/components/inputs/checkControl.css +1 -0
- package/dist/css/components/inputs/inputsExtra.css +1 -0
- package/dist/css/components/layout/KapiAccessCard.css +1 -0
- package/dist/css/components/layout/KapiAccountMenu.css +1 -0
- package/dist/css/components/layout/KapiCard.css +1 -0
- package/dist/css/components/layout/KapiDivider.css +1 -0
- package/dist/css/components/layout/KapiMasonry.css +1 -0
- package/dist/css/components/layout/KapiNotificationBell.css +1 -0
- package/dist/css/components/layout/KapiPageHeader.css +1 -0
- package/dist/css/components/layout/KapiPanelParts.css +1 -0
- package/dist/css/components/layout/KapiRail.css +1 -0
- package/dist/css/components/layout/KapiRoot.css +1 -0
- package/dist/css/components/layout/KapiScrollArea.css +1 -0
- package/dist/css/components/layout/layout-primitives.css +1 -0
- package/dist/css/components/navigation/KapiFilterChips.css +1 -0
- package/dist/css/components/navigation/KapiNavBadge.css +1 -0
- package/dist/css/components/navigation/KapiSteps.css +1 -0
- package/dist/css/components/navigation/navigation.css +1 -0
- package/dist/css/components/overlays/KapiCommandPalette.css +1 -0
- package/dist/css/components/overlays/KapiConfirm.css +1 -0
- package/dist/css/components/overlays/KapiModal.css +1 -0
- package/dist/css/components/overlays/KapiOffcanvas.css +1 -0
- package/dist/css/components/overlays/KapiPopover.css +1 -0
- package/dist/css/components/overlays/KapiSplitModal.css +1 -0
- package/dist/css/components/overlays/overlays.css +1 -0
- package/dist/css/none.js +1 -0
- package/dist/hooks/dataColorLogic.d.ts +1 -1
- package/dist/hooks/dateFormat.js +13 -13
- package/dist/hooks/directionLogic.d.ts +32 -0
- package/dist/hooks/directionLogic.js +7 -0
- package/dist/hooks/fieldErrorsLogic.d.ts +35 -0
- package/dist/hooks/fieldErrorsLogic.js +13 -0
- package/dist/hooks/focusLogic.js +8 -7
- package/dist/hooks/hotkeyLogic.d.ts +5 -1
- package/dist/hooks/hotkeyLogic.js +2 -2
- package/dist/hooks/index.d.ts +122 -57
- package/dist/hooks/kapiRoot.d.ts +11 -4
- package/dist/hooks/kapiRoot.js +18 -5
- package/dist/hooks/mergeRefs.d.ts +9 -0
- package/dist/hooks/mergeRefs.js +15 -0
- package/dist/hooks/onlineStatusLogic.d.ts +4 -4
- package/dist/hooks/ownerDocument.d.ts +26 -0
- package/dist/hooks/ownerDocument.js +24 -0
- package/dist/hooks/portalRoot.d.ts +19 -0
- package/dist/hooks/portalRoot.js +10 -0
- package/dist/hooks/rafThrottle.d.ts +12 -4
- package/dist/hooks/rafThrottle.js +43 -10
- package/dist/hooks/rangeSelectLogic.d.ts +47 -0
- package/dist/hooks/rangeSelectLogic.js +29 -0
- package/dist/hooks/recentLogic.d.ts +3 -3
- package/dist/hooks/reducedMotion.js +11 -3
- package/dist/hooks/rightClick.d.ts +5 -1
- package/dist/hooks/rightClick.js +16 -15
- package/dist/hooks/scrollCollapseLogic.d.ts +2 -2
- package/dist/hooks/seriesPaletteLogic.d.ts +1 -1
- package/dist/hooks/shallowStable.d.ts +12 -0
- package/dist/hooks/shallowStable.js +17 -0
- package/dist/hooks/slidingIndicatorLogic.d.ts +4 -0
- package/dist/hooks/themeColorsLogic.d.ts +1 -1
- package/dist/hooks/themeDeriveLogic.d.ts +1 -2
- package/dist/hooks/themeRadiiLogic.d.ts +1 -1
- package/dist/hooks/themeScript.d.ts +10 -0
- package/dist/hooks/themeScript.js +5 -0
- package/dist/hooks/useAsyncLoader.d.ts +51 -0
- package/dist/hooks/useAsyncLoader.js +77 -0
- package/dist/hooks/useAsyncTasks.d.ts +19 -0
- package/dist/hooks/useAsyncTasks.js +37 -0
- package/dist/hooks/useBottomBarInset.d.ts +7 -0
- package/dist/hooks/useBottomBarInset.js +25 -0
- package/dist/hooks/useControllableState.d.ts +25 -0
- package/dist/hooks/useControllableState.js +20 -0
- package/dist/hooks/useDismiss.d.ts +40 -0
- package/dist/hooks/useDismiss.js +42 -0
- package/dist/hooks/useDragScroll.d.ts +10 -0
- package/dist/hooks/useDragScroll.js +36 -25
- package/dist/hooks/useFieldErrors.d.ts +39 -0
- package/dist/hooks/useFieldErrors.js +29 -0
- package/dist/hooks/useFocusReturn.d.ts +25 -0
- package/dist/hooks/useFocusReturn.js +31 -0
- package/dist/hooks/useFormReset.d.ts +22 -0
- package/dist/hooks/useFormReset.js +17 -0
- package/dist/hooks/useGrowOrigin.d.ts +2 -2
- package/dist/hooks/useHotkey.d.ts +3 -3
- package/dist/hooks/useHydrated.d.ts +2 -0
- package/dist/hooks/useHydrated.js +6 -0
- package/dist/hooks/useKapiTheme.d.ts +3 -2
- package/dist/hooks/useKapiTheme.js +111 -68
- package/dist/hooks/useMediaQuery.d.ts +5 -1
- package/dist/hooks/useMediaQuery.js +5 -9
- package/dist/hooks/useOnlineStatus.d.ts +1 -1
- package/dist/hooks/useOutsidePress.d.ts +9 -0
- package/dist/hooks/useOutsidePress.js +11 -0
- package/dist/hooks/usePersistentState.d.ts +2 -2
- package/dist/hooks/usePersistentState.js +21 -21
- package/dist/hooks/usePlacement.d.ts +6 -5
- package/dist/hooks/usePlacement.js +68 -65
- package/dist/hooks/useRangeSelect.d.ts +24 -0
- package/dist/hooks/useRangeSelect.js +26 -0
- package/dist/hooks/useRecent.d.ts +3 -3
- package/dist/hooks/useScrollCollapse.d.ts +1 -1
- package/dist/hooks/useScrollEdges.d.ts +9 -8
- package/dist/hooks/useScrollEdges.js +62 -57
- package/dist/hooks/useSlidingIndicator.d.ts +1 -1
- package/dist/hooks/useSlidingIndicator.js +38 -33
- package/dist/hooks/useSubmitDraft.js +18 -19
- package/dist/hooks/useTypeahead.d.ts +9 -0
- package/dist/hooks/useTypeahead.js +20 -0
- package/dist/hooks/useUnsavedGuard.d.ts +7 -4
- package/dist/hooks/useUnsavedGuard.js +1 -0
- package/dist/hooks/useVirtualList.d.ts +36 -0
- package/dist/hooks/useVirtualList.js +126 -0
- package/dist/hooks/viewportInsetLogic.d.ts +37 -0
- package/dist/hooks/viewportInsetLogic.js +20 -0
- package/dist/hooks/virtualListLogic.d.ts +88 -0
- package/dist/hooks/virtualListLogic.js +80 -0
- package/dist/index.d.ts +13 -13
- package/dist/index.js +196 -179
- package/dist/kapi.css +1 -1
- package/dist/kapi.layered.css +1 -1
- package/package.json +18 -7
|
@@ -1,27 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import "#kapi-css/components/inputs/KapiSelect.css";
|
|
3
|
+
import { assignRef as e, fieldControlProps as t, focusLeaves as n, resolveReadOnly as r } from "./fieldLogic.js";
|
|
4
|
+
import { useOwnField as ee } from "./ownField.js";
|
|
5
|
+
import { resolveGroupSize as i, selectControlId as te } from "./inputGroupLogic.js";
|
|
5
6
|
import { useKapiInputGroup as ne } from "./KapiInputGroup.js";
|
|
6
7
|
import { useLabels as re } from "../locale/KapiLocaleProvider.js";
|
|
7
|
-
import {
|
|
8
|
-
import { SELECT_MENU_PLACEMENT as ae, displayLabel as oe, filterOptions as se, findTypeaheadIndex as ce, flattenOptions as le, indexEntries as ue, initialActiveIndex as de, nextActiveIndex as
|
|
9
|
-
import {
|
|
8
|
+
import { useRangeSelect as ie } from "../../hooks/useRangeSelect.js";
|
|
9
|
+
import { SELECT_MENU_PLACEMENT as ae, displayLabel as oe, filterOptions as se, findTypeaheadIndex as ce, flattenOptions as le, indexEntries as ue, initialActiveIndex as de, nextActiveIndex as fe, normalizeValue as pe, resolveChipLabel as me, resolveVirtualMenu as he, toggleValue as ge, withUnknownValues as _e } from "./selectLogic.js";
|
|
10
|
+
import { useControllableState as ve } from "../../hooks/useControllableState.js";
|
|
11
|
+
import { resolveKapiRoot as ye } from "../../hooks/kapiRoot.js";
|
|
12
|
+
import { isCreateRow as be, menuItems as a, withCreated as xe } from "./asyncSelectLogic.js";
|
|
10
13
|
/* empty css */
|
|
11
|
-
import { usePlacement as
|
|
14
|
+
import { usePlacement as Se } from "../../hooks/usePlacement.js";
|
|
15
|
+
import { useDuplicateValueWarning as Ce, useMutedControlWarning as we } from "./misuseWarnings.js";
|
|
16
|
+
import { useFormReset as Te } from "../../hooks/useFormReset.js";
|
|
17
|
+
import { useMergedRefs as Ee } from "../../hooks/mergeRefs.js";
|
|
18
|
+
import { useOutsidePress as De } from "../../hooks/useOutsidePress.js";
|
|
19
|
+
import { useTypeahead as Oe } from "../../hooks/useTypeahead.js";
|
|
20
|
+
import { selectKeyAction as ke } from "./selectKeyLogic.js";
|
|
21
|
+
import { useSelectSource as Ae } from "./useSelectSource.js";
|
|
22
|
+
import { useSelectCreate as je } from "./useSelectCreate.js";
|
|
23
|
+
import { KapiSelectMenu as Me } from "./KapiSelectMenu.js";
|
|
12
24
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
13
|
-
import { useCallback as
|
|
14
|
-
import {
|
|
15
|
-
import { createPortal as Ee } from "react-dom";
|
|
25
|
+
import { useCallback as Ne, useEffect as Pe, useId as Fe, useLayoutEffect as Ie, useMemo as c, useRef as l, useState as u } from "react";
|
|
26
|
+
import { ChevronDown as Le, X as Re } from "lucide-react";
|
|
16
27
|
//#region src/components/inputs/KapiSelect.tsx
|
|
17
|
-
var
|
|
18
|
-
"kapisel",
|
|
19
|
-
`kapisel--${e}`,
|
|
28
|
+
var ze = 6, Be = [], d = "\0kapisel-all", f = (e, t) => `${e} “${t.trim()}”`, Ve = ({ size: e = "md", open: t, disabled: n, readOnly: r, multi: ee, chip: i, className: te }) => [
|
|
29
|
+
...i ? ["kapi-filterchip", "kapisel--chip"] : ["kapisel", `kapisel--${e}`],
|
|
20
30
|
t && "kapisel--open",
|
|
21
31
|
n && "kapisel--disabled",
|
|
22
|
-
r && "kapisel--
|
|
23
|
-
ee
|
|
24
|
-
|
|
32
|
+
r && "kapisel--readonly",
|
|
33
|
+
ee && "kapisel--multi",
|
|
34
|
+
te
|
|
35
|
+
].filter(Boolean).join(" "), He = {
|
|
25
36
|
clear: "Limpiar selección",
|
|
26
37
|
remove: "Quitar",
|
|
27
38
|
placeholder: "Seleccionar…",
|
|
@@ -29,359 +40,300 @@ var De = 6, Oe = 500, ke = [], Ae = (e, t) => `${e} “${t.trim()}”`, je = ({
|
|
|
29
40
|
loading: "Cargando…",
|
|
30
41
|
loadError: "No se pudieron cargar las opciones",
|
|
31
42
|
createError: "No se pudo crear la opción",
|
|
32
|
-
create: "Crear"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
mt.current = t, e(v, t);
|
|
43
|
-
}, [v]), A = d(null), _t = d({
|
|
44
|
-
buffer: "",
|
|
45
|
-
timer: void 0
|
|
46
|
-
}), j = Pe !== void 0, M = T.trim(), N = C && !_, P = j || Ie !== void 0, [vt, yt] = f(() => P ? a(/* @__PURE__ */ new Map(), p) : /* @__PURE__ */ new Map()), [bt, xt] = f(p);
|
|
47
|
-
P && bt !== p && (xt(p), yt((e) => a(e, p)));
|
|
48
|
-
let F = j && (M !== "" || p.length === 0), [I] = f(he), [L, R] = f(null), St = d(m);
|
|
49
|
-
l(() => {
|
|
50
|
-
Object.is(St.current, m) || (St.current = m, I.cancel(), R(null));
|
|
51
|
-
}, [m, I]);
|
|
52
|
-
let z = L?.query === M, B = F && N && !z, Ct = F && z && L.error, V = Be || B, [wt, Tt] = f(!1), Et = d(!1), [Dt, H] = f(!1), Ot = V || wt, U = u(() => P ? ve(vt, x) : pe(p, x), [
|
|
53
|
-
P,
|
|
54
|
-
vt,
|
|
55
|
-
p,
|
|
56
|
-
x
|
|
57
|
-
]), W = u(() => F ? z ? L.entries : [] : j ? p : g ? se(p, T) : p, [
|
|
58
|
-
F,
|
|
59
|
-
z,
|
|
60
|
-
L,
|
|
61
|
-
j,
|
|
62
|
-
p,
|
|
63
|
-
g,
|
|
43
|
+
create: "Crear",
|
|
44
|
+
all: "Todas"
|
|
45
|
+
}, p = (p) => {
|
|
46
|
+
let { options: m = Be, loadOptions: Ue, loadDelay: We = 300, reloadKey: Ge, onCreate: Ke, value: qe, defaultValue: Je, multiple: h = !1, variant: Ye = "field", icon: Xe, label: Ze, chipLabel: Qe, help: $e, fieldClassName: et, clearable: tt = !1, disabled: g = !1, invalid: nt, required: rt, readOnly: it, loading: _ = !1, placeholder: at, size: ot, renderOption: st, renderValue: ct, virtual: lt, emptyMessage: ut, noOptionsMessage: dt, loadingMessage: ft, name: v, id: pt, className: mt, style: ht, "aria-label": gt, labels: _t, ref: y, onBlur: vt } = p, b = Ye === "chip", x = p.searchable ?? !b, yt = p.onChange, S = re("select", He, _t), bt = at ?? S.placeholder, C = h ? void 0 : p.allOption, w = C !== void 0 && C !== !1, xt = typeof C == "string" ? C : S.all, T = c(() => ({
|
|
47
|
+
value: d,
|
|
48
|
+
label: xt
|
|
49
|
+
}), [xt]), St = c(() => w && !(Ue && m.length === 0) ? [T, ...m] : m, [
|
|
50
|
+
w,
|
|
51
|
+
Ue,
|
|
52
|
+
m,
|
|
64
53
|
T
|
|
65
|
-
]),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
54
|
+
]), Ct = ut ?? dt ?? S.noOptions, wt = ft ?? S.loading, Tt = ne(), Et = i(ot, Tt?.size) ?? "md", { chipLabel: Dt, fieldLabel: Ot } = me({
|
|
55
|
+
chip: b,
|
|
56
|
+
chipLabel: Qe,
|
|
57
|
+
label: Ze
|
|
58
|
+
}), kt = ee({
|
|
59
|
+
id: pt,
|
|
60
|
+
label: Ot,
|
|
61
|
+
help: $e,
|
|
62
|
+
required: rt,
|
|
63
|
+
invalid: nt,
|
|
64
|
+
readOnly: it,
|
|
65
|
+
fieldClassName: et
|
|
66
|
+
}), E = kt.field, D = r(it, E), O = gt ?? (b && !E ? Dt : void 0), At = Fe(), k = te({
|
|
67
|
+
id: pt,
|
|
68
|
+
fieldControlId: E?.controlId,
|
|
69
|
+
autoId: At,
|
|
70
|
+
inGroup: Tt !== null
|
|
71
|
+
}), jt = `${k}-listbox`, Mt = `${k}-value`, Nt = (e) => `${k}-opt-${e}`, [Pt, Ft, , It] = ve(qe, () => pe(Je, h), yt), Lt = c(() => le(m).map((e) => e.value), [m]);
|
|
72
|
+
Ce("KapiSelect", Lt), we("KapiSelect", {
|
|
73
|
+
controlled: qe !== void 0,
|
|
74
|
+
hasOnChange: !!yt,
|
|
75
|
+
readOnly: D,
|
|
76
|
+
disabled: g
|
|
76
77
|
});
|
|
77
|
-
l(() => {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
n = Promise.reject(e);
|
|
94
|
-
}
|
|
95
|
-
n.then((e) => {
|
|
96
|
-
if (!t.isCurrent()) return;
|
|
97
|
-
yt((t) => a(t, e)), R({
|
|
98
|
-
query: M,
|
|
99
|
-
entries: e,
|
|
100
|
-
error: !1
|
|
101
|
-
});
|
|
102
|
-
let { createAllowed: n, createPrefix: r } = X.current, ee = _e(e, M, n, Ae(r, M));
|
|
103
|
-
D(i(-1, "first", ee));
|
|
104
|
-
}, () => {
|
|
105
|
-
t.isCurrent() && R({
|
|
106
|
-
query: M,
|
|
107
|
-
entries: [],
|
|
108
|
-
error: !0
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
}, Fe);
|
|
112
|
-
return () => clearTimeout(e);
|
|
113
|
-
}, [
|
|
114
|
-
F,
|
|
115
|
-
N,
|
|
116
|
-
z,
|
|
78
|
+
let A = (e) => Ft(w && e === d ? null : e), Rt = pe(Pt, h), j = w && Rt === null ? d : Rt, M = j === d, N = c(() => pe(j, !0), [j]), [P, F] = u(!1), [I, L] = u(""), [zt, R] = u(-1), z = l(null), Bt = Ee(z, Te(It)), B = l(null), Vt = l(null), Ht = Ne((t) => {
|
|
79
|
+
B.current = t, e(y, t);
|
|
80
|
+
}, [y]), Ut = Ne((t) => {
|
|
81
|
+
Vt.current = t, e(y, t);
|
|
82
|
+
}, [y]), V = l(null), Wt = Oe(500), H = c(() => new Set(N), [N]), Gt = ie(), Kt = I.trim(), U = P && !g && !D, W = Ae({
|
|
83
|
+
options: St,
|
|
84
|
+
loadOptions: Ue,
|
|
85
|
+
loadDelay: We,
|
|
86
|
+
reloadKey: Ge,
|
|
87
|
+
creatable: Ke !== void 0,
|
|
88
|
+
searchable: x,
|
|
89
|
+
query: I,
|
|
90
|
+
open: U,
|
|
91
|
+
current: j,
|
|
92
|
+
onLoaded: (e, t) => R(fe(-1, "first", a(e, t, J, f(S.create, t))))
|
|
93
|
+
}), { isAsync: qt, filtered: G, asyncLoading: Jt, loadError: Yt } = W, K = c(() => M ? [T] : _ ? W.selected : _e(W.selected, j), [
|
|
117
94
|
M,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
let Z = c((e) => {
|
|
128
|
-
ut || ft(e), $e?.(e);
|
|
129
|
-
}, [ut, $e]), Q = c(() => {
|
|
130
|
-
w(!1), E(""), D(-1);
|
|
131
|
-
}, []), $ = (e = "selected") => {
|
|
132
|
-
_ || (w(!0), D(de(K, S, e)));
|
|
133
|
-
}, Pt = (e) => {
|
|
134
|
-
h ? (E(""), D(e === null ? -1 : de(le(p), [e], "selected")), k.current?.focus()) : Q();
|
|
135
|
-
}, Ft = (e) => {
|
|
136
|
-
if (Et.current) return;
|
|
137
|
-
let t = (t) => {
|
|
138
|
-
t && (yt((e) => a(e, [t])), Z(ye(X.current.current, t.value, h))), X.current.query.trim() === e && Pt(t ? t.value : null);
|
|
139
|
-
};
|
|
140
|
-
H(!1);
|
|
141
|
-
let n = Ie?.(e);
|
|
142
|
-
if (!(n instanceof Promise)) {
|
|
143
|
-
t(n);
|
|
144
|
-
return;
|
|
95
|
+
T,
|
|
96
|
+
W.selected,
|
|
97
|
+
_,
|
|
98
|
+
j
|
|
99
|
+
]), q = je({
|
|
100
|
+
onCreate: Ke,
|
|
101
|
+
open: U,
|
|
102
|
+
onSettled: (e, t) => {
|
|
103
|
+
e && (W.remember([e]), A(xe(j, e.value, h))), I.trim() === t && an(e ? e.value : null);
|
|
145
104
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
},
|
|
105
|
+
}), Xt = _ || Jt, Zt = Xt || q.creating, J = Ke !== void 0 && x && !_ && !q.creating, Y = c(() => a(G, I, J && !Jt, f(S.create, I)), [
|
|
106
|
+
G,
|
|
107
|
+
I,
|
|
108
|
+
J,
|
|
109
|
+
Jt,
|
|
110
|
+
S.create
|
|
111
|
+
]), Qt = c(() => ue(G), [G]), $t = Y.length > 0 && be(Y[Y.length - 1]) ? Y[Y.length - 1] : null, X = zt >= 0 && zt < Y.length ? zt : -1, Z = K.length > 0, en = x && I !== "", tn = Xt ? wt : q.failed ? S.createError : Yt ? S.loadError : Y.length === 0 ? Ct : null, nn = () => (x ? B.current : Vt.current)?.focus();
|
|
112
|
+
Pe(() => {
|
|
113
|
+
g && (F(!1), L(""));
|
|
114
|
+
}, [g]);
|
|
115
|
+
let Q = Ne(() => {
|
|
116
|
+
F(!1), L(""), R(-1);
|
|
117
|
+
}, []), rn = (e = "selected") => {
|
|
118
|
+
g || D || (F(!0), R(de(Y, N, e)));
|
|
119
|
+
}, an = (e) => {
|
|
120
|
+
h ? (L(""), R(e === null ? -1 : de(le(m), [e], "selected")), B.current?.focus()) : Q();
|
|
121
|
+
}, on = (e, t = !1) => {
|
|
156
122
|
if (e.disabled) return;
|
|
157
|
-
if (
|
|
158
|
-
|
|
123
|
+
if (be(e)) {
|
|
124
|
+
q.create(Kt);
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (h) {
|
|
128
|
+
let n = Y.filter((e) => !be(e)), r = n.map((e) => e.value), ee = new Set(n.filter((e) => !e.disabled).map((e) => e.value)), i = Gt.toggle({
|
|
129
|
+
selected: new Set(H),
|
|
130
|
+
ids: r,
|
|
131
|
+
target: e.value,
|
|
132
|
+
shift: t,
|
|
133
|
+
isSelectable: (e) => ee.has(e)
|
|
134
|
+
});
|
|
135
|
+
A([...N.filter((e) => i.has(e)), ...r.filter((e) => i.has(e) && !H.has(e))]), an(e.value);
|
|
159
136
|
return;
|
|
160
137
|
}
|
|
161
|
-
let
|
|
162
|
-
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
anchor: O,
|
|
170
|
-
floatingRef: A,
|
|
138
|
+
let n = ge(j, e.value, h);
|
|
139
|
+
n === j ? Q() : (A(n), an(e.value));
|
|
140
|
+
}, sn = (e) => A(N.filter((t) => t !== e)), cn = () => {
|
|
141
|
+
A(h ? [] : null), L(""), nn();
|
|
142
|
+
}, { placement: ln, style: un, update: dn } = Se({
|
|
143
|
+
open: U,
|
|
144
|
+
anchor: z,
|
|
145
|
+
floatingRef: V,
|
|
171
146
|
...ae,
|
|
172
|
-
offset:
|
|
147
|
+
offset: ze
|
|
173
148
|
});
|
|
174
|
-
|
|
175
|
-
|
|
149
|
+
Ie(() => {
|
|
150
|
+
U && dn();
|
|
176
151
|
}, [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
]),
|
|
182
|
-
if (!
|
|
183
|
-
let e = (
|
|
184
|
-
let t = e.target;
|
|
185
|
-
t && (O.current?.contains(t) || A.current?.contains(t)) || Q();
|
|
186
|
-
};
|
|
187
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
188
|
-
}, [N, Q]), l(() => {
|
|
189
|
-
if (!N || J < 0) return;
|
|
190
|
-
let e = A.current?.querySelector(`[data-kapisel-index="${J}"]`);
|
|
152
|
+
U,
|
|
153
|
+
Y.length,
|
|
154
|
+
tn,
|
|
155
|
+
dn
|
|
156
|
+
]), De(U, [z, V], Q), Pe(() => {
|
|
157
|
+
if (!U || X < 0) return;
|
|
158
|
+
let e = V.current?.querySelector(`[data-kapisel-index="${X}"]`);
|
|
191
159
|
e && typeof e.scrollIntoView == "function" && e.scrollIntoView({ block: "nearest" });
|
|
192
|
-
}, [
|
|
193
|
-
let
|
|
194
|
-
if (
|
|
160
|
+
}, [U, X]);
|
|
161
|
+
let fn = (e) => {
|
|
162
|
+
if (g) return;
|
|
195
163
|
let t = e.target;
|
|
196
|
-
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
let t =
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
let
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
case "End":
|
|
218
|
-
if (!C) break;
|
|
219
|
-
e.preventDefault(), D(i(J, e.key === "Home" ? "first" : "last", K));
|
|
220
|
-
break;
|
|
221
|
-
case "Enter":
|
|
222
|
-
if (C) {
|
|
223
|
-
e.preventDefault();
|
|
224
|
-
let t = J >= 0 ? K[J] : void 0;
|
|
225
|
-
t && It(t);
|
|
226
|
-
} else g || (e.preventDefault(), $());
|
|
164
|
+
V.current?.contains(t) || (t.closest("[data-kapisel-action]") ? e.preventDefault() : t === B.current ? P || rn() : (e.preventDefault(), nn(), P ? Q() : rn()));
|
|
165
|
+
}, pn = (e) => {
|
|
166
|
+
L(e), F(!0), q.resetError(), R(qt ? -1 : fe(-1, "first", a(se(St, e), e, J, f(S.create, e))));
|
|
167
|
+
}, mn = (e) => {
|
|
168
|
+
let t = ce(Y, Wt(e), P ? X : Y.findIndex((e) => H.has(e.value)));
|
|
169
|
+
t < 0 || (P || F(!0), R(t));
|
|
170
|
+
}, hn = (e) => {
|
|
171
|
+
if (g || D) return;
|
|
172
|
+
let t = ke(e, {
|
|
173
|
+
open: P,
|
|
174
|
+
searchable: x,
|
|
175
|
+
multiple: h,
|
|
176
|
+
query: I,
|
|
177
|
+
valueCount: N.length
|
|
178
|
+
});
|
|
179
|
+
if (!t) return;
|
|
180
|
+
t.prevent && e.preventDefault(), t.stop && e.stopPropagation();
|
|
181
|
+
let { intent: n } = t;
|
|
182
|
+
switch (n.type) {
|
|
183
|
+
case "open":
|
|
184
|
+
rn(n.edge);
|
|
227
185
|
break;
|
|
228
|
-
case "
|
|
229
|
-
|
|
230
|
-
if (e.preventDefault(), !C) $();
|
|
231
|
-
else {
|
|
232
|
-
let e = J >= 0 ? K[J] : void 0;
|
|
233
|
-
e && It(e);
|
|
234
|
-
}
|
|
186
|
+
case "move":
|
|
187
|
+
R(fe(X, n.to, Y));
|
|
235
188
|
break;
|
|
236
|
-
case "
|
|
237
|
-
|
|
189
|
+
case "choose": {
|
|
190
|
+
let e = X >= 0 ? Y[X] : void 0;
|
|
191
|
+
e && on(e);
|
|
238
192
|
break;
|
|
239
|
-
|
|
240
|
-
|
|
193
|
+
}
|
|
194
|
+
case "close":
|
|
195
|
+
Q();
|
|
241
196
|
break;
|
|
242
|
-
case "
|
|
243
|
-
|
|
197
|
+
case "removeLast":
|
|
198
|
+
sn(N[N.length - 1]);
|
|
244
199
|
break;
|
|
245
|
-
|
|
200
|
+
case "typeahead": mn(n.key);
|
|
246
201
|
}
|
|
247
|
-
},
|
|
248
|
-
n(e.relatedTarget,
|
|
249
|
-
},
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
"aria-disabled": e.disabled || void 0,
|
|
256
|
-
"data-kapisel-index": t,
|
|
257
|
-
className: [
|
|
258
|
-
"kapisel__opt",
|
|
259
|
-
r && "kapisel__opt--active",
|
|
260
|
-
n && "kapisel__opt--selected",
|
|
261
|
-
e === q && "kapisel__opt--create",
|
|
262
|
-
e.disabled && "kapisel__opt--disabled"
|
|
263
|
-
].filter(Boolean).join(" "),
|
|
264
|
-
onMouseMove: () => {
|
|
265
|
-
!e.disabled && !r && D(t);
|
|
266
|
-
},
|
|
267
|
-
onClick: () => It(e),
|
|
268
|
-
children: [/* @__PURE__ */ o("span", {
|
|
269
|
-
className: "kapisel__opt-body",
|
|
270
|
-
children: Ue && e !== q ? Ue(e) : e.label
|
|
271
|
-
}), n && /* @__PURE__ */ o(Ce, {
|
|
272
|
-
className: "kapisel__check",
|
|
273
|
-
size: 15,
|
|
274
|
-
strokeWidth: 2.4,
|
|
275
|
-
"aria-hidden": "true"
|
|
276
|
-
})]
|
|
277
|
-
}, `${e.value}-${t}`);
|
|
278
|
-
}, Yt = {
|
|
202
|
+
}, gn = (e) => {
|
|
203
|
+
n(e.relatedTarget, z.current, V.current) && (P && Q(), vt?.(e));
|
|
204
|
+
}, _n = U ? ye(z.current) : null, vn = Tt !== null || b, yn = he({
|
|
205
|
+
virtual: lt,
|
|
206
|
+
count: Y.length,
|
|
207
|
+
contentSized: vn,
|
|
208
|
+
customRows: st !== void 0
|
|
209
|
+
}), bn = {
|
|
279
210
|
role: "combobox",
|
|
280
|
-
...t(
|
|
281
|
-
id:
|
|
282
|
-
describedBy:
|
|
283
|
-
|
|
284
|
-
|
|
211
|
+
...t(E, {
|
|
212
|
+
id: k,
|
|
213
|
+
describedBy: Mt,
|
|
214
|
+
invalid: nt,
|
|
215
|
+
required: rt,
|
|
216
|
+
labelable: x,
|
|
217
|
+
ariaLabel: O
|
|
285
218
|
}),
|
|
286
219
|
"aria-haspopup": "listbox",
|
|
287
|
-
"aria-expanded":
|
|
288
|
-
"aria-controls":
|
|
289
|
-
"aria-activedescendant":
|
|
290
|
-
"aria-label":
|
|
291
|
-
"aria-disabled":
|
|
292
|
-
"aria-
|
|
293
|
-
|
|
220
|
+
"aria-expanded": U,
|
|
221
|
+
"aria-controls": U ? jt : void 0,
|
|
222
|
+
"aria-activedescendant": U && X >= 0 ? Nt(X) : void 0,
|
|
223
|
+
"aria-label": O,
|
|
224
|
+
"aria-disabled": g || void 0,
|
|
225
|
+
"aria-readonly": D || void 0,
|
|
226
|
+
"aria-busy": Zt || void 0
|
|
227
|
+
}, $ = ct && Z && !M ? ct(K) : null, xn = !Z && !en && /* @__PURE__ */ o("span", {
|
|
294
228
|
className: "kapisel__placeholder",
|
|
295
229
|
"aria-hidden": "true",
|
|
296
|
-
children:
|
|
230
|
+
children: bt
|
|
297
231
|
});
|
|
298
|
-
return /* @__PURE__ */ s("div", {
|
|
299
|
-
ref:
|
|
300
|
-
className:
|
|
301
|
-
size:
|
|
302
|
-
open:
|
|
303
|
-
disabled:
|
|
232
|
+
return kt.wrap(/* @__PURE__ */ s("div", {
|
|
233
|
+
ref: Bt,
|
|
234
|
+
className: Ve({
|
|
235
|
+
size: Et,
|
|
236
|
+
open: U,
|
|
237
|
+
disabled: g,
|
|
238
|
+
readOnly: D,
|
|
304
239
|
multi: h,
|
|
305
|
-
|
|
240
|
+
chip: b,
|
|
241
|
+
className: mt
|
|
306
242
|
}),
|
|
307
|
-
style:
|
|
308
|
-
onMouseDown:
|
|
243
|
+
style: ht,
|
|
244
|
+
onMouseDown: fn,
|
|
309
245
|
children: [
|
|
246
|
+
b && Xe,
|
|
247
|
+
b && Dt && /* @__PURE__ */ s("span", {
|
|
248
|
+
className: "kapisel__chiplabel",
|
|
249
|
+
"aria-hidden": "true",
|
|
250
|
+
children: [Dt, ":"]
|
|
251
|
+
}),
|
|
310
252
|
/* @__PURE__ */ s("div", {
|
|
311
253
|
className: "kapisel__values",
|
|
312
|
-
children: [
|
|
313
|
-
|
|
314
|
-
children: [/* @__PURE__ */ o("span", {
|
|
315
|
-
className: "kapisel__chip-label",
|
|
316
|
-
children: e.label
|
|
317
|
-
}), /* @__PURE__ */ o("button", {
|
|
318
|
-
type: "button",
|
|
319
|
-
tabIndex: -1,
|
|
320
|
-
"data-kapisel-action": !0,
|
|
321
|
-
className: "kapisel__chip-x",
|
|
322
|
-
"aria-label": `${y.remove} ${e.label}`,
|
|
323
|
-
disabled: _,
|
|
324
|
-
onClick: () => Lt(e.value),
|
|
325
|
-
children: /* @__PURE__ */ o(Te, {
|
|
326
|
-
size: 12,
|
|
327
|
-
strokeWidth: 2.6,
|
|
328
|
-
"aria-hidden": "true"
|
|
329
|
-
})
|
|
330
|
-
})]
|
|
331
|
-
}, e.value)), g ? /* @__PURE__ */ s("div", {
|
|
332
|
-
className: "kapisel__inputwrap",
|
|
333
|
-
children: [
|
|
334
|
-
!h && Y && !At && /* @__PURE__ */ o("span", {
|
|
335
|
-
className: "kapisel__single",
|
|
336
|
-
"aria-hidden": "true",
|
|
337
|
-
children: U[0]?.label
|
|
338
|
-
}),
|
|
339
|
-
Xt,
|
|
340
|
-
/* @__PURE__ */ o("input", {
|
|
341
|
-
...Yt,
|
|
342
|
-
ref: ht,
|
|
343
|
-
type: "text",
|
|
344
|
-
className: "kapisel__input",
|
|
345
|
-
autoComplete: "off",
|
|
346
|
-
"aria-autocomplete": "list",
|
|
347
|
-
disabled: _,
|
|
348
|
-
value: T,
|
|
349
|
-
onChange: (e) => Ut(e.target.value),
|
|
350
|
-
onKeyDown: Gt,
|
|
351
|
-
onBlur: Kt
|
|
352
|
-
})
|
|
353
|
-
]
|
|
354
|
-
}) : /* @__PURE__ */ s("div", {
|
|
355
|
-
...Yt,
|
|
356
|
-
ref: gt,
|
|
357
|
-
className: "kapisel__combo",
|
|
358
|
-
tabIndex: _ ? -1 : 0,
|
|
359
|
-
onKeyDown: Gt,
|
|
360
|
-
onBlur: Kt,
|
|
361
|
-
children: [!h && Y && /* @__PURE__ */ o("span", {
|
|
254
|
+
children: [
|
|
255
|
+
h && $ !== null && /* @__PURE__ */ o("span", {
|
|
362
256
|
className: "kapisel__single",
|
|
363
257
|
"aria-hidden": "true",
|
|
364
|
-
children:
|
|
365
|
-
}),
|
|
366
|
-
|
|
258
|
+
children: $
|
|
259
|
+
}),
|
|
260
|
+
h && $ === null && K.map((e) => /* @__PURE__ */ s("span", {
|
|
261
|
+
className: "kapisel__chip",
|
|
262
|
+
children: [/* @__PURE__ */ o("span", {
|
|
263
|
+
className: "kapisel__chip-label",
|
|
264
|
+
children: e.label
|
|
265
|
+
}), /* @__PURE__ */ o("button", {
|
|
266
|
+
type: "button",
|
|
267
|
+
tabIndex: -1,
|
|
268
|
+
"data-kapisel-action": !0,
|
|
269
|
+
className: "kapisel__chip-x",
|
|
270
|
+
"aria-label": `${S.remove} ${e.label}`,
|
|
271
|
+
disabled: g,
|
|
272
|
+
hidden: D || void 0,
|
|
273
|
+
onClick: () => sn(e.value),
|
|
274
|
+
children: /* @__PURE__ */ o(Re, {
|
|
275
|
+
size: 12,
|
|
276
|
+
strokeWidth: 2.6,
|
|
277
|
+
"aria-hidden": "true"
|
|
278
|
+
})
|
|
279
|
+
})]
|
|
280
|
+
}, e.value)),
|
|
281
|
+
x ? /* @__PURE__ */ s("div", {
|
|
282
|
+
className: "kapisel__inputwrap",
|
|
283
|
+
children: [
|
|
284
|
+
!h && Z && !en && /* @__PURE__ */ o("span", {
|
|
285
|
+
className: "kapisel__single",
|
|
286
|
+
"aria-hidden": "true",
|
|
287
|
+
children: $ ?? K[0]?.label
|
|
288
|
+
}),
|
|
289
|
+
xn,
|
|
290
|
+
/* @__PURE__ */ o("input", {
|
|
291
|
+
...bn,
|
|
292
|
+
ref: Ht,
|
|
293
|
+
type: "text",
|
|
294
|
+
className: "kapisel__input",
|
|
295
|
+
autoComplete: "off",
|
|
296
|
+
"aria-autocomplete": "list",
|
|
297
|
+
disabled: g,
|
|
298
|
+
readOnly: D || void 0,
|
|
299
|
+
value: I,
|
|
300
|
+
onChange: (e) => pn(e.target.value),
|
|
301
|
+
onKeyDown: hn,
|
|
302
|
+
onBlur: gn
|
|
303
|
+
})
|
|
304
|
+
]
|
|
305
|
+
}) : /* @__PURE__ */ s("div", {
|
|
306
|
+
...bn,
|
|
307
|
+
ref: Ut,
|
|
308
|
+
className: "kapisel__combo",
|
|
309
|
+
tabIndex: g ? -1 : 0,
|
|
310
|
+
onKeyDown: hn,
|
|
311
|
+
onBlur: gn,
|
|
312
|
+
children: [!h && Z && /* @__PURE__ */ o("span", {
|
|
313
|
+
className: "kapisel__single",
|
|
314
|
+
"aria-hidden": "true",
|
|
315
|
+
children: $ ?? K[0]?.label
|
|
316
|
+
}), xn]
|
|
317
|
+
})
|
|
318
|
+
]
|
|
367
319
|
}),
|
|
368
320
|
/* @__PURE__ */ o("span", {
|
|
369
|
-
id:
|
|
321
|
+
id: Mt,
|
|
370
322
|
className: "kapisel__sr",
|
|
371
|
-
children: oe(
|
|
323
|
+
children: oe(K, bt)
|
|
372
324
|
}),
|
|
373
|
-
|
|
325
|
+
Zt && /* @__PURE__ */ o("span", {
|
|
374
326
|
className: "kapisel__spinner kapi-spinner kapi-spinner--sm",
|
|
375
327
|
"aria-hidden": "true"
|
|
376
328
|
}),
|
|
377
|
-
|
|
329
|
+
tt && Z && !M && !g && !D && /* @__PURE__ */ o("button", {
|
|
378
330
|
type: "button",
|
|
379
331
|
tabIndex: -1,
|
|
380
332
|
"data-kapisel-action": !0,
|
|
381
333
|
className: "kapisel__clear",
|
|
382
|
-
"aria-label":
|
|
383
|
-
onClick:
|
|
384
|
-
children: /* @__PURE__ */ o(
|
|
334
|
+
"aria-label": S.clear,
|
|
335
|
+
onClick: cn,
|
|
336
|
+
children: /* @__PURE__ */ o(Re, {
|
|
385
337
|
size: 15,
|
|
386
338
|
strokeWidth: 2.4,
|
|
387
339
|
"aria-hidden": "true"
|
|
@@ -390,58 +342,46 @@ var De = 6, Oe = 500, ke = [], Ae = (e, t) => `${e} “${t.trim()}”`, je = ({
|
|
|
390
342
|
/* @__PURE__ */ o("span", {
|
|
391
343
|
className: "kapisel__caret",
|
|
392
344
|
"aria-hidden": "true",
|
|
393
|
-
children: /* @__PURE__ */ o(
|
|
394
|
-
size: 17,
|
|
345
|
+
children: /* @__PURE__ */ o(Le, {
|
|
346
|
+
size: b ? 14 : 17,
|
|
395
347
|
strokeWidth: 2.2
|
|
396
348
|
})
|
|
397
349
|
}),
|
|
398
|
-
|
|
350
|
+
v && (h ? N.map((e) => /* @__PURE__ */ o("input", {
|
|
399
351
|
type: "hidden",
|
|
400
|
-
name:
|
|
352
|
+
name: v,
|
|
401
353
|
value: e
|
|
402
354
|
}, e)) : /* @__PURE__ */ o("input", {
|
|
403
355
|
type: "hidden",
|
|
404
|
-
name:
|
|
405
|
-
value:
|
|
356
|
+
name: v,
|
|
357
|
+
value: M ? "" : j ?? ""
|
|
406
358
|
})),
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
})]
|
|
432
|
-
}, e.key)), q && Jt({
|
|
433
|
-
option: q,
|
|
434
|
-
index: K.length - 1
|
|
435
|
-
})]
|
|
436
|
-
}), jt && /* @__PURE__ */ o("div", {
|
|
437
|
-
className: "kapisel__status",
|
|
438
|
-
role: "status",
|
|
439
|
-
"aria-live": "polite",
|
|
440
|
-
children: jt
|
|
441
|
-
})]
|
|
442
|
-
}), qt)
|
|
359
|
+
_n && /* @__PURE__ */ o(Me, {
|
|
360
|
+
root: _n,
|
|
361
|
+
ref: V,
|
|
362
|
+
side: ln?.side === "top" ? "top" : "bottom",
|
|
363
|
+
hug: vn,
|
|
364
|
+
style: un,
|
|
365
|
+
listboxId: jt,
|
|
366
|
+
optionId: Nt,
|
|
367
|
+
multiple: h,
|
|
368
|
+
"aria-label": O,
|
|
369
|
+
rows: Qt,
|
|
370
|
+
createRow: $t,
|
|
371
|
+
createIndex: Y.length - 1,
|
|
372
|
+
loading: Xt,
|
|
373
|
+
empty: Y.length === 0,
|
|
374
|
+
message: tn,
|
|
375
|
+
active: X,
|
|
376
|
+
values: N,
|
|
377
|
+
renderOption: st,
|
|
378
|
+
query: I,
|
|
379
|
+
virtual: yn,
|
|
380
|
+
onHover: R,
|
|
381
|
+
onChoose: on
|
|
382
|
+
})
|
|
443
383
|
]
|
|
444
|
-
});
|
|
384
|
+
}));
|
|
445
385
|
};
|
|
446
386
|
//#endregion
|
|
447
|
-
export {
|
|
387
|
+
export { He as DEFAULT_SELECT_LABELS, p as KapiSelect, Ve as selectClasses };
|