@sfperusacdev/sf-ui 0.2.9 → 0.3.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/sf-ui.css +1 -1
- package/dist/sf-ui.js +5607 -2932
- package/dist/sf-ui.js.map +1 -1
- package/dist/sf-ui.umd.cjs +7 -7
- package/dist/sf-ui.umd.cjs.map +1 -1
- package/dist/theme/dark.css +13 -0
- package/dist/theme/densidad.css +291 -0
- package/dist/theme/neon.css +185 -0
- package/dist/theme/sf-tokens.css +18 -0
- package/dist/theme/temas.css +229 -0
- package/dist/types/src/components/advanced-inputs/CodeEditor.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/MapGeocoderBar.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/MapPicker.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/MapPickerMap.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/PhotoInput.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/RichTextEditor.d.ts +1 -1
- package/dist/types/src/components/advanced-inputs/SignaturePad.d.ts +1 -1
- package/dist/types/src/components/buttons/ActionButton.d.ts +1 -1
- package/dist/types/src/components/buttons/Button.d.ts +1 -1
- package/dist/types/src/components/buttons/ButtonGroup.d.ts +1 -1
- package/dist/types/src/components/buttons/FormActions.d.ts +1 -1
- package/dist/types/src/components/buttons/RowActions.d.ts +1 -1
- package/dist/types/src/components/buttons/ToolbarButton.d.ts +1 -1
- package/dist/types/src/components/cards/Badge.d.ts +7 -1
- package/dist/types/src/components/cards/EntityCard.d.ts +2 -2
- package/dist/types/src/components/cards/KPICard.d.ts +2 -2
- package/dist/types/src/components/cards/MetricBar.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/cards/MetricBar.d.ts +5 -3
- package/dist/types/src/components/cards/MetricBar.disposiciones.test.d.ts +1 -0
- package/dist/types/src/components/cards/ModuleCard.d.ts +2 -2
- package/dist/types/src/components/cards/ProfileCard.d.ts +27 -0
- package/dist/types/src/components/cards/ProfileCard.test.d.ts +1 -0
- package/dist/types/src/components/cards/QuickActionTile.d.ts +2 -2
- package/dist/types/src/components/cards/QuoteCard.d.ts +11 -0
- package/dist/types/src/components/cards/QuoteCard.test.d.ts +1 -0
- package/dist/types/src/components/cards/RecommendationCard.d.ts +1 -1
- package/dist/types/src/components/cards/SplitBar.d.ts +1 -1
- package/dist/types/src/components/cards/index.d.ts +6 -2
- package/dist/types/src/components/cards/types.d.ts +19 -0
- package/dist/types/src/components/charts/Chart.colores.test.d.ts +1 -0
- package/dist/types/src/components/charts/Chart.d.ts +1 -1
- package/dist/types/src/components/charts/ChartLegend.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/charts/ChartLegend.d.ts +22 -1
- package/dist/types/src/components/charts/DeviationBand.d.ts +1 -1
- package/dist/types/src/components/charts/DiagnosticRadar.d.ts +1 -1
- package/dist/types/src/components/charts/Sparkline.d.ts +1 -1
- package/dist/types/src/components/charts/chartUtils.d.ts +6 -0
- package/dist/types/src/components/charts/index.d.ts +2 -2
- package/dist/types/src/components/charts/types.d.ts +5 -0
- package/dist/types/src/components/dashboard/AlertSummaryList.d.ts +1 -1
- package/dist/types/src/components/dashboard/Calendar.d.ts +1 -1
- package/dist/types/src/components/dashboard/CardNote.d.ts +1 -1
- package/dist/types/src/components/dashboard/ComparisonTable.d.ts +1 -1
- package/dist/types/src/components/dashboard/DashboardBoard.d.ts +2 -2
- package/dist/types/src/components/dashboard/DashboardCard.d.ts +5 -5
- package/dist/types/src/components/dashboard/DashboardPageFrame.d.ts +1 -1
- package/dist/types/src/components/dashboard/DashboardPlaceholder.d.ts +1 -1
- package/dist/types/src/components/dashboard/DetailPanel.d.ts +1 -1
- package/dist/types/src/components/dashboard/DetailSection.d.ts +1 -1
- package/dist/types/src/components/dashboard/DetailSidePanel.d.ts +1 -1
- package/dist/types/src/components/dashboard/DonutBreakdown.d.ts +1 -1
- package/dist/types/src/components/dashboard/DonutGauge.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/DonutGauge.d.ts +6 -2
- package/dist/types/src/components/dashboard/DonutGauge.degradado.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/DrilldownCards.d.ts +3 -3
- package/dist/types/src/components/dashboard/EventLog.d.ts +3 -3
- package/dist/types/src/components/dashboard/EvidenceFootnote.d.ts +1 -1
- package/dist/types/src/components/dashboard/MetricTile.d.ts +24 -0
- package/dist/types/src/components/dashboard/MetricTile.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/Seleccion.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/StageFlow.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/StageFlow.d.ts +43 -0
- package/dist/types/src/components/dashboard/StageFlow.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/StatCard.d.ts +1 -1
- package/dist/types/src/components/dashboard/StateChain.d.ts +28 -0
- package/dist/types/src/components/dashboard/StateChain.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/StateChain.vertical.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/Stepper.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/Stepper.d.ts +3 -1
- package/dist/types/src/components/dashboard/Stepper.icono.test.d.ts +1 -0
- package/dist/types/src/components/dashboard/TramoCard.d.ts +1 -1
- package/dist/types/src/components/dashboard/index.d.ts +6 -0
- package/dist/types/src/components/dashboard/types.d.ts +4 -0
- package/dist/types/src/components/display/AuditTimeline.cadena.test.d.ts +1 -0
- package/dist/types/src/components/display/AuditTimeline.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/display/AuditTimeline.d.ts +7 -1
- package/dist/types/src/components/display/Avatar.d.ts +2 -2
- package/dist/types/src/components/display/Carousel.d.ts +1 -1
- package/dist/types/src/components/display/CheckList.d.ts +19 -0
- package/dist/types/src/components/display/CheckList.test.d.ts +1 -0
- package/dist/types/src/components/display/LiveChip.d.ts +1 -1
- package/dist/types/src/components/display/LiveStatusBar.d.ts +1 -1
- package/dist/types/src/components/display/MediaGallery.d.ts +41 -0
- package/dist/types/src/components/display/MediaGallery.test.d.ts +1 -0
- package/dist/types/src/components/display/MediaPanel.d.ts +4 -1
- package/dist/types/src/components/display/PassengerBoardCard.d.ts +1 -1
- package/dist/types/src/components/display/RecordList.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/display/RecordList.compacta.test.d.ts +1 -0
- package/dist/types/src/components/display/RecordList.d.ts +15 -2
- package/dist/types/src/components/display/Timeline.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/display/Timeline.columnas.test.d.ts +1 -0
- package/dist/types/src/components/display/Timeline.d.ts +22 -1
- package/dist/types/src/components/display/Timeline.horizontal.test.d.ts +1 -0
- package/dist/types/src/components/display/index.d.ts +8 -4
- package/dist/types/src/components/display/mediaGalleryFoco.d.ts +1 -0
- package/dist/types/src/components/display/mediaGalleryFoco.test.d.ts +1 -0
- package/dist/types/src/components/document-inputs/CurrencyInput.d.ts +1 -1
- package/dist/types/src/components/document-inputs/DniInput.d.ts +1 -1
- package/dist/types/src/components/document-inputs/OtpInput.d.ts +1 -1
- package/dist/types/src/components/document-inputs/PhoneInput.d.ts +1 -1
- package/dist/types/src/components/document-inputs/RucInput.d.ts +1 -1
- package/dist/types/src/components/feedback/AccessDenied.d.ts +1 -1
- package/dist/types/src/components/feedback/Alert.d.ts +1 -1
- package/dist/types/src/components/feedback/EmptyState.d.ts +1 -1
- package/dist/types/src/components/feedback/ErrorView.d.ts +1 -1
- package/dist/types/src/components/feedback/LoadingView.d.ts +1 -1
- package/dist/types/src/components/feedback/RetryBlock.d.ts +1 -1
- package/dist/types/src/components/feedback/Skeleton.d.ts +1 -1
- package/dist/types/src/components/feedback/Spinner.d.ts +1 -1
- package/dist/types/src/components/feedback/Toast.d.ts +1 -1
- package/dist/types/src/components/icons/AppsGridIcon.d.ts +1 -1
- package/dist/types/src/components/icons/SyncIcon.d.ts +1 -1
- package/dist/types/src/components/inputs/AsyncCardSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/AsyncSearchSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/AsyncSearchTableSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/BooleanCheckbox.d.ts +1 -1
- package/dist/types/src/components/inputs/CardSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/Checkbox.d.ts +1 -1
- package/dist/types/src/components/inputs/CheckboxGroup.d.ts +1 -1
- package/dist/types/src/components/inputs/DateInput.d.ts +1 -1
- package/dist/types/src/components/inputs/DatePicker.d.ts +1 -1
- package/dist/types/src/components/inputs/DisplayField.d.ts +1 -1
- package/dist/types/src/components/inputs/FieldLeadingIcon.d.ts +1 -1
- package/dist/types/src/components/inputs/FileInput.d.ts +1 -1
- package/dist/types/src/components/inputs/NumberInput.d.ts +1 -1
- package/dist/types/src/components/inputs/PasswordInput.d.ts +1 -1
- package/dist/types/src/components/inputs/RadioGroup.d.ts +1 -1
- package/dist/types/src/components/inputs/SearchSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/SearchTableSelect.bloqueadas.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SearchTableSelect.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SearchTableSelect.d.ts +19 -1
- package/dist/types/src/components/inputs/SearchTableSelect.seleccionPagina.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SearchTableSelect.soloSeleccionados.test.d.ts +1 -0
- package/dist/types/src/components/inputs/Select.d.ts +1 -1
- package/dist/types/src/components/inputs/SmartDateInput.d.ts +1 -1
- package/dist/types/src/components/inputs/SmartSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/TextArea.d.ts +1 -1
- package/dist/types/src/components/inputs/Toggle.d.ts +1 -1
- package/dist/types/src/components/inputs/ToggleCard.d.ts +1 -1
- package/dist/types/src/components/inputs/Transfer.d.ts +1 -1
- package/dist/types/src/components/inputs/TreeSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/YesNoSelect.d.ts +1 -1
- package/dist/types/src/components/inputs/booleanControls.test.d.ts +1 -0
- package/dist/types/src/components/inputs/useBooleanField.d.ts +10 -0
- package/dist/types/src/components/interactive-inputs/AllocationBar.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/CardRadioGroup.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/ColorInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/KeyValueInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/NumberStepper.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/ProgressBar.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/ProgressBarReadonly.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/RangeSliderInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/RatingInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/SemanticSlider.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/SliderInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/SortableList.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/TagsInput.d.ts +1 -1
- package/dist/types/src/components/interactive-inputs/TemporalScrub.d.ts +1 -1
- package/dist/types/src/components/layout/Accordion.d.ts +1 -1
- package/dist/types/src/components/layout/AppShell.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/layout/AppShell.d.ts +8 -2
- package/dist/types/src/components/layout/Breadcrumb.d.ts +1 -1
- package/dist/types/src/components/layout/DateWeekStrip.d.ts +1 -1
- package/dist/types/src/components/layout/FilterBar.d.ts +5 -5
- package/dist/types/src/components/layout/FormWizard.d.ts +1 -1
- package/dist/types/src/components/layout/HeightProvider.d.ts +1 -1
- package/dist/types/src/components/layout/ItineraryEditor.d.ts +1 -1
- package/dist/types/src/components/layout/LiveRouteBoard.d.ts +1 -1
- package/dist/types/src/components/layout/MaestroLayout.d.ts +1 -1
- package/dist/types/src/components/layout/MasterDetailLayout.d.ts +2 -2
- package/dist/types/src/components/layout/PageContainer.d.ts +1 -1
- package/dist/types/src/components/layout/PageHeader.d.ts +1 -1
- package/dist/types/src/components/layout/ScrollArea.d.ts +1 -1
- package/dist/types/src/components/layout/Separator.d.ts +1 -1
- package/dist/types/src/components/layout/SidePanel.d.ts +1 -1
- package/dist/types/src/components/layout/SidePanelContainer.d.ts +1 -1
- package/dist/types/src/components/layout/SummaryItem.d.ts +1 -1
- package/dist/types/src/components/layout/TablePageLayout.d.ts +1 -1
- package/dist/types/src/components/layout/Tabs.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/layout/Tabs.d.ts +5 -2
- package/dist/types/src/components/layout/Tabs.test.d.ts +1 -0
- package/dist/types/src/components/layout/ThemePicker.d.ts +23 -0
- package/dist/types/src/components/layout/ThemePicker.test.d.ts +1 -0
- package/dist/types/src/components/layout/UnitSelector.d.ts +1 -1
- package/dist/types/src/components/layout/Visibility.d.ts +2 -2
- package/dist/types/src/components/layout/WeekdayToggleStrip.d.ts +1 -1
- package/dist/types/src/components/layout/WorkspaceHeader.d.ts +31 -0
- package/dist/types/src/components/layout/WorkspaceHeader.test.d.ts +1 -0
- package/dist/types/src/components/layout/index.d.ts +5 -1
- package/dist/types/src/components/maps/base/MapFrame.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapLegend.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapPointCard.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapStatus.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapToolbar.d.ts +1 -1
- package/dist/types/src/components/maps/base/MapVehiclePopup.d.ts +1 -1
- package/dist/types/src/components/maps/forms/AddressSearchInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/AreaInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/CoordinatesInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/LocationPicker.d.ts +1 -1
- package/dist/types/src/components/maps/forms/RouteInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/ShapeInput.d.ts +1 -1
- package/dist/types/src/components/maps/forms/SmartMapInput.d.ts +1 -1
- package/dist/types/src/components/maps/renderers/google/GoogleMapRenderer.d.ts +1 -1
- package/dist/types/src/components/maps/renderers/leaflet/LeafletMapRenderer.d.ts +1 -1
- package/dist/types/src/components/maps/views/MapView.d.ts +1 -1
- package/dist/types/src/components/media-inputs/FileDropInput.d.ts +1 -1
- package/dist/types/src/components/media-inputs/MultiPhotoInput.d.ts +1 -1
- package/dist/types/src/components/media-inputs/PhotoCropEditor.d.ts +1 -1
- package/dist/types/src/components/media-inputs/PhotoCropInput.d.ts +1 -1
- package/dist/types/src/components/media-inputs/SmartMediaInput.d.ts +1 -1
- package/dist/types/src/components/overlays/ConfirmDialog.d.ts +1 -1
- package/dist/types/src/components/overlays/ContextMenu.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/overlays/ContextMenu.d.ts +26 -0
- package/dist/types/src/components/overlays/Drawer.d.ts +5 -2
- package/dist/types/src/components/overlays/DropdownMenu.d.ts +1 -1
- package/dist/types/src/components/overlays/DropdownMenu.estilos.test.d.ts +1 -0
- package/dist/types/src/components/overlays/Foco.test.d.ts +1 -0
- package/dist/types/src/components/overlays/MessageDialog.d.ts +1 -1
- package/dist/types/src/components/overlays/Modal.d.ts +4 -1
- package/dist/types/src/components/overlays/NotificationBell.d.ts +1 -1
- package/dist/types/src/components/overlays/OptionItem.d.ts +1 -1
- package/dist/types/src/components/overlays/Overlay.anidados.test.d.ts +1 -0
- package/dist/types/src/components/overlays/QRView.d.ts +1 -1
- package/dist/types/src/components/overlays/TabMenuOption.d.ts +1 -1
- package/dist/types/src/components/overlays/Tooltip.d.ts +1 -1
- package/dist/types/src/components/overlays/colorTexto.test.d.ts +1 -0
- package/dist/types/src/components/overlays/useFocoDeCapa.d.ts +8 -0
- package/dist/types/src/components/overlays/useOverlayStack.consulta.test.d.ts +1 -0
- package/dist/types/src/components/overlays/useOverlayStack.d.ts +13 -0
- package/dist/types/src/components/range-inputs/DateRangeFields.d.ts +1 -1
- package/dist/types/src/components/range-inputs/DateRangeInput.d.ts +1 -1
- package/dist/types/src/components/range-inputs/DateRangeUtcInput.d.ts +1 -1
- package/dist/types/src/components/range-inputs/TimeRangeInput.d.ts +1 -1
- package/dist/types/src/components/table/ActiveFiltersBar.d.ts +1 -1
- package/dist/types/src/components/table/AsyncCustomTable.d.ts +1 -1
- package/dist/types/src/components/table/CustomTable.ajuste.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.clavesHeredadas.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.columnasOcultas.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.d.ts +157 -1
- package/dist/types/src/components/table/CustomTable.defectosPublicados.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.densidad.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.densidad.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.dobleClic.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.estadoPorClave.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.exportacion.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.identidadRemoto.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.l3Regresiones.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.menuContextual.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.numeracion.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.paginador.test.d.ts +1 -0
- package/dist/types/src/components/table/CustomTable.pie.test.d.ts +1 -0
- package/dist/types/src/components/table/EditableDataGrid.d.ts +1 -1
- package/dist/types/src/components/table/ExpandableTableSection.d.ts +1 -1
- package/dist/types/src/components/table/Pagination.d.ts +2 -0
- package/dist/types/src/components/table/RowActionsMenu.d.ts +1 -1
- package/dist/types/src/components/table/TableFiltersPanel.d.ts +1 -1
- package/dist/types/src/components/table/TableSortingPanel.d.ts +1 -1
- package/dist/types/src/components/table/customTableController.d.ts +20 -1
- package/dist/types/src/components/table/index.d.ts +2 -2
- package/dist/types/src/components/table/tableDevWarning.d.ts +2 -0
- package/dist/types/src/components/table/tableRowNumbers.d.ts +8 -0
- package/dist/types/src/components/visualization/DnaHelix.d.ts +33 -0
- package/dist/types/src/components/visualization/DnaHelix.test.d.ts +1 -0
- package/dist/types/src/components/visualization/IntegrationFlow.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/visualization/IntegrationFlow.d.ts +61 -0
- package/dist/types/src/components/visualization/IntegrationFlow.paneles.test.d.ts +1 -0
- package/dist/types/src/components/visualization/IntegrationFlow.test.d.ts +1 -0
- package/dist/types/src/components/visualization/NetworkLegend.d.ts +1 -1
- package/dist/types/src/components/visualization/NetworkMap.d.ts +1 -1
- package/dist/types/src/components/visualization/OrgTree.d.ts +1 -1
- package/dist/types/src/components/visualization/RelationGraph.caracterizacion.test.d.ts +1 -0
- package/dist/types/src/components/visualization/RelationGraph.d.ts +65 -0
- package/dist/types/src/components/visualization/RelationGraph.orbita.test.d.ts +1 -0
- package/dist/types/src/components/visualization/RelationGraph.test.d.ts +1 -0
- package/dist/types/src/components/visualization/SeleccionNodos.test.d.ts +1 -0
- package/dist/types/src/components/visualization/disponerOrbita.d.ts +29 -0
- package/dist/types/src/components/visualization/disponerRadial.d.ts +19 -0
- package/dist/types/src/components/visualization/index.d.ts +6 -0
- package/dist/types/src/providers/SfProvider.d.ts +1 -1
- package/dist/types/src/theme/paletaCategorias.test.d.ts +1 -0
- package/dist/types/src/theme/temas.test.d.ts +1 -0
- package/dist/types/src/utils/devWarning.d.ts +2 -0
- package/dist/types/src/utils/devWarning.test.d.ts +1 -0
- package/dist/types/src/utils/foco.d.ts +9 -0
- package/dist/types/src/utils/identidadColeccion.d.ts +11 -0
- package/dist/types/src/utils/identidadColeccion.test.d.ts +1 -0
- package/dist/types/src/utils/useAnchoContenedor.d.ts +22 -0
- package/dist/types/src/utils/useAnchoContenedor.test.d.ts +1 -0
- package/package.json +8 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CustomTable } from './CustomTable';
|
|
2
|
-
export type { CustomColumn, CustomTableDetail, CustomTableProps, CustomTableServerPagination, TableHeaderVariant, } from './CustomTable';
|
|
2
|
+
export type { CustomColumn, CustomTableDensity, CustomTableDetail, CustomTableExport, CustomTableExportCriteria, CustomTableExportRequest, CustomTableExportScope, CustomTableFooterContext, CustomTableProps, CustomTableRemote, CustomTableRowActionsDisplay, CustomTableRowMenuItem, CustomTableServerPagination, CustomTableSort, TableHeaderVariant, } from './CustomTable';
|
|
3
3
|
export { AsyncCustomTable } from './AsyncCustomTable';
|
|
4
4
|
export type { AsyncCustomTableProps } from './AsyncCustomTable';
|
|
5
5
|
export { PaginationRangeInput } from './PaginationRangeInput';
|
|
@@ -11,7 +11,7 @@ export { TableSortingPanel } from './TableSortingPanel';
|
|
|
11
11
|
export { createLocalStorageAsyncStateStore } from './asyncStateStore';
|
|
12
12
|
export type { AsyncStateStore } from './asyncStateStore';
|
|
13
13
|
export { useCustomTableController } from './customTableController';
|
|
14
|
-
export type { CustomTableController } from './customTableController';
|
|
14
|
+
export type { CustomTableController, CustomTableKeyedController } from './customTableController';
|
|
15
15
|
export { columnFilterFn, inferInitialFilterValue, isColumnFilterValue, STRING_FILTER_OPS, NUMBER_FILTER_OPS, } from './tableFilters';
|
|
16
16
|
export type { ColumnFilterValue, StringFilterOp, NumberFilterOp } from './tableFilters';
|
|
17
17
|
export { useTableColumnSettings } from './useTableColumnSettings';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Table } from '@tanstack/react-table';
|
|
2
|
+
export declare const ROW_NUMBER_COLUMN_ID = "__rownumber";
|
|
3
|
+
/**
|
|
4
|
+
* Posición (desde 1) de una fila raíz de los datos en el conjunto filtrado y ordenado completo, antes de paginar.
|
|
5
|
+
* Raíz es una fila de primer nivel de `data`: con agrupación queda debajo de grupos sintéticos, así que `depth` no
|
|
6
|
+
* sirve para reconocerla. Grupos e hijas de `subRows` no tienen número. Sin desplazamiento de servidor.
|
|
7
|
+
*/
|
|
8
|
+
export declare function rowNumberOf<TData>(table: Table<TData>, rowId: string): number | undefined;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type DnaHelixItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** Valor 0-100. Se muestra como porcentaje junto a la etiqueta (`showLabels`) y en el nombre accesible. */
|
|
6
|
+
value?: number;
|
|
7
|
+
/** Color CSS del tramo, el peldaño y el nodo. Por defecto, la paleta de categorías en orden. */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Contenido del nodo. Por defecto, el número de orden («01», «02»…). */
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export type DnaHelixProps = {
|
|
13
|
+
items: DnaHelixItem[];
|
|
14
|
+
/** Nodo resaltado con halo. */
|
|
15
|
+
selectedKey?: string;
|
|
16
|
+
/** Si viene, cada nodo es un botón (clic, Enter, Espacio). Sin él la hélice es solo una imagen. */
|
|
17
|
+
onSelect?: (key: string) => void;
|
|
18
|
+
/** Escribe nombre y valor al costado de cada nodo: para usar la hélice sola o en pantalla angosta. */
|
|
19
|
+
showLabels?: boolean;
|
|
20
|
+
/** Alto por elemento, en unidades del lienzo (el dibujo escala con el ancho del contenedor). Por defecto 64. */
|
|
21
|
+
rowHeight?: number;
|
|
22
|
+
/** Ancho máximo en píxeles. Por defecto 220, o 520 con `showLabels`. */
|
|
23
|
+
maxWidth?: number;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
emptyMessage?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Doble hélice vertical: un tramo, un peldaño y un nodo por elemento, alternando el lado. Es un índice visual de
|
|
30
|
+
* hasta unas 12 dimensiones; los datos van en las tarjetas o el panel que la acompañan. SVG puro, colores por
|
|
31
|
+
* tokens, escala con su contenedor.
|
|
32
|
+
*/
|
|
33
|
+
export declare const DnaHelix: ({ items, selectedKey, onSelect, showLabels, rowHeight, maxWidth, ariaLabel, emptyMessage, className, }: DnaHelixProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BadgeVariant } from '../cards/types';
|
|
3
|
+
export type IntegrationFlowNode = {
|
|
4
|
+
/** Única dentro de su colección (`sources` o `targets`). */
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
sublabel?: string;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
/** Color de categoría del nodo (identifica, no indica estado). Por defecto, la paleta de categorías en orden. */
|
|
10
|
+
color?: string;
|
|
11
|
+
/** Estado con el texto del host (ej. "Activo"); se pinta con `Badge`. */
|
|
12
|
+
status?: {
|
|
13
|
+
label: string;
|
|
14
|
+
variant?: BadgeVariant;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type IntegrationFlowStep = {
|
|
18
|
+
key: string;
|
|
19
|
+
label: string;
|
|
20
|
+
icon?: ReactNode;
|
|
21
|
+
};
|
|
22
|
+
export type IntegrationFlowHub = {
|
|
23
|
+
title: string;
|
|
24
|
+
icon?: ReactNode;
|
|
25
|
+
/** Imagen o ilustración grande del centro (decorativa), bajo el título. */
|
|
26
|
+
media?: ReactNode;
|
|
27
|
+
/** Texto bajo `media` (ej. el nombre del modelo de datos). */
|
|
28
|
+
subtitle?: string;
|
|
29
|
+
steps?: IntegrationFlowStep[];
|
|
30
|
+
};
|
|
31
|
+
/** `compact`: tres columnas desde 560px y espaciado menor. */
|
|
32
|
+
export type IntegrationFlowDensity = "default" | "compact";
|
|
33
|
+
/** `neutral`: líneas grises de CSS (publicado). `per-node`: una curva por nodo con su color, medida sobre el DOM. */
|
|
34
|
+
export type IntegrationFlowLinks = "neutral" | "per-node";
|
|
35
|
+
/** `panels`: cada columna en su propio panel con el título dentro, destinos sin tarjeta y estados rellenos. */
|
|
36
|
+
export type IntegrationFlowAppearance = "default" | "panels";
|
|
37
|
+
export type IntegrationFlowProps = {
|
|
38
|
+
sources: IntegrationFlowNode[];
|
|
39
|
+
hub: IntegrationFlowHub;
|
|
40
|
+
targets: IntegrationFlowNode[];
|
|
41
|
+
/** Títulos de las columnas de los extremos. Por defecto «Origen» y «Destino». */
|
|
42
|
+
labels?: {
|
|
43
|
+
sources?: string;
|
|
44
|
+
targets?: string;
|
|
45
|
+
};
|
|
46
|
+
ariaLabel?: string;
|
|
47
|
+
emptySourcesMessage?: string;
|
|
48
|
+
emptyTargetsMessage?: string;
|
|
49
|
+
density?: IntegrationFlowDensity;
|
|
50
|
+
links?: IntegrationFlowLinks;
|
|
51
|
+
appearance?: IntegrationFlowAppearance;
|
|
52
|
+
/** Con `onNodeClick` cada origen y destino es pulsable (botón superpuesto con el nombre del nodo). */
|
|
53
|
+
onNodeClick?: (collection: "sources" | "targets", key: string) => void;
|
|
54
|
+
className?: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Visualización estática de una integración: todos los orígenes van a un centro y el centro a todos los destinos. Las
|
|
58
|
+
* líneas son decorativas (CSS) y de color neutro; la información está en los tres grupos. No hay enlaces individuales,
|
|
59
|
+
* estados por enlace ni interacción. Tres columnas si el contenedor tiene al menos 720px; si no, bloques apilados.
|
|
60
|
+
*/
|
|
61
|
+
export declare const IntegrationFlow: ({ sources, hub, targets, labels, ariaLabel, emptySourcesMessage, emptyTargetsMessage, density, links, appearance, onNodeClick, className, }: IntegrationFlowProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,4 +5,4 @@ export type NetworkLegendProps = {
|
|
|
5
5
|
placement?: "bottom-left" | "bottom-right";
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const NetworkLegend: ({ nodes, edges, placement, className, }: NetworkLegendProps) => import(
|
|
8
|
+
export declare const NetworkLegend: ({ nodes, edges, placement, className, }: NetworkLegendProps) => import('react').JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type NetworkMapProps = {
|
|
|
16
16
|
ariaLabel?: string;
|
|
17
17
|
className?: string;
|
|
18
18
|
};
|
|
19
|
-
export declare const NetworkMap: ({ nodes, edges, center, zoom, height, selectedNodeId, onNodeClick, showLegend, fitBoundsToNodes, basemap: controlledBasemap, onBasemapChange, showBasemapSwitcher, ariaLabel, className, }: NetworkMapProps) => import(
|
|
19
|
+
export declare const NetworkMap: ({ nodes, edges, center, zoom, height, selectedNodeId, onNodeClick, showLegend, fitBoundsToNodes, basemap: controlledBasemap, onBasemapChange, showBasemapSwitcher, ariaLabel, className, }: NetworkMapProps) => import('react').JSX.Element;
|
|
@@ -17,4 +17,4 @@ export type OrgTreeProps<T extends OrgTreeNode = OrgTreeNode> = {
|
|
|
17
17
|
maxHeight?: number | string;
|
|
18
18
|
className?: string;
|
|
19
19
|
};
|
|
20
|
-
export declare const OrgTree: <T extends OrgTreeNode = OrgTreeNode>({ nodes, title, subtitle, loading, error, onRefresh, canEdit, onAddNode, onEditNode, onDeleteNode, showLegend, themes, onRenderNode, maxHeight, className, }: OrgTreeProps<T>) => import(
|
|
20
|
+
export declare const OrgTree: <T extends OrgTreeNode = OrgTreeNode>({ nodes, title, subtitle, loading, error, onRefresh, canEdit, onAddNode, onEditNode, onDeleteNode, showLegend, themes, onRenderNode, maxHeight, className, }: OrgTreeProps<T>) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type RelationGraphItem = {
|
|
3
|
+
/** Única dentro de su grupo. */
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
sublabel?: string;
|
|
7
|
+
/** Decorativo, antes del nombre. Se monta dos veces (una en el medidor oculto): sin efectos ni `id`. */
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export type RelationGraphGroup = {
|
|
11
|
+
/** Única en `groups`. Es la que reciben `onSelect` y `onShowMore`. */
|
|
12
|
+
key: string;
|
|
13
|
+
label: string;
|
|
14
|
+
/** Verbo de la relación del centro con el grupo (ej. "trabaja con", "opera"). Se lee como texto. */
|
|
15
|
+
relation: string;
|
|
16
|
+
/** Decorativo. Se monta dos veces (una en el medidor oculto): sin efectos ni `id`. */
|
|
17
|
+
icon?: ReactNode;
|
|
18
|
+
/** Color de categoría del grupo (borde, ícono y línea). Por defecto, la paleta de categorías en orden. */
|
|
19
|
+
color?: string;
|
|
20
|
+
items: RelationGraphItem[];
|
|
21
|
+
/** Total real del grupo si el host no entregó todos los elementos. */
|
|
22
|
+
total?: number;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* `auto` elige radial o lista según el espacio. `list` pinta siempre la lista: es la salida segura cuando el host sabe
|
|
26
|
+
* que la radial no le conviene, o en los casos que el freno de `auto` no cubre (CHANGELOG, «Conocido»).
|
|
27
|
+
*/
|
|
28
|
+
export type RelationGraphLayout = "auto" | "list";
|
|
29
|
+
/**
|
|
30
|
+
* `default`: grupos en tarjetas alrededor del centro (radial desde 720px). `orbit`: retrato grande en el centro, cada
|
|
31
|
+
* grupo como un círculo con su lista al costado y el verbo sobre la línea; cabe desde unos 600px. Con `layout="list"`,
|
|
32
|
+
* o si no cabe, las dos se pintan como lista.
|
|
33
|
+
*/
|
|
34
|
+
export type RelationGraphVariant = "default" | "orbit";
|
|
35
|
+
export type RelationGraphProps = {
|
|
36
|
+
/** `media` es decorativo y se monta dos veces (una en el medidor oculto): sin efectos ni `id`. */
|
|
37
|
+
center: {
|
|
38
|
+
label: string;
|
|
39
|
+
sublabel?: string;
|
|
40
|
+
media?: ReactNode;
|
|
41
|
+
};
|
|
42
|
+
groups: RelationGraphGroup[];
|
|
43
|
+
/** Grupo seleccionado, controlado por el host. Una clave que no existe no marca nada. */
|
|
44
|
+
selectedKey?: string;
|
|
45
|
+
/** Pide seleccionar un grupo (no significa abrirlo). Sin él no hay botones de selección. */
|
|
46
|
+
onSelect?: (groupKey: string) => void;
|
|
47
|
+
/** Elementos visibles por grupo en la disposición radial; el resto se despliega con «+N más». Por defecto 3. */
|
|
48
|
+
maxItemsPerGroup?: number;
|
|
49
|
+
/** Pide al host los elementos que no entregó (`total` mayor que `items`). Sin él, se informa como texto. */
|
|
50
|
+
onShowMore?: (groupKey: string) => void;
|
|
51
|
+
/** Por defecto `auto`. */
|
|
52
|
+
layout?: RelationGraphLayout;
|
|
53
|
+
/** Por defecto `default`. */
|
|
54
|
+
variant?: RelationGraphVariant;
|
|
55
|
+
ariaLabel?: string;
|
|
56
|
+
emptyMessage?: string;
|
|
57
|
+
className?: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Una entidad central y sus grupos de relaciones (no un grafo arbitrario: sin enlaces entre grupos). Primero se pinta como
|
|
61
|
+
* lista, que siempre cabe; con `layout="auto"` (por defecto) pasa a radial solo si el contenedor tiene al menos 720px,
|
|
62
|
+
* hay hasta 8 grupos y las cajas medidas no se solapan; con `layout="list"` se queda en lista. Distinto de `OrgTree`
|
|
63
|
+
* (jerarquía) y de `NetworkMap` (geográfico).
|
|
64
|
+
*/
|
|
65
|
+
export declare const RelationGraph: ({ center, groups, selectedKey, onSelect, maxItemsPerGroup, onShowMore, layout, variant, ariaLabel, emptyMessage, className, }: RelationGraphProps) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Punto } from './disponerRadial';
|
|
2
|
+
export type LadoOrbita = "arriba" | "derecha" | "abajo" | "izquierda";
|
|
3
|
+
export type NodoOrbita = Punto & {
|
|
4
|
+
/** Hacia dónde va la lista del grupo, fuera del nodo. */
|
|
5
|
+
lado: LadoOrbita;
|
|
6
|
+
/** Ancho máximo de la lista sin salirse del lienzo. */
|
|
7
|
+
anchoLista: number;
|
|
8
|
+
/** Borde superior de la lista respecto del centro del nodo. */
|
|
9
|
+
listaY: number;
|
|
10
|
+
/** Dónde va el verbo: un punto de la línea y la normal (unitaria) hacia la que se aparta de ella. */
|
|
11
|
+
verbo: Punto & {
|
|
12
|
+
nx: number;
|
|
13
|
+
ny: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type DisposicionOrbita = {
|
|
17
|
+
alto: number;
|
|
18
|
+
centro: Punto;
|
|
19
|
+
grupos: NodoOrbita[];
|
|
20
|
+
};
|
|
21
|
+
export declare const RADIO_NODO_ORBITA = 38;
|
|
22
|
+
export declare const RADIO_CENTRO_ORBITA = 50;
|
|
23
|
+
/**
|
|
24
|
+
* Centros del retrato y de los grupos en órbita (sentido horario desde arriba) dentro de `ancho`. Solo depende del
|
|
25
|
+
* ancho y del número de grupos, no del contenido. Lo horizontal se encoge para dejar a las listas laterales al menos
|
|
26
|
+
* 108px si se puede. Devuelve `null` sin grupos, con más de 8, con menos de 600px o si alguna lista lateral quedaría
|
|
27
|
+
* con menos de 90px: entonces el componente usa la lista.
|
|
28
|
+
*/
|
|
29
|
+
export declare const disponerOrbita: (cantidad: number, ancho: number) => DisposicionOrbita | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type CajaMedida = {
|
|
2
|
+
ancho: number;
|
|
3
|
+
alto: number;
|
|
4
|
+
};
|
|
5
|
+
export type Punto = {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
};
|
|
9
|
+
export type DisposicionRadial = {
|
|
10
|
+
alto: number;
|
|
11
|
+
centro: Punto;
|
|
12
|
+
grupos: Punto[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Posiciones (esquina superior izquierda) del centro y de los grupos alrededor, en sentido horario desde arriba, dentro
|
|
16
|
+
* de `ancho`. Devuelve `null` si no hay grupos, si son más de 8 o si con estos tamaños alguna caja se solaparía o se
|
|
17
|
+
* saldría: entonces el componente usa la lista.
|
|
18
|
+
*/
|
|
19
|
+
export declare const disponerRadial: (centro: CajaMedida, grupos: CajaMedida[], ancho: number, separacion?: number) => DisposicionRadial | null;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { DnaHelix } from './DnaHelix';
|
|
2
|
+
export type { DnaHelixProps, DnaHelixItem } from './DnaHelix';
|
|
1
3
|
export { OrgTree } from './OrgTree';
|
|
2
4
|
export type { OrgTreeProps } from './OrgTree';
|
|
3
5
|
export { NetworkMap } from './NetworkMap';
|
|
@@ -7,3 +9,7 @@ export type { NetworkLegendProps } from './NetworkLegend';
|
|
|
7
9
|
export { ORG_TREE_DEFAULT_THEMES, buildOrgTreeRows, resolveOrgTreeTheme, countOrgTreeNodes, orgTreeRootNodes, } from './orgTreeUtils';
|
|
8
10
|
export { NETWORK_STATUS_COLORS, NETWORK_STATUS_LABELS, NETWORK_EDGE_STYLES, NETWORK_BASEMAPS, NETWORK_KIND_LABELS, NETWORK_KIND_COLORS, normalizeNetworkNodes, normalizeNetworkEdges, countNetworkStatus, networkMapBounds, networkNodePositions, networkEdgeLines, } from './networkMapUtils';
|
|
9
11
|
export type { OrgTreeNode, OrgTreeNodeRow, OrgTreeTheme, NetworkNode, NetworkEdge, NetworkNodeStatus, NetworkNodeKind, NetworkBasemap, NetworkEdgeType, } from './types';
|
|
12
|
+
export { RelationGraph } from './RelationGraph';
|
|
13
|
+
export type { RelationGraphGroup, RelationGraphItem, RelationGraphLayout, RelationGraphProps, RelationGraphVariant } from './RelationGraph';
|
|
14
|
+
export { IntegrationFlow } from './IntegrationFlow';
|
|
15
|
+
export type { IntegrationFlowAppearance, IntegrationFlowDensity, IntegrationFlowHub, IntegrationFlowLinks, IntegrationFlowNode, IntegrationFlowProps, IntegrationFlowStep, } from './IntegrationFlow';
|
|
@@ -15,7 +15,7 @@ export type SfMapsRuntime = {
|
|
|
15
15
|
type SfProviderValue = {
|
|
16
16
|
maps?: SfMapsRuntime;
|
|
17
17
|
};
|
|
18
|
-
export declare const SfProvider: ({ maps, children }: SfProviderProps) => import(
|
|
18
|
+
export declare const SfProvider: ({ maps, children }: SfProviderProps) => import('react').JSX.Element;
|
|
19
19
|
export declare const useSf: () => SfProviderValue;
|
|
20
20
|
export declare const useSfMaps: () => SfMapsRuntime;
|
|
21
21
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Puede tener el foco: tabulable o con `tabindex` (incluido -1), conectado, habilitado, visible y fuera de `inert`. */
|
|
2
|
+
export declare const esEnfocableValido: (elemento: Element | null) => elemento is HTMLElement;
|
|
3
|
+
export declare const tabulables: (contenedor: Element) => HTMLElement[];
|
|
4
|
+
/**
|
|
5
|
+
* Destino de Tab dentro de `contenedor`: el primero o el último si el foco está fuera, la vuelta en los extremos y
|
|
6
|
+
* `null` cuando el navegador puede seguir solo. Desde un elemento de dentro que no es tabulable (un `tabindex="-1"`),
|
|
7
|
+
* el siguiente o el anterior en el orden del documento. `"vacio"` si no hay nada tabulable.
|
|
8
|
+
*/
|
|
9
|
+
export declare const siguienteEnContencion: (contenedor: Element, activo: Element | null, atras: boolean) => HTMLElement | "vacio" | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ElementoIdentificado<T> = {
|
|
2
|
+
elemento: T;
|
|
3
|
+
/** Clave del host, tal como llegó: es la que reciben los callbacks. */
|
|
4
|
+
clave: string;
|
|
5
|
+
/** Clave de React. Las válidas van en el espacio "k:" y las repetidas en "d:<n>:", sin índice, para que
|
|
6
|
+
* reordenar datos válidos no remonte nodos y ninguna clave del host colisione con una generada. */
|
|
7
|
+
claveReact: string;
|
|
8
|
+
/** Solo la primera aparición de una clave tiene identidad e interacción. */
|
|
9
|
+
esPrimera: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const identificarColeccion: <T>(elementos: readonly T[], obtenerClave: (elemento: T) => string, componente: string, coleccion: string) => ElementoIdentificado<T>[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Suma de las barras de desplazamiento verticales de los ancestros con desbordamiento propio (incluido `body` cuando
|
|
3
|
+
* desplaza él y no la ventana) y de la ventana, en píxeles. Si un elemento pierde ancho y esta suma crece en al menos
|
|
4
|
+
* lo perdido, lo explica una barra; si pierde más, alguien redimensionó.
|
|
5
|
+
*/
|
|
6
|
+
export declare const barrasVerticalesDeAncestros: (nodo: Element) => number;
|
|
7
|
+
export declare const BARRA_MINIMA = 3;
|
|
8
|
+
export declare const TOLERANCIA_BARRA = 2;
|
|
9
|
+
/**
|
|
10
|
+
* ¿Una barra que apareció (o desapareció) explica un cambio de ancho? Sí si la barra mide al menos BARRA_MINIMA y el
|
|
11
|
+
* ancho cambió en sentido contrario y como mucho lo que ella mide, más TOLERANCIA_BARRA por el redondeo del zoom
|
|
12
|
+
* fraccionario. Una barra no le quita a un elemento más que su grosor, aunque reparta el resto en columnas.
|
|
13
|
+
*/
|
|
14
|
+
export declare const explicadoPorBarra: (anchoCambiado: number, barra: number) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Ancho del contenedor en píxeles, o `null` si no se puede medir (sin `ResizeObserver`: jsdom, SSR) o todavía no se
|
|
17
|
+
* midió. Quien lo usa pinta su disposición estrecha con `null`: es la que nunca desborda. Con `conBarras`, el tercer
|
|
18
|
+
* valor son las barras verticales de los ancestros medidas en el mismo aviso (`barrasVerticalesDeAncestros`).
|
|
19
|
+
*/
|
|
20
|
+
export declare const useAnchoContenedor: <T extends HTMLElement>(conBarras?: boolean) => [(nodo: T | null) => void, number | null, number | null];
|
|
21
|
+
/** Píxeles de un tamaño en rem, con la fuente raíz real del documento (respeta el zoom de texto del usuario). */
|
|
22
|
+
export declare const remAPixeles: (rem: number, documento?: Document | undefined) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfperusacdev/sf-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "SF UI — librería de componentes React (inputs, tablas, hooks) para aplicaciones SF Perú.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/sf-ui.umd.cjs",
|
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
"./theme/sf-tokens.css": "./dist/theme/sf-tokens.css",
|
|
23
23
|
"./theme/erp.css": "./dist/theme/erp.css",
|
|
24
24
|
"./theme/sark.css": "./dist/theme/sark.css",
|
|
25
|
-
"./theme/dark.css": "./dist/theme/dark.css"
|
|
25
|
+
"./theme/dark.css": "./dist/theme/dark.css",
|
|
26
|
+
"./theme/neon.css": "./dist/theme/neon.css",
|
|
27
|
+
"./theme/temas.css": "./dist/theme/temas.css",
|
|
28
|
+
"./theme/densidad.css": "./dist/theme/densidad.css"
|
|
26
29
|
},
|
|
27
30
|
"files": [
|
|
28
31
|
"dist"
|
|
@@ -120,9 +123,9 @@
|
|
|
120
123
|
"tailwindcss": "^4.3.0",
|
|
121
124
|
"typescript": "~6.0.2",
|
|
122
125
|
"typescript-eslint": "^8.59.2",
|
|
123
|
-
"vite": "^8.
|
|
124
|
-
"vite-plugin-dts": "^
|
|
125
|
-
"vitest": "^4.1.
|
|
126
|
+
"vite": "^8.2.4",
|
|
127
|
+
"vite-plugin-dts": "^5.1.2",
|
|
128
|
+
"vitest": "^4.1.12",
|
|
126
129
|
"yup": "^1.7.1"
|
|
127
130
|
}
|
|
128
131
|
}
|