@kapiuara/ui 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chat/KapiChatDivider.js +1 -2
- package/dist/components/chat/KapiChatList.js +15 -16
- package/dist/components/chat/KapiChatThread.js +21 -22
- package/dist/components/chat/KapiComposer.js +23 -24
- package/dist/components/chat/KapiMessageBubble.js +5 -6
- package/dist/components/chat/KapiTypingIndicator.js +5 -6
- package/dist/components/chat/chatLogic.js +1 -2
- package/dist/components/data/KapiBarChart.js +22 -23
- package/dist/components/data/KapiDataTable.js +92 -93
- package/dist/components/data/KapiEventCalendar.js +96 -97
- package/dist/components/data/KapiHeatmap.js +21 -22
- package/dist/components/data/KapiLineChart.js +23 -24
- package/dist/components/data/KapiPagination.js +1 -2
- package/dist/components/data/KapiPaginationFooter.js +5 -6
- package/dist/components/data/KapiScatterChart.js +18 -19
- package/dist/components/data/KapiSheet.js +2 -3
- package/dist/components/data/KapiSparkline.js +1 -2
- package/dist/components/data/KapiTable.js +107 -108
- package/dist/components/data/KapiTableFilter.js +13 -14
- package/dist/components/data/KapiTableFooter.js +21 -22
- package/dist/components/data/KapiTableRow.js +10 -11
- package/dist/components/data/KapiTableToolbar.js +95 -96
- package/dist/components/data/barChartLogic.js +1 -2
- package/dist/components/data/chartFrame.js +13 -14
- package/dist/components/data/datasetSelectionLogic.js +1 -2
- package/dist/components/data/eventCalendarLogic.js +2 -3
- package/dist/components/data/heatmapLogic.js +1 -2
- package/dist/components/data/lineChartLogic.js +1 -2
- package/dist/components/data/rowClickLogic.js +2 -17
- package/dist/components/data/scatterLogic.js +1 -2
- package/dist/components/data/sparklineLogic.js +1 -2
- package/dist/components/data/tableCells.js +14 -15
- package/dist/components/data/tableHeaderMenu.js +1 -2
- package/dist/components/data/tableLabels.js +1 -2
- package/dist/components/data/tableLogic.js +0 -1
- package/dist/components/data/tablePaginationLogic.js +1 -2
- package/dist/components/data/tableResizeLogic.js +1 -2
- package/dist/components/data/tableSlots.js +1 -2
- package/dist/components/data/tableSpanLogic.js +1 -2
- package/dist/components/data/useColumnResize.js +23 -24
- package/dist/components/data/useRowKeyWarning.js +1 -2
- package/dist/components/data/useTableEdges.js +1 -2
- package/dist/components/data/useTableSelection.js +25 -26
- package/dist/components/display/KapiAnchor.js +7 -8
- package/dist/components/display/KapiAnnotation.js +15 -16
- package/dist/components/display/KapiAvatar.js +6 -7
- package/dist/components/display/KapiAvatarGroup.js +15 -16
- package/dist/components/display/KapiBadge.js +1 -2
- package/dist/components/display/KapiCodeBlock.js +14 -15
- package/dist/components/display/KapiComment.js +10 -11
- package/dist/components/display/KapiCommentComposer.js +13 -14
- package/dist/components/display/KapiDescriptionList.js +1 -2
- package/dist/components/display/KapiDiff.js +23 -24
- package/dist/components/display/KapiFileItem.js +13 -14
- package/dist/components/display/KapiFileViewer.js +17 -18
- package/dist/components/display/KapiHighlight.js +2 -3
- package/dist/components/display/KapiIconTile.js +2 -3
- package/dist/components/display/KapiStat.js +8 -9
- package/dist/components/display/KapiTag.js +6 -7
- package/dist/components/display/KapiText.js +5 -6
- package/dist/components/display/KapiTimeline.js +2 -3
- package/dist/components/display/KapiTitle.js +1 -2
- package/dist/components/display/KapiTruncate.js +5 -6
- package/dist/components/display/annotationLogic.js +1 -2
- package/dist/components/display/avatarGroupLogic.js +1 -2
- package/dist/components/display/avatarGroupSlots.js +1 -2
- package/dist/components/display/avatarLogic.js +1 -2
- package/dist/components/display/codeBlockSlots.js +1 -2
- package/dist/components/display/commentLogic.js +1 -2
- package/dist/components/display/diffLogic.js +1 -2
- package/dist/components/display/diffSlots.js +1 -2
- package/dist/components/display/fileItemLogic.js +1 -2
- package/dist/components/display/highlightLogic.js +1 -2
- package/dist/components/display/highlightSlots.js +1 -2
- package/dist/components/display/iconTileLogic.js +1 -2
- package/dist/components/display/statLogic.js +1 -2
- package/dist/components/display/tagLogic.js +1 -2
- package/dist/components/display/textLogic.js +1 -2
- package/dist/components/display/timelineLogic.js +1 -2
- package/dist/components/display/truncateLogic.js +1 -2
- package/dist/components/feedback/KapiAlert.js +6 -7
- package/dist/components/feedback/KapiBulkBar.js +5 -6
- package/dist/components/feedback/KapiCountdown.js +16 -17
- package/dist/components/feedback/KapiEmpty.js +2 -3
- package/dist/components/feedback/KapiFab.js +96 -97
- package/dist/components/feedback/KapiOfflineBanner.js +4 -5
- package/dist/components/feedback/KapiProgress.js +1 -2
- package/dist/components/feedback/KapiSkeleton.js +1 -2
- package/dist/components/feedback/KapiSpinner.js +5 -6
- package/dist/components/feedback/KapiToastContainer.js +28 -29
- package/dist/components/feedback/KapiTour.js +24 -25
- package/dist/components/feedback/KapiUnsavedBar.js +5 -6
- package/dist/components/feedback/alertSlots.js +1 -2
- package/dist/components/feedback/bulkBarLogic.js +1 -2
- package/dist/components/feedback/countdownLogic.js +1 -2
- package/dist/components/feedback/countdownSlots.js +1 -2
- package/dist/components/feedback/emptySlots.js +1 -2
- package/dist/components/feedback/fabLogic.js +1 -2
- package/dist/components/feedback/offlineBannerLogic.js +1 -2
- package/dist/components/feedback/progressLogic.js +1 -2
- package/dist/components/feedback/toastLayer.js +1 -2
- package/dist/components/feedback/toastStore.js +2 -3
- package/dist/components/feedback/tourLogic.js +1 -2
- package/dist/components/feedback/unsavedBarLogic.js +1 -2
- package/dist/components/inputs/KapiAutocomplete.js +23 -24
- package/dist/components/inputs/KapiButton.js +1 -2
- package/dist/components/inputs/KapiCalendar.js +12 -13
- package/dist/components/inputs/KapiCalendarGrid.js +15 -16
- package/dist/components/inputs/KapiCheckCard.js +4 -5
- package/dist/components/inputs/KapiCheckbox.js +1 -2
- package/dist/components/inputs/KapiChecklist.js +62 -63
- package/dist/components/inputs/KapiCopyButton.js +6 -7
- package/dist/components/inputs/KapiDatePicker.js +33 -34
- package/dist/components/inputs/KapiDateRangePicker.js +145 -146
- package/dist/components/inputs/KapiFacetedSearch.js +55 -56
- package/dist/components/inputs/KapiField.js +5 -6
- package/dist/components/inputs/KapiFileUpload.js +26 -27
- package/dist/components/inputs/KapiIconButton.js +1 -2
- package/dist/components/inputs/KapiInput.js +46 -47
- package/dist/components/inputs/KapiInputGroup.js +1 -2
- package/dist/components/inputs/KapiMaskedInput.js +50 -51
- package/dist/components/inputs/KapiNumberStepper.js +49 -50
- package/dist/components/inputs/KapiPinInput.js +9 -10
- package/dist/components/inputs/KapiPropsForm.js +43 -44
- package/dist/components/inputs/KapiRadio.js +1 -2
- package/dist/components/inputs/KapiRating.js +38 -39
- package/dist/components/inputs/KapiSearchChip.js +10 -11
- package/dist/components/inputs/KapiSegmented.js +65 -66
- package/dist/components/inputs/KapiSelect.js +198 -199
- package/dist/components/inputs/KapiSelectMenu.js +1 -2
- package/dist/components/inputs/KapiSlider.js +11 -12
- package/dist/components/inputs/KapiSwitch.js +6 -7
- package/dist/components/inputs/KapiTagInput.js +32 -33
- package/dist/components/inputs/KapiTextarea.js +22 -23
- package/dist/components/inputs/asyncSelectLogic.js +22 -23
- package/dist/components/inputs/autocompleteLogic.js +1 -2
- package/dist/components/inputs/checkControl.js +4 -5
- package/dist/components/inputs/checklistLogic.js +1 -2
- package/dist/components/inputs/copyLogic.js +1 -2
- package/dist/components/inputs/datePickerLogic.js +1 -2
- package/dist/components/inputs/dateRangeLogic.js +1 -2
- package/dist/components/inputs/facetedSearchLogic.js +1 -2
- package/dist/components/inputs/fieldLogic.js +1 -2
- package/dist/components/inputs/fileUploadLogic.js +1 -2
- package/dist/components/inputs/formBridgeLogic.js +1 -2
- package/dist/components/inputs/inputGroupLogic.js +1 -2
- package/dist/components/inputs/inputLogic.js +1 -2
- package/dist/components/inputs/maskLogic.js +0 -1
- package/dist/components/inputs/misuseWarnings.js +1 -2
- package/dist/components/inputs/numberStepLogic.js +1 -2
- package/dist/components/inputs/ownField.js +9 -10
- package/dist/components/inputs/pinInputLogic.js +1 -2
- package/dist/components/inputs/propsFormLogic.js +1 -2
- package/dist/components/inputs/ratingLogic.js +1 -2
- package/dist/components/inputs/searchChipLogic.js +1 -2
- package/dist/components/inputs/segmentedLogic.js +1 -2
- package/dist/components/inputs/selectKeyLogic.js +1 -2
- package/dist/components/inputs/selectLogic.js +1 -2
- package/dist/components/inputs/selectSlots.js +1 -2
- package/dist/components/inputs/sliderLogic.js +1 -2
- package/dist/components/inputs/tagInputLogic.js +1 -2
- package/dist/components/inputs/textareaLogic.js +1 -2
- package/dist/components/inputs/useCalendarFocus.js +1 -2
- package/dist/components/inputs/useDatePopSide.js +1 -2
- package/dist/components/inputs/useSelectCreate.js +1 -2
- package/dist/components/inputs/useSelectSource.js +11 -12
- package/dist/components/labelsLogic.js +1 -2
- package/dist/components/layout/KapiAccessCard.js +10 -11
- package/dist/components/layout/KapiAccountMenu.js +24 -25
- package/dist/components/layout/KapiBox.js +5 -6
- package/dist/components/layout/KapiCard.js +18 -19
- package/dist/components/layout/KapiCenter.js +1 -2
- package/dist/components/layout/KapiCluster.js +1 -2
- package/dist/components/layout/KapiCol.js +1 -2
- package/dist/components/layout/KapiCollapse.js +1 -2
- package/dist/components/layout/KapiContextSlot.js +98 -99
- package/dist/components/layout/KapiDivider.js +1 -2
- package/dist/components/layout/KapiGrid.js +9 -10
- package/dist/components/layout/KapiMasonry.js +1 -2
- package/dist/components/layout/KapiNotificationBell.js +53 -54
- package/dist/components/layout/KapiPageHeader.js +42 -43
- package/dist/components/layout/KapiPanelParts.js +43 -44
- package/dist/components/layout/KapiRail.js +103 -104
- package/dist/components/layout/KapiRailAccount.js +11 -12
- package/dist/components/layout/KapiRoot.js +33 -34
- package/dist/components/layout/KapiScrollArea.js +7 -8
- package/dist/components/layout/KapiShell.js +8 -9
- package/dist/components/layout/KapiStack.js +1 -2
- package/dist/components/layout/KapiThemeScript.js +1 -2
- package/dist/components/layout/accessCardLogic.js +1 -2
- package/dist/components/layout/cardLogic.js +1 -2
- package/dist/components/layout/cardSlots.js +1 -2
- package/dist/components/layout/gridSpanLogic.js +1 -2
- package/dist/components/layout/layoutPrimitives.js +1 -2
- package/dist/components/layout/masonryLogic.js +1 -2
- package/dist/components/layout/notificationBellLogic.js +1 -2
- package/dist/components/layout/pageHeaderLogic.js +1 -2
- package/dist/components/layout/pageHeaderSlots.js +1 -2
- package/dist/components/layout/railContext.js +1 -2
- package/dist/components/layout/railLogic.js +1 -2
- package/dist/components/layout/railSlots.js +1 -2
- package/dist/components/layout/reopenBus.js +1 -2
- package/dist/components/layout/shellSlots.js +1 -2
- package/dist/components/layout/useGridBreakpoint.js +1 -2
- package/dist/components/layout/useMasonrySpans.js +6 -7
- package/dist/components/layout/useRailOverflow.js +7 -8
- package/dist/components/locale/KapiLocaleProvider.js +1 -2
- package/dist/components/locale/linkLabels.js +1 -2
- package/dist/components/locale/localeLogic.js +1 -2
- package/dist/components/navigation/CtxSlidingList.js +7 -8
- package/dist/components/navigation/KapiAccordion.js +11 -12
- package/dist/components/navigation/KapiBreadcrumb.js +11 -12
- package/dist/components/navigation/KapiCollapsiblePanel.js +13 -14
- package/dist/components/navigation/KapiContextPanel.js +138 -139
- package/dist/components/navigation/KapiFilterChips.js +25 -22
- package/dist/components/navigation/KapiNavBadge.js +6 -7
- package/dist/components/navigation/KapiPanelGroup.js +34 -35
- package/dist/components/navigation/KapiSteps.js +41 -36
- package/dist/components/navigation/KapiTabs.js +40 -41
- package/dist/components/navigation/KapiToc.js +15 -16
- package/dist/components/navigation/KapiTree.js +126 -124
- package/dist/components/navigation/KapiWizard.js +12 -13
- package/dist/components/navigation/MiniNavItem.js +11 -12
- package/dist/components/navigation/accordionLogic.js +1 -2
- package/dist/components/navigation/activeItemLogic.js +1 -2
- package/dist/components/navigation/breadcrumbLogic.js +1 -2
- package/dist/components/navigation/contextPanelLogic.js +1 -2
- package/dist/components/navigation/filterChipsLogic.d.ts +9 -1
- package/dist/components/navigation/filterChipsLogic.js +2 -3
- package/dist/components/navigation/navBadgeLogic.js +1 -2
- package/dist/components/navigation/navLink.js +1 -2
- package/dist/components/navigation/navLinkLogic.js +1 -2
- package/dist/components/navigation/panelGroupLogic.js +1 -2
- package/dist/components/navigation/panelMini.js +0 -1
- package/dist/components/navigation/panelMiniLogic.js +1 -2
- package/dist/components/navigation/stepsLogic.js +1 -2
- package/dist/components/navigation/tabsLogic.js +1 -2
- package/dist/components/navigation/tocLogic.js +1 -2
- package/dist/components/navigation/tocSlots.js +1 -2
- package/dist/components/navigation/treeLogic.js +1 -2
- package/dist/components/navigation/wizardLogic.js +1 -2
- package/dist/components/overlays/KapiCanvasForm.js +5 -6
- package/dist/components/overlays/KapiCommandPalette.js +45 -45
- package/dist/components/overlays/KapiConfirm.js +9 -10
- package/dist/components/overlays/KapiContextMenu.js +16 -17
- package/dist/components/overlays/KapiDialogHost.js +50 -51
- package/dist/components/overlays/KapiDropdown.js +2 -3
- package/dist/components/overlays/KapiImageViewer.js +8 -9
- package/dist/components/overlays/KapiLoading.js +7 -8
- package/dist/components/overlays/KapiMenuButton.js +19 -20
- package/dist/components/overlays/KapiModal.js +58 -59
- package/dist/components/overlays/KapiOffcanvas.js +146 -147
- package/dist/components/overlays/KapiOffcanvasStack.js +18 -19
- package/dist/components/overlays/KapiPhotoView.js +21 -22
- package/dist/components/overlays/KapiPopover.js +12 -13
- package/dist/components/overlays/KapiShapeSheet.js +11 -12
- package/dist/components/overlays/KapiShortcutsHelp.js +18 -19
- package/dist/components/overlays/KapiSplitModal.js +20 -21
- package/dist/components/overlays/KapiTooltip.js +46 -47
- package/dist/components/overlays/KapiViewport.js +17 -18
- package/dist/components/overlays/canvasFormLogic.js +1 -2
- package/dist/components/overlays/commandPaletteLogic.js +1 -2
- package/dist/components/overlays/dialogStore.js +3 -4
- package/dist/components/overlays/dialogUtils.js +1 -2
- package/dist/components/overlays/exitPresenceLogic.js +1 -2
- package/dist/components/overlays/menuButtonLogic.js +1 -2
- package/dist/components/overlays/menuKeyboardLogic.js +1 -2
- package/dist/components/overlays/menuList.js +94 -95
- package/dist/components/overlays/modalSlots.js +1 -2
- package/dist/components/overlays/modalStack.js +1 -2
- package/dist/components/overlays/offcanvasCompanion.js +1 -2
- package/dist/components/overlays/offcanvasResize.js +0 -1
- package/dist/components/overlays/offcanvasSide.js +1 -2
- package/dist/components/overlays/offcanvasStack.js +1 -2
- package/dist/components/overlays/overlayPortal.js +1 -2
- package/dist/components/overlays/popoverLogic.js +1 -2
- package/dist/components/overlays/shortcutsHelpSlots.js +1 -2
- package/dist/components/overlays/splitModalLayout.js +1 -2
- package/dist/components/overlays/useExitPresence.js +11 -12
- package/dist/components/overlays/useNativeDialog.js +21 -22
- package/dist/components/overlays/viewportLogic.js +1 -2
- package/dist/components/renderSlot.js +1 -2
- package/dist/components/rootProps.js +1 -2
- package/dist/components/slotCatalog.js +33 -34
- package/dist/components/slotsLogic.js +1 -2
- package/dist/components/tone.js +1 -2
- package/dist/css/components/overlays/KapiViewport.css +1 -1
- package/dist/hooks/asyncResourceLogic.js +1 -2
- package/dist/hooks/breakpointOpenLogic.js +1 -2
- package/dist/hooks/colorLogic.js +1 -2
- package/dist/hooks/dateFormat.js +1 -2
- package/dist/hooks/densityLogic.js +1 -2
- package/dist/hooks/directionLogic.js +1 -2
- package/dist/hooks/downloadLogic.js +1 -2
- package/dist/hooks/elementSizeLogic.js +1 -2
- package/dist/hooks/fieldErrorsLogic.js +1 -2
- package/dist/hooks/focusLogic.js +2 -11
- package/dist/hooks/growOriginLogic.js +1 -2
- package/dist/hooks/hotkeyLogic.js +1 -2
- package/dist/hooks/hotkeyRegistry.js +1 -2
- package/dist/hooks/kapiRoot.js +2 -3
- package/dist/hooks/mergeRefs.js +1 -2
- package/dist/hooks/numberFormatLogic.js +1 -2
- package/dist/hooks/onlineStatusLogic.js +1 -2
- package/dist/hooks/ownerDocument.js +1 -2
- package/dist/hooks/persistentStateLogic.js +1 -2
- package/dist/hooks/portalRoot.js +1 -2
- package/dist/hooks/rafThrottle.js +1 -2
- package/dist/hooks/rangeSelectLogic.js +1 -2
- package/dist/hooks/recentLogic.js +1 -2
- package/dist/hooks/reducedMotion.js +8 -9
- package/dist/hooks/rightClick.js +10 -11
- package/dist/hooks/scrollCollapseLogic.js +1 -2
- package/dist/hooks/scrollEdgesLogic.js +1 -2
- package/dist/hooks/shallowStable.js +1 -2
- package/dist/hooks/slidingIndicatorLogic.js +1 -2
- package/dist/hooks/storageLogic.js +1 -2
- package/dist/hooks/themeColorsLogic.js +1 -2
- package/dist/hooks/themeContrastLogic.js +1 -2
- package/dist/hooks/themeDeriveLogic.js +0 -1
- package/dist/hooks/themeRadiiLogic.js +1 -2
- package/dist/hooks/themeScript.js +1 -2
- package/dist/hooks/toneFamilyLogic.js +1 -2
- package/dist/hooks/unsavedGuardLogic.js +1 -2
- package/dist/hooks/useAsyncLoader.js +1 -2
- package/dist/hooks/useAsyncResource.js +5 -6
- package/dist/hooks/useAsyncTasks.js +1 -2
- package/dist/hooks/useBottomBarInset.js +9 -10
- package/dist/hooks/useControllableState.js +1 -2
- package/dist/hooks/useDebouncedValue.js +1 -2
- package/dist/hooks/useDisclosure.js +1 -2
- package/dist/hooks/useDismiss.js +10 -11
- package/dist/hooks/useDragScroll.js +12 -13
- package/dist/hooks/useElementSize.js +1 -2
- package/dist/hooks/useFieldErrors.js +1 -2
- package/dist/hooks/useFocusReturn.js +1 -2
- package/dist/hooks/useFormReset.js +1 -2
- package/dist/hooks/useGlobalRightClick.js +1 -2
- package/dist/hooks/useGrowOrigin.js +1 -2
- package/dist/hooks/useHotkey.js +1 -2
- package/dist/hooks/useHydrated.js +1 -2
- package/dist/hooks/useKapiTheme.js +55 -56
- package/dist/hooks/useMediaQuery.js +1 -2
- package/dist/hooks/useObjectUrl.js +1 -2
- package/dist/hooks/useOnlineStatus.js +1 -2
- package/dist/hooks/useOutsidePress.js +1 -2
- package/dist/hooks/usePersistentState.js +9 -10
- package/dist/hooks/usePlacement.js +15 -16
- package/dist/hooks/useRangeSelect.js +2 -3
- package/dist/hooks/useRecent.js +6 -7
- package/dist/hooks/useScrollCollapse.js +1 -2
- package/dist/hooks/useScrollEdges.js +25 -26
- package/dist/hooks/useSlidingIndicator.js +19 -20
- package/dist/hooks/useSubmitDraft.js +1 -2
- package/dist/hooks/useToneFamilies.js +0 -1
- package/dist/hooks/useTypeahead.js +1 -2
- package/dist/hooks/useUnsavedGuard.js +5 -6
- package/dist/hooks/useVirtualList.js +1 -2
- package/dist/hooks/useWheelZoom.js +1 -2
- package/dist/hooks/viewportInsetLogic.js +1 -2
- package/dist/hooks/virtualListLogic.js +0 -1
- package/dist/hooks/wheelZoomLogic.js +1 -2
- package/dist/kapi.css +1 -1
- package/dist/kapi.layered.css +1 -1
- package/dist/logic.js +45 -45
- package/package.json +16 -16
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/data/KapiHeatmap.css";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { KapiTooltip as e } from "../overlays/KapiTooltip.js";
|
|
4
|
+
import { useKapiFormatLocale as t, useLabels as n } from "../locale/KapiLocaleProvider.js";
|
|
5
|
+
import { formatDataValue as r } from "../../hooks/numberFormatLogic.js";
|
|
6
|
+
import { useChartTitleId as i, useChartView as a } from "./chartFrame.js";
|
|
7
|
+
import { KapiSegmented as o } from "../inputs/KapiSegmented.js";
|
|
8
8
|
import { heatLegendRanges as s, heatMax as c, heatStep as l } from "./heatmapLogic.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { Fragment as u } from "react";
|
|
11
11
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/components/data/KapiHeatmap.tsx
|
|
13
13
|
var m = {
|
|
14
14
|
chartView: "Mapa",
|
|
15
15
|
tableView: "Tabla",
|
|
@@ -21,7 +21,7 @@ var m = {
|
|
|
21
21
|
summary: "Mapa de calor de {rows} filas por {columns} columnas. Cambiá a la vista de tabla para leer los valores."
|
|
22
22
|
}, h = (e) => ({ "--kapi-chart-slot": e > 0 ? `var(--kapi-seq-${e})` : "transparent" });
|
|
23
23
|
function g({ rows: g, columns: _, values: v, title: y, max: b, view: x, defaultView: S = "chart", onViewChange: C, labels: w, className: T, ref: E, ...D }) {
|
|
24
|
-
let O =
|
|
24
|
+
let O = t(), k = n("heatmap", m, w), A = i(), { current: j, setView: M } = a(x, S, C), N = b !== void 0 && b > 0 ? b : c(v), P = g.length === 0 || _.length === 0, F = (e, t) => v[e]?.[t], I = k.summary.replace("{rows}", String(g.length)).replace("{columns}", String(_.length));
|
|
25
25
|
return /* @__PURE__ */ p("div", {
|
|
26
26
|
...D,
|
|
27
27
|
ref: E,
|
|
@@ -34,7 +34,7 @@ function g({ rows: g, columns: _, values: v, title: y, max: b, view: x, defaultV
|
|
|
34
34
|
className: "kapi-heatmap__title",
|
|
35
35
|
id: A,
|
|
36
36
|
children: y
|
|
37
|
-
}) : null, /* @__PURE__ */ f(
|
|
37
|
+
}) : null, /* @__PURE__ */ f(o, {
|
|
38
38
|
"aria-label": k.view,
|
|
39
39
|
items: [{
|
|
40
40
|
id: "chart",
|
|
@@ -62,12 +62,12 @@ function g({ rows: g, columns: _, values: v, title: y, max: b, view: x, defaultV
|
|
|
62
62
|
}, `${e}-${t}`))] }) }), /* @__PURE__ */ f("tbody", { children: g.map((e, t) => /* @__PURE__ */ p("tr", { children: [/* @__PURE__ */ f("th", {
|
|
63
63
|
scope: "row",
|
|
64
64
|
children: e
|
|
65
|
-
}), _.map((e,
|
|
66
|
-
let i = F(t,
|
|
65
|
+
}), _.map((e, n) => {
|
|
66
|
+
let i = F(t, n);
|
|
67
67
|
return /* @__PURE__ */ f("td", { children: i === void 0 || !Number.isFinite(i) ? /* @__PURE__ */ f("span", {
|
|
68
68
|
className: "kapi-muted",
|
|
69
69
|
children: k.noData
|
|
70
|
-
}) :
|
|
70
|
+
}) : r(i, O) }, `${e}-${n}`);
|
|
71
71
|
})] }, `${e}-${t}`)) })]
|
|
72
72
|
})
|
|
73
73
|
}) : /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("div", {
|
|
@@ -83,39 +83,38 @@ function g({ rows: g, columns: _, values: v, title: y, max: b, view: x, defaultV
|
|
|
83
83
|
className: "kapi-heatmap__colhead",
|
|
84
84
|
children: e
|
|
85
85
|
}, `col-${e}-${t}`)),
|
|
86
|
-
g.map((
|
|
86
|
+
g.map((t, n) => /* @__PURE__ */ p(u, { children: [/* @__PURE__ */ f("span", {
|
|
87
87
|
className: "kapi-heatmap__rowhead",
|
|
88
|
-
children:
|
|
88
|
+
children: t
|
|
89
89
|
}), _.map((i, a) => {
|
|
90
|
-
let o = F(
|
|
91
|
-
return /* @__PURE__ */ f(
|
|
92
|
-
label: `${
|
|
90
|
+
let o = F(n, a), s = o === void 0 ? 0 : l(o, N), c = o === void 0 || !Number.isFinite(o) ? k.noData : r(o, O);
|
|
91
|
+
return /* @__PURE__ */ f(e, {
|
|
92
|
+
label: `${t} · ${i}: ${c}`,
|
|
93
93
|
className: "kapi-heatmap__cellwrap",
|
|
94
94
|
children: /* @__PURE__ */ f("span", {
|
|
95
95
|
className: `kapi-heatmap__cell${s === 0 ? " kapi-heatmap__cell--empty" : ""}`,
|
|
96
96
|
style: h(s)
|
|
97
97
|
})
|
|
98
98
|
}, `cell-${i}-${a}`);
|
|
99
|
-
})] }, `row-${
|
|
99
|
+
})] }, `row-${t}-${n}`))
|
|
100
100
|
]
|
|
101
101
|
})
|
|
102
102
|
}), /* @__PURE__ */ f("ul", {
|
|
103
103
|
className: "kapi-heatmap__legend",
|
|
104
104
|
"aria-label": k.legend,
|
|
105
|
-
children: s(N).map(([e, t],
|
|
105
|
+
children: s(N).map(([e, t], n) => /* @__PURE__ */ p("li", {
|
|
106
106
|
className: "kapi-heatmap__legenditem",
|
|
107
107
|
children: [
|
|
108
108
|
/* @__PURE__ */ f("span", {
|
|
109
109
|
className: "kapi-heatmap__swatch",
|
|
110
|
-
style: h(
|
|
110
|
+
style: h(n + 1)
|
|
111
111
|
}),
|
|
112
|
-
|
|
112
|
+
r(Math.round(e), O),
|
|
113
113
|
"–",
|
|
114
|
-
|
|
114
|
+
r(Math.round(t), O)
|
|
115
115
|
]
|
|
116
116
|
}, e))
|
|
117
117
|
})] })]
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
//#endregion
|
|
121
120
|
export { m as DEFAULT_HEATMAP_LABELS, g as KapiHeatmap };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/data/KapiLineChart.css";
|
|
3
|
-
import {
|
|
3
|
+
import { KapiTooltip as e } from "../overlays/KapiTooltip.js";
|
|
4
4
|
import { formatDataValue as t } from "../../hooks/numberFormatLogic.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { areaPath as p, lineEndpoint as m, linePath as h, linePoints as g } from "./lineChartLogic.js";
|
|
5
|
+
import { KapiChartFrame as n, chartSummary as r, chartVars as i, useChartLabels as a, useChartTitleId as o, useChartView as s, withChartUnit as c } from "./chartFrame.js";
|
|
6
|
+
import { barHeight as l, barScale as u, barTickLabel as d } from "./barChartLogic.js";
|
|
7
|
+
import { areaPath as f, lineEndpoint as p, linePath as m, linePoints as h } from "./lineChartLogic.js";
|
|
9
8
|
/* empty css */
|
|
9
|
+
import { useKapiFormatLocale as g } from "../locale/KapiLocaleProvider.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/components/data/KapiLineChart.tsx
|
|
13
13
|
var y = 4;
|
|
14
14
|
function b({ categories: b, series: x, title: S, tickCount: C = 4, area: w = !1, unit: T, view: E, defaultView: D = "chart", onViewChange: O, labels: k, className: A, ref: j, ...M }) {
|
|
15
|
-
let N =
|
|
15
|
+
let N = g(), P = a(k), F = o(), { current: I, setView: L } = s(E, D, O), R = x.slice(0, 8);
|
|
16
16
|
x.length > 8 && process.env.NODE_ENV !== "production" && console.warn(`KapiLineChart: ${x.length} series y la paleta tiene 8 slots. Se dibujan las primeras 8; agrupá el resto en vez de perderlo.`);
|
|
17
|
-
let z = (e, t) => R[e]?.values[t] ?? 0, B = R.flatMap((e) => b.map((t, n) => e.values[n] ?? 0)), { max: V, ticks: H } =
|
|
17
|
+
let z = (e, t) => R[e]?.values[t] ?? 0, B = R.flatMap((e) => b.map((t, n) => e.values[n] ?? 0)), { max: V, ticks: H } = u(B, C), U = R.map((e) => h(e.values, V, b.length)), W = w && R.length === 1, G = R.length > 1 && R.length <= y, K = r(P.kindLine, P, R.length, b.length);
|
|
18
18
|
return /* @__PURE__ */ _("div", {
|
|
19
19
|
...M,
|
|
20
20
|
ref: j,
|
|
@@ -25,7 +25,7 @@ function b({ categories: b, series: x, title: S, tickCount: C = 4, area: w = !1,
|
|
|
25
25
|
].filter(Boolean).join(" "),
|
|
26
26
|
role: "group",
|
|
27
27
|
...S ? { "aria-labelledby": F } : {},
|
|
28
|
-
children: /* @__PURE__ */ _(
|
|
28
|
+
children: /* @__PURE__ */ _(n, {
|
|
29
29
|
title: S,
|
|
30
30
|
titleId: F,
|
|
31
31
|
series: R,
|
|
@@ -46,10 +46,10 @@ function b({ categories: b, series: x, title: S, tickCount: C = 4, area: w = !1,
|
|
|
46
46
|
className: "kapi-linechart__axis",
|
|
47
47
|
children: H.map((e) => /* @__PURE__ */ _("div", {
|
|
48
48
|
className: "kapi-linechart__tick",
|
|
49
|
-
style:
|
|
49
|
+
style: i({ y: l(e, V) }),
|
|
50
50
|
children: /* @__PURE__ */ _("span", {
|
|
51
51
|
className: "kapi-linechart__ticklabel",
|
|
52
|
-
children:
|
|
52
|
+
children: c(d(e), T)
|
|
53
53
|
})
|
|
54
54
|
}, e))
|
|
55
55
|
}),
|
|
@@ -64,30 +64,30 @@ function b({ categories: b, series: x, title: S, tickCount: C = 4, area: w = !1,
|
|
|
64
64
|
focusable: "false",
|
|
65
65
|
children: [R.map((e, t) => W ? /* @__PURE__ */ _("path", {
|
|
66
66
|
className: "kapi-linechart__area",
|
|
67
|
-
d:
|
|
68
|
-
style:
|
|
67
|
+
d: f(U[t]),
|
|
68
|
+
style: i({ slot: t })
|
|
69
69
|
}, `${e.id}-area`) : null), R.map((e, t) => /* @__PURE__ */ _("path", {
|
|
70
70
|
className: "kapi-linechart__line",
|
|
71
|
-
d:
|
|
72
|
-
style:
|
|
71
|
+
d: m(U[t]),
|
|
72
|
+
style: i({ slot: t }),
|
|
73
73
|
vectorEffect: "non-scaling-stroke"
|
|
74
74
|
}, e.id))]
|
|
75
75
|
}),
|
|
76
|
-
R.map((
|
|
77
|
-
label: `${
|
|
76
|
+
R.map((n, r) => U[r].map((a, o) => /* @__PURE__ */ _(e, {
|
|
77
|
+
label: `${n.label} · ${b[o] ?? ""}: ${c(t(a.value, N), T)}`,
|
|
78
78
|
className: "kapi-linechart__dotwrap",
|
|
79
|
-
style:
|
|
79
|
+
style: i({
|
|
80
80
|
slot: r,
|
|
81
|
-
x:
|
|
82
|
-
y:
|
|
81
|
+
x: a.x,
|
|
82
|
+
y: a.y
|
|
83
83
|
}),
|
|
84
84
|
children: /* @__PURE__ */ _("span", { className: "kapi-linechart__dot" })
|
|
85
|
-
}, `${
|
|
85
|
+
}, `${n.id}-${o}`))),
|
|
86
86
|
G ? R.map((e, t) => {
|
|
87
|
-
let n =
|
|
87
|
+
let n = p(U[t]);
|
|
88
88
|
return n ? /* @__PURE__ */ _("span", {
|
|
89
89
|
className: "kapi-linechart__endlabel",
|
|
90
|
-
style:
|
|
90
|
+
style: i({ y: n.y }),
|
|
91
91
|
children: e.label
|
|
92
92
|
}, `${e.id}-end`) : null;
|
|
93
93
|
}) : null
|
|
@@ -105,5 +105,4 @@ function b({ categories: b, series: x, title: S, tickCount: C = 4, area: w = !1,
|
|
|
105
105
|
})
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
//#endregion
|
|
109
108
|
export { b as KapiLineChart };
|
|
@@ -4,7 +4,7 @@ import { computePagination as t } from "./tableLogic.js";
|
|
|
4
4
|
import { KapiPaginationFooter as n } from "./KapiPaginationFooter.js";
|
|
5
5
|
import { useEffect as r } from "react";
|
|
6
6
|
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/data/KapiPagination.tsx
|
|
8
8
|
var a = {
|
|
9
9
|
rowsPerPage: "Filas por página",
|
|
10
10
|
firstPage: "Primera página",
|
|
@@ -42,5 +42,4 @@ function o({ page: o, pageSize: s, total: c, onPageChange: l, pageSizeOptions: u
|
|
|
42
42
|
labels: _
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { o as KapiPagination };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/data/KapiTable.css";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { KapiSelect as e } from "../inputs/KapiSelect.js";
|
|
4
|
+
import { mergeClasses as t } from "../slotsLogic.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
7
7
|
import { ChevronFirst as i, ChevronLast as a, ChevronLeft as o, ChevronRight as s } from "lucide-react";
|
|
8
|
-
|
|
8
|
+
// src/components/data/KapiPaginationFooter.tsx
|
|
9
9
|
function c({ as: c, info: l, pageSize: u, total: d, onPageChange: f, pageSizeOptions: p, onPageSizeChange: m, showEdges: h, labels: g, className: _, ...v }) {
|
|
10
10
|
return /* @__PURE__ */ r(c, {
|
|
11
11
|
...v,
|
|
12
|
-
className:
|
|
12
|
+
className: t("kapi-tablefoot", _),
|
|
13
13
|
children: [/* @__PURE__ */ r("div", {
|
|
14
14
|
className: "kapi-tablefoot__l",
|
|
15
15
|
children: [/* @__PURE__ */ r("span", { children: [
|
|
@@ -22,7 +22,7 @@ function c({ as: c, info: l, pageSize: u, total: d, onPageChange: f, pageSizeOpt
|
|
|
22
22
|
d
|
|
23
23
|
] }), p && m && /* @__PURE__ */ r("div", {
|
|
24
24
|
className: "kapi-tablefoot__size",
|
|
25
|
-
children: [/* @__PURE__ */ n("span", { children: g.rowsPerPage }), /* @__PURE__ */ n(
|
|
25
|
+
children: [/* @__PURE__ */ n("span", { children: g.rowsPerPage }), /* @__PURE__ */ n(e, {
|
|
26
26
|
size: "sm",
|
|
27
27
|
searchable: !1,
|
|
28
28
|
"aria-label": g.rowsPerPage,
|
|
@@ -106,5 +106,4 @@ function c({ as: c, info: l, pageSize: u, total: d, onPageChange: f, pageSizeOpt
|
|
|
106
106
|
})]
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
//#endregion
|
|
110
109
|
export { c as KapiPaginationFooter };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "#kapi-css/components/data/KapiScatterChart.css";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { KapiChartFrame as e, chartSummary as t, chartVars as n, useChartLabels as r, useChartTitleId as i, useChartView as a, withChartUnit as o } from "./chartFrame.js";
|
|
4
|
+
import { useKapiFormatLocale as s } from "../locale/KapiLocaleProvider.js";
|
|
5
|
+
import { formatDataValue as c } from "../../hooks/numberFormatLogic.js";
|
|
6
|
+
import { KapiTooltip as l } from "../overlays/KapiTooltip.js";
|
|
7
7
|
import { scatterAxis as u, scatterInside as d, scatterPosition as f, scatterTickLabel as p } from "./scatterLogic.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/data/KapiScatterChart.tsx
|
|
11
11
|
function g({ series: g, title: _, xLabel: v = "X", yLabel: y = "Y", tickCount: b = 4, xUnit: x, yUnit: S, view: C, defaultView: w = "chart", onViewChange: T, labels: E, className: D, ref: O, ...k }) {
|
|
12
|
-
let A =
|
|
12
|
+
let A = s(), j = r(E), M = i(), { current: N, setView: P } = a(C, w, T), F = g.slice(0, 8);
|
|
13
13
|
g.length > 8 && process.env.NODE_ENV !== "production" && console.warn(`KapiScatterChart: ${g.length} series y la paleta tiene 8 slots. Se dibujan las primeras 8; agrupá el resto en vez de perderlo.`);
|
|
14
|
-
let I = F.flatMap((e) => e.points), L = u(I.map((e) => e.x), b), R = u(I.map((e) => e.y), b), z = (e,
|
|
14
|
+
let I = F.flatMap((e) => e.points), L = u(I.map((e) => e.x), b), R = u(I.map((e) => e.y), b), z = (e, t) => o(c(e, A), t), B = F.flatMap((e, t) => e.points.map((n, r) => ({
|
|
15
15
|
id: `${e.id}-${r}`,
|
|
16
16
|
slot: t,
|
|
17
17
|
header: n.label ?? `${e.label} ${r + 1}`,
|
|
18
18
|
cells: [z(n.x, x), z(n.y, S)]
|
|
19
|
-
}))), V =
|
|
19
|
+
}))), V = t(j.kindLine, j, F.length, I.length);
|
|
20
20
|
return /* @__PURE__ */ m("div", {
|
|
21
21
|
...k,
|
|
22
22
|
ref: O,
|
|
23
23
|
className: ["kapi-scatterchart", D].filter(Boolean).join(" "),
|
|
24
24
|
role: "group",
|
|
25
25
|
..._ ? { "aria-labelledby": M } : {},
|
|
26
|
-
children: /* @__PURE__ */ m(
|
|
26
|
+
children: /* @__PURE__ */ m(e, {
|
|
27
27
|
title: _,
|
|
28
28
|
titleId: M,
|
|
29
29
|
series: F,
|
|
@@ -44,10 +44,10 @@ function g({ series: g, title: _, xLabel: v = "X", yLabel: y = "Y", tickCount: b
|
|
|
44
44
|
className: "kapi-scatterchart__axisy",
|
|
45
45
|
children: R.ticks.map((e) => /* @__PURE__ */ m("div", {
|
|
46
46
|
className: "kapi-scatterchart__ticky",
|
|
47
|
-
style:
|
|
47
|
+
style: n({ y: (e - R.min) / (R.max - R.min || 1) * 100 }),
|
|
48
48
|
children: /* @__PURE__ */ m("span", {
|
|
49
49
|
className: "kapi-scatterchart__ticklabel",
|
|
50
|
-
children:
|
|
50
|
+
children: o(p(e), S)
|
|
51
51
|
})
|
|
52
52
|
}, e))
|
|
53
53
|
}),
|
|
@@ -57,14 +57,14 @@ function g({ series: g, title: _, xLabel: v = "X", yLabel: y = "Y", tickCount: b
|
|
|
57
57
|
p: e,
|
|
58
58
|
i: t
|
|
59
59
|
})).filter(({ p: e }) => d(e, L, R)).map(({ p: r, i }) => {
|
|
60
|
-
let { cx:
|
|
61
|
-
return /* @__PURE__ */ m(
|
|
60
|
+
let { cx: a, cy: o } = f(r, L, R);
|
|
61
|
+
return /* @__PURE__ */ m(l, {
|
|
62
62
|
label: `${r.label ?? e.label} · ${v} ${z(r.x, x)} · ${y} ${z(r.y, S)}`,
|
|
63
63
|
className: "kapi-scatterchart__dotwrap",
|
|
64
|
-
style:
|
|
64
|
+
style: n({
|
|
65
65
|
slot: t,
|
|
66
|
-
x:
|
|
67
|
-
y: 100 -
|
|
66
|
+
x: a,
|
|
67
|
+
y: 100 - o
|
|
68
68
|
}),
|
|
69
69
|
children: /* @__PURE__ */ m("span", { className: "kapi-scatterchart__dot" })
|
|
70
70
|
}, `${e.id}-${i}`);
|
|
@@ -74,10 +74,10 @@ function g({ series: g, title: _, xLabel: v = "X", yLabel: y = "Y", tickCount: b
|
|
|
74
74
|
className: "kapi-scatterchart__axisx",
|
|
75
75
|
children: L.ticks.map((e) => /* @__PURE__ */ m("div", {
|
|
76
76
|
className: "kapi-scatterchart__tickx",
|
|
77
|
-
style:
|
|
77
|
+
style: n({ x: (e - L.min) / (L.max - L.min || 1) * 100 }),
|
|
78
78
|
children: /* @__PURE__ */ m("span", {
|
|
79
79
|
className: "kapi-scatterchart__ticklabel",
|
|
80
|
-
children:
|
|
80
|
+
children: o(p(e), x)
|
|
81
81
|
})
|
|
82
82
|
}, e))
|
|
83
83
|
})
|
|
@@ -86,5 +86,4 @@ function g({ series: g, title: _, xLabel: v = "X", yLabel: y = "Y", tickCount: b
|
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
//#endregion
|
|
90
89
|
export { g as KapiScatterChart };
|
|
@@ -3,13 +3,13 @@ import "#kapi-css/components/inputs/checkControl.css";
|
|
|
3
3
|
import "#kapi-css/components/overlays/overlays.css";
|
|
4
4
|
import "#kapi-css/components/data/KapiTable.css";
|
|
5
5
|
import { joinClasses as e } from "../rootProps.js";
|
|
6
|
+
import { columnAlign as t } from "./tableLogic.js";
|
|
6
7
|
/* empty css */
|
|
7
8
|
/* empty css */
|
|
8
|
-
import { columnAlign as t } from "./tableLogic.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { createContext as n, useContext as r } from "react";
|
|
11
11
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/components/data/KapiSheet.tsx
|
|
13
13
|
var o = n("body"), s = (e, n) => {
|
|
14
14
|
let r = t(e);
|
|
15
15
|
return r === void 0 ? n : {
|
|
@@ -71,5 +71,4 @@ var o = n("body"), s = (e, n) => {
|
|
|
71
71
|
style: s(t, l)
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
-
//#endregion
|
|
75
74
|
export { c as KapiSheet, u as KapiSheetBody, p as KapiSheetCell, d as KapiSheetFoot, l as KapiSheetHead, m as KapiSheetHeaderCell, f as KapiSheetRow };
|
|
@@ -10,7 +10,7 @@ import { sparklineLabel as c, sparklineMax as l } from "./sparklineLogic.js";
|
|
|
10
10
|
/* empty css */
|
|
11
11
|
import "react";
|
|
12
12
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
13
|
-
|
|
13
|
+
// src/components/data/KapiSparkline.tsx
|
|
14
14
|
var f = {
|
|
15
15
|
trend: "Tendencia",
|
|
16
16
|
up: "sube",
|
|
@@ -55,5 +55,4 @@ function p({ values: p, slot: m = 1, tone: h, area: g = !1, last: _ = !0, labels
|
|
|
55
55
|
}) : null]
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
//#endregion
|
|
59
58
|
export { f as DEFAULT_SPARKLINE_LABELS, p as KapiSparkline };
|