@vuu-ui/vuu-data-react 0.13.47 → 0.13.49
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/package.json +15 -15
- package/types/{vuu-data-react/src/hooks → hooks}/useConnectionStatus.d.ts +1 -1
- package/types/vuu-context-menu/src/ContextMenu.d.ts +0 -10
- package/types/vuu-context-menu/src/ContextMenuProvider.d.ts +0 -16
- package/types/vuu-context-menu/src/index.d.ts +0 -3
- package/types/vuu-context-menu/src/menu-utils.d.ts +0 -21
- package/types/vuu-context-menu/src/useContextMenu.d.ts +0 -10
- package/types/vuu-popups/src/index.d.ts +0 -5
- package/types/vuu-popups/src/notifications/NotificationsCenter.d.ts +0 -5
- package/types/vuu-popups/src/notifications/NotificationsContext.d.ts +0 -36
- package/types/vuu-popups/src/notifications/NotificationsProvider.d.ts +0 -9
- package/types/vuu-popups/src/notifications/ToastNotification.d.ts +0 -7
- package/types/vuu-popups/src/notifications/WorkspaceNotification.d.ts +0 -5
- package/types/vuu-popups/src/notifications/index.d.ts +0 -3
- package/types/vuu-popups/src/popup/Popup.d.ts +0 -12
- package/types/vuu-popups/src/popup/getPositionRelativeToAnchor.d.ts +0 -19
- package/types/vuu-popups/src/popup/index.d.ts +0 -2
- package/types/vuu-popups/src/popup/useAnchoredPosition.d.ts +0 -7
- package/types/vuu-popups/src/popup-menu/PopupMenu.d.ts +0 -45
- package/types/vuu-popups/src/popup-menu/index.d.ts +0 -1
- package/types/vuu-popups/src/popup-menu/usePopupMenu.d.ts +0 -19
- package/types/vuu-popups/src/portal/Portal.d.ts +0 -42
- package/types/vuu-popups/src/portal/index.d.ts +0 -1
- package/types/vuu-popups/src/tooltip/Tooltip.d.ts +0 -15
- package/types/vuu-popups/src/tooltip/index.d.ts +0 -2
- package/types/vuu-popups/src/tooltip/useTooltip.d.ts +0 -19
- package/types/vuu-popups/src/tooltip/useTooltipAnchoredPosition.d.ts +0 -7
- package/types/vuu-ui-controls/src/calendar/Calendar.d.ts +0 -13
- package/types/vuu-ui-controls/src/calendar/index.d.ts +0 -4
- package/types/vuu-ui-controls/src/calendar/internal/CalendarCarousel.d.ts +0 -3
- package/types/vuu-ui-controls/src/calendar/internal/CalendarContext.d.ts +0 -8
- package/types/vuu-ui-controls/src/calendar/internal/CalendarDay.d.ts +0 -14
- package/types/vuu-ui-controls/src/calendar/internal/CalendarMonth.d.ts +0 -10
- package/types/vuu-ui-controls/src/calendar/internal/CalendarNavigation.d.ts +0 -16
- package/types/vuu-ui-controls/src/calendar/internal/CalendarWeekHeader.d.ts +0 -3
- package/types/vuu-ui-controls/src/calendar/internal/useFocusManagement.d.ts +0 -9
- package/types/vuu-ui-controls/src/calendar/internal/utils.d.ts +0 -15
- package/types/vuu-ui-controls/src/calendar/useCalendar.d.ts +0 -54
- package/types/vuu-ui-controls/src/calendar/useCalendarDay.d.ts +0 -22
- package/types/vuu-ui-controls/src/calendar/useSelection.d.ts +0 -78
- package/types/vuu-ui-controls/src/column-picker/ColumnPicker.d.ts +0 -7
- package/types/vuu-ui-controls/src/column-picker/ColumnSearch.d.ts +0 -12
- package/types/vuu-ui-controls/src/column-picker/index.d.ts +0 -2
- package/types/vuu-ui-controls/src/common-hooks/index.d.ts +0 -3
- package/types/vuu-ui-controls/src/common-hooks/selectionTypes.d.ts +0 -70
- package/types/vuu-ui-controls/src/common-hooks/use-resize-observer.d.ts +0 -16
- package/types/vuu-ui-controls/src/common-hooks/useControlled.d.ts +0 -24
- package/types/vuu-ui-controls/src/context-panel-provider/ContextPanelProvider.d.ts +0 -17
- package/types/vuu-ui-controls/src/cycle-state-button/CycleStateButton.d.ts +0 -11
- package/types/vuu-ui-controls/src/cycle-state-button/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/date-input/DateInput.d.ts +0 -60
- package/types/vuu-ui-controls/src/date-input/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/date-picker/DatePicker.d.ts +0 -66
- package/types/vuu-ui-controls/src/date-picker/DatePickerContext.d.ts +0 -19
- package/types/vuu-ui-controls/src/date-picker/DatePickerPanel.d.ts +0 -10
- package/types/vuu-ui-controls/src/date-picker/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/drag-drop/DragDropProvider.d.ts +0 -38
- package/types/vuu-ui-controls/src/drag-drop/DragDropState.d.ts +0 -15
- package/types/vuu-ui-controls/src/drag-drop/Draggable.d.ts +0 -13
- package/types/vuu-ui-controls/src/drag-drop/dragDropTypes.d.ts +0 -100
- package/types/vuu-ui-controls/src/drag-drop/drop-target-utils.d.ts +0 -82
- package/types/vuu-ui-controls/src/drag-drop/index.d.ts +0 -6
- package/types/vuu-ui-controls/src/drag-drop/useAutoScroll.d.ts +0 -11
- package/types/vuu-ui-controls/src/drag-drop/useDragDisplacers.d.ts +0 -17
- package/types/vuu-ui-controls/src/drag-drop/useDragDrop.d.ts +0 -2
- package/types/vuu-ui-controls/src/drag-drop/useDragDropCopy.d.ts +0 -6
- package/types/vuu-ui-controls/src/drag-drop/useDragDropIndicator.d.ts +0 -2
- package/types/vuu-ui-controls/src/drag-drop/useDragDropNaturalMovement.d.ts +0 -2
- package/types/vuu-ui-controls/src/drag-drop/useDropIndicator.d.ts +0 -8
- package/types/vuu-ui-controls/src/drag-drop/useGlobalDragDrop.d.ts +0 -11
- package/types/vuu-ui-controls/src/editable/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/editable/useEditableText.d.ts +0 -19
- package/types/vuu-ui-controls/src/editable-label/EditableLabel.d.ts +0 -19
- package/types/vuu-ui-controls/src/editable-label/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/expando-input/ExpandoInput.d.ts +0 -6
- package/types/vuu-ui-controls/src/expando-input/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/icon-button/Icon.d.ts +0 -6
- package/types/vuu-ui-controls/src/icon-button/IconButton.d.ts +0 -6
- package/types/vuu-ui-controls/src/icon-button/ToggleIconButton.d.ts +0 -5
- package/types/vuu-ui-controls/src/icon-button/index.d.ts +0 -3
- package/types/vuu-ui-controls/src/index.d.ts +0 -30
- package/types/vuu-ui-controls/src/instrument-picker/TablePicker.d.ts +0 -10
- package/types/vuu-ui-controls/src/instrument-picker/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/instrument-picker/useTablePicker.d.ts +0 -47
- package/types/vuu-ui-controls/src/measured-container/MeasuredContainer.d.ts +0 -14
- package/types/vuu-ui-controls/src/measured-container/index.d.ts +0 -2
- package/types/vuu-ui-controls/src/measured-container/useMeasuredContainer.d.ts +0 -23
- package/types/vuu-ui-controls/src/measured-container/useResizeObserver.d.ts +0 -15
- package/types/vuu-ui-controls/src/modal-provider/ModalProvider.d.ts +0 -13
- package/types/vuu-ui-controls/src/overflow-container/OverflowContainer.d.ts +0 -15
- package/types/vuu-ui-controls/src/overflow-container/index.d.ts +0 -2
- package/types/vuu-ui-controls/src/overflow-container/overflow-utils.d.ts +0 -48
- package/types/vuu-ui-controls/src/overflow-container/useOverflowContainer.d.ts +0 -19
- package/types/vuu-ui-controls/src/price-ticker/PriceTicker.d.ts +0 -7
- package/types/vuu-ui-controls/src/price-ticker/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/prompt/Prompt.d.ts +0 -48
- package/types/vuu-ui-controls/src/sortable-list/SortableList.d.ts +0 -8
- package/types/vuu-ui-controls/src/split-button/SplitButton.d.ts +0 -11
- package/types/vuu-ui-controls/src/split-button/SplitStateButton.d.ts +0 -5
- package/types/vuu-ui-controls/src/split-button/index.d.ts +0 -2
- package/types/vuu-ui-controls/src/split-button/useSplitButton.d.ts +0 -311
- package/types/vuu-ui-controls/src/table-search/SearchCell.d.ts +0 -2
- package/types/vuu-ui-controls/src/table-search/TableSearch.d.ts +0 -9
- package/types/vuu-ui-controls/src/table-search/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/table-search/useTableSearch.d.ts +0 -15
- package/types/vuu-ui-controls/src/tabs-next/TabBar.d.ts +0 -12
- package/types/vuu-ui-controls/src/tabs-next/TabListNext.d.ts +0 -12
- package/types/vuu-ui-controls/src/tabs-next/TabNext.d.ts +0 -12
- package/types/vuu-ui-controls/src/tabs-next/TabNextAction.d.ts +0 -5
- package/types/vuu-ui-controls/src/tabs-next/TabNextContext.d.ts +0 -12
- package/types/vuu-ui-controls/src/tabs-next/TabNextPanel.d.ts +0 -8
- package/types/vuu-ui-controls/src/tabs-next/TabNextTrigger.d.ts +0 -5
- package/types/vuu-ui-controls/src/tabs-next/TabOverflowList.d.ts +0 -11
- package/types/vuu-ui-controls/src/tabs-next/TabsNext.d.ts +0 -17
- package/types/vuu-ui-controls/src/tabs-next/TabsNextContext.d.ts +0 -21
- package/types/vuu-ui-controls/src/tabs-next/hooks/useCollection.d.ts +0 -18
- package/types/vuu-ui-controls/src/tabs-next/hooks/useFocusOutside.d.ts +0 -2
- package/types/vuu-ui-controls/src/tabs-next/hooks/useOverflow.d.ts +0 -11
- package/types/vuu-ui-controls/src/tabs-next/index.d.ts +0 -7
- package/types/vuu-ui-controls/src/tabstrip/Tab.d.ts +0 -27
- package/types/vuu-ui-controls/src/tabstrip/TabMenu.d.ts +0 -23
- package/types/vuu-ui-controls/src/tabstrip/TabMenuOptions.d.ts +0 -10
- package/types/vuu-ui-controls/src/tabstrip/TabsTypes.d.ts +0 -127
- package/types/vuu-ui-controls/src/tabstrip/Tabstrip.d.ts +0 -2
- package/types/vuu-ui-controls/src/tabstrip/index.d.ts +0 -5
- package/types/vuu-ui-controls/src/tabstrip/tabstrip-dom-utils.d.ts +0 -2
- package/types/vuu-ui-controls/src/tabstrip/useAnimatedSelectionThumb.d.ts +0 -7
- package/types/vuu-ui-controls/src/tabstrip/useKeyboardNavigation.d.ts +0 -29
- package/types/vuu-ui-controls/src/tabstrip/useSelection.d.ts +0 -13
- package/types/vuu-ui-controls/src/tabstrip/useTabstrip.d.ts +0 -55
- package/types/vuu-ui-controls/src/time-input/MaskedInput.d.ts +0 -49
- package/types/vuu-ui-controls/src/time-input/TimeInput.d.ts +0 -5
- package/types/vuu-ui-controls/src/time-input/useTimeInput.d.ts +0 -21
- package/types/vuu-ui-controls/src/toolbar/Toolbar.d.ts +0 -19
- package/types/vuu-ui-controls/src/toolbar/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/toolbar/toolbar-dom-utils.d.ts +0 -3
- package/types/vuu-ui-controls/src/toolbar/useKeyboardNavigation.d.ts +0 -32
- package/types/vuu-ui-controls/src/toolbar/useSelection.d.ts +0 -22
- package/types/vuu-ui-controls/src/toolbar/useToolbar.d.ts +0 -28
- package/types/vuu-ui-controls/src/utils/deprecated-types.d.ts +0 -2
- package/types/vuu-ui-controls/src/utils/escapeRegExp.d.ts +0 -1
- package/types/vuu-ui-controls/src/utils/forwardCallbackProps.d.ts +0 -3
- package/types/vuu-ui-controls/src/utils/index.d.ts +0 -5
- package/types/vuu-ui-controls/src/utils/isOverflowElement.d.ts +0 -1
- package/types/vuu-ui-controls/src/utils/isPlainObject.d.ts +0 -1
- package/types/vuu-ui-controls/src/vuu-date-picker/VuuDatePicker.d.ts +0 -7
- package/types/vuu-ui-controls/src/vuu-date-picker/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/vuu-input/VuuInput.d.ts +0 -18
- package/types/vuu-ui-controls/src/vuu-input/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/vuu-time-picker/VuuTimePicker.d.ts +0 -7
- package/types/vuu-ui-controls/src/vuu-typeahead-input/VuuTypeaheadInput.d.ts +0 -6
- package/types/vuu-ui-controls/src/vuu-typeahead-input/index.d.ts +0 -1
- package/types/vuu-ui-controls/src/vuu-typeahead-input/useVuuTypeaheadInput.d.ts +0 -49
- package/types/vuu-utils/src/Clock.d.ts +0 -20
- package/types/vuu-utils/src/DataWindow.d.ts +0 -39
- package/types/vuu-utils/src/ShellContext.d.ts +0 -11
- package/types/vuu-utils/src/ThemeProvider.d.ts +0 -32
- package/types/vuu-utils/src/array-utils.d.ts +0 -8
- package/types/vuu-utils/src/box-utils.d.ts +0 -24
- package/types/vuu-utils/src/broadcast-channel.d.ts +0 -16
- package/types/vuu-utils/src/column-utils.d.ts +0 -181
- package/types/vuu-utils/src/common-types.d.ts +0 -6
- package/types/vuu-utils/src/component-registry.d.ts +0 -65
- package/types/vuu-utils/src/context-definitions/DataContext.d.ts +0 -18
- package/types/vuu-utils/src/context-definitions/DataProvider.d.ts +0 -7
- package/types/vuu-utils/src/context-definitions/DataSourceProvider.d.ts +0 -12
- package/types/vuu-utils/src/context-definitions/WorkspaceContext.d.ts +0 -17
- package/types/vuu-utils/src/cookie-utils.d.ts +0 -1
- package/types/vuu-utils/src/css-utils.d.ts +0 -1
- package/types/vuu-utils/src/data-utils.d.ts +0 -19
- package/types/vuu-utils/src/datasource/BaseDataSource.d.ts +0 -60
- package/types/vuu-utils/src/datasource/datasource-action-utils.d.ts +0 -7
- package/types/vuu-utils/src/datasource/datasource-filter-utils.d.ts +0 -2
- package/types/vuu-utils/src/datasource/datasource-utils.d.ts +0 -49
- package/types/vuu-utils/src/date/date-utils.d.ts +0 -36
- package/types/vuu-utils/src/date/dateTimePattern.d.ts +0 -8
- package/types/vuu-utils/src/date/formatter.d.ts +0 -4
- package/types/vuu-utils/src/date/index.d.ts +0 -4
- package/types/vuu-utils/src/date/types.d.ts +0 -24
- package/types/vuu-utils/src/debug-utils.d.ts +0 -9
- package/types/vuu-utils/src/event-emitter.d.ts +0 -21
- package/types/vuu-utils/src/feature-utils.d.ts +0 -110
- package/types/vuu-utils/src/filters/filter-utils.d.ts +0 -82
- package/types/vuu-utils/src/filters/filterAsQuery.d.ts +0 -7
- package/types/vuu-utils/src/filters/index.d.ts +0 -2
- package/types/vuu-utils/src/form-utils.d.ts +0 -23
- package/types/vuu-utils/src/formatting-utils.d.ts +0 -14
- package/types/vuu-utils/src/getUniqueId.d.ts +0 -1
- package/types/vuu-utils/src/group-utils.d.ts +0 -10
- package/types/vuu-utils/src/html-utils.d.ts +0 -21
- package/types/vuu-utils/src/index.d.ts +0 -73
- package/types/vuu-utils/src/input-utils.d.ts +0 -2
- package/types/vuu-utils/src/invariant.d.ts +0 -1
- package/types/vuu-utils/src/itemToString.d.ts +0 -2
- package/types/vuu-utils/src/json-types.d.ts +0 -52
- package/types/vuu-utils/src/json-utils.d.ts +0 -6
- package/types/vuu-utils/src/keyboard-utils.d.ts +0 -15
- package/types/vuu-utils/src/keyset.d.ts +0 -16
- package/types/vuu-utils/src/layout-types.d.ts +0 -22
- package/types/vuu-utils/src/list-utils.d.ts +0 -2
- package/types/vuu-utils/src/local-storage-utils.d.ts +0 -3
- package/types/vuu-utils/src/logging-utils.d.ts +0 -45
- package/types/vuu-utils/src/module-utils.d.ts +0 -8
- package/types/vuu-utils/src/moving-window.d.ts +0 -18
- package/types/vuu-utils/src/nanoid/index.d.ts +0 -1
- package/types/vuu-utils/src/perf-utils.d.ts +0 -5
- package/types/vuu-utils/src/promise-utils.d.ts +0 -8
- package/types/vuu-utils/src/protocol-message-utils.d.ts +0 -34
- package/types/vuu-utils/src/range-utils.d.ts +0 -31
- package/types/vuu-utils/src/react-utils.d.ts +0 -8
- package/types/vuu-utils/src/round-decimal.d.ts +0 -1
- package/types/vuu-utils/src/row-utils.d.ts +0 -27
- package/types/vuu-utils/src/selection-utils.d.ts +0 -4
- package/types/vuu-utils/src/shell-layout-types.d.ts +0 -15
- package/types/vuu-utils/src/sort-utils.d.ts +0 -11
- package/types/vuu-utils/src/table-schema-utils.d.ts +0 -3
- package/types/vuu-utils/src/text-utils.d.ts +0 -2
- package/types/vuu-utils/src/tree-types.d.ts +0 -9
- package/types/vuu-utils/src/tree-utils.d.ts +0 -9
- package/types/vuu-utils/src/ts-utils.d.ts +0 -20
- package/types/vuu-utils/src/typeahead-utils.d.ts +0 -1
- package/types/vuu-utils/src/url-utils.d.ts +0 -2
- package/types/vuu-utils/src/useId.d.ts +0 -1
- package/types/vuu-utils/src/useLayoutEffectSkipFirst.d.ts +0 -2
- package/types/vuu-utils/src/useStateRef.d.ts +0 -2
- package/types/vuu-utils/src/user-types.d.ts +0 -4
- /package/types/{vuu-data-react/src/data-editing → data-editing}/EditForm.d.ts +0 -0
- /package/types/{vuu-data-react/src/data-editing → data-editing}/UnsavedChangesReport.d.ts +0 -0
- /package/types/{vuu-data-react/src/data-editing → data-editing}/edit-rule-validation-checker.d.ts +0 -0
- /package/types/{vuu-data-react/src/data-editing → data-editing}/edit-validation-rules.d.ts +0 -0
- /package/types/{vuu-data-react/src/data-editing → data-editing}/form-edit-state.d.ts +0 -0
- /package/types/{vuu-data-react/src/data-editing → data-editing}/get-data-item-edit-control.d.ts +0 -0
- /package/types/{vuu-data-react/src/data-editing → data-editing}/index.d.ts +0 -0
- /package/types/{vuu-data-react/src/data-editing → data-editing}/useEditForm.d.ts +0 -0
- /package/types/{vuu-data-react/src/datasource-provider → datasource-provider}/VuuDataSourceProvider.d.ts +0 -0
- /package/types/{vuu-data-react/src/datasource-provider → datasource-provider}/index.d.ts +0 -0
- /package/types/{vuu-data-react/src/datasource-provider → datasource-provider}/useAutoLoginToVuuServer.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/index.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useLookupValues.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useRemoteConnection.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useSessionDataSource.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useTypeaheadSuggestions.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useVisualLinks.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useVuuMenuActions.d.ts +0 -0
- /package/types/{vuu-data-react/src/hooks → hooks}/useVuuTables.d.ts +0 -0
- /package/types/{vuu-data-react/src/index.d.ts → index.d.ts} +0 -0
- /package/types/{vuu-data-react/src/lost-connection-indicator → lost-connection-indicator}/LostConnectionIndicator.d.ts +0 -0
- /package/types/{vuu-data-react/src/session-editing-form → session-editing-form}/SessionEditingForm.d.ts +0 -0
- /package/types/{vuu-data-react/src/session-editing-form → session-editing-form}/index.d.ts +0 -0
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import type { MenuActionHandler } from "@vuu-ui/vuu-context-menu";
|
|
2
|
-
import type { orientationType } from "@vuu-ui/vuu-utils";
|
|
3
|
-
import type { AriaAttributes, HTMLAttributes, KeyboardEvent, MouseEvent, ReactElement } from "react";
|
|
4
|
-
import type { EditableLabelProps } from "../editable-label";
|
|
5
|
-
export type ExitTabEditModeHandler = (originalValue: string, editedValue: string, allowDeactivation: boolean, tabIndex: number) => void;
|
|
6
|
-
export interface FocusAPI {
|
|
7
|
-
focus: () => void;
|
|
8
|
-
}
|
|
9
|
-
export type navigationProps = Pick<TabProps, "onFocus" | "onKeyDown">;
|
|
10
|
-
export type composableTabProps = navigationProps & Pick<TabProps, "onClick" | "onEnterEditMode" | "onExitEditMode" | "onMouseDown">;
|
|
11
|
-
export type TabstripVariant = "primary" | "tertiary";
|
|
12
|
-
export interface TabstripProps extends HTMLAttributes<HTMLDivElement> {
|
|
13
|
-
/**
|
|
14
|
-
* index value of Active Tab.
|
|
15
|
-
*/
|
|
16
|
-
activeTabIndex: number;
|
|
17
|
-
/**
|
|
18
|
-
* Boolean that enables add new tab
|
|
19
|
-
*/
|
|
20
|
-
allowAddTab?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* when true Tabs may be re-arranged by dragging individual Tabs to new position within Tabstrip.
|
|
23
|
-
*/
|
|
24
|
-
allowDragDrop?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* when true Tabs may be closed by user. This can be overridden on each individual Tab
|
|
27
|
-
*/
|
|
28
|
-
allowCloseTab?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* when true Tab labels may be edited by user. This can be overridden on each individual Tab
|
|
31
|
-
*/
|
|
32
|
-
allowRenameTab?: boolean;
|
|
33
|
-
animateSelectionThumb?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Boolean that indicates if tabs are centered on the container
|
|
36
|
-
*/
|
|
37
|
-
centered?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* index value of Selected Tab, used in uncontrolled mode
|
|
40
|
-
*/
|
|
41
|
-
defaultActiveTabIndex?: number;
|
|
42
|
-
editing?: boolean;
|
|
43
|
-
keyBoardActivation?: "manual" | "automatic";
|
|
44
|
-
/**
|
|
45
|
-
* A custom context menu location for TabMenu, applied to all tabs
|
|
46
|
-
*/
|
|
47
|
-
location?: string;
|
|
48
|
-
/**
|
|
49
|
-
* callback that fires when user has clicked Add Tab button.
|
|
50
|
-
* client is responsible for re-render with additional tab.
|
|
51
|
-
* It is also responsibility of client to select tne new tab
|
|
52
|
-
* by setting activeTabIndex, if that is the desired behaviour.
|
|
53
|
-
*/
|
|
54
|
-
onAddTab?: () => void;
|
|
55
|
-
/**
|
|
56
|
-
* callback that fires when tab selection changes
|
|
57
|
-
*/
|
|
58
|
-
onActiveChange?: (tabIndex: number) => void;
|
|
59
|
-
/**
|
|
60
|
-
* callback that fires when user has opted to remove tab.
|
|
61
|
-
* client is responsible for re-render with tab removed.
|
|
62
|
-
* It is also responsibility of client to select tne new tab
|
|
63
|
-
* by setting activeTabIndex, a suggested value for this is
|
|
64
|
-
* provided by newActiveTabIndex.
|
|
65
|
-
*/
|
|
66
|
-
onCloseTab?: (tabIndex: number, newActiveTabIndex: number) => void;
|
|
67
|
-
onMoveTab?: (fromIndex: number, toIndex: number) => void;
|
|
68
|
-
/**
|
|
69
|
-
* vertical or horizontal (default)
|
|
70
|
-
*/
|
|
71
|
-
orientation?: orientationType;
|
|
72
|
-
onEnterEditMode?: () => void;
|
|
73
|
-
onExitEditMode?: ExitTabEditModeHandler;
|
|
74
|
-
/**
|
|
75
|
-
* Boolean that indicates whether to enable overflow dropdown or not
|
|
76
|
-
*/
|
|
77
|
-
overflowMenu?: boolean;
|
|
78
|
-
promptForNewTabName?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Should each tab render a popup menu. Default is false if tab is
|
|
81
|
-
* not closeable, not renameable and has no tab-location , otherwise true.
|
|
82
|
-
*/
|
|
83
|
-
showTabMenuButton?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* An optional classname that will be added to each tab
|
|
86
|
-
*/
|
|
87
|
-
tabClassName?: string;
|
|
88
|
-
/**
|
|
89
|
-
* An optional classifier, used to create a classname, intended
|
|
90
|
-
* for promary vs secondary bavigation.
|
|
91
|
-
*/
|
|
92
|
-
variant?: "primary" | "secondary";
|
|
93
|
-
}
|
|
94
|
-
export type exitEditHandler = (originalValue: string, editedValue: string, allowDeactivation: boolean, tabIndex: number) => void;
|
|
95
|
-
export interface responsiveDataAttributes {
|
|
96
|
-
"data-index": number;
|
|
97
|
-
"data-overflowed"?: boolean;
|
|
98
|
-
"data-priority": number;
|
|
99
|
-
}
|
|
100
|
-
export type TabProps = Omit<HTMLAttributes<HTMLElement>, "onClick" | "onKeyUp"> & {
|
|
101
|
-
ariaControls?: AriaAttributes["aria-controls"];
|
|
102
|
-
closeable?: boolean;
|
|
103
|
-
draggable?: boolean;
|
|
104
|
-
dragging?: boolean;
|
|
105
|
-
editable?: boolean;
|
|
106
|
-
editing?: EditableLabelProps["editing"];
|
|
107
|
-
focused?: boolean;
|
|
108
|
-
focusVisible?: boolean;
|
|
109
|
-
focusedChildIndex?: number;
|
|
110
|
-
location?: string;
|
|
111
|
-
selected?: boolean;
|
|
112
|
-
showMenuButton?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* index is injected by the Tabstrip is need not be specified by client
|
|
115
|
-
*/
|
|
116
|
-
index?: number;
|
|
117
|
-
label?: EditableLabelProps["defaultValue"];
|
|
118
|
-
onClick?: (e: MouseEvent<HTMLElement>, index: number) => void;
|
|
119
|
-
onClose?: (index: number) => void;
|
|
120
|
-
onEnterEditMode?: () => void;
|
|
121
|
-
onExitEditMode?: exitEditHandler;
|
|
122
|
-
onKeyUp?: (e: KeyboardEvent, index: number) => void;
|
|
123
|
-
onMenuAction?: MenuActionHandler;
|
|
124
|
-
onMenuClose?: () => void;
|
|
125
|
-
orientation?: "horizontal" | "vertical";
|
|
126
|
-
};
|
|
127
|
-
export type TabElement = ReactElement<TabProps>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { TabstripProps } from "./TabsTypes";
|
|
2
|
-
export declare const Tabstrip: ({ activeTabIndex: activeTabIndexProp, allowAddTab, allowCloseTab, allowDragDrop, allowRenameTab, animateSelectionThumb, children, className: classNameProp, id: idProp, keyBoardActivation, location, onActiveChange, onAddTab, onCloseTab, onExitEditMode, onMoveTab, orientation, showTabMenuButton, style: styleProp, tabClassName, variant, ...htmlAttributes }: TabstripProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { orientationType } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { CSSProperties, RefObject } from "react";
|
|
3
|
-
export declare const useAnimatedSelectionThumb: (containerRef: RefObject<HTMLElement | null>, activeTabIndex: number, orientation?: orientationType) => {
|
|
4
|
-
containerStyle: CSSProperties;
|
|
5
|
-
resumeAnimation: () => void;
|
|
6
|
-
suspendAnimation: () => void;
|
|
7
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { orientationType } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { FocusEvent, FocusEventHandler, KeyboardEvent, MouseEvent as ReactMouseEvent, MouseEventHandler, RefObject } from "react";
|
|
3
|
-
export interface ContainerNavigationProps {
|
|
4
|
-
onBlur: FocusEventHandler;
|
|
5
|
-
onFocus: FocusEventHandler;
|
|
6
|
-
onMouseDownCapture: MouseEventHandler;
|
|
7
|
-
onMouseLeave: MouseEventHandler;
|
|
8
|
-
}
|
|
9
|
-
interface TabstripNavigationHookProps {
|
|
10
|
-
containerRef: RefObject<HTMLElement | null>;
|
|
11
|
-
defaultHighlightedIdx?: number;
|
|
12
|
-
highlightedIdx?: number;
|
|
13
|
-
keyBoardActivation?: "manual" | "automatic";
|
|
14
|
-
orientation: orientationType;
|
|
15
|
-
selectedIndex: number | null;
|
|
16
|
-
}
|
|
17
|
-
interface TabstripNavigationHookResult {
|
|
18
|
-
containerProps: ContainerNavigationProps;
|
|
19
|
-
highlightedIdx: number;
|
|
20
|
-
focusTab: (tabIndex: number, immediateFocus?: boolean, withKeyboard?: boolean, delay?: number) => void;
|
|
21
|
-
focusVisible: number;
|
|
22
|
-
focusIsWithinComponent: boolean;
|
|
23
|
-
onClick: (evt: ReactMouseEvent, tabIndex: number) => void;
|
|
24
|
-
onFocus: (evt: FocusEvent<HTMLElement>) => void;
|
|
25
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
26
|
-
setHighlightedIdx: (highlightedIndex: number) => void;
|
|
27
|
-
}
|
|
28
|
-
export declare const useKeyboardNavigation: ({ containerRef, defaultHighlightedIdx, highlightedIdx: highlightedIdxProp, keyBoardActivation, orientation, selectedIndex: selectedTabIndex, }: TabstripNavigationHookProps) => TabstripNavigationHookResult;
|
|
29
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { KeyboardEvent, MouseEvent } from "react";
|
|
2
|
-
export declare const useSelection: ({ defaultSelected, highlightedIdx, onSelectionChange, selected: selectedProp, }: {
|
|
3
|
-
defaultSelected?: number;
|
|
4
|
-
highlightedIdx: number;
|
|
5
|
-
onSelectionChange?: (tabIndex: number) => void;
|
|
6
|
-
selected?: number;
|
|
7
|
-
}) => {
|
|
8
|
-
activateTab: (tabIndex: number) => void;
|
|
9
|
-
isControlled: boolean;
|
|
10
|
-
onClick: (evt: MouseEvent<Element>, tabIndex: number) => void;
|
|
11
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
12
|
-
selected: number;
|
|
13
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { OverflowItem } from "@vuu-ui/vuu-ui-controls";
|
|
2
|
-
import { orientationType } from "@vuu-ui/vuu-utils";
|
|
3
|
-
import { KeyboardEvent, MouseEvent as ReactMouseEvent, RefObject } from "react";
|
|
4
|
-
import { MenuActionHandler } from "@vuu-ui/vuu-context-menu";
|
|
5
|
-
export type ExitEditModeHandler = (originalValue: string, editedValue: string, allowDeactivation: boolean, tabIndex: number) => void;
|
|
6
|
-
export interface TabstripHookProps {
|
|
7
|
-
activeTabIndex: number;
|
|
8
|
-
allowDragDrop: boolean;
|
|
9
|
-
animateSelectionThumb: boolean;
|
|
10
|
-
containerRef: RefObject<HTMLElement | null>;
|
|
11
|
-
onActiveChange?: (tabIndex: number) => void;
|
|
12
|
-
onAddTab?: () => void;
|
|
13
|
-
onCloseTab?: (tabIndex: number, newActiveTabIndex: number) => void;
|
|
14
|
-
onExitEditMode?: ExitEditModeHandler;
|
|
15
|
-
onMoveTab?: (fromIndex: number, toIndex: number) => void;
|
|
16
|
-
orientation: orientationType;
|
|
17
|
-
keyBoardActivation?: "manual" | "automatic";
|
|
18
|
-
}
|
|
19
|
-
type InteractedTabState = {
|
|
20
|
-
index: number;
|
|
21
|
-
state: "rename";
|
|
22
|
-
};
|
|
23
|
-
export declare const useTabstrip: ({ activeTabIndex: activeTabIndexProp, allowDragDrop, animateSelectionThumb, containerRef, onActiveChange, onAddTab, onCloseTab, onExitEditMode, onMoveTab, orientation, keyBoardActivation, }: TabstripHookProps) => {
|
|
24
|
-
draggable?: import("react").ReactElement;
|
|
25
|
-
dropIndicator?: import("react").ReactElement;
|
|
26
|
-
draggedItemIndex?: number;
|
|
27
|
-
isDragging: boolean;
|
|
28
|
-
isScrolling: RefObject<boolean>;
|
|
29
|
-
revealOverflowedItems?: boolean;
|
|
30
|
-
activeTabIndex: number;
|
|
31
|
-
containerProps: {
|
|
32
|
-
onSwitchWrappedItemIntoView: (item: OverflowItem) => void;
|
|
33
|
-
onBlur: import("react").FocusEventHandler;
|
|
34
|
-
onFocus: import("react").FocusEventHandler;
|
|
35
|
-
onMouseDownCapture: import("react").MouseEventHandler;
|
|
36
|
-
onMouseLeave: import("react").MouseEventHandler;
|
|
37
|
-
};
|
|
38
|
-
containerStyle: import("react").CSSProperties;
|
|
39
|
-
focusVisible: number;
|
|
40
|
-
interactedTabState: InteractedTabState | undefined;
|
|
41
|
-
navigationProps: {
|
|
42
|
-
onFocus: (evt: import("react").FocusEvent<HTMLElement>) => void;
|
|
43
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
44
|
-
};
|
|
45
|
-
onClickAddTab: () => void;
|
|
46
|
-
tabProps: {
|
|
47
|
-
onClick: (evt: ReactMouseEvent<HTMLElement>, tabIndex: number) => void;
|
|
48
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
49
|
-
onExitEditMode: ExitEditModeHandler;
|
|
50
|
-
onMenuAction: MenuActionHandler;
|
|
51
|
-
onMenuClose: () => void;
|
|
52
|
-
onMouseDown: import("react").MouseEventHandler | undefined;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, TimeString, TimeUnit } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { ChangeEventHandler } from "react";
|
|
3
|
-
export type Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
4
|
-
export type MaskedInputEvents = {
|
|
5
|
-
change: ChangeEventHandler<HTMLInputElement>;
|
|
6
|
-
};
|
|
7
|
-
export declare class MaskedInput extends EventEmitter<MaskedInputEvents> {
|
|
8
|
-
#private;
|
|
9
|
-
constructor(defaultValue: TimeString | undefined, inputEl?: HTMLInputElement | null);
|
|
10
|
-
set input(el: HTMLInputElement);
|
|
11
|
-
/**
|
|
12
|
-
* The change event is fired programatically. This will only be handled
|
|
13
|
-
* by a native event handler ( not a React handler). We handle this event
|
|
14
|
-
* and convert to a React (Synthetic) event.
|
|
15
|
-
*/
|
|
16
|
-
private emitSyntheticChangeEvent;
|
|
17
|
-
get cursorPos(): number;
|
|
18
|
-
set cursorPos(value: number);
|
|
19
|
-
get isFocused(): boolean;
|
|
20
|
-
get selectionStart(): number;
|
|
21
|
-
set selectionStart(value: number);
|
|
22
|
-
get selectionEnd(): number;
|
|
23
|
-
set selectionEnd(value: number);
|
|
24
|
-
private setValue;
|
|
25
|
-
private setUnitValue;
|
|
26
|
-
private getUnitValue;
|
|
27
|
-
get value(): TimeString;
|
|
28
|
-
/**
|
|
29
|
-
* Setting the value this way invokes 'controlled' mode
|
|
30
|
-
*/
|
|
31
|
-
set value(value: TimeString);
|
|
32
|
-
clear(unit: TimeUnit): void;
|
|
33
|
-
select(unit: TimeUnit, halfUnit?: boolean): void;
|
|
34
|
-
removeSelection(): void;
|
|
35
|
-
restoreSelection(): void;
|
|
36
|
-
advanceSelection(): void;
|
|
37
|
-
moveFocus(direction: "left" | "right"): void;
|
|
38
|
-
pasteValue(value: TimeString): void;
|
|
39
|
-
private getUnitAtCursorPos;
|
|
40
|
-
incrementValue(): void;
|
|
41
|
-
decrementValue(): void;
|
|
42
|
-
backspace(): void;
|
|
43
|
-
update(key: Digit): void;
|
|
44
|
-
private getSelection;
|
|
45
|
-
click(): void;
|
|
46
|
-
doubleClick(): void;
|
|
47
|
-
focus: () => void;
|
|
48
|
-
blur: () => void;
|
|
49
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
import { TimeInputHookProps } from "./useTimeInput";
|
|
3
|
-
export interface TimeInputProps extends TimeInputHookProps, Omit<HTMLAttributes<HTMLInputElement>, "defaultValue" | "onChange" | "value">, Partial<Pick<HTMLInputElement, "placeholder">> {
|
|
4
|
-
}
|
|
5
|
-
export declare const TimeInput: import("react").ForwardRefExoticComponent<TimeInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type CommitHandler, DateStringISO, type TimeString } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { ChangeEventHandler, ClipboardEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, RefCallback } from "react";
|
|
3
|
-
export interface TimeInputHookProps {
|
|
4
|
-
date?: Date | DateStringISO;
|
|
5
|
-
defaultValue?: TimeString;
|
|
6
|
-
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
7
|
-
onCommit: CommitHandler<HTMLInputElement, TimeString>;
|
|
8
|
-
value?: TimeString;
|
|
9
|
-
}
|
|
10
|
-
export declare const useTimeInput: ({ defaultValue, onChange, onCommit, value, }: TimeInputHookProps) => {
|
|
11
|
-
inputRef: RefCallback<HTMLInputElement>;
|
|
12
|
-
eventHandlers: {
|
|
13
|
-
onBlur: (() => void) | undefined;
|
|
14
|
-
onDoubleClick: () => void;
|
|
15
|
-
onFocus: FocusEventHandler<HTMLInputElement>;
|
|
16
|
-
onKeyDown: KeyboardEventHandler<HTMLInputElement>;
|
|
17
|
-
onMouseDown: MouseEventHandler;
|
|
18
|
-
onMouseUp: MouseEventHandler<HTMLInputElement>;
|
|
19
|
-
onPaste: ClipboardEventHandler<HTMLInputElement>;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { OverflowContainerProps } from "../overflow-container";
|
|
2
|
-
import { SelectionStrategy, SpecialKeyMultipleSelection } from "../common-hooks";
|
|
3
|
-
export type ActiveItemChangeHandler = (itemIndex: number[]) => void;
|
|
4
|
-
export type NavigationOutOfBoundsHandler = (direction: "start" | "end") => void;
|
|
5
|
-
export interface ToolbarProps extends OverflowContainerProps {
|
|
6
|
-
activeItemIndex?: number[];
|
|
7
|
-
alignItems?: "start" | "center" | "end";
|
|
8
|
-
defaultActiveItemIndex?: number[];
|
|
9
|
-
onActiveChange?: ActiveItemChangeHandler;
|
|
10
|
-
/**
|
|
11
|
-
* Indicates that user has used Arrow key navigation to move beyond the
|
|
12
|
-
* last or before the first item. A higher level component may want to
|
|
13
|
-
* use this to implement a seamless navigation across components.
|
|
14
|
-
*/
|
|
15
|
-
onNavigateOutOfBounds?: NavigationOutOfBoundsHandler;
|
|
16
|
-
selectionStrategy?: SelectionStrategy | SpecialKeyMultipleSelection;
|
|
17
|
-
showSeparators?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const Toolbar: ({ activeItemIndex: activeItemIndexProp, alignItems, defaultActiveItemIndex, children, className, id: idProp, onActiveChange, onNavigateOutOfBounds, orientation, selectionStrategy, showSeparators, ...props }: ToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Toolbar";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { orientationType } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { FocusEvent, FocusEventHandler, KeyboardEvent, MouseEvent as ReactMouseEvent, MouseEventHandler, RefObject } from "react";
|
|
3
|
-
import { NavigationOutOfBoundsHandler } from "./Toolbar";
|
|
4
|
-
import { MenuCloseHandler } from "@vuu-ui/vuu-popups";
|
|
5
|
-
export interface ContainerNavigationProps {
|
|
6
|
-
onBlur: FocusEventHandler;
|
|
7
|
-
onFocus: FocusEventHandler;
|
|
8
|
-
onMouseDownCapture: MouseEventHandler;
|
|
9
|
-
onMouseLeave: MouseEventHandler;
|
|
10
|
-
}
|
|
11
|
-
interface ToolbarNavigationHookProps {
|
|
12
|
-
containerRef: RefObject<HTMLElement | null>;
|
|
13
|
-
defaultHighlightedIdx?: number;
|
|
14
|
-
highlightedIdx?: number;
|
|
15
|
-
onNavigateOutOfBounds?: NavigationOutOfBoundsHandler;
|
|
16
|
-
orientation: orientationType;
|
|
17
|
-
}
|
|
18
|
-
interface ToolbarNavigationHookResult {
|
|
19
|
-
containerProps: ContainerNavigationProps;
|
|
20
|
-
focusableIdx: number;
|
|
21
|
-
highlightedIdx: number;
|
|
22
|
-
focusItem: (itemIndex: number, immediateFocus?: boolean, withKeyboard?: boolean, delay?: number) => void;
|
|
23
|
-
focusVisible: number;
|
|
24
|
-
focusIsWithinComponent: boolean;
|
|
25
|
-
onClick: (evt: ReactMouseEvent, tabIndex: number) => void;
|
|
26
|
-
onFocus: (evt: FocusEvent<HTMLElement>) => void;
|
|
27
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
28
|
-
onOverflowMenuClose?: MenuCloseHandler;
|
|
29
|
-
setHighlightedIdx: (highlightedIndex: number) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare const useKeyboardNavigation: ({ containerRef, defaultHighlightedIdx, highlightedIdx: highlightedIdxProp, onNavigateOutOfBounds, orientation, }: ToolbarNavigationHookProps) => ToolbarNavigationHookResult;
|
|
32
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, RefObject } from "react";
|
|
2
|
-
import { SelectionStrategy, SpecialKeyMultipleSelection } from "../common-hooks";
|
|
3
|
-
export interface SelectionHookProps {
|
|
4
|
-
containerRef: RefObject<HTMLElement | null>;
|
|
5
|
-
defaultSelected?: number[];
|
|
6
|
-
highlightedIdx: number;
|
|
7
|
-
itemQuery: string;
|
|
8
|
-
onSelectionChange?: (selectedIndices: number[]) => void;
|
|
9
|
-
selected?: number[];
|
|
10
|
-
selectionStrategy: SelectionStrategy | SpecialKeyMultipleSelection;
|
|
11
|
-
}
|
|
12
|
-
export interface ItemHandlers {
|
|
13
|
-
onClick?: (e: MouseEvent, itemIndex: number) => void;
|
|
14
|
-
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
15
|
-
}
|
|
16
|
-
export interface SelectionHookResult {
|
|
17
|
-
activateItem: (tabIndex: number) => void;
|
|
18
|
-
itemHandlers: ItemHandlers;
|
|
19
|
-
isControlled: boolean;
|
|
20
|
-
selected: number[];
|
|
21
|
-
}
|
|
22
|
-
export declare const useSelection: ({ defaultSelected, highlightedIdx, onSelectionChange, selected: selectedProp, selectionStrategy, }: SelectionHookProps) => SelectionHookResult;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { KeyboardEvent, MouseEvent as ReactMouseEvent, RefObject } from "react";
|
|
2
|
-
import { OverflowItem } from "../overflow-container";
|
|
3
|
-
import { ToolbarProps } from "./Toolbar";
|
|
4
|
-
export interface ToolbarHookProps extends Pick<ToolbarProps, "activeItemIndex" | "defaultActiveItemIndex" | "onActiveChange" | "onNavigateOutOfBounds">, Required<Pick<ToolbarProps, "orientation" | "selectionStrategy">> {
|
|
5
|
-
containerRef: RefObject<HTMLElement | null>;
|
|
6
|
-
itemQuery?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const useToolbar: ({ activeItemIndex: activeItemIndexProp, defaultActiveItemIndex, containerRef, itemQuery, onActiveChange, onNavigateOutOfBounds, orientation, selectionStrategy, }: ToolbarHookProps) => {
|
|
9
|
-
activeItemIndex: number[];
|
|
10
|
-
focusableIdx: number;
|
|
11
|
-
focusVisible: number;
|
|
12
|
-
containerProps: {
|
|
13
|
-
onSwitchWrappedItemIntoView: (item: OverflowItem) => void;
|
|
14
|
-
onBlur: import("react").FocusEventHandler;
|
|
15
|
-
onFocus: import("react").FocusEventHandler;
|
|
16
|
-
onMouseDownCapture: import("react").MouseEventHandler;
|
|
17
|
-
onMouseLeave: import("react").MouseEventHandler;
|
|
18
|
-
PopupMenuProps: {
|
|
19
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
20
|
-
onMenuClose: import("@vuu-ui/vuu-popups").MenuCloseHandler | undefined;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
itemProps: {
|
|
24
|
-
onClick: (evt: ReactMouseEvent<HTMLElement>) => void;
|
|
25
|
-
onFocus: (evt: import("react").FocusEvent<HTMLElement>) => void;
|
|
26
|
-
onKeyDown: (evt: KeyboardEvent) => void;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function escapeRegExp(string: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isOverflowElement: (element: HTMLElement | null) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isPlainObject: (obj: Record<never, never>) => boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CommitHandler } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { SingleSelectionValueType } from "../calendar";
|
|
3
|
-
import { DatePickerProps } from "../date-picker";
|
|
4
|
-
export declare const VuuDatePicker: ({ className, onSelectionChange, selectedDate: selectedDateProp, onCommit, preserveFocusOnSelect, ...props }: Omit<DatePickerProps<SingleSelectionValueType>, "defaultSelectedDate"> & {
|
|
5
|
-
onCommit?: CommitHandler<HTMLElement, number>;
|
|
6
|
-
preserveFocusOnSelect?: boolean;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./VuuDatePicker";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
2
|
-
import { CommitHandler } from "@vuu-ui/vuu-utils";
|
|
3
|
-
import { InputProps } from "@salt-ds/core";
|
|
4
|
-
import { ForwardedRef, ReactElement, ReactNode } from "react";
|
|
5
|
-
export interface VuuInputProps<T extends VuuRowDataItemType = string> extends Omit<InputProps, "validationStatus"> {
|
|
6
|
-
commitOnBlur?: boolean;
|
|
7
|
-
commitWhenCleared?: boolean;
|
|
8
|
-
errorMessage?: ReactNode;
|
|
9
|
-
onCommit: CommitHandler;
|
|
10
|
-
type?: T;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* A variant of Salt Input that provides a commit callback prop,
|
|
14
|
-
* TODO along with cancel behaviour ?
|
|
15
|
-
*/
|
|
16
|
-
export declare const VuuInput: <T extends VuuRowDataItemType = string>(props: VuuInputProps<T> & {
|
|
17
|
-
ref?: ForwardedRef<HTMLDivElement>;
|
|
18
|
-
}) => ReactElement<VuuInputProps<T>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./VuuInput";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CommitHandler, TimeString } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { HTMLAttributes } from "react";
|
|
3
|
-
import { TimeInputProps } from "../time-input/TimeInput";
|
|
4
|
-
export interface VuuTimePickerProps extends Pick<TimeInputProps, "defaultValue" | "onChange" | "value">, Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange" | "value"> {
|
|
5
|
-
onCommit: CommitHandler<HTMLInputElement, TimeString>;
|
|
6
|
-
}
|
|
7
|
-
export declare const VuuTimePicker: ({ className, defaultValue, onChange, onCommit, value, ...htmlAttributes }: VuuTimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ComboBoxProps } from "@salt-ds/core";
|
|
2
|
-
import { VuuTypeaheadInputHookProps } from "./useVuuTypeaheadInput";
|
|
3
|
-
export interface VuuTypeaheadInputProps extends VuuTypeaheadInputHookProps, Pick<ComboBoxProps, "selectOnTab"> {
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const VuuTypeaheadInput: ({ allowFreeInput, className, column, freeTextWarning, highlightFirstSuggestion, inputProps: inputPropsProp, minCharacterCountToTriggerSuggestions, onCommit, selectOnTab, table, }: VuuTypeaheadInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./VuuTypeaheadInput";
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { PillInputProps } from "@salt-ds/core/dist-types/pill-input";
|
|
2
|
-
import { TableSchemaTable } from "@vuu-ui/vuu-data-types";
|
|
3
|
-
import { type CommitHandler } from "@vuu-ui/vuu-utils";
|
|
4
|
-
import { KeyboardEventHandler, type ChangeEventHandler, type RefCallback, type SyntheticEvent } from "react";
|
|
5
|
-
export interface VuuTypeaheadInputHookProps {
|
|
6
|
-
/**
|
|
7
|
-
* Allows a text string to be submitted that does not match any suggestion
|
|
8
|
-
* Defaults to true
|
|
9
|
-
*/
|
|
10
|
-
allowFreeInput?: boolean;
|
|
11
|
-
column: string;
|
|
12
|
-
/**
|
|
13
|
-
* A warning to display to the user if allowFreeText is false and they attempt
|
|
14
|
-
* to commit text which does not match any suggestions. A default message will
|
|
15
|
-
* be shown if not provided
|
|
16
|
-
*/
|
|
17
|
-
freeTextWarning?: string;
|
|
18
|
-
/**
|
|
19
|
-
* When suggestions are displayed, should first option be highlighted ?
|
|
20
|
-
* Highlighted option will be selected if Enter pressed. If this option
|
|
21
|
-
* is not applied and no suggestion is highlighted, Enter will commit
|
|
22
|
-
* current text. This will be desirable if filter operator will be
|
|
23
|
-
* 'contains', not if filter operator will be '='.
|
|
24
|
-
*/
|
|
25
|
-
highlightFirstSuggestion?: boolean;
|
|
26
|
-
inputProps?: PillInputProps["inputProps"];
|
|
27
|
-
/**
|
|
28
|
-
* If zero, suggestions will be shown even without any text input.
|
|
29
|
-
* Suggestions will be displayed on click, or, if focused via keynoard,
|
|
30
|
-
* on ArrowDown.
|
|
31
|
-
* If n, where n > 0, then n characters must be typed before suggestion
|
|
32
|
-
* list will be fetched.
|
|
33
|
-
*/
|
|
34
|
-
minCharacterCountToTriggerSuggestions?: 0 | 1 | 2 | 3;
|
|
35
|
-
onCommit: CommitHandler<HTMLInputElement>;
|
|
36
|
-
table: TableSchemaTable;
|
|
37
|
-
}
|
|
38
|
-
export declare const useVuuTypeaheadInput: ({ allowFreeInput, column, freeTextWarning, highlightFirstSuggestion, inputProps: inputPropsProp, minCharacterCountToTriggerSuggestions, onCommit, table, }: VuuTypeaheadInputHookProps) => {
|
|
39
|
-
inputProps: Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">;
|
|
40
|
-
noFreeText: string;
|
|
41
|
-
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
42
|
-
onKeyDown: KeyboardEventHandler<HTMLInputElement>;
|
|
43
|
-
onOpenChange: (newOpen: boolean) => void;
|
|
44
|
-
onSelectionChange: (evt: SyntheticEvent, [newSelected]: string[]) => void;
|
|
45
|
-
open: boolean;
|
|
46
|
-
ref: RefCallback<HTMLDivElement>;
|
|
47
|
-
typeaheadValues: string[];
|
|
48
|
-
value: string;
|
|
49
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface ClockProps {
|
|
2
|
-
year?: number;
|
|
3
|
-
month?: number;
|
|
4
|
-
day?: number;
|
|
5
|
-
hours?: number;
|
|
6
|
-
minutes?: number;
|
|
7
|
-
seconds?: number;
|
|
8
|
-
milliseconds?: number;
|
|
9
|
-
}
|
|
10
|
-
export type TimeUnit = "minutes" | "seconds" | "ms";
|
|
11
|
-
export declare class Clock {
|
|
12
|
-
#private;
|
|
13
|
-
constructor(props?: ClockProps);
|
|
14
|
-
goBack(value: number, units?: TimeUnit): this;
|
|
15
|
-
advance(value: number, units?: TimeUnit): this;
|
|
16
|
-
set showCurrentTime(value: boolean);
|
|
17
|
-
toString(): string;
|
|
18
|
-
get now(): number;
|
|
19
|
-
get date(): Date;
|
|
20
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export type DataItem = string | number | boolean;
|
|
2
|
-
export type DataRow = [
|
|
3
|
-
/** index */
|
|
4
|
-
number,
|
|
5
|
-
/** render index */
|
|
6
|
-
number,
|
|
7
|
-
/** isLeaf */
|
|
8
|
-
boolean,
|
|
9
|
-
/** isExpanded */
|
|
10
|
-
boolean,
|
|
11
|
-
/** depth */
|
|
12
|
-
number,
|
|
13
|
-
/** child count */
|
|
14
|
-
number,
|
|
15
|
-
/** key */
|
|
16
|
-
string,
|
|
17
|
-
/** selected */
|
|
18
|
-
number,
|
|
19
|
-
/** data values */
|
|
20
|
-
...DataItem[]
|
|
21
|
-
];
|
|
22
|
-
export type RangeLike = {
|
|
23
|
-
from: number;
|
|
24
|
-
to: number;
|
|
25
|
-
};
|
|
26
|
-
export declare class DataWindow {
|
|
27
|
-
private range;
|
|
28
|
-
data: DataRow[];
|
|
29
|
-
rowCount: number;
|
|
30
|
-
constructor({ from, to }: RangeLike);
|
|
31
|
-
setRowCount: (rowCount: number) => void;
|
|
32
|
-
add(data: DataRow): boolean;
|
|
33
|
-
getAtIndex(index: number): DataRow | undefined;
|
|
34
|
-
getByKey(key: string): DataRow | undefined;
|
|
35
|
-
isWithinRange(index: number): boolean;
|
|
36
|
-
setRange(from: number, to: number): void;
|
|
37
|
-
hasData(from: number, to: number): boolean;
|
|
38
|
-
getData(from: number, to: number): DataRow[];
|
|
39
|
-
}
|