@sfperusacdev/sf-ui 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/sf-ui.css +2 -0
- package/dist/sf-ui.js +13228 -0
- package/dist/sf-ui.js.map +1 -0
- package/dist/sf-ui.umd.cjs +21 -0
- package/dist/sf-ui.umd.cjs.map +1 -0
- package/dist/theme/dark.css +156 -0
- package/dist/theme/erp.css +84 -0
- package/dist/theme/sark.css +117 -0
- package/dist/theme/sf-tokens.css +474 -0
- package/dist/types/src/adapters/maps/google/index.d.ts +18 -0
- package/dist/types/src/adapters/maps/index.d.ts +2 -0
- package/dist/types/src/adapters/maps/leaflet/index.d.ts +10 -0
- package/dist/types/src/components/advanced-inputs/CodeEditor.d.ts +20 -0
- package/dist/types/src/components/advanced-inputs/MapFlyTo.d.ts +9 -0
- package/dist/types/src/components/advanced-inputs/MapGeocoderBar.d.ts +8 -0
- package/dist/types/src/components/advanced-inputs/MapPicker.d.ts +22 -0
- package/dist/types/src/components/advanced-inputs/MapPickerMap.d.ts +10 -0
- package/dist/types/src/components/advanced-inputs/PhotoInput.d.ts +18 -0
- package/dist/types/src/components/advanced-inputs/RichTextEditor.d.ts +16 -0
- package/dist/types/src/components/advanced-inputs/SignaturePad.d.ts +17 -0
- package/dist/types/src/components/advanced-inputs/codeEditorClassName.d.ts +7 -0
- package/dist/types/src/components/advanced-inputs/codeEditorExtensions.d.ts +3 -0
- package/dist/types/src/components/advanced-inputs/index.d.ts +8 -0
- package/dist/types/src/components/advanced-inputs/mapPickerUtils.d.ts +19 -0
- package/dist/types/src/components/advanced-inputs/types.d.ts +5 -0
- package/dist/types/src/components/buttons/ActionButton.d.ts +11 -0
- package/dist/types/src/components/buttons/Button.d.ts +12 -0
- package/dist/types/src/components/buttons/ButtonGroup.d.ts +7 -0
- package/dist/types/src/components/buttons/FormActions.d.ts +12 -0
- package/dist/types/src/components/buttons/RowActions.d.ts +10 -0
- package/dist/types/src/components/buttons/ToolbarButton.d.ts +10 -0
- package/dist/types/src/components/buttons/buttonClassName.d.ts +9 -0
- package/dist/types/src/components/buttons/index.d.ts +9 -0
- package/dist/types/src/components/cards/Badge.d.ts +11 -0
- package/dist/types/src/components/cards/EntityCard.d.ts +28 -0
- package/dist/types/src/components/cards/KPICard.d.ts +22 -0
- package/dist/types/src/components/cards/MetricBar.d.ts +13 -0
- package/dist/types/src/components/cards/ModuleCard.d.ts +34 -0
- package/dist/types/src/components/cards/RecommendationCard.d.ts +13 -0
- package/dist/types/src/components/cards/badgeClassName.d.ts +8 -0
- package/dist/types/src/components/cards/index.d.ts +12 -0
- package/dist/types/src/components/cards/types.d.ts +16 -0
- package/dist/types/src/components/charts/Chart.d.ts +3 -0
- package/dist/types/src/components/charts/Sparkline.d.ts +2 -0
- package/dist/types/src/components/charts/chartUtils.d.ts +14 -0
- package/dist/types/src/components/charts/index.d.ts +5 -0
- package/dist/types/src/components/charts/types.d.ts +32 -0
- package/dist/types/src/components/dashboard/Calendar.d.ts +10 -0
- package/dist/types/src/components/dashboard/DashboardCard.d.ts +43 -0
- package/dist/types/src/components/dashboard/DonutGauge.d.ts +25 -0
- package/dist/types/src/components/dashboard/EventLog.d.ts +37 -0
- package/dist/types/src/components/dashboard/Stepper.d.ts +14 -0
- package/dist/types/src/components/dashboard/calendarUtils.d.ts +5 -0
- package/dist/types/src/components/dashboard/index.d.ts +11 -0
- package/dist/types/src/components/dashboard/types.d.ts +39 -0
- package/dist/types/src/components/display/AuditTimeline.d.ts +20 -0
- package/dist/types/src/components/display/Avatar.d.ts +22 -0
- package/dist/types/src/components/display/Carousel.d.ts +10 -0
- package/dist/types/src/components/display/LiveChip.d.ts +6 -0
- package/dist/types/src/components/display/LiveStatusBar.d.ts +23 -0
- package/dist/types/src/components/display/PassengerBoardCard.d.ts +22 -0
- package/dist/types/src/components/display/RecordList.d.ts +26 -0
- package/dist/types/src/components/display/Timeline.d.ts +17 -0
- package/dist/types/src/components/display/index.d.ts +16 -0
- package/dist/types/src/components/document-inputs/CurrencyInput.d.ts +21 -0
- package/dist/types/src/components/document-inputs/DniInput.d.ts +17 -0
- package/dist/types/src/components/document-inputs/DocumentInputs.fuzz.test.d.ts +1 -0
- package/dist/types/src/components/document-inputs/OtpInput.d.ts +15 -0
- package/dist/types/src/components/document-inputs/PhoneInput.d.ts +18 -0
- package/dist/types/src/components/document-inputs/RucInput.d.ts +17 -0
- package/dist/types/src/components/document-inputs/documentUtils.d.ts +11 -0
- package/dist/types/src/components/document-inputs/index.d.ts +7 -0
- package/dist/types/src/components/feedback/AccessDenied.d.ts +8 -0
- package/dist/types/src/components/feedback/Alert.d.ts +13 -0
- package/dist/types/src/components/feedback/EmptyState.d.ts +9 -0
- package/dist/types/src/components/feedback/ErrorView.d.ts +8 -0
- package/dist/types/src/components/feedback/LoadingView.d.ts +5 -0
- package/dist/types/src/components/feedback/RetryBlock.d.ts +11 -0
- package/dist/types/src/components/feedback/Skeleton.d.ts +9 -0
- package/dist/types/src/components/feedback/Spinner.d.ts +6 -0
- package/dist/types/src/components/feedback/Toast.d.ts +27 -0
- package/dist/types/src/components/feedback/index.d.ts +13 -0
- package/dist/types/src/components/icons/SyncIcon.d.ts +4 -0
- package/dist/types/src/components/icons/index.d.ts +2 -0
- package/dist/types/src/components/inputs/AsyncCardSelect.d.ts +17 -0
- package/dist/types/src/components/inputs/AsyncSearchSelect.d.ts +20 -0
- package/dist/types/src/components/inputs/AsyncSearchTableSelect.d.ts +21 -0
- package/dist/types/src/components/inputs/BooleanCheckbox.d.ts +14 -0
- package/dist/types/src/components/inputs/CardSelect.d.ts +18 -0
- package/dist/types/src/components/inputs/Checkbox.d.ts +16 -0
- package/dist/types/src/components/inputs/CheckboxGroup.d.ts +18 -0
- package/dist/types/src/components/inputs/DateInput.d.ts +20 -0
- package/dist/types/src/components/inputs/DatePicker.d.ts +19 -0
- package/dist/types/src/components/inputs/DisplayField.d.ts +15 -0
- package/dist/types/src/components/inputs/FieldLayout.d.ts +13 -0
- package/dist/types/src/components/inputs/FileInput.d.ts +21 -0
- package/dist/types/src/components/inputs/FileInput.security.test.d.ts +1 -0
- package/dist/types/src/components/inputs/Input.d.ts +21 -0
- package/dist/types/src/components/inputs/NumberInput.d.ts +21 -0
- package/dist/types/src/components/inputs/PasswordInput.d.ts +17 -0
- package/dist/types/src/components/inputs/RadioGroup.d.ts +18 -0
- package/dist/types/src/components/inputs/SearchSelect.d.ts +24 -0
- package/dist/types/src/components/inputs/SearchTableSelect.d.ts +22 -0
- package/dist/types/src/components/inputs/Select.d.ts +18 -0
- package/dist/types/src/components/inputs/SelectOption.d.ts +4 -0
- package/dist/types/src/components/inputs/SmartDateInput.d.ts +35 -0
- package/dist/types/src/components/inputs/SmartDateInput.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SmartInput.d.ts +84 -0
- package/dist/types/src/components/inputs/SmartInput.test.d.ts +1 -0
- package/dist/types/src/components/inputs/SmartSelect.d.ts +77 -0
- package/dist/types/src/components/inputs/SmartSelect.test.d.ts +1 -0
- package/dist/types/src/components/inputs/TextArea.d.ts +19 -0
- package/dist/types/src/components/inputs/Toggle.d.ts +18 -0
- package/dist/types/src/components/inputs/Transfer.d.ts +10 -0
- package/dist/types/src/components/inputs/TreeSelect.d.ts +21 -0
- package/dist/types/src/components/inputs/YesNoSelect.d.ts +17 -0
- package/dist/types/src/components/inputs/fieldClassName.d.ts +8 -0
- package/dist/types/src/components/inputs/index.d.ts +37 -0
- package/dist/types/src/components/inputs/inputFocusTransition.d.ts +2 -0
- package/dist/types/src/components/inputs/passwordStrength.d.ts +7 -0
- package/dist/types/src/components/inputs/textareaClassName.d.ts +7 -0
- package/dist/types/src/components/inputs/treeSelectUtils.d.ts +9 -0
- package/dist/types/src/components/inputs/types-form.d.ts +12 -0
- package/dist/types/src/components/inputs/useAsyncOptions.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/CardRadioGroup.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/ColorInput.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/KeyValueInput.d.ts +16 -0
- package/dist/types/src/components/interactive-inputs/NumberStepper.d.ts +17 -0
- package/dist/types/src/components/interactive-inputs/ProgressBar.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/ProgressBarReadonly.d.ts +15 -0
- package/dist/types/src/components/interactive-inputs/RangeSliderInput.d.ts +20 -0
- package/dist/types/src/components/interactive-inputs/RatingInput.d.ts +16 -0
- package/dist/types/src/components/interactive-inputs/SliderInput.d.ts +19 -0
- package/dist/types/src/components/interactive-inputs/SortableList.d.ts +12 -0
- package/dist/types/src/components/interactive-inputs/TagsInput.d.ts +16 -0
- package/dist/types/src/components/interactive-inputs/index.d.ts +24 -0
- package/dist/types/src/components/interactive-inputs/interactiveUtils.d.ts +14 -0
- package/dist/types/src/components/interactive-inputs/types.d.ts +8 -0
- package/dist/types/src/components/layout/Accordion.d.ts +17 -0
- package/dist/types/src/components/layout/AppShell.d.ts +100 -0
- package/dist/types/src/components/layout/AppShell.test.d.ts +1 -0
- package/dist/types/src/components/layout/Breadcrumb.d.ts +14 -0
- package/dist/types/src/components/layout/DateWeekStrip.d.ts +12 -0
- package/dist/types/src/components/layout/FilterBar.d.ts +54 -0
- package/dist/types/src/components/layout/FormWizard.d.ts +11 -0
- package/dist/types/src/components/layout/HeightProvider.d.ts +7 -0
- package/dist/types/src/components/layout/ItineraryEditor.d.ts +20 -0
- package/dist/types/src/components/layout/LiveRouteBoard.d.ts +50 -0
- package/dist/types/src/components/layout/MaestroLayout.d.ts +15 -0
- package/dist/types/src/components/layout/MasterDetailLayout.d.ts +21 -0
- package/dist/types/src/components/layout/PageContainer.d.ts +8 -0
- package/dist/types/src/components/layout/PageHeader.d.ts +13 -0
- package/dist/types/src/components/layout/ScrollArea.d.ts +9 -0
- package/dist/types/src/components/layout/Separator.d.ts +6 -0
- package/dist/types/src/components/layout/SidePanel.d.ts +15 -0
- package/dist/types/src/components/layout/SidePanelContainer.d.ts +21 -0
- package/dist/types/src/components/layout/TablePageLayout.d.ts +9 -0
- package/dist/types/src/components/layout/Tabs.d.ts +17 -0
- package/dist/types/src/components/layout/UnitSelector.d.ts +14 -0
- package/dist/types/src/components/layout/Visibility.d.ts +10 -0
- package/dist/types/src/components/layout/WeekdayToggleStrip.d.ts +12 -0
- package/dist/types/src/components/layout/flotaLayout.test.d.ts +1 -0
- package/dist/types/src/components/layout/index.d.ts +40 -0
- package/dist/types/src/components/layout/transportApi.test.d.ts +1 -0
- package/dist/types/src/components/layout/useFormWizard.d.ts +40 -0
- package/dist/types/src/components/maps/base/MapFrame.d.ts +8 -0
- package/dist/types/src/components/maps/base/MapStatus.d.ts +5 -0
- package/dist/types/src/components/maps/base/index.d.ts +4 -0
- package/dist/types/src/components/maps/forms/AddressSearchInput.d.ts +16 -0
- package/dist/types/src/components/maps/forms/AreaInput.d.ts +7 -0
- package/dist/types/src/components/maps/forms/CoordinatesInput.d.ts +6 -0
- package/dist/types/src/components/maps/forms/LocationPicker.d.ts +16 -0
- package/dist/types/src/components/maps/forms/LocationPicker.test.d.ts +1 -0
- package/dist/types/src/components/maps/forms/RouteInput.d.ts +7 -0
- package/dist/types/src/components/maps/forms/ShapeInput.d.ts +19 -0
- package/dist/types/src/components/maps/forms/ShapeInput.test.d.ts +1 -0
- package/dist/types/src/components/maps/forms/SmartMapInput.d.ts +39 -0
- package/dist/types/src/components/maps/forms/SmartMapInput.test.d.ts +1 -0
- package/dist/types/src/components/maps/forms/index.d.ts +12 -0
- package/dist/types/src/components/maps/index.d.ts +3 -0
- package/dist/types/src/components/maps/renderers/google/GoogleMapRenderer.d.ts +6 -0
- package/dist/types/src/components/maps/renderers/google/index.d.ts +1 -0
- package/dist/types/src/components/maps/renderers/index.d.ts +2 -0
- package/dist/types/src/components/maps/renderers/leaflet/LeafletMapRenderer.d.ts +7 -0
- package/dist/types/src/components/maps/renderers/leaflet/index.d.ts +1 -0
- package/dist/types/src/components/maps/views/MapView.d.ts +9 -0
- package/dist/types/src/components/maps/views/index.d.ts +2 -0
- package/dist/types/src/components/media-inputs/FileDropInput.d.ts +21 -0
- package/dist/types/src/components/media-inputs/MultiPhotoInput.d.ts +20 -0
- package/dist/types/src/components/media-inputs/MultiPhotoInput.security.test.d.ts +1 -0
- package/dist/types/src/components/media-inputs/PhotoCropEditor.d.ts +9 -0
- package/dist/types/src/components/media-inputs/PhotoCropInput.d.ts +19 -0
- package/dist/types/src/components/media-inputs/PhotoInput.d.ts +1 -0
- package/dist/types/src/components/media-inputs/SignaturePad.d.ts +1 -0
- package/dist/types/src/components/media-inputs/SmartMediaInput.d.ts +43 -0
- package/dist/types/src/components/media-inputs/SmartMediaInput.test.d.ts +1 -0
- package/dist/types/src/components/media-inputs/cropImageFromArea.d.ts +7 -0
- package/dist/types/src/components/media-inputs/index.d.ts +13 -0
- package/dist/types/src/components/media-inputs/mediaUtils.d.ts +9 -0
- package/dist/types/src/components/media-inputs/types.d.ts +6 -0
- package/dist/types/src/components/overlays/CommandPalette.d.ts +17 -0
- package/dist/types/src/components/overlays/ConfirmDialog.d.ts +14 -0
- package/dist/types/src/components/overlays/ContextMenu.d.ts +15 -0
- package/dist/types/src/components/overlays/Drawer.d.ts +23 -0
- package/dist/types/src/components/overlays/DropdownMenu.d.ts +21 -0
- package/dist/types/src/components/overlays/MessageDialog.d.ts +11 -0
- package/dist/types/src/components/overlays/Modal.d.ts +31 -0
- package/dist/types/src/components/overlays/NotificationBell.d.ts +12 -0
- package/dist/types/src/components/overlays/OptionItem.d.ts +11 -0
- package/dist/types/src/components/overlays/Popover.d.ts +18 -0
- package/dist/types/src/components/overlays/ProductTour.d.ts +15 -0
- package/dist/types/src/components/overlays/QRView.d.ts +9 -0
- package/dist/types/src/components/overlays/TabMenuOption.d.ts +9 -0
- package/dist/types/src/components/overlays/Tooltip.d.ts +10 -0
- package/dist/types/src/components/overlays/index.d.ts +27 -0
- package/dist/types/src/components/range-inputs/DateRangeInput.d.ts +19 -0
- package/dist/types/src/components/range-inputs/DateRangeUtcInput.d.ts +3 -0
- package/dist/types/src/components/range-inputs/TimeRangeInput.d.ts +18 -0
- package/dist/types/src/components/range-inputs/index.d.ts +8 -0
- package/dist/types/src/components/range-inputs/rangeUtils.d.ts +8 -0
- package/dist/types/src/components/range-inputs/types.d.ts +10 -0
- package/dist/types/src/components/table/ActiveFiltersBar.d.ts +10 -0
- package/dist/types/src/components/table/AsyncCustomTable.d.ts +13 -0
- package/dist/types/src/components/table/CustomTable.d.ts +83 -0
- package/dist/types/src/components/table/EditableDataGrid.d.ts +15 -0
- package/dist/types/src/components/table/EditableDataGrid.test.d.ts +1 -0
- package/dist/types/src/components/table/ExpandableTableSection.d.ts +26 -0
- package/dist/types/src/components/table/PaginationRangeInput.d.ts +14 -0
- package/dist/types/src/components/table/TableColumnSettings.d.ts +13 -0
- package/dist/types/src/components/table/TableFiltersPanel.d.ts +17 -0
- package/dist/types/src/components/table/TableSortingPanel.d.ts +16 -0
- package/dist/types/src/components/table/activeFilterUtils.d.ts +9 -0
- package/dist/types/src/components/table/asyncStateStore.d.ts +6 -0
- package/dist/types/src/components/table/customTableController.d.ts +51 -0
- package/dist/types/src/components/table/index.d.ts +26 -0
- package/dist/types/src/components/table/tableFilters.d.ts +21 -0
- package/dist/types/src/components/table/useTableColumnSettings.d.ts +29 -0
- package/dist/types/src/components/visualization/NetworkLegend.d.ts +8 -0
- package/dist/types/src/components/visualization/NetworkMap.d.ts +19 -0
- package/dist/types/src/components/visualization/OrgTree.d.ts +20 -0
- package/dist/types/src/components/visualization/index.d.ts +9 -0
- package/dist/types/src/components/visualization/networkMapUtils.d.ts +32 -0
- package/dist/types/src/components/visualization/orgTreeUtils.d.ts +6 -0
- package/dist/types/src/components/visualization/types.d.ts +38 -0
- package/dist/types/src/constants/index.d.ts +1 -0
- package/dist/types/src/constants/maps/index.d.ts +8 -0
- package/dist/types/src/contracts/maps/index.d.ts +27 -0
- package/dist/types/src/engines/maps/google/googleMapEngine.d.ts +3 -0
- package/dist/types/src/engines/maps/google/index.d.ts +1 -0
- package/dist/types/src/engines/maps/index.d.ts +2 -0
- package/dist/types/src/engines/maps/leaflet/index.d.ts +1 -0
- package/dist/types/src/engines/maps/leaflet/leafletMapEngine.d.ts +3 -0
- package/dist/types/src/hooks/index.d.ts +11 -0
- package/dist/types/src/hooks/maps/index.d.ts +3 -0
- package/dist/types/src/hooks/maps/useAddressSearch.d.ts +7 -0
- package/dist/types/src/hooks/maps/useAddressSearch.test.d.ts +1 -0
- package/dist/types/src/hooks/maps/useMapEngine.d.ts +5 -0
- package/dist/types/src/hooks/maps/useMapsConfig.d.ts +1 -0
- package/dist/types/src/hooks/useArrayPaginator.d.ts +21 -0
- package/dist/types/src/hooks/useClickAway.d.ts +2 -0
- package/dist/types/src/hooks/useCustomForm.d.ts +26 -0
- package/dist/types/src/hooks/useFilterData.d.ts +10 -0
- package/dist/types/src/hooks/useIsClient.d.ts +2 -0
- package/dist/types/src/hooks/useMaestroFilter.d.ts +15 -0
- package/dist/types/src/hooks/useMaestroFilter.test.d.ts +1 -0
- package/dist/types/src/hooks/useQueryStringState.d.ts +2 -0
- package/dist/types/src/hooks/useStoredState.d.ts +2 -0
- package/dist/types/src/index.d.ts +24 -0
- package/dist/types/src/performance/catalogPhases.performance.test.d.ts +1 -0
- package/dist/types/src/performance/componentRender.performance.test.d.ts +1 -0
- package/dist/types/src/providers/SfProvider.d.ts +21 -0
- package/dist/types/src/providers/SfProvider.maps.test.d.ts +1 -0
- package/dist/types/src/providers/index.d.ts +2 -0
- package/dist/types/src/services/maps/distance/basicDistanceService.d.ts +2 -0
- package/dist/types/src/services/maps/distance/basicDistanceService.test.d.ts +1 -0
- package/dist/types/src/services/maps/distance/index.d.ts +1 -0
- package/dist/types/src/services/maps/geocoding/googleGeocodingService.d.ts +3 -0
- package/dist/types/src/services/maps/geocoding/index.d.ts +2 -0
- package/dist/types/src/services/maps/geocoding/nominatimGeocodingService.d.ts +2 -0
- package/dist/types/src/services/maps/googleMapsLoader.d.ts +66 -0
- package/dist/types/src/services/maps/index.d.ts +5 -0
- package/dist/types/src/services/maps/places/index.d.ts +1 -0
- package/dist/types/src/services/maps/places/mapsPlacesService.d.ts +2 -0
- package/dist/types/src/services/maps/routing/basicRouteService.d.ts +2 -0
- package/dist/types/src/services/maps/routing/basicRouteService.test.d.ts +1 -0
- package/dist/types/src/services/maps/routing/index.d.ts +1 -0
- package/dist/types/src/types/maps/index.d.ts +155 -0
- package/dist/types/src/utils/exportTableCsv.d.ts +11 -0
- package/dist/types/src/utils/exportTableXlsx.d.ts +5 -0
- package/dist/types/src/utils/index.d.ts +9 -0
- package/dist/types/src/utils/maps/geocoder.d.ts +8 -0
- package/dist/types/src/utils/maps/index.d.ts +10 -0
- package/dist/types/src/utils/maps/index.test.d.ts +1 -0
- package/dist/types/src/utils/queryParams.d.ts +3 -0
- package/dist/types/src/utils/resolveCssVar.d.ts +2 -0
- package/dist/types/src/utils/sanitizeRichHtml.d.ts +1 -0
- package/dist/types/src/utils/sanitizeRichHtml.test.d.ts +1 -0
- package/dist/types/src/utils/spreadsheetSanitizer.d.ts +1 -0
- package/dist/types/src/utils/spreadsheetSanitizer.test.d.ts +1 -0
- package/dist/types/src/utils/toStringArray.d.ts +1 -0
- package/dist/types/src/utils/validators.d.ts +52 -0
- package/package.json +128 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type QRViewProps = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
value: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const QRView: ({ open, onClose, value, title, size, ariaLabel, }: QRViewProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IconType } from 'react-icons';
|
|
3
|
+
export type TabMenuOptionProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode | IconType | string;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const TabMenuOption: ({ label, icon, selected, className }: TabMenuOptionProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
export type TooltipPlacement = "top" | "bottom" | "left" | "right";
|
|
3
|
+
export type TooltipProps = {
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
children: ReactElement;
|
|
6
|
+
placement?: TooltipPlacement;
|
|
7
|
+
className?: string;
|
|
8
|
+
contentClassName?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Tooltip: ({ content, children, placement, className, contentClassName, }: TooltipProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { Modal, useModal } from './Modal';
|
|
2
|
+
export type { ModalSize, OverlayHeaderVariant } from './Modal';
|
|
3
|
+
export type { ModalProps } from './Modal';
|
|
4
|
+
export { ConfirmDialog } from './ConfirmDialog';
|
|
5
|
+
export { MessageDialog } from './MessageDialog';
|
|
6
|
+
export type { MessageDialogProps, MessageDialogVariant } from './MessageDialog';
|
|
7
|
+
export { DropdownMenu, DropdownMenuItem, useDropdownClose } from './DropdownMenu';
|
|
8
|
+
export { OptionItem } from './OptionItem';
|
|
9
|
+
export type { OptionItemProps } from './OptionItem';
|
|
10
|
+
export { TabMenuOption } from './TabMenuOption';
|
|
11
|
+
export type { TabMenuOptionProps } from './TabMenuOption';
|
|
12
|
+
export { ContextMenuProvider, useContextMenu } from './ContextMenu';
|
|
13
|
+
export type { ContextMenuItem, ContextMenuItemDef, ContextMenuProviderProps } from './ContextMenu';
|
|
14
|
+
export { QRView } from './QRView';
|
|
15
|
+
export type { QRViewProps } from './QRView';
|
|
16
|
+
export { NotificationBell } from './NotificationBell';
|
|
17
|
+
export type { NotificationBellProps, NotificationItem } from './NotificationBell';
|
|
18
|
+
export { Tooltip } from './Tooltip';
|
|
19
|
+
export type { TooltipPlacement, TooltipProps } from './Tooltip';
|
|
20
|
+
export { Drawer, Sheet } from './Drawer';
|
|
21
|
+
export type { DrawerProps, DrawerSide, SheetProps } from './Drawer';
|
|
22
|
+
export { Popover } from './Popover';
|
|
23
|
+
export type { PopoverAlign, PopoverProps, PopoverSide } from './Popover';
|
|
24
|
+
export { CommandPalette } from './CommandPalette';
|
|
25
|
+
export type { CommandPaletteItem, CommandPaletteProps } from './CommandPalette';
|
|
26
|
+
export { ProductTour } from './ProductTour';
|
|
27
|
+
export type { ProductTourProps, ProductTourStep } from './ProductTour';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { DateRange } from './types';
|
|
3
|
+
export type DateRangeInputProps<TFormValues extends FieldValues> = {
|
|
4
|
+
form: UseFormReturn<TFormValues>;
|
|
5
|
+
name: Path<TFormValues>;
|
|
6
|
+
label?: string;
|
|
7
|
+
info?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
min?: string;
|
|
10
|
+
max?: string;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
small?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
utc?: boolean;
|
|
16
|
+
onChange?: (value: DateRange) => void;
|
|
17
|
+
onRefresh?: () => Promise<void> | void;
|
|
18
|
+
};
|
|
19
|
+
export declare const DateRangeInput: <TFormValues extends FieldValues>({ form, name, label, info, required, min, max, readOnly, disabled, small, className, utc, onChange, onRefresh, }: DateRangeInputProps<TFormValues>) => import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FieldValues, Path, UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { TimeRange } from './types';
|
|
3
|
+
type TimeRangeInputProps<TFormValues extends FieldValues> = {
|
|
4
|
+
form: UseFormReturn<TFormValues>;
|
|
5
|
+
name: Path<TFormValues>;
|
|
6
|
+
label?: string;
|
|
7
|
+
info?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
small?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
showDuration?: boolean;
|
|
14
|
+
onChange?: (value: TimeRange) => void;
|
|
15
|
+
onRefresh?: () => Promise<void> | void;
|
|
16
|
+
};
|
|
17
|
+
export declare const TimeRangeInput: <TFormValues extends FieldValues>({ form, name, label, info, required, readOnly, disabled, small, className, showDuration, onChange, onRefresh, }: TimeRangeInputProps<TFormValues>) => import("react").JSX.Element;
|
|
18
|
+
export type { TimeRangeInputProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { DateRangeInput } from './DateRangeInput';
|
|
2
|
+
export type { DateRangeInputProps } from './DateRangeInput';
|
|
3
|
+
export { DateRangeUtcInput } from './DateRangeUtcInput';
|
|
4
|
+
export { TimeRangeInput } from './TimeRangeInput';
|
|
5
|
+
export type { TimeRangeInputProps } from './TimeRangeInput';
|
|
6
|
+
export { toLocalDateYMD, isValidDateString, toUtcDateIso, fromUtcDateIso, normalizeDateRange, normalizeTimeRange, calcTimeDuration, } from './rangeUtils';
|
|
7
|
+
export { emptyDateRange, emptyTimeRange } from './types';
|
|
8
|
+
export type { DateRange, TimeRange } from './types';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DateRange, TimeRange } from './types';
|
|
2
|
+
export declare const toLocalDateYMD: (date?: Date) => string;
|
|
3
|
+
export declare const isValidDateString: (value: string) => boolean;
|
|
4
|
+
export declare const toUtcDateIso: (localDate: string) => string;
|
|
5
|
+
export declare const fromUtcDateIso: (iso: string) => string;
|
|
6
|
+
export declare const normalizeDateRange: (value: unknown) => DateRange;
|
|
7
|
+
export declare const normalizeTimeRange: (value: unknown) => TimeRange;
|
|
8
|
+
export declare const calcTimeDuration: (start: string, end: string) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ActiveFilterChip } from './activeFilterUtils';
|
|
2
|
+
export type ActiveFiltersBarProps = {
|
|
3
|
+
filters: ActiveFilterChip[];
|
|
4
|
+
onRemove: (id: string) => void;
|
|
5
|
+
onClearAll?: () => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
emptyLabel?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ActiveFiltersBar: ({ filters, onRemove, onClearAll, label, emptyLabel, className, }: ActiveFiltersBarProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
+
import { CustomTableProps } from './CustomTable';
|
|
4
|
+
type AsyncCustomTableProps<TData extends Record<string, unknown>> = Omit<CustomTableProps<TData>, "data" | "emptyMessage" | "loading" | "loadingMessage" | "isFetching" | "error" | "onRetry" | "onRefresh"> & {
|
|
5
|
+
queryKey: QueryKey;
|
|
6
|
+
queryFn: () => Promise<TData[]>;
|
|
7
|
+
queryOptions?: Omit<UseQueryOptions<TData[], Error, TData[], QueryKey>, "queryKey" | "queryFn">;
|
|
8
|
+
loadingMessage?: string;
|
|
9
|
+
errorMessage?: (error: Error) => ReactNode;
|
|
10
|
+
emptyMessage?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function AsyncCustomTable<TData extends Record<string, unknown>>({ queryKey, queryFn, queryOptions, loadingMessage, errorMessage, emptyMessage, ...tableProps }: AsyncCustomTableProps<TData>): import("react").JSX.Element;
|
|
13
|
+
export type { AsyncCustomTableProps };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IconType } from 'react-icons';
|
|
3
|
+
import { AggregationFn } from '@tanstack/react-table';
|
|
4
|
+
import { AsyncStateStore } from './asyncStateStore';
|
|
5
|
+
import { CustomTableController } from './customTableController';
|
|
6
|
+
export type TableHeaderVariant = "default" | "brand";
|
|
7
|
+
type BuiltInAggregation = "sum" | "min" | "max" | "mean" | "median" | "unique" | "uniqueCount" | "count";
|
|
8
|
+
type TableAggregation = BuiltInAggregation | AggregationFn<unknown>;
|
|
9
|
+
type CustomColumn<TData> = {
|
|
10
|
+
id?: string;
|
|
11
|
+
accessorKey?: Extract<keyof TData, string>;
|
|
12
|
+
header: ReactNode;
|
|
13
|
+
columns?: CustomColumn<TData>[];
|
|
14
|
+
cell?: (value: unknown, row: TData) => ReactNode;
|
|
15
|
+
aggregatedCell?: (value: unknown) => ReactNode;
|
|
16
|
+
aggregationFn?: TableAggregation;
|
|
17
|
+
enableGrouping?: boolean;
|
|
18
|
+
enableSorting?: boolean;
|
|
19
|
+
enableHiding?: boolean;
|
|
20
|
+
size?: number;
|
|
21
|
+
};
|
|
22
|
+
type CustomTableProps<TData extends Record<string, unknown>> = {
|
|
23
|
+
id?: string;
|
|
24
|
+
stateStore?: AsyncStateStore;
|
|
25
|
+
data: TData[];
|
|
26
|
+
columns: CustomColumn<TData>[];
|
|
27
|
+
grouping?: string[];
|
|
28
|
+
defaultGrouping?: string[];
|
|
29
|
+
enableGrouping?: boolean;
|
|
30
|
+
enableSorting?: boolean;
|
|
31
|
+
enableFiltering?: boolean;
|
|
32
|
+
enablePagination?: boolean;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
fillParentHeight?: boolean;
|
|
35
|
+
maxBodyHeightPx?: number;
|
|
36
|
+
className?: string;
|
|
37
|
+
emptyMessage?: string;
|
|
38
|
+
title?: ReactNode;
|
|
39
|
+
subtitle?: ReactNode;
|
|
40
|
+
sidePanel?: boolean;
|
|
41
|
+
onGroupingChange?: (grouping: string[]) => void;
|
|
42
|
+
toolbarSlot?: ReactNode | ((selectedRows: TData[], api: {
|
|
43
|
+
clearSelection: () => void;
|
|
44
|
+
}) => ReactNode);
|
|
45
|
+
belowToolbarSlot?: ReactNode | ((selectedRows: TData[], api: {
|
|
46
|
+
clearSelection: () => void;
|
|
47
|
+
}) => ReactNode);
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
loadingMessage?: string;
|
|
50
|
+
isFetching?: boolean;
|
|
51
|
+
error?: ReactNode;
|
|
52
|
+
onRetry?: () => void;
|
|
53
|
+
onRefresh?: () => void;
|
|
54
|
+
/** Clic en cualquier parte de una fila (excepto botones/enlaces internos). */
|
|
55
|
+
onRowClick?: (row: TData) => void;
|
|
56
|
+
enableRowSelection?: boolean;
|
|
57
|
+
getRowActions?: (row: TData) => Array<{
|
|
58
|
+
icon?: IconType;
|
|
59
|
+
label: string;
|
|
60
|
+
onSelect: (row: TData) => void;
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
}>;
|
|
63
|
+
getBulkActions?: (selectedRows: TData[], api: {
|
|
64
|
+
clearSelection: () => void;
|
|
65
|
+
}) => Array<{
|
|
66
|
+
icon?: ReactNode;
|
|
67
|
+
label: string;
|
|
68
|
+
onSelect: (selectedRows: TData[], api: {
|
|
69
|
+
clearSelection: () => void;
|
|
70
|
+
}) => void;
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
}>;
|
|
73
|
+
bulkActionsSlot?: (selectedRows: TData[], api: {
|
|
74
|
+
clearSelection: () => void;
|
|
75
|
+
}) => ReactNode;
|
|
76
|
+
onSelectionChange?: (selectedRows: TData[]) => void;
|
|
77
|
+
headerVariant?: TableHeaderVariant;
|
|
78
|
+
/** Oculta título, toolbar y chrome exterior — para uso dentro de ExpandableTableSection u otros contenedores. */
|
|
79
|
+
embedded?: boolean;
|
|
80
|
+
controller?: CustomTableController<TData>;
|
|
81
|
+
};
|
|
82
|
+
export declare function CustomTable<TData extends Record<string, unknown>>({ id, stateStore, data, columns, grouping, defaultGrouping, enableGrouping, enableSorting, enableFiltering, enablePagination, pageSize, fillParentHeight, maxBodyHeightPx, className, emptyMessage, title, subtitle, sidePanel, onGroupingChange, toolbarSlot, belowToolbarSlot, loading, loadingMessage, isFetching, error, onRetry, onRefresh, onRowClick, enableRowSelection, getRowActions, getBulkActions, bulkActionsSlot, onSelectionChange, headerVariant, embedded, controller, }: CustomTableProps<TData>): import("react").JSX.Element;
|
|
83
|
+
export type { CustomColumn, CustomTableProps, TableAggregation };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type EditableColumn<T extends Record<string, unknown>> = {
|
|
2
|
+
id: keyof T & string;
|
|
3
|
+
header: string;
|
|
4
|
+
editable?: boolean;
|
|
5
|
+
sortable?: boolean;
|
|
6
|
+
align?: "left" | "right";
|
|
7
|
+
};
|
|
8
|
+
export type EditableDataGridProps<T extends Record<string, unknown>> = {
|
|
9
|
+
data: T[];
|
|
10
|
+
columns: EditableColumn<T>[];
|
|
11
|
+
rowKey: keyof T & string;
|
|
12
|
+
onChange?: (next: T[]) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const EditableDataGrid: <T extends Record<string, unknown>>({ data, columns, rowKey, onChange, className, }: EditableDataGridProps<T>) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CustomColumn, TableHeaderVariant } from './CustomTable';
|
|
3
|
+
export type ExpandableTableSectionTableConfig<TData extends Record<string, unknown> = Record<string, unknown>> = {
|
|
4
|
+
data: TData[];
|
|
5
|
+
columns: CustomColumn<TData>[];
|
|
6
|
+
headerVariant?: TableHeaderVariant;
|
|
7
|
+
enablePagination?: boolean;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
emptyMessage?: string;
|
|
10
|
+
};
|
|
11
|
+
export type ExpandableTableSectionItem<TData extends Record<string, unknown> = Record<string, unknown>> = {
|
|
12
|
+
id: string;
|
|
13
|
+
header: ReactNode;
|
|
14
|
+
trailing?: ReactNode;
|
|
15
|
+
content?: ReactNode;
|
|
16
|
+
table?: ExpandableTableSectionTableConfig<TData>;
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type ExpandableTableSectionProps<TData extends Record<string, unknown> = Record<string, unknown>> = {
|
|
21
|
+
items: ExpandableTableSectionItem<TData>[];
|
|
22
|
+
type?: "single" | "multiple";
|
|
23
|
+
className?: string;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const ExpandableTableSection: <TData extends Record<string, unknown> = Record<string, unknown>>({ items, type, className, ariaLabel, }: ExpandableTableSectionProps<TData>) => import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React, RefCallback } from 'react';
|
|
2
|
+
export interface PaginationRangeData {
|
|
3
|
+
totalItems: number;
|
|
4
|
+
limitItems: number;
|
|
5
|
+
offsetItems: number;
|
|
6
|
+
}
|
|
7
|
+
type Props = {
|
|
8
|
+
pageData: PaginationRangeData;
|
|
9
|
+
maxItemsRange: number;
|
|
10
|
+
onChange?: (limit: number, offset: number) => void;
|
|
11
|
+
divRef?: RefCallback<HTMLDivElement>;
|
|
12
|
+
};
|
|
13
|
+
export declare const PaginationRangeInput: React.FC<Props>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TableColumnSettingsItem } from './useTableColumnSettings';
|
|
2
|
+
export type TableColumnSettingsProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
items: TableColumnSettingsItem[];
|
|
6
|
+
onReorder: (fromIndex: number, toIndex: number) => void;
|
|
7
|
+
onToggleVisibility: (id: string) => void;
|
|
8
|
+
onReset?: () => void;
|
|
9
|
+
title?: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const TableColumnSettings: ({ open, onClose, items, onReorder, onToggleVisibility, onReset, title, subtitle, className, }: TableColumnSettingsProps) => import('react').ReactPortal | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ColumnFiltersState, Table } from '@tanstack/react-table';
|
|
2
|
+
export type TableColumnMeta = {
|
|
3
|
+
id: string;
|
|
4
|
+
headerLabel: string;
|
|
5
|
+
};
|
|
6
|
+
type Props<TData extends Record<string, unknown>> = {
|
|
7
|
+
open: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
columnsMeta: TableColumnMeta[];
|
|
10
|
+
headerLabelById: Map<string, string>;
|
|
11
|
+
columnTypeById: Map<string, "number" | "boolean" | "string">;
|
|
12
|
+
columnFilters: ColumnFiltersState;
|
|
13
|
+
table: Table<TData>;
|
|
14
|
+
markUserEdit: () => void;
|
|
15
|
+
};
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SortingState, Table } from '@tanstack/react-table';
|
|
2
|
+
export type TableColumnMeta = {
|
|
3
|
+
id: string;
|
|
4
|
+
headerLabel: string;
|
|
5
|
+
};
|
|
6
|
+
type Props<TData extends Record<string, unknown>> = {
|
|
7
|
+
open: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
columnsMeta: TableColumnMeta[];
|
|
10
|
+
headerLabelById: Map<string, string>;
|
|
11
|
+
sorting: SortingState;
|
|
12
|
+
table: Table<TData>;
|
|
13
|
+
markUserEdit: () => void;
|
|
14
|
+
};
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColumnFiltersState } from '@tanstack/react-table';
|
|
2
|
+
import { ColumnFilterValue } from './tableFilters';
|
|
3
|
+
export type ActiveFilterChip = {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
valueLabel: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const formatColumnFilterValue: (filter: ColumnFilterValue) => string;
|
|
9
|
+
export declare const buildActiveFilterChips: (columnFilters: ColumnFiltersState, headerLabelById: Map<string, string> | Record<string, string>) => ActiveFilterChip[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type AsyncStateStore = {
|
|
2
|
+
getItem: (key: string) => Promise<string | null>;
|
|
3
|
+
setItem: (key: string, value: string) => Promise<void>;
|
|
4
|
+
removeItem?: (key: string) => Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
export declare const createLocalStorageAsyncStateStore: (storage?: Storage) => AsyncStateStore;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
type SelectRowFn<T> = (row: T | T[]) => void;
|
|
2
|
+
type SelectedRowsFn<T> = () => T[];
|
|
3
|
+
type RegisterProps<T> = {
|
|
4
|
+
selection?: {
|
|
5
|
+
selectRowFn: SelectRowFn<T>;
|
|
6
|
+
cleanSelectionFn: () => void;
|
|
7
|
+
getSelectedRowsFn: SelectedRowsFn<T>;
|
|
8
|
+
};
|
|
9
|
+
row?: {
|
|
10
|
+
selectRowFn: (row: T) => void;
|
|
11
|
+
cleanSelectionFn: () => void;
|
|
12
|
+
getSelectedRowFn: () => T | undefined;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
type SelectionController<T> = {
|
|
16
|
+
appendSelectRows: (rows: T | T[]) => void;
|
|
17
|
+
replaceSelection: (rows: T | T[]) => void;
|
|
18
|
+
cleanSelection: () => void;
|
|
19
|
+
getSelectedRows: () => T[];
|
|
20
|
+
};
|
|
21
|
+
type RowController<T> = {
|
|
22
|
+
selectRow: (row: T) => void;
|
|
23
|
+
replaceSelection: (row: T) => void;
|
|
24
|
+
cleanSelection: () => void;
|
|
25
|
+
getSelectedRow: () => T | undefined;
|
|
26
|
+
};
|
|
27
|
+
export type CustomTableController<T> = {
|
|
28
|
+
register: (props: RegisterProps<T>) => void;
|
|
29
|
+
selection: SelectionController<T>;
|
|
30
|
+
row: RowController<T>;
|
|
31
|
+
};
|
|
32
|
+
export type CustomTableControllerInternal<T> = {
|
|
33
|
+
events: {
|
|
34
|
+
selection: {
|
|
35
|
+
changeRowsSelection: (rows: T[]) => void;
|
|
36
|
+
};
|
|
37
|
+
row: {
|
|
38
|
+
changeRowSelection: (row?: T) => void;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
register: (props: RegisterProps<T>) => void;
|
|
42
|
+
} & CustomTableController<T>;
|
|
43
|
+
export declare const useCustomTableController: <TData>(props?: {
|
|
44
|
+
selection?: {
|
|
45
|
+
onChange?: (rows: TData[]) => void;
|
|
46
|
+
};
|
|
47
|
+
row?: {
|
|
48
|
+
onChange?: (row?: TData) => void;
|
|
49
|
+
};
|
|
50
|
+
}) => CustomTableController<TData>;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { CustomTable } from './CustomTable';
|
|
2
|
+
export type { CustomColumn, CustomTableProps, TableHeaderVariant } from './CustomTable';
|
|
3
|
+
export { AsyncCustomTable } from './AsyncCustomTable';
|
|
4
|
+
export type { AsyncCustomTableProps } from './AsyncCustomTable';
|
|
5
|
+
export { PaginationRangeInput } from './PaginationRangeInput';
|
|
6
|
+
export type { PaginationRangeData } from './PaginationRangeInput';
|
|
7
|
+
export { TableFiltersPanel } from './TableFiltersPanel';
|
|
8
|
+
export { TableSortingPanel } from './TableSortingPanel';
|
|
9
|
+
export { createLocalStorageAsyncStateStore } from './asyncStateStore';
|
|
10
|
+
export type { AsyncStateStore } from './asyncStateStore';
|
|
11
|
+
export { useCustomTableController } from './customTableController';
|
|
12
|
+
export type { CustomTableController } from './customTableController';
|
|
13
|
+
export { columnFilterFn, inferInitialFilterValue, isColumnFilterValue, STRING_FILTER_OPS, NUMBER_FILTER_OPS, } from './tableFilters';
|
|
14
|
+
export type { ColumnFilterValue, StringFilterOp, NumberFilterOp } from './tableFilters';
|
|
15
|
+
export { useTableColumnSettings } from './useTableColumnSettings';
|
|
16
|
+
export type { TableColumnDef, TableColumnSettingsItem, UseTableColumnSettingsOptions, } from './useTableColumnSettings';
|
|
17
|
+
export { TableColumnSettings } from './TableColumnSettings';
|
|
18
|
+
export type { TableColumnSettingsProps } from './TableColumnSettings';
|
|
19
|
+
export { ActiveFiltersBar } from './ActiveFiltersBar';
|
|
20
|
+
export type { ActiveFiltersBarProps } from './ActiveFiltersBar';
|
|
21
|
+
export { buildActiveFilterChips, formatColumnFilterValue } from './activeFilterUtils';
|
|
22
|
+
export type { ActiveFilterChip } from './activeFilterUtils';
|
|
23
|
+
export { EditableDataGrid } from './EditableDataGrid';
|
|
24
|
+
export type { EditableColumn, EditableDataGridProps } from './EditableDataGrid';
|
|
25
|
+
export { ExpandableTableSection } from './ExpandableTableSection';
|
|
26
|
+
export type { ExpandableTableSectionItem, ExpandableTableSectionProps, ExpandableTableSectionTableConfig, } from './ExpandableTableSection';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Row } from '@tanstack/react-table';
|
|
2
|
+
export declare const STRING_FILTER_OPS: readonly ["contains", "equals", "notContains", "startsWith", "endsWith"];
|
|
3
|
+
export type StringFilterOp = (typeof STRING_FILTER_OPS)[number];
|
|
4
|
+
export declare const NUMBER_FILTER_OPS: readonly ["eq", "gt", "gte", "lt", "lte"];
|
|
5
|
+
export type NumberFilterOp = (typeof NUMBER_FILTER_OPS)[number];
|
|
6
|
+
export type ColumnFilterValue = {
|
|
7
|
+
type: "string";
|
|
8
|
+
op: StringFilterOp;
|
|
9
|
+
value: string;
|
|
10
|
+
} | {
|
|
11
|
+
type: "number";
|
|
12
|
+
op: NumberFilterOp;
|
|
13
|
+
value: number | null;
|
|
14
|
+
} | {
|
|
15
|
+
type: "boolean";
|
|
16
|
+
op: "is";
|
|
17
|
+
value: boolean | null;
|
|
18
|
+
};
|
|
19
|
+
export declare const isColumnFilterValue: (value: unknown) => value is ColumnFilterValue;
|
|
20
|
+
export declare const inferInitialFilterValue: (inferredType: "number" | "boolean" | "string") => ColumnFilterValue;
|
|
21
|
+
export declare function columnFilterFn<TData extends Record<string, unknown>>(row: Row<TData>, columnId: string, filterValue: ColumnFilterValue): boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ColumnOrderState, VisibilityState } from '@tanstack/react-table';
|
|
2
|
+
export type TableColumnDef = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
canHide?: boolean;
|
|
6
|
+
defaultVisible?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type TableColumnSettingsItem = {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
visible: boolean;
|
|
12
|
+
canHide: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type UseTableColumnSettingsOptions = {
|
|
15
|
+
columns: TableColumnDef[];
|
|
16
|
+
defaultOrder?: string[];
|
|
17
|
+
persistKey?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const useTableColumnSettings: ({ columns, defaultOrder, persistKey, }: UseTableColumnSettingsOptions) => {
|
|
20
|
+
columnOrder: string[];
|
|
21
|
+
columnVisibility: VisibilityState;
|
|
22
|
+
setColumnOrder: import('react').Dispatch<import('react').SetStateAction<ColumnOrderState>>;
|
|
23
|
+
setColumnVisibility: import('react').Dispatch<import('react').SetStateAction<VisibilityState>>;
|
|
24
|
+
items: TableColumnSettingsItem[];
|
|
25
|
+
toggleVisibility: (id: string) => void;
|
|
26
|
+
setVisible: (id: string, visible: boolean) => void;
|
|
27
|
+
reorder: (fromIndex: number, toIndex: number) => void;
|
|
28
|
+
reset: () => void;
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NetworkEdge, NetworkNode } from './types';
|
|
2
|
+
export type NetworkLegendProps = {
|
|
3
|
+
nodes: NetworkNode[];
|
|
4
|
+
edges?: NetworkEdge[];
|
|
5
|
+
placement?: "bottom-left" | "bottom-right";
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const NetworkLegend: ({ nodes, edges, placement, className, }: NetworkLegendProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LatLngExpression } from 'leaflet';
|
|
2
|
+
import { NetworkBasemap, NetworkEdge, NetworkNode } from './types';
|
|
3
|
+
export type NetworkMapProps = {
|
|
4
|
+
nodes: NetworkNode[];
|
|
5
|
+
edges?: NetworkEdge[];
|
|
6
|
+
center?: LatLngExpression;
|
|
7
|
+
zoom?: number;
|
|
8
|
+
height?: number | string;
|
|
9
|
+
selectedNodeId?: string;
|
|
10
|
+
onNodeClick?: (node: NetworkNode) => void;
|
|
11
|
+
showLegend?: boolean;
|
|
12
|
+
fitBoundsToNodes?: boolean;
|
|
13
|
+
basemap?: NetworkBasemap;
|
|
14
|
+
onBasemapChange?: (basemap: NetworkBasemap) => void;
|
|
15
|
+
showBasemapSwitcher?: boolean;
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
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;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { OrgTreeNode, OrgTreeNodeRow, OrgTreeTheme } from './types';
|
|
3
|
+
export type OrgTreeProps<T extends OrgTreeNode = OrgTreeNode> = {
|
|
4
|
+
nodes: T[];
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
error?: Error | null;
|
|
9
|
+
onRefresh?: () => void;
|
|
10
|
+
canEdit?: boolean;
|
|
11
|
+
onAddNode?: (parent?: OrgTreeNodeRow<T>) => void;
|
|
12
|
+
onEditNode?: (node: OrgTreeNodeRow<T>) => void;
|
|
13
|
+
onDeleteNode?: (node: OrgTreeNodeRow<T>) => void;
|
|
14
|
+
showLegend?: boolean;
|
|
15
|
+
themes?: Record<string, OrgTreeTheme>;
|
|
16
|
+
onRenderNode?: (node: OrgTreeNodeRow<T>) => ReactNode;
|
|
17
|
+
maxHeight?: number | string;
|
|
18
|
+
className?: string;
|
|
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("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { OrgTree } from './OrgTree';
|
|
2
|
+
export type { OrgTreeProps } from './OrgTree';
|
|
3
|
+
export { NetworkMap } from './NetworkMap';
|
|
4
|
+
export type { NetworkMapProps } from './NetworkMap';
|
|
5
|
+
export { NetworkLegend } from './NetworkLegend';
|
|
6
|
+
export type { NetworkLegendProps } from './NetworkLegend';
|
|
7
|
+
export { ORG_TREE_DEFAULT_THEMES, buildOrgTreeRows, resolveOrgTreeTheme, countOrgTreeNodes, orgTreeRootNodes, } from './orgTreeUtils';
|
|
8
|
+
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
|
+
export type { OrgTreeNode, OrgTreeNodeRow, OrgTreeTheme, NetworkNode, NetworkEdge, NetworkNodeStatus, NetworkNodeKind, NetworkBasemap, NetworkEdgeType, } from './types';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LatLngBoundsExpression, LatLngExpression } from 'leaflet';
|
|
2
|
+
import { NetworkEdge, NetworkEdgeType, NetworkNode, NetworkNodeKind, NetworkNodeStatus } from './types';
|
|
3
|
+
export declare const NETWORK_BASEMAPS: {
|
|
4
|
+
readonly street: {
|
|
5
|
+
readonly url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
6
|
+
readonly attribution: "© <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>";
|
|
7
|
+
};
|
|
8
|
+
readonly satellite: {
|
|
9
|
+
readonly url: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}";
|
|
10
|
+
readonly attribution: "Tiles © Esri — Source: Esri, Maxar, Earthstar Geographics, and the GIS User Community";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const NETWORK_KIND_LABELS: Record<NetworkNodeKind, string>;
|
|
14
|
+
export declare const NETWORK_KIND_COLORS: Record<NetworkNodeKind, string>;
|
|
15
|
+
export declare const NETWORK_STATUS_COLORS: Record<NetworkNodeStatus, string>;
|
|
16
|
+
export declare const NETWORK_STATUS_LABELS: Record<NetworkNodeStatus, string>;
|
|
17
|
+
export declare const NETWORK_EDGE_STYLES: Record<NetworkEdgeType, {
|
|
18
|
+
color: string;
|
|
19
|
+
weight: number;
|
|
20
|
+
dashArray?: string;
|
|
21
|
+
}>;
|
|
22
|
+
/** Resuelve `var(--sf-*)` para APIs que no aceptan variables CSS (p. ej. Leaflet SVG). */
|
|
23
|
+
export declare const resolveNetworkColor: (value: string, fallback?: string) => string;
|
|
24
|
+
export declare const normalizeNetworkNodes: (value: unknown) => NetworkNode[];
|
|
25
|
+
export declare const normalizeNetworkEdges: (value: unknown) => NetworkEdge[];
|
|
26
|
+
export declare const countNetworkStatus: (nodes: NetworkNode[]) => Record<NetworkNodeStatus, number>;
|
|
27
|
+
export declare const networkMapBounds: (nodes: NetworkNode[]) => LatLngBoundsExpression | null;
|
|
28
|
+
export declare const networkNodePositions: (nodes: NetworkNode[]) => Record<string, LatLngExpression>;
|
|
29
|
+
export declare const networkEdgeLines: (edges: NetworkEdge[], positions: Record<string, LatLngExpression>) => Array<{
|
|
30
|
+
edge: NetworkEdge;
|
|
31
|
+
line: LatLngExpression[];
|
|
32
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OrgTreeNode, OrgTreeNodeRow, OrgTreeTheme } from './types';
|
|
2
|
+
export declare const ORG_TREE_DEFAULT_THEMES: Record<string, OrgTreeTheme>;
|
|
3
|
+
export declare const buildOrgTreeRows: <T extends OrgTreeNode>(nodes: T[]) => OrgTreeNodeRow<T>[];
|
|
4
|
+
export declare const resolveOrgTreeTheme: (type: string, themes?: Record<string, OrgTreeTheme>) => OrgTreeTheme | null;
|
|
5
|
+
export declare const countOrgTreeNodes: (nodes: OrgTreeNode[]) => number;
|
|
6
|
+
export declare const orgTreeRootNodes: (nodes: OrgTreeNode[]) => OrgTreeNode[];
|