@vuu-ui/vuu-data-react 0.13.45 → 0.13.46
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/cjs/data-editing/get-data-item-edit-control.js +30 -13
- package/cjs/data-editing/get-data-item-edit-control.js.map +1 -1
- package/cjs/hooks/useRemoteConnection.js +58 -0
- package/cjs/hooks/useRemoteConnection.js.map +1 -0
- package/cjs/hooks/useVuuMenuActions.js +5 -4
- package/cjs/hooks/useVuuMenuActions.js.map +1 -1
- package/cjs/index.js +4 -2
- package/cjs/index.js.map +1 -1
- package/cjs/lost-connection-indicator/LostConnectionIndicator.css.js +6 -0
- package/cjs/lost-connection-indicator/LostConnectionIndicator.css.js.map +1 -0
- package/cjs/lost-connection-indicator/LostConnectionIndicator.js +24 -0
- package/cjs/lost-connection-indicator/LostConnectionIndicator.js.map +1 -0
- package/esm/data-editing/get-data-item-edit-control.js +30 -13
- package/esm/data-editing/get-data-item-edit-control.js.map +1 -1
- package/esm/hooks/useRemoteConnection.js +56 -0
- package/esm/hooks/useRemoteConnection.js.map +1 -0
- package/esm/hooks/useVuuMenuActions.js +5 -4
- package/esm/hooks/useVuuMenuActions.js.map +1 -1
- package/esm/index.js +2 -1
- package/esm/index.js.map +1 -1
- package/esm/lost-connection-indicator/LostConnectionIndicator.css.js +4 -0
- package/esm/lost-connection-indicator/LostConnectionIndicator.css.js.map +1 -0
- package/esm/lost-connection-indicator/LostConnectionIndicator.js +22 -0
- package/esm/lost-connection-indicator/LostConnectionIndicator.js.map +1 -0
- package/package.json +15 -14
- package/types/vuu-context-menu/src/ContextMenu.d.ts +10 -0
- package/types/vuu-context-menu/src/ContextMenuProvider.d.ts +16 -0
- package/types/vuu-context-menu/src/index.d.ts +3 -0
- package/types/vuu-context-menu/src/menu-utils.d.ts +17 -0
- package/types/vuu-context-menu/src/useContextMenu.d.ts +10 -0
- package/types/{data-editing → vuu-data-react/src/data-editing}/get-data-item-edit-control.d.ts +9 -1
- package/types/{hooks → vuu-data-react/src/hooks}/index.d.ts +0 -1
- package/types/vuu-data-react/src/hooks/useConnectionStatus.d.ts +6 -0
- package/types/vuu-data-react/src/hooks/useRemoteConnection.d.ts +6 -0
- package/types/{index.d.ts → vuu-data-react/src/index.d.ts} +2 -0
- package/types/vuu-data-react/src/lost-connection-indicator/LostConnectionIndicator.d.ts +1 -0
- package/types/vuu-popups/src/index.d.ts +5 -0
- package/types/vuu-popups/src/notifications/NotificationsCenter.d.ts +5 -0
- package/types/vuu-popups/src/notifications/NotificationsContext.d.ts +36 -0
- package/types/vuu-popups/src/notifications/NotificationsProvider.d.ts +9 -0
- package/types/vuu-popups/src/notifications/ToastNotification.d.ts +7 -0
- package/types/vuu-popups/src/notifications/WorkspaceNotification.d.ts +5 -0
- package/types/vuu-popups/src/notifications/index.d.ts +3 -0
- package/types/vuu-popups/src/popup/Popup.d.ts +12 -0
- package/types/vuu-popups/src/popup/getPositionRelativeToAnchor.d.ts +19 -0
- package/types/vuu-popups/src/popup/index.d.ts +2 -0
- package/types/vuu-popups/src/popup/useAnchoredPosition.d.ts +7 -0
- package/types/vuu-popups/src/popup-menu/PopupMenu.d.ts +45 -0
- package/types/vuu-popups/src/popup-menu/index.d.ts +1 -0
- package/types/vuu-popups/src/popup-menu/usePopupMenu.d.ts +19 -0
- package/types/vuu-popups/src/portal/Portal.d.ts +42 -0
- package/types/vuu-popups/src/portal/index.d.ts +1 -0
- package/types/vuu-popups/src/tooltip/Tooltip.d.ts +15 -0
- package/types/vuu-popups/src/tooltip/index.d.ts +2 -0
- package/types/vuu-popups/src/tooltip/useTooltip.d.ts +19 -0
- package/types/vuu-popups/src/tooltip/useTooltipAnchoredPosition.d.ts +7 -0
- package/types/vuu-ui-controls/src/calendar/Calendar.d.ts +13 -0
- package/types/vuu-ui-controls/src/calendar/index.d.ts +4 -0
- package/types/vuu-ui-controls/src/calendar/internal/CalendarCarousel.d.ts +3 -0
- package/types/vuu-ui-controls/src/calendar/internal/CalendarContext.d.ts +8 -0
- package/types/vuu-ui-controls/src/calendar/internal/CalendarDay.d.ts +14 -0
- package/types/vuu-ui-controls/src/calendar/internal/CalendarMonth.d.ts +10 -0
- package/types/vuu-ui-controls/src/calendar/internal/CalendarNavigation.d.ts +16 -0
- package/types/vuu-ui-controls/src/calendar/internal/CalendarWeekHeader.d.ts +3 -0
- package/types/vuu-ui-controls/src/calendar/internal/useFocusManagement.d.ts +9 -0
- package/types/vuu-ui-controls/src/calendar/internal/utils.d.ts +15 -0
- package/types/vuu-ui-controls/src/calendar/useCalendar.d.ts +54 -0
- package/types/vuu-ui-controls/src/calendar/useCalendarDay.d.ts +22 -0
- package/types/vuu-ui-controls/src/calendar/useSelection.d.ts +78 -0
- package/types/vuu-ui-controls/src/column-picker/ColumnPicker.d.ts +7 -0
- package/types/vuu-ui-controls/src/column-picker/ColumnSearch.d.ts +12 -0
- package/types/vuu-ui-controls/src/column-picker/index.d.ts +2 -0
- package/types/vuu-ui-controls/src/common-hooks/index.d.ts +3 -0
- package/types/vuu-ui-controls/src/common-hooks/selectionTypes.d.ts +70 -0
- package/types/vuu-ui-controls/src/common-hooks/use-resize-observer.d.ts +16 -0
- package/types/vuu-ui-controls/src/common-hooks/useControlled.d.ts +24 -0
- package/types/vuu-ui-controls/src/context-panel-provider/ContextPanelProvider.d.ts +17 -0
- package/types/vuu-ui-controls/src/cycle-state-button/CycleStateButton.d.ts +11 -0
- package/types/vuu-ui-controls/src/cycle-state-button/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/date-input/DateInput.d.ts +60 -0
- package/types/vuu-ui-controls/src/date-input/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/date-picker/DatePicker.d.ts +66 -0
- package/types/vuu-ui-controls/src/date-picker/DatePickerContext.d.ts +19 -0
- package/types/vuu-ui-controls/src/date-picker/DatePickerPanel.d.ts +10 -0
- package/types/vuu-ui-controls/src/date-picker/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/drag-drop/DragDropProvider.d.ts +38 -0
- package/types/vuu-ui-controls/src/drag-drop/DragDropState.d.ts +15 -0
- package/types/vuu-ui-controls/src/drag-drop/Draggable.d.ts +13 -0
- package/types/vuu-ui-controls/src/drag-drop/dragDropTypes.d.ts +100 -0
- package/types/vuu-ui-controls/src/drag-drop/drop-target-utils.d.ts +82 -0
- package/types/vuu-ui-controls/src/drag-drop/index.d.ts +6 -0
- package/types/vuu-ui-controls/src/drag-drop/useAutoScroll.d.ts +11 -0
- package/types/vuu-ui-controls/src/drag-drop/useDragDisplacers.d.ts +17 -0
- package/types/vuu-ui-controls/src/drag-drop/useDragDrop.d.ts +2 -0
- package/types/vuu-ui-controls/src/drag-drop/useDragDropCopy.d.ts +6 -0
- package/types/vuu-ui-controls/src/drag-drop/useDragDropIndicator.d.ts +2 -0
- package/types/vuu-ui-controls/src/drag-drop/useDragDropNaturalMovement.d.ts +2 -0
- package/types/vuu-ui-controls/src/drag-drop/useDropIndicator.d.ts +8 -0
- package/types/vuu-ui-controls/src/drag-drop/useGlobalDragDrop.d.ts +11 -0
- package/types/vuu-ui-controls/src/editable/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/editable/useEditableText.d.ts +19 -0
- package/types/vuu-ui-controls/src/editable-label/EditableLabel.d.ts +19 -0
- package/types/vuu-ui-controls/src/editable-label/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/expando-input/ExpandoInput.d.ts +6 -0
- package/types/vuu-ui-controls/src/expando-input/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/icon-button/Icon.d.ts +6 -0
- package/types/vuu-ui-controls/src/icon-button/IconButton.d.ts +6 -0
- package/types/vuu-ui-controls/src/icon-button/ToggleIconButton.d.ts +5 -0
- package/types/vuu-ui-controls/src/icon-button/index.d.ts +3 -0
- package/types/vuu-ui-controls/src/index.d.ts +30 -0
- package/types/vuu-ui-controls/src/instrument-picker/TablePicker.d.ts +10 -0
- package/types/vuu-ui-controls/src/instrument-picker/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/instrument-picker/useTablePicker.d.ts +47 -0
- package/types/vuu-ui-controls/src/measured-container/MeasuredContainer.d.ts +14 -0
- package/types/vuu-ui-controls/src/measured-container/index.d.ts +2 -0
- package/types/vuu-ui-controls/src/measured-container/useMeasuredContainer.d.ts +23 -0
- package/types/vuu-ui-controls/src/measured-container/useResizeObserver.d.ts +15 -0
- package/types/vuu-ui-controls/src/modal-provider/ModalProvider.d.ts +13 -0
- package/types/vuu-ui-controls/src/overflow-container/OverflowContainer.d.ts +15 -0
- package/types/vuu-ui-controls/src/overflow-container/index.d.ts +2 -0
- package/types/vuu-ui-controls/src/overflow-container/overflow-utils.d.ts +48 -0
- package/types/vuu-ui-controls/src/overflow-container/useOverflowContainer.d.ts +19 -0
- package/types/vuu-ui-controls/src/price-ticker/PriceTicker.d.ts +7 -0
- package/types/vuu-ui-controls/src/price-ticker/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/prompt/Prompt.d.ts +48 -0
- package/types/vuu-ui-controls/src/sortable-list/SortableList.d.ts +8 -0
- package/types/vuu-ui-controls/src/split-button/SplitButton.d.ts +11 -0
- package/types/vuu-ui-controls/src/split-button/SplitStateButton.d.ts +5 -0
- package/types/vuu-ui-controls/src/split-button/index.d.ts +2 -0
- package/types/vuu-ui-controls/src/split-button/useSplitButton.d.ts +311 -0
- package/types/vuu-ui-controls/src/table-search/SearchCell.d.ts +2 -0
- package/types/vuu-ui-controls/src/table-search/TableSearch.d.ts +9 -0
- package/types/vuu-ui-controls/src/table-search/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/table-search/useTableSearch.d.ts +15 -0
- package/types/vuu-ui-controls/src/tabs-next/TabBar.d.ts +12 -0
- package/types/vuu-ui-controls/src/tabs-next/TabListNext.d.ts +12 -0
- package/types/vuu-ui-controls/src/tabs-next/TabNext.d.ts +12 -0
- package/types/vuu-ui-controls/src/tabs-next/TabNextAction.d.ts +5 -0
- package/types/vuu-ui-controls/src/tabs-next/TabNextContext.d.ts +12 -0
- package/types/vuu-ui-controls/src/tabs-next/TabNextPanel.d.ts +8 -0
- package/types/vuu-ui-controls/src/tabs-next/TabNextTrigger.d.ts +5 -0
- package/types/vuu-ui-controls/src/tabs-next/TabOverflowList.d.ts +11 -0
- package/types/vuu-ui-controls/src/tabs-next/TabsNext.d.ts +17 -0
- package/types/vuu-ui-controls/src/tabs-next/TabsNextContext.d.ts +21 -0
- package/types/vuu-ui-controls/src/tabs-next/hooks/useCollection.d.ts +18 -0
- package/types/vuu-ui-controls/src/tabs-next/hooks/useFocusOutside.d.ts +2 -0
- package/types/vuu-ui-controls/src/tabs-next/hooks/useOverflow.d.ts +11 -0
- package/types/vuu-ui-controls/src/tabs-next/index.d.ts +7 -0
- package/types/vuu-ui-controls/src/tabstrip/Tab.d.ts +27 -0
- package/types/vuu-ui-controls/src/tabstrip/TabMenu.d.ts +23 -0
- package/types/vuu-ui-controls/src/tabstrip/TabMenuOptions.d.ts +10 -0
- package/types/vuu-ui-controls/src/tabstrip/TabsTypes.d.ts +127 -0
- package/types/vuu-ui-controls/src/tabstrip/Tabstrip.d.ts +2 -0
- package/types/vuu-ui-controls/src/tabstrip/index.d.ts +5 -0
- package/types/vuu-ui-controls/src/tabstrip/tabstrip-dom-utils.d.ts +2 -0
- package/types/vuu-ui-controls/src/tabstrip/useAnimatedSelectionThumb.d.ts +7 -0
- package/types/vuu-ui-controls/src/tabstrip/useKeyboardNavigation.d.ts +29 -0
- package/types/vuu-ui-controls/src/tabstrip/useSelection.d.ts +13 -0
- package/types/vuu-ui-controls/src/tabstrip/useTabstrip.d.ts +55 -0
- package/types/vuu-ui-controls/src/time-input/MaskedInput.d.ts +49 -0
- package/types/vuu-ui-controls/src/time-input/TimeInput.d.ts +5 -0
- package/types/vuu-ui-controls/src/time-input/useTimeInput.d.ts +21 -0
- package/types/vuu-ui-controls/src/toolbar/Toolbar.d.ts +19 -0
- package/types/vuu-ui-controls/src/toolbar/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/toolbar/toolbar-dom-utils.d.ts +3 -0
- package/types/vuu-ui-controls/src/toolbar/useKeyboardNavigation.d.ts +32 -0
- package/types/vuu-ui-controls/src/toolbar/useSelection.d.ts +22 -0
- package/types/vuu-ui-controls/src/toolbar/useToolbar.d.ts +28 -0
- package/types/vuu-ui-controls/src/utils/deprecated-types.d.ts +2 -0
- package/types/vuu-ui-controls/src/utils/escapeRegExp.d.ts +1 -0
- package/types/vuu-ui-controls/src/utils/forwardCallbackProps.d.ts +3 -0
- package/types/vuu-ui-controls/src/utils/index.d.ts +5 -0
- package/types/vuu-ui-controls/src/utils/isOverflowElement.d.ts +1 -0
- package/types/vuu-ui-controls/src/utils/isPlainObject.d.ts +1 -0
- package/types/vuu-ui-controls/src/vuu-date-picker/VuuDatePicker.d.ts +7 -0
- package/types/vuu-ui-controls/src/vuu-date-picker/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/vuu-input/VuuInput.d.ts +18 -0
- package/types/vuu-ui-controls/src/vuu-input/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/vuu-time-picker/VuuTimePicker.d.ts +7 -0
- package/types/vuu-ui-controls/src/vuu-typeahead-input/VuuTypeaheadInput.d.ts +6 -0
- package/types/vuu-ui-controls/src/vuu-typeahead-input/index.d.ts +1 -0
- package/types/vuu-ui-controls/src/vuu-typeahead-input/useVuuTypeaheadInput.d.ts +49 -0
- package/types/vuu-utils/src/Clock.d.ts +20 -0
- package/types/vuu-utils/src/DataWindow.d.ts +39 -0
- package/types/vuu-utils/src/ShellContext.d.ts +11 -0
- package/types/vuu-utils/src/ThemeProvider.d.ts +32 -0
- package/types/vuu-utils/src/array-utils.d.ts +8 -0
- package/types/vuu-utils/src/box-utils.d.ts +24 -0
- package/types/vuu-utils/src/broadcast-channel.d.ts +16 -0
- package/types/vuu-utils/src/column-utils.d.ts +181 -0
- package/types/vuu-utils/src/common-types.d.ts +6 -0
- package/types/vuu-utils/src/component-registry.d.ts +65 -0
- package/types/vuu-utils/src/context-definitions/DataContext.d.ts +18 -0
- package/types/vuu-utils/src/context-definitions/DataProvider.d.ts +7 -0
- package/types/vuu-utils/src/context-definitions/DataSourceProvider.d.ts +12 -0
- package/types/vuu-utils/src/context-definitions/WorkspaceContext.d.ts +17 -0
- package/types/vuu-utils/src/cookie-utils.d.ts +1 -0
- package/types/vuu-utils/src/css-utils.d.ts +1 -0
- package/types/vuu-utils/src/data-utils.d.ts +19 -0
- package/types/vuu-utils/src/datasource/BaseDataSource.d.ts +60 -0
- package/types/vuu-utils/src/datasource/datasource-action-utils.d.ts +7 -0
- package/types/vuu-utils/src/datasource/datasource-filter-utils.d.ts +2 -0
- package/types/vuu-utils/src/datasource/datasource-utils.d.ts +49 -0
- package/types/vuu-utils/src/date/date-utils.d.ts +36 -0
- package/types/vuu-utils/src/date/dateTimePattern.d.ts +8 -0
- package/types/vuu-utils/src/date/formatter.d.ts +4 -0
- package/types/vuu-utils/src/date/index.d.ts +4 -0
- package/types/vuu-utils/src/date/types.d.ts +24 -0
- package/types/vuu-utils/src/debug-utils.d.ts +9 -0
- package/types/vuu-utils/src/event-emitter.d.ts +21 -0
- package/types/vuu-utils/src/feature-utils.d.ts +110 -0
- package/types/vuu-utils/src/filters/filter-utils.d.ts +82 -0
- package/types/vuu-utils/src/filters/filterAsQuery.d.ts +7 -0
- package/types/vuu-utils/src/filters/index.d.ts +2 -0
- package/types/vuu-utils/src/form-utils.d.ts +23 -0
- package/types/vuu-utils/src/formatting-utils.d.ts +14 -0
- package/types/vuu-utils/src/getUniqueId.d.ts +1 -0
- package/types/vuu-utils/src/group-utils.d.ts +10 -0
- package/types/vuu-utils/src/html-utils.d.ts +21 -0
- package/types/vuu-utils/src/index.d.ts +74 -0
- package/types/vuu-utils/src/input-utils.d.ts +2 -0
- package/types/vuu-utils/src/invariant.d.ts +1 -0
- package/types/vuu-utils/src/itemToString.d.ts +2 -0
- package/types/vuu-utils/src/json-types.d.ts +52 -0
- package/types/vuu-utils/src/json-utils.d.ts +6 -0
- package/types/vuu-utils/src/keyboard-utils.d.ts +15 -0
- package/types/vuu-utils/src/keyset.d.ts +16 -0
- package/types/vuu-utils/src/layout-types.d.ts +22 -0
- package/types/vuu-utils/src/list-utils.d.ts +2 -0
- package/types/vuu-utils/src/local-storage-utils.d.ts +3 -0
- package/types/vuu-utils/src/logging-utils.d.ts +45 -0
- package/types/vuu-utils/src/menu-utils.d.ts +6 -0
- package/types/vuu-utils/src/module-utils.d.ts +8 -0
- package/types/vuu-utils/src/moving-window.d.ts +18 -0
- package/types/vuu-utils/src/nanoid/index.d.ts +1 -0
- package/types/vuu-utils/src/perf-utils.d.ts +5 -0
- package/types/vuu-utils/src/promise-utils.d.ts +8 -0
- package/types/vuu-utils/src/protocol-message-utils.d.ts +34 -0
- package/types/vuu-utils/src/range-utils.d.ts +31 -0
- package/types/vuu-utils/src/react-utils.d.ts +8 -0
- package/types/vuu-utils/src/round-decimal.d.ts +1 -0
- package/types/vuu-utils/src/row-utils.d.ts +27 -0
- package/types/vuu-utils/src/selection-utils.d.ts +4 -0
- package/types/vuu-utils/src/shell-layout-types.d.ts +15 -0
- package/types/vuu-utils/src/sort-utils.d.ts +11 -0
- package/types/vuu-utils/src/table-schema-utils.d.ts +3 -0
- package/types/vuu-utils/src/text-utils.d.ts +2 -0
- package/types/vuu-utils/src/tree-types.d.ts +9 -0
- package/types/vuu-utils/src/tree-utils.d.ts +9 -0
- package/types/vuu-utils/src/ts-utils.d.ts +20 -0
- package/types/vuu-utils/src/typeahead-utils.d.ts +1 -0
- package/types/vuu-utils/src/url-utils.d.ts +2 -0
- package/types/vuu-utils/src/useId.d.ts +1 -0
- package/types/vuu-utils/src/useLayoutEffectSkipFirst.d.ts +2 -0
- package/types/vuu-utils/src/useStateRef.d.ts +2 -0
- package/types/vuu-utils/src/user-types.d.ts +4 -0
- /package/types/{data-editing → vuu-data-react/src/data-editing}/EditForm.d.ts +0 -0
- /package/types/{data-editing → vuu-data-react/src/data-editing}/UnsavedChangesReport.d.ts +0 -0
- /package/types/{data-editing → vuu-data-react/src/data-editing}/edit-rule-validation-checker.d.ts +0 -0
- /package/types/{data-editing → vuu-data-react/src/data-editing}/edit-validation-rules.d.ts +0 -0
- /package/types/{data-editing → vuu-data-react/src/data-editing}/form-edit-state.d.ts +0 -0
- /package/types/{data-editing → vuu-data-react/src/data-editing}/index.d.ts +0 -0
- /package/types/{data-editing → vuu-data-react/src/data-editing}/useEditForm.d.ts +0 -0
- /package/types/{datasource-provider → vuu-data-react/src/datasource-provider}/VuuDataSourceProvider.d.ts +0 -0
- /package/types/{datasource-provider → vuu-data-react/src/datasource-provider}/index.d.ts +0 -0
- /package/types/{datasource-provider → vuu-data-react/src/datasource-provider}/useAutoLoginToVuuServer.d.ts +0 -0
- /package/types/{hooks → vuu-data-react/src/hooks}/useLookupValues.d.ts +0 -0
- /package/types/{hooks → vuu-data-react/src/hooks}/useSessionDataSource.d.ts +0 -0
- /package/types/{hooks → vuu-data-react/src/hooks}/useTypeaheadSuggestions.d.ts +0 -0
- /package/types/{hooks → vuu-data-react/src/hooks}/useVisualLinks.d.ts +0 -0
- /package/types/{hooks → vuu-data-react/src/hooks}/useVuuMenuActions.d.ts +0 -0
- /package/types/{hooks → vuu-data-react/src/hooks}/useVuuTables.d.ts +0 -0
- /package/types/{session-editing-form → vuu-data-react/src/session-editing-form}/SessionEditingForm.d.ts +0 -0
- /package/types/{session-editing-form → vuu-data-react/src/session-editing-form}/index.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DateValue } from "@internationalized/date";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type SyntheticEvent } from "react";
|
|
3
|
+
import { type CalendarProps, type RangeSelectionValueType } from "../calendar";
|
|
4
|
+
export interface DatePickerPanelProps<SelectionVariantType> extends ComponentPropsWithoutRef<"div"> {
|
|
5
|
+
onSelect?: (event: SyntheticEvent, selectedDate?: SelectionVariantType) => void;
|
|
6
|
+
helperText?: string;
|
|
7
|
+
visibleMonths?: 1 | 2;
|
|
8
|
+
CalendarProps?: Partial<Omit<CalendarProps, "selectionVariant" | "selectedDate" | "defaultSelectedDate" | "onSelectedDateChange">>;
|
|
9
|
+
}
|
|
10
|
+
export declare const DatePickerPanel: import("react").ForwardRefExoticComponent<DatePickerPanelProps<DateValue | RangeSelectionValueType> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DatePicker";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { DragDropState } from "./DragDropState";
|
|
3
|
+
import { GlobalDropHandler, ResumeDragHandler } from "./useGlobalDragDrop";
|
|
4
|
+
export type DragOutHandler = (id: string, dragDropState: DragDropState) => boolean;
|
|
5
|
+
export type DragDropRegistrationFn = (id: string, resumeDrag: ResumeDragHandler | false, onDrop?: GlobalDropHandler) => void;
|
|
6
|
+
export type EndOfDragOperationHandler = (id: string) => void;
|
|
7
|
+
export interface DragDropContextProps {
|
|
8
|
+
dragSources?: Map<string, string[]>;
|
|
9
|
+
dropTargets?: Map<string, string[]>;
|
|
10
|
+
onDragOut?: DragOutHandler;
|
|
11
|
+
onEndOfDragOperation?: EndOfDragOperationHandler;
|
|
12
|
+
registerDragDropParty: DragDropRegistrationFn;
|
|
13
|
+
}
|
|
14
|
+
export type DragSources = {
|
|
15
|
+
[key: string]: {
|
|
16
|
+
dropTargets: string | string[];
|
|
17
|
+
payloadType?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export interface DragDropProviderProps {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
dragSources: DragSources;
|
|
23
|
+
}
|
|
24
|
+
export type MeasuredTarget = {
|
|
25
|
+
bottom: number;
|
|
26
|
+
left: number;
|
|
27
|
+
right: number;
|
|
28
|
+
top: number;
|
|
29
|
+
};
|
|
30
|
+
export declare const DragDropProvider: ({ children, dragSources: dragSourcesProp, }: DragDropProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export interface DragDropProviderResult {
|
|
32
|
+
isDragSource?: boolean;
|
|
33
|
+
isDropTarget?: boolean;
|
|
34
|
+
onDragOut?: DragOutHandler;
|
|
35
|
+
onEndOfDragOperation?: (id: string) => void;
|
|
36
|
+
register: DragDropRegistrationFn;
|
|
37
|
+
}
|
|
38
|
+
export declare const useDragDropProvider: (id?: string) => DragDropProviderResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MouseOffset, MousePosition } from "./dragDropTypes";
|
|
2
|
+
export declare class DragDropState {
|
|
3
|
+
/** Distance between start (top | left) of dragged element and point where user pressed to drag */
|
|
4
|
+
readonly mouseOffset: MouseOffset;
|
|
5
|
+
/** Element where the initial mousedown triggered the drag operation */
|
|
6
|
+
readonly initialDragElement: HTMLElement;
|
|
7
|
+
/** Element being dragged, (initial element cloned and rendered in portal). */
|
|
8
|
+
draggableElement: HTMLElement | null;
|
|
9
|
+
payload: unknown;
|
|
10
|
+
constructor(mousePosition: MousePosition, dragElement: HTMLElement);
|
|
11
|
+
/** Used to capture a ref to the Draggable ReactElement */
|
|
12
|
+
setDraggable: (el: HTMLElement | null) => void;
|
|
13
|
+
setPayload(payload: unknown): void;
|
|
14
|
+
private getMouseOffset;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, MutableRefObject, TransitionEventHandler } from "react";
|
|
2
|
+
export interface DraggableProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
wrapperClassName: string;
|
|
4
|
+
element: HTMLElement;
|
|
5
|
+
onDropped?: () => void;
|
|
6
|
+
onTransitionEnd?: TransitionEventHandler;
|
|
7
|
+
scale?: number;
|
|
8
|
+
style: CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
export declare const Draggable: import("react").ForwardRefExoticComponent<DraggableProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const createDragSpacer: (transitioning?: MutableRefObject<boolean>) => HTMLElement;
|
|
12
|
+
export declare const createDropIndicatorPosition: () => HTMLElement;
|
|
13
|
+
export declare const createDropIndicator: (transitioning?: MutableRefObject<boolean>) => HTMLElement;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { MouseEventHandler, ReactElement, RefObject } from "react";
|
|
2
|
+
import type { orientationType } from "@vuu-ui/vuu-utils";
|
|
3
|
+
import { DragDropState } from "./DragDropState";
|
|
4
|
+
export type ViewportRange = {
|
|
5
|
+
atEnd: boolean;
|
|
6
|
+
atStart: boolean;
|
|
7
|
+
from: number;
|
|
8
|
+
to: number;
|
|
9
|
+
};
|
|
10
|
+
type dimension = "width" | "height" | "scrollWidth" | "scrollHeight";
|
|
11
|
+
type dimensions = {
|
|
12
|
+
size: dimension;
|
|
13
|
+
depth: dimension;
|
|
14
|
+
scrollDepth: dimension;
|
|
15
|
+
};
|
|
16
|
+
export type dimensionsType = {
|
|
17
|
+
horizontal: dimensions;
|
|
18
|
+
vertical: dimensions;
|
|
19
|
+
};
|
|
20
|
+
export type dragStrategy = "drop-indicator" | "natural-movement" | "drag-copy" | "drop-only";
|
|
21
|
+
export type Direction = "fwd" | "bwd";
|
|
22
|
+
export declare const FWD: Direction;
|
|
23
|
+
export declare const BWD: Direction;
|
|
24
|
+
export interface MousePosition {
|
|
25
|
+
clientX: number;
|
|
26
|
+
clientY: number;
|
|
27
|
+
}
|
|
28
|
+
export interface MouseOffset {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
}
|
|
32
|
+
export type Rect = {
|
|
33
|
+
height: number;
|
|
34
|
+
left: number;
|
|
35
|
+
top: number;
|
|
36
|
+
width: number;
|
|
37
|
+
};
|
|
38
|
+
export interface DragHookResult {
|
|
39
|
+
draggable?: ReactElement;
|
|
40
|
+
dropIndicator?: ReactElement;
|
|
41
|
+
draggedItemIndex?: number;
|
|
42
|
+
isDragging: boolean;
|
|
43
|
+
isScrolling: RefObject<boolean>;
|
|
44
|
+
onMouseDown?: MouseEventHandler;
|
|
45
|
+
revealOverflowedItems?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface InternalDragHookResult extends Omit<DragHookResult, "isDragging" | "isScrolling"> {
|
|
48
|
+
beginDrag: (dragElement: HTMLElement) => void;
|
|
49
|
+
drag: (dragPos: number, mouseMoveDirection: "fwd" | "bwd") => void;
|
|
50
|
+
drop: () => DropOptions;
|
|
51
|
+
handleScrollStart?: (scrollDirection: "fwd" | "bwd") => void;
|
|
52
|
+
handleScrollStop?: (scrollDirection: "fwd" | "bwd", _scrollPos: number, atEnd: boolean) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Draggable item has been dragged out of container. Remove any local drop
|
|
55
|
+
* indicators. Dragged element itself should not yet be removed from DOM.
|
|
56
|
+
*/
|
|
57
|
+
releaseDrag?: () => void;
|
|
58
|
+
}
|
|
59
|
+
export interface DropOptions {
|
|
60
|
+
fromIndex: number;
|
|
61
|
+
toIndex: number;
|
|
62
|
+
isExternal?: boolean;
|
|
63
|
+
payload?: unknown;
|
|
64
|
+
}
|
|
65
|
+
export type DragStartHandler = (dragDropState: DragDropState) => void;
|
|
66
|
+
export type DropHandler = (options: DropOptions) => void;
|
|
67
|
+
export interface DragDropProps {
|
|
68
|
+
allowDragDrop?: boolean | dragStrategy;
|
|
69
|
+
containerRef: RefObject<HTMLElement | null>;
|
|
70
|
+
/** this is the className that will be assigned during drag to the dragged element */
|
|
71
|
+
draggableClassName: string;
|
|
72
|
+
extendedDropZone?: boolean;
|
|
73
|
+
getDragPayload?: (dragElement: HTMLElement) => unknown;
|
|
74
|
+
id?: string;
|
|
75
|
+
isDragSource?: boolean;
|
|
76
|
+
isDropTarget?: boolean;
|
|
77
|
+
itemQuery?: string;
|
|
78
|
+
onDragStart?: DragStartHandler;
|
|
79
|
+
onDrop: DropHandler;
|
|
80
|
+
onDropSettle?: (toIndex: number) => void;
|
|
81
|
+
orientation: orientationType;
|
|
82
|
+
/**
|
|
83
|
+
* The scrolling container does not necessarily have to be a
|
|
84
|
+
* descendant of the container, it may be an ancestor element;
|
|
85
|
+
*/
|
|
86
|
+
scrollingContainerRef?: RefObject<HTMLElement | null>;
|
|
87
|
+
viewportRange?: ViewportRange;
|
|
88
|
+
}
|
|
89
|
+
export type DragDropHook = (props: DragDropProps) => DragHookResult;
|
|
90
|
+
export interface InternalDragDropProps extends Omit<DragDropProps, "draggableClassName" | "id" | "onDrop"> {
|
|
91
|
+
isDragSource?: boolean;
|
|
92
|
+
isDropTarget?: boolean;
|
|
93
|
+
selected?: unknown;
|
|
94
|
+
}
|
|
95
|
+
export type DragDropContext = {
|
|
96
|
+
dragElement: HTMLElement;
|
|
97
|
+
dragPayload: unknown;
|
|
98
|
+
mouseOffset: MouseOffset;
|
|
99
|
+
};
|
|
100
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { orientationType } from "@vuu-ui/vuu-utils";
|
|
2
|
+
import { ViewportRange } from "./dragDropTypes";
|
|
3
|
+
import { Direction, Rect } from "./dragDropTypes";
|
|
4
|
+
export declare const NOT_OVERFLOWED = ":not(.wrapped)";
|
|
5
|
+
export declare const NOT_HIDDEN = ":not([aria-hidden=\"true\"])";
|
|
6
|
+
export type MeasuredDropTarget = {
|
|
7
|
+
/**
|
|
8
|
+
The index position currently occupied by this item. If draggable
|
|
9
|
+
is dropped here, this will be the destination drop position.
|
|
10
|
+
*/
|
|
11
|
+
currentIndex: number;
|
|
12
|
+
element: HTMLElement;
|
|
13
|
+
id: string;
|
|
14
|
+
index: number;
|
|
15
|
+
isDraggedItem: boolean;
|
|
16
|
+
isExternal?: boolean;
|
|
17
|
+
isLast?: boolean;
|
|
18
|
+
isOverflowIndicator?: boolean;
|
|
19
|
+
start: number;
|
|
20
|
+
end: number;
|
|
21
|
+
mid: number;
|
|
22
|
+
size: number;
|
|
23
|
+
};
|
|
24
|
+
export type targetType = {
|
|
25
|
+
element: HTMLElement | null;
|
|
26
|
+
index: number;
|
|
27
|
+
isLast?: boolean;
|
|
28
|
+
};
|
|
29
|
+
/** clones and removes id */
|
|
30
|
+
export declare const cloneElement: <T extends HTMLElement>(element: T) => T;
|
|
31
|
+
type MousePosKey = keyof Pick<MouseEvent, "clientX" | "clientY">;
|
|
32
|
+
type DOMRectKey = keyof Omit<DOMRect, "toJSON">;
|
|
33
|
+
type DOMRectDimensionKey = keyof Pick<DOMRect, "width" | "height">;
|
|
34
|
+
type Dimension = keyof Pick<DOMRect, "width" | "height">;
|
|
35
|
+
type ElementDimension = keyof Pick<HTMLElement, "scrollHeight" | "scrollWidth" | "clientHeight" | "clientWidth" | "scrollTop" | "scrollLeft">;
|
|
36
|
+
type ElementPosition = "x" | "y";
|
|
37
|
+
export declare const measureElementSizeAndPosition: (element: HTMLElement, dimension?: Dimension, includeAutoMargin?: boolean) => number[];
|
|
38
|
+
export declare const dimensions: (orientation: orientationType) => {
|
|
39
|
+
CLIENT_POS: MousePosKey;
|
|
40
|
+
CLIENT_SIZE: ElementDimension;
|
|
41
|
+
CONTRA: DOMRectKey;
|
|
42
|
+
CONTRA_CLIENT_POS: MousePosKey;
|
|
43
|
+
CONTRA_END: DOMRectDimensionKey;
|
|
44
|
+
CONTRA_POS: ElementPosition;
|
|
45
|
+
DIMENSION: DOMRectDimensionKey;
|
|
46
|
+
END: DOMRectKey;
|
|
47
|
+
POS: ElementPosition;
|
|
48
|
+
SCROLL_POS: ElementDimension;
|
|
49
|
+
SCROLL_SIZE: ElementDimension;
|
|
50
|
+
START: DOMRectKey;
|
|
51
|
+
} | {
|
|
52
|
+
CLIENT_POS: MousePosKey;
|
|
53
|
+
CLIENT_SIZE: ElementDimension;
|
|
54
|
+
CONTRA: DOMRectKey;
|
|
55
|
+
CONTRA_CLIENT_POS: MousePosKey;
|
|
56
|
+
CONTRA_END: DOMRectDimensionKey;
|
|
57
|
+
CONTRA_POS: ElementPosition;
|
|
58
|
+
DIMENSION: DOMRectDimensionKey;
|
|
59
|
+
END: DOMRectKey;
|
|
60
|
+
POS: ElementPosition;
|
|
61
|
+
SCROLL_POS: ElementDimension;
|
|
62
|
+
SCROLL_SIZE: ElementDimension;
|
|
63
|
+
START: DOMRectKey;
|
|
64
|
+
};
|
|
65
|
+
export declare const getItemById: (measuredItems: MeasuredDropTarget[], id: string) => MeasuredDropTarget | undefined;
|
|
66
|
+
export declare const removeDraggedItem: (measuredItems: MeasuredDropTarget[], index: number) => void;
|
|
67
|
+
export type dropZone = "start" | "end";
|
|
68
|
+
export declare const measureDropTargets: (container: HTMLElement, orientation: orientationType, itemQuery?: string, viewportRange?: ViewportRange, draggedItemId?: string) => MeasuredDropTarget[];
|
|
69
|
+
export declare const getIndexOfDraggedItem: (dropTargets: MeasuredDropTarget[]) => number;
|
|
70
|
+
export declare const mutateDropTargetsSwitchDropTargetPosition: (dropTargets: MeasuredDropTarget[], direction: Direction) => void;
|
|
71
|
+
export declare const getNextDropTarget: (dropTargets: MeasuredDropTarget[], pos: number, draggedItemSize: number, mouseMoveDirection: Direction) => MeasuredDropTarget;
|
|
72
|
+
/**
|
|
73
|
+
* An item within a scrollable container might have a width or height greater than that of
|
|
74
|
+
* the container. If we drag such an item, we don't want the draggable to be larger than
|
|
75
|
+
* the container.
|
|
76
|
+
*/
|
|
77
|
+
export declare function constrainRect(targetRect: Rect, constraintRect: Rect): Rect;
|
|
78
|
+
export declare const dropTargetsDebugString: (dropTargets: MeasuredDropTarget[]) => string;
|
|
79
|
+
export declare const getItemParentContainer: (container: HTMLElement | null, itemQuery: string) => HTMLElement | null;
|
|
80
|
+
export declare const getScrollableContainer: (container: HTMLElement | null, itemQuery: string) => HTMLElement | null;
|
|
81
|
+
export declare const isContainerScrollable: (scrollableContainer: HTMLElement | null, orientation: orientationType) => boolean;
|
|
82
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
export type ScrollStopHandler = (scrollDirection: "fwd" | "bwd", scrollPos: number, atEnd: boolean) => void;
|
|
3
|
+
export declare const useAutoScroll: ({ containerRef, onScrollingStopped, orientation, }: {
|
|
4
|
+
containerRef: RefObject<HTMLElement | null>;
|
|
5
|
+
onScrollingStopped?: ScrollStopHandler;
|
|
6
|
+
orientation?: "horizontal" | "vertical";
|
|
7
|
+
}) => {
|
|
8
|
+
isScrolling: RefObject<boolean>;
|
|
9
|
+
startScrolling: (direction: "fwd" | "bwd", scrollRate: number, scrollUnit?: number) => void;
|
|
10
|
+
stopScrolling: (atEnd?: boolean) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { orientationType } from "@vuu-ui/vuu-utils";
|
|
2
|
+
import { Direction } from "./dragDropTypes";
|
|
3
|
+
import { MeasuredDropTarget } from "./drop-target-utils";
|
|
4
|
+
export type DragDisplacersHookResult = {
|
|
5
|
+
displaceItem: (dropTargets: MeasuredDropTarget[], dropTarget: MeasuredDropTarget, size: number, useTransition?: boolean, direction?: Direction | "static", orientation?: "horizontal" | "vertical") => number;
|
|
6
|
+
displaceLastItem: (dropTargets: MeasuredDropTarget[], dropTarget: MeasuredDropTarget, size: number, useTransition?: boolean, direction?: Direction | "static", orientation?: "horizontal" | "vertical") => number;
|
|
7
|
+
clearSpacers: (useAnimation?: boolean) => void;
|
|
8
|
+
/** Insert the sized spacer at start or end of collection */
|
|
9
|
+
setTerminalSpacer: (container: HTMLElement, position: "start" | "end", size: number) => void;
|
|
10
|
+
};
|
|
11
|
+
export type DragDisplacersHook = (orientation: orientationType) => DragDisplacersHookResult;
|
|
12
|
+
/**
|
|
13
|
+
* Manage a pair of displacer elements to smoothly display a moving gap between
|
|
14
|
+
* list items of any kind. Designed to be used in a drag drop operation. The 'static'
|
|
15
|
+
* direction option should be used at drag start or following scroll.
|
|
16
|
+
*/
|
|
17
|
+
export declare const useDragDisplacers: DragDisplacersHook;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { InternalDragDropProps, InternalDragHookResult } from "./dragDropTypes";
|
|
2
|
+
export declare const NULL_DROP_OPTIONS: {
|
|
3
|
+
readonly fromIndex: -1;
|
|
4
|
+
readonly toIndex: -1;
|
|
5
|
+
};
|
|
6
|
+
export declare const useDragDropCopy: ({ selected, viewportRange, }: InternalDragDropProps) => InternalDragHookResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { dropZone, MeasuredDropTarget } from "./drop-target-utils";
|
|
2
|
+
export declare const SPACER_SIZE = 0;
|
|
3
|
+
export type DropIndicatorHookResult = {
|
|
4
|
+
positionDropIndicator: (dropTarget: MeasuredDropTarget, dropZone: dropZone) => HTMLElement;
|
|
5
|
+
clearSpacer: () => void;
|
|
6
|
+
};
|
|
7
|
+
export type DropIndicatorHook = () => DropIndicatorHookResult;
|
|
8
|
+
export declare const useDropIndicator: DropIndicatorHook;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MeasuredTarget } from "./DragDropProvider";
|
|
2
|
+
import { DragDropState } from "./DragDropState";
|
|
3
|
+
export type ResumeDragHandler = (dragDropState: DragDropState) => boolean;
|
|
4
|
+
export type GlobalDropHandler = (dragDropState: DragDropState) => void;
|
|
5
|
+
export declare const useGlobalDragDrop: ({ onDragOverDropTarget, onDrop, }: {
|
|
6
|
+
onDragOverDropTarget: (dropTargetId: string, dragDropState: DragDropState) => boolean;
|
|
7
|
+
onDrop: (dropTargetId: string, dragDropState: DragDropState) => void;
|
|
8
|
+
}) => {
|
|
9
|
+
measuredDropTargetsRef: import("react").RefObject<Record<string, MeasuredTarget> | undefined>;
|
|
10
|
+
resumeDrag: ResumeDragHandler;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useEditableText";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DataValueValidationChecker } from "@vuu-ui/vuu-data-types";
|
|
2
|
+
import { VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
+
import type { DataItemEditHandler } from "@vuu-ui/vuu-table-types";
|
|
4
|
+
import { FocusEventHandler, FormEventHandler, KeyboardEvent } from "react";
|
|
5
|
+
export interface EditableTextHookProps<T extends VuuRowDataItemType = VuuRowDataItemType> {
|
|
6
|
+
clientSideEditValidationCheck?: DataValueValidationChecker;
|
|
7
|
+
value?: T;
|
|
8
|
+
onEdit?: DataItemEditHandler;
|
|
9
|
+
type?: "string" | "number" | "boolean";
|
|
10
|
+
}
|
|
11
|
+
export declare const useEditableText: <T extends string | number | boolean = string>({ clientSideEditValidationCheck, value, onEdit, type, }: EditableTextHookProps<T>) => {
|
|
12
|
+
inputProps: {
|
|
13
|
+
onBlur: FocusEventHandler<HTMLElement>;
|
|
14
|
+
onKeyDown: (evt: KeyboardEvent<HTMLElement>) => void;
|
|
15
|
+
};
|
|
16
|
+
onChange: FormEventHandler;
|
|
17
|
+
value: string;
|
|
18
|
+
warningMessage: string | undefined;
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ForwardedRef, HTMLAttributes } from "react";
|
|
2
|
+
export type ExitEditModeHandler = (originalLabel: string | undefined, editedLabel: string | undefined, allowDeactivation?: boolean, editCancelled?: boolean) => void;
|
|
3
|
+
export interface EditAPI {
|
|
4
|
+
beginEdit: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const NullEditAPI: EditAPI;
|
|
7
|
+
export interface EditableLabelProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
8
|
+
className?: string;
|
|
9
|
+
defaultEditing?: boolean;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
editLabelApiRef?: ForwardedRef<EditAPI>;
|
|
12
|
+
editing?: boolean;
|
|
13
|
+
onEnterEditMode?: () => void;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
onExitEditMode: ExitEditModeHandler;
|
|
16
|
+
defaultIsEditing?: boolean;
|
|
17
|
+
value?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const EditableLabel: import("react").ForwardRefExoticComponent<EditableLabelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./EditableLabel";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CommitHandler } from "@vuu-ui/vuu-utils";
|
|
2
|
+
import { VuuInputProps } from "../vuu-input";
|
|
3
|
+
export interface ExpandoInputProps extends Omit<VuuInputProps, "onCommit"> {
|
|
4
|
+
onCommit?: CommitHandler;
|
|
5
|
+
}
|
|
6
|
+
export declare const ExpandoInput: import("react").ForwardRefExoticComponent<ExpandoInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ExpandoInput";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
export interface IconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
name: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const Icon: ({ className, name, size, style: styleProp, ...htmlAttributes }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonProps } from "@salt-ds/core";
|
|
2
|
+
export interface IconButtonProps extends Omit<ButtonProps, "children"> {
|
|
3
|
+
icon: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconButtonProps } from "./IconButton";
|
|
2
|
+
export interface ToggleIconButtonProps extends Omit<IconButtonProps, "icon"> {
|
|
3
|
+
isExpanded: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const ToggleIconButton: ({ className, isExpanded, size, variant, ...props }: ToggleIconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export * from "./calendar";
|
|
2
|
+
export * from "./column-picker";
|
|
3
|
+
export * from "./common-hooks";
|
|
4
|
+
export { ContextPanelProvider, useContextPanel, useHideContextPanel, } from "./context-panel-provider/ContextPanelProvider";
|
|
5
|
+
export * from "./cycle-state-button";
|
|
6
|
+
export * from "./date-input";
|
|
7
|
+
export * from "./date-picker";
|
|
8
|
+
export * from "./drag-drop";
|
|
9
|
+
export * from "./editable";
|
|
10
|
+
export * from "./editable-label";
|
|
11
|
+
export * from "./expando-input";
|
|
12
|
+
export * from "./icon-button";
|
|
13
|
+
export * from "./instrument-picker";
|
|
14
|
+
export * from "./measured-container";
|
|
15
|
+
export { ModalProvider, useModal } from "./modal-provider/ModalProvider";
|
|
16
|
+
export * from "./overflow-container";
|
|
17
|
+
export * from "./price-ticker";
|
|
18
|
+
export { Prompt, type PromptProps } from "./prompt/Prompt";
|
|
19
|
+
export { SortableList, SortableOption } from "./sortable-list/SortableList";
|
|
20
|
+
export * from "./split-button";
|
|
21
|
+
export * from "./table-search";
|
|
22
|
+
export * from "./tabs-next";
|
|
23
|
+
export * from "./tabstrip";
|
|
24
|
+
export { TimeInput, type TimeInputProps } from "./time-input/TimeInput";
|
|
25
|
+
export * from "./toolbar";
|
|
26
|
+
export * from "./utils";
|
|
27
|
+
export * from "./vuu-date-picker";
|
|
28
|
+
export * from "./vuu-input";
|
|
29
|
+
export { VuuTimePicker, type VuuTimePickerProps, } from "./vuu-time-picker/VuuTimePicker";
|
|
30
|
+
export * from "./vuu-typeahead-input";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DataSourceRowObject, TableSchema } from "@vuu-ui/vuu-data-types";
|
|
2
|
+
import { type TableProps } from "@vuu-ui/vuu-table";
|
|
3
|
+
import { type HTMLAttributes } from "react";
|
|
4
|
+
export interface TablePickerProps extends Omit<HTMLAttributes<HTMLElement>, "onSelect">, Pick<TableProps, "onSelect"> {
|
|
5
|
+
TableProps?: Pick<TableProps, "config">;
|
|
6
|
+
rowToString?: (row: DataSourceRowObject) => string;
|
|
7
|
+
schema: TableSchema;
|
|
8
|
+
searchColumns?: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare const TablePicker: ({ TableProps, onSelect, rowToString, schema, searchColumns, ...htmlAttributes }: TablePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TablePicker";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ChangeEvent, KeyboardEventHandler, RefCallback } from "react";
|
|
2
|
+
import type { TableConfig, TableRowSelectHandler } from "@vuu-ui/vuu-table-types";
|
|
3
|
+
import type { TablePickerProps } from "./TablePicker";
|
|
4
|
+
export interface TablePickerHookProps extends Pick<TablePickerProps, "TableProps" | "onSelect" | "rowToString" | "schema" | "searchColumns"> {
|
|
5
|
+
defaultIsOpen?: boolean;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const useTablePicker: ({ TableProps, onSelect, rowToString, schema, searchColumns, }: TablePickerHookProps) => {
|
|
9
|
+
containerRef: RefCallback<HTMLDivElement>;
|
|
10
|
+
dataSource: import("@vuu-ui/vuu-data-types").DataSource;
|
|
11
|
+
highlightedIndex: number | undefined;
|
|
12
|
+
floatingUIProps: {
|
|
13
|
+
reference: ((node: import("@floating-ui/react-dom").ReferenceType | null) => void) & ((node: import("@floating-ui/react").ReferenceType | null) => void);
|
|
14
|
+
floating: ((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void);
|
|
15
|
+
placement: import("@floating-ui/utils").Placement;
|
|
16
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
17
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
isPositioned: boolean;
|
|
21
|
+
update: () => void;
|
|
22
|
+
floatingStyles: React.CSSProperties;
|
|
23
|
+
refs: {
|
|
24
|
+
reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
|
|
25
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
26
|
+
setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
27
|
+
setFloating: (node: HTMLElement | null) => void;
|
|
28
|
+
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
29
|
+
};
|
|
30
|
+
inputProps: {
|
|
31
|
+
inputProps: {
|
|
32
|
+
autoComplete: string;
|
|
33
|
+
onKeyDown: KeyboardEventHandler<HTMLElement>;
|
|
34
|
+
};
|
|
35
|
+
onChange: (evt: ChangeEvent<HTMLInputElement>) => void;
|
|
36
|
+
};
|
|
37
|
+
interactionPropGetters: import("@floating-ui/react").UseInteractionsReturn;
|
|
38
|
+
onKeyDown: KeyboardEventHandler<HTMLElement>;
|
|
39
|
+
open: boolean;
|
|
40
|
+
tableConfig: TableConfig;
|
|
41
|
+
tableHandlers: {
|
|
42
|
+
onSelect: TableRowSelectHandler;
|
|
43
|
+
};
|
|
44
|
+
tableRef: import("react").RefObject<HTMLDivElement | null>;
|
|
45
|
+
value: string;
|
|
46
|
+
width: number;
|
|
47
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
import { MeasuredSize } from "./useMeasuredContainer";
|
|
3
|
+
export interface MeasuredContainerProps extends Omit<HTMLAttributes<HTMLDivElement>, "onResize"> {
|
|
4
|
+
/**
|
|
5
|
+
* A numeric value for height will result in a fixed height. To adapt to container
|
|
6
|
+
* use either a percentage height or 'auto'. Always use 'auto' when rendering
|
|
7
|
+
* within a column based flex container, together with a flex value (use the
|
|
8
|
+
* --vuuMeasuredContainer-flex CSS custom property))
|
|
9
|
+
*/
|
|
10
|
+
height?: number | string;
|
|
11
|
+
onResize?: (size: MeasuredSize) => void;
|
|
12
|
+
width?: number | string;
|
|
13
|
+
}
|
|
14
|
+
export declare const MeasuredContainer: import("react").ForwardRefExoticComponent<MeasuredContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CSSProperties, RefObject } from "react";
|
|
2
|
+
import { MeasuredContainerProps } from "./MeasuredContainer";
|
|
3
|
+
export interface ClientSize {
|
|
4
|
+
clientHeight: number;
|
|
5
|
+
clientWidth: number;
|
|
6
|
+
}
|
|
7
|
+
export interface MeasuredProps extends Pick<MeasuredContainerProps, "height" | "onResize" | "width"> {
|
|
8
|
+
defaultHeight?: number;
|
|
9
|
+
defaultWidth?: number;
|
|
10
|
+
}
|
|
11
|
+
export type CssSize = Pick<CSSProperties, "height" | "width">;
|
|
12
|
+
export interface MeasuredSize {
|
|
13
|
+
height: number;
|
|
14
|
+
width: number;
|
|
15
|
+
}
|
|
16
|
+
export interface MeasuredContainerHookResult {
|
|
17
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
18
|
+
cssSize: CssSize;
|
|
19
|
+
outerSize: CssSize;
|
|
20
|
+
innerSize?: MeasuredSize;
|
|
21
|
+
}
|
|
22
|
+
export declare const reduceSizeHeight: (size: MeasuredSize, value: number) => MeasuredSize;
|
|
23
|
+
export declare const useMeasuredContainer: ({ defaultHeight, defaultWidth, height, onResize: onResizeProp, width, }: MeasuredProps) => MeasuredContainerHookResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
export declare const WidthHeight: string[];
|
|
3
|
+
export declare const WidthOnly: string[];
|
|
4
|
+
export type measurements<T = string | number> = {
|
|
5
|
+
height?: T;
|
|
6
|
+
clientHeight?: number;
|
|
7
|
+
clientWidth?: number;
|
|
8
|
+
contentHeight?: number;
|
|
9
|
+
contentWidth?: number;
|
|
10
|
+
scrollHeight?: number;
|
|
11
|
+
scrollWidth?: number;
|
|
12
|
+
width?: T;
|
|
13
|
+
};
|
|
14
|
+
export type ResizeHandler = (measurements: measurements<number>) => void;
|
|
15
|
+
export declare function useResizeObserver(ref: RefObject<Element | HTMLElement | null>, dimensions: readonly string[], onResize: ResizeHandler, reportInitialSize?: boolean): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { PromptProps } from "../prompt/Prompt";
|
|
3
|
+
export type ShowDialog = (dialogContent: ReactElement, title: string, dialogActionButtons?: ReactElement[], hideCloseButton?: boolean) => void;
|
|
4
|
+
export type ShowPrompt = (promptContent: ReactElement, promptProps: PromptProps) => void;
|
|
5
|
+
export declare const ModalProvider: ({ children }: {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const useModal: () => {
|
|
9
|
+
showDialog: ShowDialog;
|
|
10
|
+
closeDialog: () => void;
|
|
11
|
+
showPrompt: ShowPrompt;
|
|
12
|
+
closePrompt: () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PopupMenuProps } from "@vuu-ui/vuu-popups";
|
|
2
|
+
import { orientationType } from "@vuu-ui/vuu-utils";
|
|
3
|
+
import React, { HTMLAttributes } from "react";
|
|
4
|
+
import { OverflowItem } from "./overflow-utils";
|
|
5
|
+
export interface OverflowContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
PopupMenuProps?: Partial<PopupMenuProps>;
|
|
7
|
+
allowDragDrop?: boolean;
|
|
8
|
+
debugId?: string;
|
|
9
|
+
onMoveItem?: (fromIndex: number, toIndex: number) => void;
|
|
10
|
+
onSwitchWrappedItemIntoView?: (overflowItem: OverflowItem) => void;
|
|
11
|
+
orientation?: orientationType;
|
|
12
|
+
overflowIcon?: string;
|
|
13
|
+
overflowPosition?: "start" | "end" | number;
|
|
14
|
+
}
|
|
15
|
+
export declare const OverflowContainer: React.ForwardRefExoticComponent<OverflowContainerProps & React.RefAttributes<HTMLDivElement>>;
|