@sfperusacdev/sf-ui 0.2.8 → 0.3.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/dist/sf-ui.css +1 -1
- package/dist/sf-ui.js +3477 -2787
- 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/sf-tokens.css +18 -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 +1 -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.d.ts +2 -2
- package/dist/types/src/components/cards/ModuleCard.d.ts +2 -2
- package/dist/types/src/components/cards/QuickActionTile.d.ts +2 -2
- 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/charts/Chart.d.ts +1 -1
- package/dist/types/src/components/charts/ChartLegend.d.ts +1 -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 +1 -1
- 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 +3 -1
- package/dist/types/src/components/dashboard/DonutGauge.d.ts +4 -2
- package/dist/types/src/components/dashboard/DonutGauge.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/StatCard.d.ts +1 -1
- package/dist/types/src/components/dashboard/Stepper.d.ts +1 -1
- package/dist/types/src/components/dashboard/TramoCard.d.ts +1 -1
- package/dist/types/src/components/dashboard/donutSizing.d.ts +32 -0
- package/dist/types/src/components/display/AuditTimeline.d.ts +1 -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/LiveChip.d.ts +1 -1
- package/dist/types/src/components/display/LiveStatusBar.d.ts +1 -1
- package/dist/types/src/components/display/MediaPanel.d.ts +1 -1
- package/dist/types/src/components/display/PassengerBoardCard.d.ts +1 -1
- package/dist/types/src/components/display/RecordList.d.ts +2 -2
- package/dist/types/src/components/display/Timeline.d.ts +1 -1
- 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.d.ts +2 -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.d.ts +1 -1
- 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/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/DropdownMenu.d.ts +1 -1
- package/dist/types/src/components/overlays/DropdownMenu.estilos.test.d.ts +1 -0
- package/dist/types/src/components/overlays/MessageDialog.d.ts +1 -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/useOverlayStack.d.ts +3 -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 +144 -1
- package/dist/types/src/components/table/CustomTable.defectosPublicados.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/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/index.d.ts +2 -0
- package/dist/types/src/providers/SfProvider.d.ts +1 -1
- package/dist/types/src/theme/paletaCategorias.test.d.ts +1 -0
- package/package.json +4 -4
|
@@ -7,4 +7,4 @@ export type ActiveFiltersBarProps = {
|
|
|
7
7
|
emptyLabel?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const ActiveFiltersBar: ({ filters, onRemove, onClearAll, label, emptyLabel, className, }: ActiveFiltersBarProps) => import(
|
|
10
|
+
export declare const ActiveFiltersBar: ({ filters, onRemove, onClearAll, label, emptyLabel, className, }: ActiveFiltersBarProps) => import('react').JSX.Element;
|
|
@@ -9,5 +9,5 @@ type AsyncCustomTableProps<TData extends Record<string, unknown>> = Omit<CustomT
|
|
|
9
9
|
errorMessage?: (error: Error) => ReactNode;
|
|
10
10
|
emptyMessage?: string;
|
|
11
11
|
};
|
|
12
|
-
export declare function AsyncCustomTable<TData extends Record<string, unknown>>({ queryKey, queryFn, queryOptions, loadingMessage, errorMessage, emptyMessage, ...tableProps }: AsyncCustomTableProps<TData>): import(
|
|
12
|
+
export declare function AsyncCustomTable<TData extends Record<string, unknown>>({ queryKey, queryFn, queryOptions, loadingMessage, errorMessage, emptyMessage, ...tableProps }: AsyncCustomTableProps<TData>): import('react').JSX.Element;
|
|
13
13
|
export type { AsyncCustomTableProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { AggregationFn } from '@tanstack/react-table';
|
|
|
4
4
|
import { AsyncStateStore } from './asyncStateStore';
|
|
5
5
|
import { PaginationVariant } from './Pagination';
|
|
6
6
|
import { CustomTableController } from './customTableController';
|
|
7
|
+
import { ExportTableColumn } from '../../utils/exportTableCsv';
|
|
7
8
|
/**
|
|
8
9
|
* Skin del `<thead>` del CustomTable. Los 4 variants nuevos (`soft`, `neon`,
|
|
9
10
|
* `premium`, `matrix`) hacen match visual 1:1 con los variants del
|
|
@@ -19,6 +20,93 @@ export type CustomTableServerPagination = {
|
|
|
19
20
|
onPageChange: (page: number) => void;
|
|
20
21
|
onPageSizeChange: (pageSize: number) => void;
|
|
21
22
|
};
|
|
23
|
+
/** Acción del menú contextual de una fila (`getRowContextMenu`): `onClick` recibe la fila, con su tipo. */
|
|
24
|
+
export type CustomTableRowMenuItem<TData> = {
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
icon?: IconType | string;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
onClick: (row: TData) => void;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Contexto del pie (`footerSlot`). Son datos, no cálculos: los totales de negocio los hace la pantalla.
|
|
33
|
+
* Con `loadedOnly` (serverPagination o remote) los objetos son solo lo cargado, no el conjunto del servidor.
|
|
34
|
+
*/
|
|
35
|
+
export type CustomTableFooterContext<TData> = {
|
|
36
|
+
/** Filas de datos visibles en la página actual (búsqueda y orden aplicados; sin filas de grupo). */
|
|
37
|
+
pageRows: TData[];
|
|
38
|
+
/** Filas que pasan la búsqueda y los filtros, en todas las páginas de los datos cargados; incluye las hijas de `subRows`, sin orden garantizado. */
|
|
39
|
+
filteredRows: TData[];
|
|
40
|
+
/** Filas seleccionadas cargadas (lo mismo que `getSelectedRows`). */
|
|
41
|
+
selectedRows: TData[];
|
|
42
|
+
/** Claves seleccionadas con `getRowId`, incluidas las de filas no cargadas; sin identidad, []. */
|
|
43
|
+
selectedRowKeys: string[];
|
|
44
|
+
/** true con serverPagination o remote: los objetos anteriores son solo los datos cargados. */
|
|
45
|
+
loadedOnly: boolean;
|
|
46
|
+
/** Total informado por serverPagination, si existe. */
|
|
47
|
+
totalItems?: number;
|
|
48
|
+
};
|
|
49
|
+
/** Alcance de la exportación (`exportOptions`). */
|
|
50
|
+
export type CustomTableExportScope = "selected" | "filtered" | "page" | "all";
|
|
51
|
+
/** Pedido al host para un alcance que la tabla no tiene completo: datos remotos o selección con claves no cargadas. */
|
|
52
|
+
export type CustomTableExportRequest<TData> = {
|
|
53
|
+
scope: CustomTableExportScope;
|
|
54
|
+
/** Claves seleccionadas con `getRowId`, incluidas las no cargadas; sin identidad, []. */
|
|
55
|
+
selectedRowKeys: string[];
|
|
56
|
+
/** Criterios efectivos de la tabla, para que el host exporte el mismo conjunto que se ve. */
|
|
57
|
+
criteria: CustomTableExportCriteria;
|
|
58
|
+
/** Escribe el .xls con las filas que entregue el host, con las mismas columnas, nombre y sanitización. */
|
|
59
|
+
download: (rows: TData[]) => void;
|
|
60
|
+
};
|
|
61
|
+
/** Búsqueda, filtros por columna y orden vigentes: los del host en modo remoto, los de la tabla en otro caso. */
|
|
62
|
+
export type CustomTableExportCriteria = {
|
|
63
|
+
search: string;
|
|
64
|
+
/** Filtros del panel de la tabla (`{ id, value }` de TanStack). En modo remoto no hay filtros locales: []. */
|
|
65
|
+
columnFilters: {
|
|
66
|
+
id: string;
|
|
67
|
+
value: unknown;
|
|
68
|
+
}[];
|
|
69
|
+
sorting: CustomTableSort;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Exportación a Excel .xls (SpreadsheetML, no XLSX). Solo se ofrecen los alcances de `scopes`. Las columnas llevan
|
|
73
|
+
* encabezado y valor: no se leen las celdas dibujadas. Se exportan filas de datos (con sus hijas de subRows), nunca
|
|
74
|
+
* grupos ni columnas internas. Con serverPagination o remote, "filtered" y "all" los resuelve el host con `onRequest`;
|
|
75
|
+
* lo mismo la selección con claves no cargadas. Sin `onRequest` esas opciones quedan deshabilitadas.
|
|
76
|
+
*/
|
|
77
|
+
export type CustomTableExport<TData> = {
|
|
78
|
+
scopes: CustomTableExportScope[];
|
|
79
|
+
columns: ExportTableColumn<TData>[];
|
|
80
|
+
/** Nombre sin extensión; siempre se guarda como .xls. Default: "export". */
|
|
81
|
+
filename?: string | ((scope: CustomTableExportScope) => string);
|
|
82
|
+
/** Texto del botón. Default: "Exportar". */
|
|
83
|
+
label?: string;
|
|
84
|
+
onRequest?: (request: CustomTableExportRequest<TData>) => void;
|
|
85
|
+
};
|
|
86
|
+
/** Orden de una tabla en modo remoto: columnas por prioridad. */
|
|
87
|
+
export type CustomTableSort = {
|
|
88
|
+
id: string;
|
|
89
|
+
desc: boolean;
|
|
90
|
+
}[];
|
|
91
|
+
/**
|
|
92
|
+
* Modo remoto: búsqueda y orden los resuelve el host. Activo con solo pasar `remote`: la tabla deja de filtrar y
|
|
93
|
+
* ordenar en el cliente. Cada control necesita su par completo valor + callback; si falta una mitad, ese control
|
|
94
|
+
* se deshabilita y avisa en desarrollo.
|
|
95
|
+
*/
|
|
96
|
+
export type CustomTableRemote = {
|
|
97
|
+
search?: {
|
|
98
|
+
value?: string;
|
|
99
|
+
onChange?: (value: string) => void;
|
|
100
|
+
/** Espera tras la última tecla antes de avisar al host. Por defecto 0 (aviso inmediato). */
|
|
101
|
+
debounceMs?: number;
|
|
102
|
+
/** Largo mínimo para avisar (vaciar el buscador siempre avisa). Por defecto 0. */
|
|
103
|
+
minLength?: number;
|
|
104
|
+
};
|
|
105
|
+
sorting?: {
|
|
106
|
+
value?: CustomTableSort;
|
|
107
|
+
onChange?: (sorting: CustomTableSort) => void;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
22
110
|
type BuiltInAggregation = "sum" | "min" | "max" | "mean" | "median" | "unique" | "uniqueCount" | "count";
|
|
23
111
|
type TableAggregation = BuiltInAggregation | AggregationFn<unknown>;
|
|
24
112
|
type CustomColumn<TData> = {
|
|
@@ -33,6 +121,14 @@ type CustomColumn<TData> = {
|
|
|
33
121
|
enableSorting?: boolean;
|
|
34
122
|
enableHiding?: boolean;
|
|
35
123
|
size?: number;
|
|
124
|
+
/**
|
|
125
|
+
* Ajuste de texto del contenido: `true` (hasta 320 px) o `{ maxWidth }` en píxeles, finito y positivo; un valor
|
|
126
|
+
* inválido usa 320 px y avisa en desarrollo. Es el ancho máximo del contenido, no de la columna: el encabezado y el
|
|
127
|
+
* relleno pueden ensancharla. Sin la opción o con `false`, la celda queda en una línea como siempre.
|
|
128
|
+
*/
|
|
129
|
+
wrap?: boolean | {
|
|
130
|
+
maxWidth: number;
|
|
131
|
+
};
|
|
36
132
|
};
|
|
37
133
|
/**
|
|
38
134
|
* Configuración de las filas de detalle expandibles (master-detail).
|
|
@@ -75,6 +171,13 @@ type CustomTableProps<TData extends Record<string, unknown>, TDetail extends Rec
|
|
|
75
171
|
paginationVariant?: PaginationVariant | "legacy";
|
|
76
172
|
/** Opciones del selector "Mostrar N registros por página". Default: 10/25/50/100/200. */
|
|
77
173
|
pageSizeOptions?: number[];
|
|
174
|
+
/**
|
|
175
|
+
* Dónde va el paginador: "bottom" (por defecto, como siempre), "top" (antes del cuerpo) o "both" (dos con el mismo
|
|
176
|
+
* estado, etiquetados como superior e inferior). Sin enablePagination ni serverPagination no tiene efecto.
|
|
177
|
+
*/
|
|
178
|
+
paginationPosition?: "bottom" | "top" | "both";
|
|
179
|
+
/** Botón «Exportar» en la barra con los alcances declarados (`CustomTableExport`). Sin la prop, la barra no cambia. */
|
|
180
|
+
exportOptions?: CustomTableExport<TData>;
|
|
78
181
|
/**
|
|
79
182
|
* Paginación en servidor: `data` ya es UNA página que trajo el backend. El
|
|
80
183
|
* CustomTable no la recorta y dibuja el mismo paginador dentro de la tarjeta
|
|
@@ -104,6 +207,34 @@ type CustomTableProps<TData extends Record<string, unknown>, TDetail extends Rec
|
|
|
104
207
|
onRefresh?: () => void;
|
|
105
208
|
/** Clic en cualquier parte de una fila (excepto botones/enlaces internos). */
|
|
106
209
|
onRowClick?: (row: TData) => void;
|
|
210
|
+
/**
|
|
211
|
+
* Doble clic en una fila (excepto botones, enlaces y controles internos; no aplica a filas agrupadas). Con esta
|
|
212
|
+
* opción la fila recibe foco y Enter ejecuta la misma acción. No retrasa `onRowClick`: si se configuran ambos, un
|
|
213
|
+
* doble clic produce normalmente dos `onRowClick` y un `onRowDoubleClick`.
|
|
214
|
+
*/
|
|
215
|
+
onRowDoubleClick?: (row: TData) => void;
|
|
216
|
+
/**
|
|
217
|
+
* Columnas ocultas al abrir la tabla, por identificador de columna (`id` o `accessorKey`, no el título). Es solo el
|
|
218
|
+
* estado inicial: la visibilidad guardada en `stateStore` manda (también `{}`, todas visibles) y lo que el usuario
|
|
219
|
+
* muestre después no se vuelve a ocultar.
|
|
220
|
+
*/
|
|
221
|
+
defaultHiddenColumns?: string[];
|
|
222
|
+
/**
|
|
223
|
+
* Menú contextual por fila. Sin esta prop el clic derecho abre el menú del navegador. Con ella: clic derecho en la
|
|
224
|
+
* fila (no en controles ni editores, que conservan el del navegador; no en filas agrupadas) abre el menú, sin
|
|
225
|
+
* seleccionar la fila; si la lista viene vacía queda el menú del navegador. Con el teclado: la fila recibe foco y
|
|
226
|
+
* la tecla Menú o Shift+F10 lo abre; flechas, Inicio/Fin, Enter, Escape y Tab, devolviendo el foco a la fila.
|
|
227
|
+
*/
|
|
228
|
+
getRowContextMenu?: (row: TData) => CustomTableRowMenuItem<TData>[];
|
|
229
|
+
/** Pie bajo el cuerpo de la tabla, con el contexto de filas (`CustomTableFooterContext`). Sin la prop, sin pie. */
|
|
230
|
+
footerSlot?: (context: CustomTableFooterContext<TData>) => ReactNode;
|
|
231
|
+
/**
|
|
232
|
+
* Columna «N°» con la posición de cada fila raíz en lo filtrado y ordenado, continua entre páginas y entre grupos.
|
|
233
|
+
* Con serverPagination suma (page - 1) * pageSize: supone que el servidor pagina las mismas raíces que recibe la
|
|
234
|
+
* tabla. Grupos, hijas de subRows y detalles van sin número. No se ordena, no se oculta ni se guarda.
|
|
235
|
+
* Con la opción activa, `__rownumber` queda reservado: ninguna columna de datos debe usar ese id.
|
|
236
|
+
*/
|
|
237
|
+
showRowNumbers?: boolean;
|
|
107
238
|
enableRowSelection?: boolean;
|
|
108
239
|
getRowActions?: (row: TData) => Array<{
|
|
109
240
|
icon?: IconType;
|
|
@@ -136,6 +267,18 @@ type CustomTableProps<TData extends Record<string, unknown>, TDetail extends Rec
|
|
|
136
267
|
*/
|
|
137
268
|
detail?: CustomTableDetail<TData, TDetail>;
|
|
138
269
|
controller?: CustomTableController<TData>;
|
|
270
|
+
/**
|
|
271
|
+
* Identidad de fila por clave: selección, detalle y controlador siguen a la fila aunque cambie su posición o su
|
|
272
|
+
* objeto. Exige `selectionAcrossPages`; sin ella se ignora (comportamiento anterior) y avisa en desarrollo.
|
|
273
|
+
*/
|
|
274
|
+
getRowId?: (row: TData) => string;
|
|
275
|
+
/**
|
|
276
|
+
* Con `getRowId`: qué pasa con la selección al cambiar de página. "keep" conserva las claves (las filas que no
|
|
277
|
+
* están en la página no salen de la selección); "clear" la vacía. Sin valor por defecto: hay que declararlo.
|
|
278
|
+
*/
|
|
279
|
+
selectionAcrossPages?: "keep" | "clear";
|
|
280
|
+
/** Búsqueda y orden resueltos por el host (ver `CustomTableRemote`). */
|
|
281
|
+
remote?: CustomTableRemote;
|
|
139
282
|
};
|
|
140
|
-
export declare function CustomTable<TData extends Record<string, unknown>, TDetail extends Record<string, unknown> = Record<string, unknown>>({ id, stateStore, data, columns, grouping, defaultGrouping, enableGrouping, enableSorting, enableFiltering, enablePagination, pageSize, paginationVariant, pageSizeOptions, serverPagination, fillParentHeight, maxBodyHeightPx, className, emptyMessage, title, subtitle, sidePanel, onGroupingChange, toolbarSlot, belowToolbarSlot, loading, loadingMessage, isFetching, error, onRetry, onRefresh, onRowClick, enableRowSelection, getRowActions, getBulkActions, bulkActionsSlot, onSelectionChange, headerVariant, searchPlaceholder, embedded, detail, controller, }: CustomTableProps<TData, TDetail>): import(
|
|
283
|
+
export declare function CustomTable<TData extends Record<string, unknown>, TDetail extends Record<string, unknown> = Record<string, unknown>>({ id, stateStore, data, columns, grouping, defaultGrouping, enableGrouping, enableSorting, enableFiltering, enablePagination, pageSize, paginationVariant, pageSizeOptions, paginationPosition, exportOptions, serverPagination, fillParentHeight, maxBodyHeightPx, className, emptyMessage, title, subtitle, sidePanel, onGroupingChange, toolbarSlot, belowToolbarSlot, loading, loadingMessage, isFetching, error, onRetry, onRefresh, onRowClick, onRowDoubleClick, defaultHiddenColumns, getRowContextMenu, footerSlot, showRowNumbers, enableRowSelection, getRowActions, getBulkActions, bulkActionsSlot, onSelectionChange, headerVariant, searchPlaceholder, embedded, detail, controller, getRowId, selectionAcrossPages, remote, }: CustomTableProps<TData, TDetail>): import('react').JSX.Element;
|
|
141
284
|
export type { CustomColumn, CustomTableDetail, CustomTableProps, TableAggregation };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -47,4 +47,4 @@ export type EditableDataGridProps<T extends Record<string, unknown>> = {
|
|
|
47
47
|
};
|
|
48
48
|
/** true si TODOS los campos indicados están vacíos ("" / null / undefined / 0 no cuenta como vacío) */
|
|
49
49
|
export declare const isBlankRow: <T extends object>(row: T, keys: Array<keyof T & string>) => boolean;
|
|
50
|
-
export declare const EditableDataGrid: <T extends Record<string, unknown>>({ data, columns, rowKey, onChange, className, mode, showIndex, onAddRow, addLabel, onRemoveRow, title, pageSize, emptyMessage, }: EditableDataGridProps<T>) => import(
|
|
50
|
+
export declare const EditableDataGrid: <T extends Record<string, unknown>>({ data, columns, rowKey, onChange, className, mode, showIndex, onAddRow, addLabel, onRemoveRow, title, pageSize, emptyMessage, }: EditableDataGridProps<T>) => import('react').JSX.Element;
|
|
@@ -23,4 +23,4 @@ export type ExpandableTableSectionProps<TData extends Record<string, unknown> =
|
|
|
23
23
|
className?: string;
|
|
24
24
|
ariaLabel?: string;
|
|
25
25
|
};
|
|
26
|
-
export declare const ExpandableTableSection: <TData extends Record<string, unknown> = Record<string, unknown>>({ items, type, className, ariaLabel, }: ExpandableTableSectionProps<TData>) => import(
|
|
26
|
+
export declare const ExpandableTableSection: <TData extends Record<string, unknown> = Record<string, unknown>>({ items, type, className, ariaLabel, }: ExpandableTableSectionProps<TData>) => import('react').JSX.Element;
|
|
@@ -38,6 +38,8 @@ export interface PaginationProps {
|
|
|
38
38
|
labels?: Partial<PaginationLabels>;
|
|
39
39
|
/** id opcional para tests / a11y. */
|
|
40
40
|
id?: string;
|
|
41
|
+
/** Nombre de la zona de navegación. Default: "Paginación". Distínguelo si hay más de un paginador en la página. */
|
|
42
|
+
ariaLabel?: string;
|
|
41
43
|
}
|
|
42
44
|
export interface PaginationLabels {
|
|
43
45
|
showing: (from: number, to: number, total: number) => string;
|
|
@@ -13,5 +13,5 @@ type Props<TData extends Record<string, unknown>> = {
|
|
|
13
13
|
table: Table<TData>;
|
|
14
14
|
markUserEdit: () => void;
|
|
15
15
|
};
|
|
16
|
-
export declare function TableFiltersPanel<TData extends Record<string, unknown>>({ open, onClose, columnsMeta, headerLabelById, columnTypeById, columnFilters, table, markUserEdit, }: Props<TData>): import(
|
|
16
|
+
export declare function TableFiltersPanel<TData extends Record<string, unknown>>({ open, onClose, columnsMeta, headerLabelById, columnTypeById, columnFilters, table, markUserEdit, }: Props<TData>): import('react').JSX.Element | null;
|
|
17
17
|
export {};
|
|
@@ -12,5 +12,5 @@ type Props<TData extends Record<string, unknown>> = {
|
|
|
12
12
|
table: Table<TData>;
|
|
13
13
|
markUserEdit: () => void;
|
|
14
14
|
};
|
|
15
|
-
export declare function TableSortingPanel<TData extends Record<string, unknown>>({ open, onClose, columnsMeta, headerLabelById, sorting, table, markUserEdit, }: Props<TData>): import(
|
|
15
|
+
export declare function TableSortingPanel<TData extends Record<string, unknown>>({ open, onClose, columnsMeta, headerLabelById, sorting, table, markUserEdit, }: Props<TData>): import('react').JSX.Element | null;
|
|
16
16
|
export {};
|
|
@@ -5,11 +5,14 @@ type RegisterProps<T> = {
|
|
|
5
5
|
selectRowFn: SelectRowFn<T>;
|
|
6
6
|
cleanSelectionFn: () => void;
|
|
7
7
|
getSelectedRowsFn: SelectedRowsFn<T>;
|
|
8
|
+
getSelectedRowKeysFn?: () => string[];
|
|
9
|
+
forgetKeysFn?: (keys: string[]) => void;
|
|
8
10
|
};
|
|
9
11
|
row?: {
|
|
10
12
|
selectRowFn: (row: T) => void;
|
|
11
13
|
cleanSelectionFn: () => void;
|
|
12
14
|
getSelectedRowFn: () => T | undefined;
|
|
15
|
+
getSelectedRowKeyFn?: () => string | undefined;
|
|
13
16
|
};
|
|
14
17
|
};
|
|
15
18
|
type SelectionController<T> = {
|
|
@@ -29,6 +32,22 @@ export type CustomTableController<T> = {
|
|
|
29
32
|
selection: SelectionController<T>;
|
|
30
33
|
row: RowController<T>;
|
|
31
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Lo que devuelve useCustomTableController: el controlador publicado más los métodos por clave de la identidad de
|
|
37
|
+
* fila (`getRowId` en la tabla). Es asignable a CustomTableController, que no cambia.
|
|
38
|
+
*/
|
|
39
|
+
export type CustomTableKeyedController<T> = CustomTableController<T> & {
|
|
40
|
+
selection: {
|
|
41
|
+
/** Claves de la selección, incluidas las de filas no cargadas. Sin identidad: []. */
|
|
42
|
+
getSelectedRowKeys: () => string[];
|
|
43
|
+
/** Quita de la selección las claves de filas eliminadas de verdad (eliminación confirmada por el host). */
|
|
44
|
+
forgetKeys: (keys: string[]) => void;
|
|
45
|
+
};
|
|
46
|
+
row: {
|
|
47
|
+
/** Clave de la fila elegida. Sin identidad: undefined. */
|
|
48
|
+
getSelectedRowKey: () => string | undefined;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
32
51
|
export type CustomTableControllerInternal<T> = {
|
|
33
52
|
events: {
|
|
34
53
|
selection: {
|
|
@@ -47,5 +66,5 @@ export declare const useCustomTableController: <TData>(props?: {
|
|
|
47
66
|
row?: {
|
|
48
67
|
onChange?: (row?: TData) => void;
|
|
49
68
|
};
|
|
50
|
-
}) =>
|
|
69
|
+
}) => CustomTableKeyedController<TData>;
|
|
51
70
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CustomTable } from './CustomTable';
|
|
2
|
-
export type { CustomColumn, CustomTableDetail, CustomTableProps, CustomTableServerPagination, TableHeaderVariant, } from './CustomTable';
|
|
2
|
+
export type { CustomColumn, CustomTableDetail, CustomTableExport, CustomTableExportCriteria, CustomTableExportRequest, CustomTableExportScope, CustomTableFooterContext, CustomTableProps, CustomTableRemote, 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 {};
|
|
@@ -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;
|
|
@@ -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 {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfperusacdev/sf-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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",
|
|
@@ -120,9 +120,9 @@
|
|
|
120
120
|
"tailwindcss": "^4.3.0",
|
|
121
121
|
"typescript": "~6.0.2",
|
|
122
122
|
"typescript-eslint": "^8.59.2",
|
|
123
|
-
"vite": "^8.
|
|
124
|
-
"vite-plugin-dts": "^
|
|
125
|
-
"vitest": "^4.1.
|
|
123
|
+
"vite": "^8.2.4",
|
|
124
|
+
"vite-plugin-dts": "^5.1.2",
|
|
125
|
+
"vitest": "^4.1.12",
|
|
126
126
|
"yup": "^1.7.1"
|
|
127
127
|
}
|
|
128
128
|
}
|