@vuu-ui/vuu-data-react 0.13.47 → 0.13.48
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
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.13.
|
|
2
|
+
"version": "0.13.48",
|
|
3
3
|
"author": "heswell",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@vuu-ui/vuu-data-types": "0.13.
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "0.13.
|
|
8
|
-
"@vuu-ui/vuu-popups": "0.13.
|
|
9
|
-
"@vuu-ui/vuu-protocol-types": "0.13.
|
|
10
|
-
"@vuu-ui/vuu-table-types": "0.13.
|
|
6
|
+
"@vuu-ui/vuu-data-types": "0.13.48",
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "0.13.48",
|
|
8
|
+
"@vuu-ui/vuu-popups": "0.13.48",
|
|
9
|
+
"@vuu-ui/vuu-protocol-types": "0.13.48",
|
|
10
|
+
"@vuu-ui/vuu-table-types": "0.13.48"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@vuu-ui/vuu-context-menu": "0.13.
|
|
14
|
-
"@vuu-ui/vuu-data-remote": "0.13.
|
|
15
|
-
"@vuu-ui/vuu-filter-parser": "0.13.
|
|
16
|
-
"@vuu-ui/vuu-filters": "0.13.
|
|
17
|
-
"@vuu-ui/vuu-layout": "0.13.
|
|
18
|
-
"@vuu-ui/vuu-popups": "0.13.
|
|
19
|
-
"@vuu-ui/vuu-ui-controls": "0.13.
|
|
20
|
-
"@vuu-ui/vuu-utils": "0.13.
|
|
21
|
-
"@vuu-ui/vuu-table": "0.13.
|
|
13
|
+
"@vuu-ui/vuu-context-menu": "0.13.48",
|
|
14
|
+
"@vuu-ui/vuu-data-remote": "0.13.48",
|
|
15
|
+
"@vuu-ui/vuu-filter-parser": "0.13.48",
|
|
16
|
+
"@vuu-ui/vuu-filters": "0.13.48",
|
|
17
|
+
"@vuu-ui/vuu-layout": "0.13.48",
|
|
18
|
+
"@vuu-ui/vuu-popups": "0.13.48",
|
|
19
|
+
"@vuu-ui/vuu-ui-controls": "0.13.48",
|
|
20
|
+
"@vuu-ui/vuu-utils": "0.13.48",
|
|
21
|
+
"@vuu-ui/vuu-table": "0.13.48",
|
|
22
22
|
"@salt-ds/core": "1.48.0",
|
|
23
23
|
"@salt-ds/styles": "0.2.1",
|
|
24
24
|
"@salt-ds/window": "0.1.1"
|
|
@@ -3,4 +3,4 @@ export interface ConnectionStatusHookProps {
|
|
|
3
3
|
connectionState?: WebSocketConnectionState;
|
|
4
4
|
}
|
|
5
5
|
export declare const getConnectinStateDisplayText: (connectionState: WebSocketConnectionState) => "Unable to connect to data service" | "Failed to connect" | "Failed to re-connect" | "Attempting to connect to data service" | "Attempting to reconnect to data service" | undefined;
|
|
6
|
-
export declare const useConnectionStatus: ({ connectionState: connectionStateProp, }: ConnectionStatusHookProps) => WebSocketConnectionState<import("
|
|
6
|
+
export declare const useConnectionStatus: ({ connectionState: connectionStateProp, }: ConnectionStatusHookProps) => WebSocketConnectionState<import("@vuu-ui/vuu-data-remote/src/WebSocketConnection").ConnectionStatus>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MenuProps } from "@salt-ds/core";
|
|
2
|
-
import { MenuActionHandler } from "./ContextMenuProvider";
|
|
3
|
-
import { ContextMenuItemDescriptor } from "./menu-utils";
|
|
4
|
-
export interface ContextMenuProps extends Pick<MenuProps, "open" | "onOpenChange"> {
|
|
5
|
-
menuHandler: MenuActionHandler;
|
|
6
|
-
menuItemDescriptors: ContextMenuItemDescriptor[];
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const ContextMenu: ({ menuHandler, menuItemDescriptors, onOpenChange, open, x, y, }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from "react";
|
|
2
|
-
import { ContextMenuItemDescriptor } from "./menu-utils";
|
|
3
|
-
export type MenuActionHandler<T extends string = string, Options = unknown> = (menuItemId: T, options?: Options) => boolean | undefined;
|
|
4
|
-
export type MenuBuilder<Location extends string = string, Options = unknown> = (location: Location, options: Options) => ContextMenuItemDescriptor[];
|
|
5
|
-
export interface ContextMenuContextType {
|
|
6
|
-
menuBuilders: MenuBuilder[];
|
|
7
|
-
menuActionHandler: MenuActionHandler;
|
|
8
|
-
showContextMenu: (contextMenu: ReactElement | null) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const ContextMenuContext: import("react").Context<ContextMenuContextType | null>;
|
|
11
|
-
export interface ContextMenuProviderProps<L extends string = string, O = unknown> {
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
menuActionHandler?: MenuActionHandler;
|
|
14
|
-
menuBuilder?: MenuBuilder<L, O>;
|
|
15
|
-
}
|
|
16
|
-
export declare const ContextMenuProvider: <L extends string = string, O = unknown>({ children, menuActionHandler, menuBuilder, }: ContextMenuProviderProps<L, O>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { ContextMenuProvider, type MenuActionHandler, type MenuBuilder, } from "./ContextMenuProvider";
|
|
2
|
-
export { hasShowNotificationAction, isGroupMenuItemDescriptor, isOpenBulkEditResponse, type ContextMenuGroupItemDescriptor, type ContextMenuItemDescriptor, } from "./menu-utils";
|
|
3
|
-
export { useContextMenu } from "./useContextMenu";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { MenuRpcResponse, OpenDialogActionWithSchema } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import type { ShowNotificationAction, VuuRpcResponse } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
import { MenuActionHandler } from "./ContextMenuProvider";
|
|
4
|
-
export interface ContextMenuItemBase {
|
|
5
|
-
className?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
label: string;
|
|
8
|
-
location?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ContextMenuLeafItemDescriptor extends ContextMenuItemBase {
|
|
11
|
-
id: string;
|
|
12
|
-
options?: unknown;
|
|
13
|
-
}
|
|
14
|
-
export interface ContextMenuGroupItemDescriptor extends ContextMenuItemBase {
|
|
15
|
-
children: ContextMenuItemDescriptor[];
|
|
16
|
-
}
|
|
17
|
-
export type ContextMenuItemDescriptor = ContextMenuLeafItemDescriptor | ContextMenuGroupItemDescriptor;
|
|
18
|
-
export declare const isGroupMenuItemDescriptor: (menuItem?: ContextMenuItemDescriptor) => menuItem is ContextMenuGroupItemDescriptor;
|
|
19
|
-
export declare const isOpenBulkEditResponse: (rpcResponse: Partial<VuuRpcResponse>) => rpcResponse is MenuRpcResponse<OpenDialogActionWithSchema>;
|
|
20
|
-
export declare const hasShowNotificationAction: (res: Partial<VuuRpcResponse>) => res is MenuRpcResponse<ShowNotificationAction>;
|
|
21
|
-
export declare const menuItemsFromMenuDescriptors: (menuDescriptors: ContextMenuItemDescriptor[], menuActionHandler: MenuActionHandler) => import("react/jsx-runtime").JSX.Element[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ContextMenuProps } from "./ContextMenu";
|
|
2
|
-
import { MenuActionHandler, MenuBuilder } from "./ContextMenuProvider";
|
|
3
|
-
export type EventLike = {
|
|
4
|
-
clientX: number;
|
|
5
|
-
clientY: number;
|
|
6
|
-
preventDefault?: () => void;
|
|
7
|
-
stopPropagation?: () => void;
|
|
8
|
-
};
|
|
9
|
-
export type ShowContextMenu = (e: EventLike, location: string, options: unknown, contextMenuProps?: Partial<Pick<ContextMenuProps, "onOpenChange" | "x" | "y">>) => boolean;
|
|
10
|
-
export declare const useContextMenu: (menuBuilder?: MenuBuilder, menuActionHandler?: MenuActionHandler) => ShowContextMenu;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { NotificationsContext } from "./NotificationsContext";
|
|
2
|
-
export interface NotificationsCenterProps {
|
|
3
|
-
notificationsContext: NotificationsContext;
|
|
4
|
-
}
|
|
5
|
-
export declare const NotificationsCenter: ({ notificationsContext, }: NotificationsCenterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ValueOf } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
export type DispatchShowNotification = (notification: Notification) => void;
|
|
4
|
-
export type DispatchHideNotification = () => void;
|
|
5
|
-
export declare const NotificationLevel: {
|
|
6
|
-
readonly Error: "error";
|
|
7
|
-
readonly Info: "info";
|
|
8
|
-
readonly Success: "success";
|
|
9
|
-
readonly Warning: "warning";
|
|
10
|
-
};
|
|
11
|
-
export type NotificationLevel = ValueOf<typeof NotificationLevel>;
|
|
12
|
-
export declare const NotificationType: {
|
|
13
|
-
readonly Toast: "toast";
|
|
14
|
-
readonly Workspace: "workspace";
|
|
15
|
-
};
|
|
16
|
-
export type NotificationType = ValueOf<typeof NotificationType>;
|
|
17
|
-
interface NotificationDescriptorBase<T extends NotificationType> {
|
|
18
|
-
level: NotificationLevel;
|
|
19
|
-
type: T;
|
|
20
|
-
}
|
|
21
|
-
export interface ToastNotificationDescriptor extends NotificationDescriptorBase<"toast"> {
|
|
22
|
-
content: string;
|
|
23
|
-
header: string;
|
|
24
|
-
}
|
|
25
|
-
export interface WorkspaceNotificationDescriptor extends NotificationDescriptorBase<"workspace"> {
|
|
26
|
-
content: ReactNode;
|
|
27
|
-
}
|
|
28
|
-
export type Notification = ToastNotificationDescriptor | WorkspaceNotificationDescriptor;
|
|
29
|
-
export declare const isToastNotification: (n: Notification) => n is ToastNotificationDescriptor;
|
|
30
|
-
export declare const isWorkspaceNotification: (n: Notification) => n is WorkspaceNotificationDescriptor;
|
|
31
|
-
export type NotificationsContext = {
|
|
32
|
-
hideNotification: DispatchHideNotification;
|
|
33
|
-
showNotification: DispatchShowNotification;
|
|
34
|
-
setNotify: (showNotificationDispatcher: DispatchShowNotification, hideNotificationDispatcher: DispatchHideNotification) => void;
|
|
35
|
-
};
|
|
36
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { DispatchHideNotification, DispatchShowNotification } from "./NotificationsContext";
|
|
3
|
-
export declare const NotificationsProvider: (props: {
|
|
4
|
-
children: ReactElement | ReactElement[];
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const useNotifications: () => {
|
|
7
|
-
hideNotification: DispatchHideNotification;
|
|
8
|
-
showNotification: DispatchShowNotification;
|
|
9
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ToastNotificationDescriptor } from "./NotificationsContext";
|
|
2
|
-
export type ToastNotificationProps = {
|
|
3
|
-
top: number;
|
|
4
|
-
notification: ToastNotificationDescriptor;
|
|
5
|
-
animated?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const ToastNotification: (props: ToastNotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
export interface WorkspaceNotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare const WorkspaceNotification: ({ children, className, style: styleProp, ...htmlAttributes }: WorkspaceNotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, RefObject } from "react";
|
|
2
|
-
import { Position } from "./getPositionRelativeToAnchor";
|
|
3
|
-
export type PopupPlacement = "absolute" | "auto" | "below" | "below-center" | "below-right" | "below-full-width" | "center" | "right";
|
|
4
|
-
export interface PopupComponentProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
anchorElement: RefObject<HTMLElement | null>;
|
|
6
|
-
minWidth?: number | string;
|
|
7
|
-
offsetLeft?: number;
|
|
8
|
-
offsetTop?: number;
|
|
9
|
-
placement: PopupPlacement;
|
|
10
|
-
position?: Position;
|
|
11
|
-
}
|
|
12
|
-
export declare const PopupComponent: ({ children, className, anchorElement, minWidth, offsetLeft, offsetTop, placement, position: positionProp, }: PopupComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PopupPlacement } from "./Popup";
|
|
2
|
-
export type Visibility = "hidden" | "visible";
|
|
3
|
-
export type Position = {
|
|
4
|
-
left: number;
|
|
5
|
-
minWidth?: number | string;
|
|
6
|
-
top: number;
|
|
7
|
-
visibility?: Visibility;
|
|
8
|
-
width?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const getPositionRelativeToAnchor: (anchorElement: HTMLElement, placement: PopupPlacement, offsetLeft: number, offsetTop: number, minWidth?: number | string, dimensions?: {
|
|
11
|
-
height: number;
|
|
12
|
-
width: number;
|
|
13
|
-
}) => {
|
|
14
|
-
left: number;
|
|
15
|
-
minWidth?: number | string;
|
|
16
|
-
top: number;
|
|
17
|
-
visibility?: Visibility;
|
|
18
|
-
width?: number;
|
|
19
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Position } from "./getPositionRelativeToAnchor";
|
|
2
|
-
import { PopupComponentProps } from "./Popup";
|
|
3
|
-
export type AnchoredPositionHookProps = Pick<PopupComponentProps, "anchorElement" | "minWidth" | "offsetLeft" | "offsetTop" | "placement" | "position">;
|
|
4
|
-
export declare const useAnchoredPosition: ({ anchorElement, minWidth, offsetLeft, offsetTop, placement, position: positionProp, }: AnchoredPositionHookProps) => {
|
|
5
|
-
position: Position | undefined;
|
|
6
|
-
popupRef: ((el: HTMLDivElement | null) => void) | undefined;
|
|
7
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from "@salt-ds/core";
|
|
2
|
-
import { MenuActionHandler, MenuBuilder } from "@vuu-ui/vuu-context-menu";
|
|
3
|
-
import { HTMLAttributes, KeyboardEvent, RefObject } from "react";
|
|
4
|
-
import { PopupPlacement } from "../popup/Popup";
|
|
5
|
-
export type TabAwayClosePopup = {
|
|
6
|
-
closedBy?: string;
|
|
7
|
-
type: "tab-away";
|
|
8
|
-
event: KeyboardEvent;
|
|
9
|
-
};
|
|
10
|
-
export type ClickAwayClosePopup = {
|
|
11
|
-
closedBy?: string;
|
|
12
|
-
type: "click-away";
|
|
13
|
-
mouseEvt: MouseEvent;
|
|
14
|
-
};
|
|
15
|
-
export type EscapeClosePopup = {
|
|
16
|
-
closedBy?: string;
|
|
17
|
-
event: KeyboardEvent;
|
|
18
|
-
type: "escape";
|
|
19
|
-
};
|
|
20
|
-
export type MenuActionClosePopup = {
|
|
21
|
-
closedBy?: string;
|
|
22
|
-
menuId: string;
|
|
23
|
-
options: unknown;
|
|
24
|
-
type: "menu-action";
|
|
25
|
-
};
|
|
26
|
-
export type PopupCloseReason = ClickAwayClosePopup | EscapeClosePopup | MenuActionClosePopup | TabAwayClosePopup;
|
|
27
|
-
export type MenuCloseHandler = (reason?: PopupCloseReason) => void;
|
|
28
|
-
export interface PopupMenuProps extends HTMLAttributes<HTMLButtonElement> {
|
|
29
|
-
anchorElement?: RefObject<HTMLElement | null>;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
icon?: string;
|
|
32
|
-
label?: string;
|
|
33
|
-
menuActionHandler?: MenuActionHandler;
|
|
34
|
-
menuBuilder?: MenuBuilder;
|
|
35
|
-
menuClassName?: string;
|
|
36
|
-
menuLocation?: string;
|
|
37
|
-
menuOptions?: {
|
|
38
|
-
[key: string]: unknown;
|
|
39
|
-
};
|
|
40
|
-
onMenuClose?: MenuCloseHandler;
|
|
41
|
-
onMenuOpen?: () => void;
|
|
42
|
-
popupPlacement?: PopupPlacement;
|
|
43
|
-
variant?: ButtonProps["variant"];
|
|
44
|
-
}
|
|
45
|
-
export declare const PopupMenu: ({ anchorElement, className, disabled, label, icon, id: idProp, menuActionHandler, menuBuilder, menuClassName, menuLocation, menuOptions, onMenuClose, onMenuOpen, popupPlacement, tabIndex, variant, ...htmlAttributes }: PopupMenuProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./PopupMenu";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AriaAttributes, MouseEvent } from "react";
|
|
2
|
-
import { PopupMenuProps } from "./PopupMenu";
|
|
3
|
-
import { PopupPlacement } from "../popup/Popup";
|
|
4
|
-
export interface PopupMenuHookProps extends Pick<PopupMenuProps, "anchorElement" | "menuActionHandler" | "menuBuilder" | "menuClassName" | "menuOptions" | "onMenuClose" | "onMenuOpen"> {
|
|
5
|
-
id: string;
|
|
6
|
-
menuLocation: string;
|
|
7
|
-
popupPlacement: PopupPlacement;
|
|
8
|
-
tabIndex: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const usePopupMenu: ({ anchorElement, id, menuActionHandler, menuBuilder, menuLocation, menuOptions, onMenuClose, onMenuOpen, popupPlacement, tabIndex, }: PopupMenuHookProps) => {
|
|
11
|
-
ariaAttributes: AriaAttributes;
|
|
12
|
-
buttonProps: {
|
|
13
|
-
id: string;
|
|
14
|
-
onClick: (e: MouseEvent<HTMLElement>) => void;
|
|
15
|
-
tabIndex: number;
|
|
16
|
-
};
|
|
17
|
-
menuOpen: boolean;
|
|
18
|
-
rootRef: import("react").RefObject<HTMLButtonElement | null>;
|
|
19
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ThemeAttributes } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
export interface PortalProps {
|
|
4
|
-
/**
|
|
5
|
-
* The children to render into the `container`.
|
|
6
|
-
*/
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* An HTML element, component instance, or function that returns either.
|
|
10
|
-
* The `container` will have the portal children appended to it.
|
|
11
|
-
*
|
|
12
|
-
* By default, it uses the body of the top-level document object,
|
|
13
|
-
* so it's simply `document.body` most of the time.
|
|
14
|
-
*/
|
|
15
|
-
container?: Element | (() => Element | null) | null;
|
|
16
|
-
/**
|
|
17
|
-
* Id of element into which portal will be rendered. If this node does not exist on the document,
|
|
18
|
-
* it will be created for you. If more than one value is provided, the first element found will
|
|
19
|
-
* be used.
|
|
20
|
-
*/
|
|
21
|
-
id?: string | string[];
|
|
22
|
-
/**
|
|
23
|
-
* Callback invoked immediately after render (in layoutEffect). Can be
|
|
24
|
-
* used to check position vis-a-vis viewport and adjust if out of bounds
|
|
25
|
-
*/
|
|
26
|
-
onRender?: () => void;
|
|
27
|
-
/**
|
|
28
|
-
* Allow conditional rendering of this Portal, if false, will render nothing.
|
|
29
|
-
* Defaults to true
|
|
30
|
-
*/
|
|
31
|
-
open?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* ThemeAttributes can be passed in for cases where ContextMenu is
|
|
34
|
-
* rendered via popup-service showPopup, outside the Context hierarchy.
|
|
35
|
-
*/
|
|
36
|
-
themeAttributes?: ThemeAttributes;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Portals provide a first-class way to render children into a DOM node
|
|
40
|
-
* that exists outside the DOM hierarchy of the parent component.
|
|
41
|
-
*/
|
|
42
|
-
export declare const Portal: ({ children, container: containerProp, id, onRender, open, themeAttributes, }: PortalProps) => import("react").ReactPortal | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Portal";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, MouseEventHandler, ReactNode, RefObject } from "react";
|
|
2
|
-
import { TooltipPlacement } from "./useTooltipAnchoredPosition";
|
|
3
|
-
export type TooltipStatus = "warning" | "error" | "info";
|
|
4
|
-
export interface TooltipProps {
|
|
5
|
-
anchorElement: RefObject<HTMLElement | null>;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
onMouseEnter: MouseEventHandler;
|
|
10
|
-
onMouseLeave: MouseEventHandler;
|
|
11
|
-
placement: TooltipPlacement | TooltipPlacement[];
|
|
12
|
-
status?: TooltipStatus;
|
|
13
|
-
style?: CSSProperties;
|
|
14
|
-
}
|
|
15
|
-
export declare const Tooltip: ({ anchorElement, children, className, id, onMouseEnter, onMouseLeave, placement: placementProp, status, style: styleProp, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ReactNode } from "react";
|
|
2
|
-
import { TooltipProps } from "./Tooltip";
|
|
3
|
-
import { TooltipPlacement } from "./useTooltipAnchoredPosition";
|
|
4
|
-
export interface TooltipHookProps {
|
|
5
|
-
anchorQuery?: string;
|
|
6
|
-
id: string;
|
|
7
|
-
placement?: TooltipPlacement | TooltipPlacement[];
|
|
8
|
-
tooltipContent: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare const useTooltip: ({ anchorQuery, id: idProp, placement, tooltipContent, }: TooltipHookProps) => {
|
|
11
|
-
anchorProps: {
|
|
12
|
-
"aria-describedby": string;
|
|
13
|
-
onMouseEnter: (evt: MouseEvent) => void;
|
|
14
|
-
onMouseLeave: () => void;
|
|
15
|
-
};
|
|
16
|
-
hideTooltip: (defer?: number) => void;
|
|
17
|
-
showTooltip: (ref?: import("react").RefObject<HTMLElement | null>) => void;
|
|
18
|
-
tooltipProps: TooltipProps | undefined;
|
|
19
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RefCallback, RefObject } from "react";
|
|
2
|
-
export type TooltipPlacement = "above" | "right" | "below" | "left";
|
|
3
|
-
export interface TooltipAnchoredPositionHookProps {
|
|
4
|
-
anchorElement: RefObject<HTMLElement | null>;
|
|
5
|
-
placement: TooltipPlacement | TooltipPlacement[];
|
|
6
|
-
}
|
|
7
|
-
export declare const useTooltipAnchoredPosition: ({ anchorElement, placement, }: TooltipAnchoredPositionHookProps) => RefCallback<HTMLDivElement>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type CalendarCarouselProps } from "./internal/CalendarCarousel";
|
|
2
|
-
import { type CalendarNavigationProps } from "./internal/CalendarNavigation";
|
|
3
|
-
import { type useCalendarProps } from "./useCalendar";
|
|
4
|
-
export type CalendarProps = useCalendarProps & {
|
|
5
|
-
className?: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
renderDayContents?: CalendarCarouselProps["renderDayContents"];
|
|
8
|
-
hideYearDropdown?: CalendarNavigationProps["hideYearDropdown"];
|
|
9
|
-
borderedDropdown?: CalendarNavigationProps["borderedDropdown"];
|
|
10
|
-
TooltipProps?: CalendarCarouselProps["TooltipProps"];
|
|
11
|
-
hideOutOfRangeDates?: CalendarCarouselProps["hideOutOfRangeDates"];
|
|
12
|
-
};
|
|
13
|
-
export declare const Calendar: import("react").ForwardRefExoticComponent<CalendarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type CalendarMonthProps } from "./CalendarMonth";
|
|
2
|
-
export type CalendarCarouselProps = Omit<CalendarMonthProps, "date">;
|
|
3
|
-
export declare const CalendarCarousel: import("react").ForwardRefExoticComponent<Omit<CalendarCarouselProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { useCalendar } from "../useCalendar";
|
|
2
|
-
interface CalendarState {
|
|
3
|
-
state: ReturnType<typeof useCalendar>["state"];
|
|
4
|
-
helpers: ReturnType<typeof useCalendar>["helpers"];
|
|
5
|
-
}
|
|
6
|
-
declare const CalendarContext: import("react").Context<CalendarState | null>;
|
|
7
|
-
declare function useCalendarContext(): CalendarState;
|
|
8
|
-
export { CalendarContext, useCalendarContext };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { DateValue } from "@internationalized/date";
|
|
2
|
-
import { type TooltipProps } from "@salt-ds/core";
|
|
3
|
-
import { type ComponentPropsWithRef, type ReactElement } from "react";
|
|
4
|
-
import { type DayStatus } from "../useCalendarDay";
|
|
5
|
-
export type DateFormatter = (day: Date) => string | undefined;
|
|
6
|
-
export interface CalendarDayProps extends Omit<ComponentPropsWithRef<"button">, "children"> {
|
|
7
|
-
day: DateValue;
|
|
8
|
-
formatDate?: DateFormatter;
|
|
9
|
-
renderDayContents?: (date: DateValue, status: DayStatus) => ReactElement;
|
|
10
|
-
status?: DayStatus;
|
|
11
|
-
month: DateValue;
|
|
12
|
-
TooltipProps?: Partial<TooltipProps>;
|
|
13
|
-
}
|
|
14
|
-
export declare const CalendarDay: import("react").ForwardRefExoticComponent<Omit<CalendarDayProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DateValue } from "@internationalized/date";
|
|
2
|
-
import { type ComponentPropsWithRef } from "react";
|
|
3
|
-
import { type CalendarDayProps } from "./CalendarDay";
|
|
4
|
-
export interface CalendarMonthProps extends ComponentPropsWithRef<"div"> {
|
|
5
|
-
date: DateValue;
|
|
6
|
-
hideOutOfRangeDates?: boolean;
|
|
7
|
-
renderDayContents?: CalendarDayProps["renderDayContents"];
|
|
8
|
-
TooltipProps?: CalendarDayProps["TooltipProps"];
|
|
9
|
-
}
|
|
10
|
-
export declare const CalendarMonth: import("react").ForwardRefExoticComponent<Omit<CalendarMonthProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type ButtonProps, type DropdownProps } from "@salt-ds/core";
|
|
2
|
-
import { type ComponentPropsWithRef } from "react";
|
|
3
|
-
import { type DateValue } from "@internationalized/date";
|
|
4
|
-
type dateDropdownProps = DropdownProps<DateValue>;
|
|
5
|
-
export interface CalendarNavigationProps extends ComponentPropsWithRef<"div"> {
|
|
6
|
-
MonthDropdownProps?: dateDropdownProps;
|
|
7
|
-
YearDropdownProps?: dateDropdownProps;
|
|
8
|
-
onMonthSelect?: dateDropdownProps["onChange"];
|
|
9
|
-
onYearSelect?: dateDropdownProps["onChange"];
|
|
10
|
-
borderedDropdown?: dateDropdownProps["bordered"];
|
|
11
|
-
onNavigateNext?: ButtonProps["onClick"];
|
|
12
|
-
onNavigatePrevious?: ButtonProps["onClick"];
|
|
13
|
-
hideYearDropdown?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const CalendarNavigation: import("react").ForwardRefExoticComponent<Omit<CalendarNavigationProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef } from "react";
|
|
2
|
-
export type CalendarWeekHeaderProps = ComponentPropsWithRef<"div">;
|
|
3
|
-
export declare const CalendarWeekHeader: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type DateValue } from "@internationalized/date";
|
|
2
|
-
import type { FocusEventHandler, KeyboardEventHandler, MouseEventHandler } from "react";
|
|
3
|
-
export declare function useFocusManagement({ date }: {
|
|
4
|
-
date: DateValue;
|
|
5
|
-
}): {
|
|
6
|
-
handleClick: MouseEventHandler<HTMLButtonElement>;
|
|
7
|
-
handleKeyDown: KeyboardEventHandler<HTMLButtonElement>;
|
|
8
|
-
handleFocus: FocusEventHandler<HTMLButtonElement>;
|
|
9
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DateFormatter, type DateValue } from "@internationalized/date";
|
|
2
|
-
export declare function getCurrentLocale(): string;
|
|
3
|
-
export declare function getDateFormatter(options?: Intl.DateTimeFormatOptions): DateFormatter;
|
|
4
|
-
export declare function formatDate(date: DateValue, options?: Intl.DateTimeFormatOptions): string;
|
|
5
|
-
export declare function getCalender(): import("@internationalized/date").Calendar;
|
|
6
|
-
type WeekdayFormat = Intl.DateTimeFormatOptions["weekday"];
|
|
7
|
-
export declare function daysForLocale(weekday?: WeekdayFormat): string[];
|
|
8
|
-
export declare function monthsForLocale(currentYear: DateValue): (import("@internationalized/date").CalendarDate | import("@internationalized/date").CalendarDateTime | import("@internationalized/date").ZonedDateTime)[];
|
|
9
|
-
export declare function generateVisibleDays(currentMonth: DateValue): {
|
|
10
|
-
date: DateValue;
|
|
11
|
-
dateOfMonth: number;
|
|
12
|
-
isCurrentMonth: boolean;
|
|
13
|
-
}[];
|
|
14
|
-
export declare function monthDiff(a: DateValue, b: DateValue): number;
|
|
15
|
-
export {};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { type DateValue } from "@internationalized/date";
|
|
2
|
-
import { type SyntheticEvent } from "react";
|
|
3
|
-
import { type UseMultiSelectionCalendarProps, type UseOffsetSelectionCalendarProps, type UseRangeSelectionCalendarProps, type UseSingleSelectionCalendarProps } from "./useSelection";
|
|
4
|
-
interface BaseUseCalendarProps {
|
|
5
|
-
defaultVisibleMonth?: DateValue;
|
|
6
|
-
onVisibleMonthChange?: (event: SyntheticEvent, visibleMonth: DateValue) => void;
|
|
7
|
-
isDayUnselectable?: (date: DateValue) => string | false | undefined;
|
|
8
|
-
isDayHighlighted?: (date: DateValue) => string | false | undefined;
|
|
9
|
-
isDayDisabled?: (date: DateValue) => boolean;
|
|
10
|
-
visibleMonth?: DateValue;
|
|
11
|
-
hideOutOfRangeDates?: boolean;
|
|
12
|
-
hideYearDropdown?: boolean;
|
|
13
|
-
minDate?: DateValue;
|
|
14
|
-
maxDate?: DateValue;
|
|
15
|
-
}
|
|
16
|
-
export type useCalendarProps = (Omit<UseSingleSelectionCalendarProps, "isDaySelectable"> | Omit<UseMultiSelectionCalendarProps, "isDaySelectable"> | Omit<UseRangeSelectionCalendarProps, "isDaySelectable"> | Omit<UseOffsetSelectionCalendarProps, "isDaySelectable">) & BaseUseCalendarProps;
|
|
17
|
-
export declare function useCalendar(props: useCalendarProps): {
|
|
18
|
-
state: {
|
|
19
|
-
selectedDate: DateValue | import("./useSelection").RangeSelectionValueType | {
|
|
20
|
-
startDate?: DateValue;
|
|
21
|
-
endDate?: DateValue;
|
|
22
|
-
} | DateValue[] | null | undefined;
|
|
23
|
-
hoveredDate: import("@internationalized/date").CalendarDate | import("@internationalized/date").CalendarDateTime | import("@internationalized/date").ZonedDateTime | null | undefined;
|
|
24
|
-
visibleMonth: DateValue;
|
|
25
|
-
focusedDate: DateValue;
|
|
26
|
-
minDate: DateValue | undefined;
|
|
27
|
-
maxDate: DateValue | undefined;
|
|
28
|
-
selectionVariant: "default" | "offset" | "range" | "multiselect";
|
|
29
|
-
hideOutOfRangeDates: boolean | undefined;
|
|
30
|
-
calendarFocused: boolean;
|
|
31
|
-
};
|
|
32
|
-
helpers: {
|
|
33
|
-
setSelectedDate: (event: SyntheticEvent<HTMLButtonElement>, newSelectedDate: DateValue) => void;
|
|
34
|
-
isSelected: (date: DateValue) => boolean;
|
|
35
|
-
setHoveredDate: (event: SyntheticEvent, date: DateValue | null) => void;
|
|
36
|
-
isHovered: (date: DateValue) => boolean;
|
|
37
|
-
isSelectedSpan: (date: DateValue) => boolean;
|
|
38
|
-
isHoveredSpan: (date: DateValue) => boolean;
|
|
39
|
-
isSelectedStart: (date: DateValue) => boolean;
|
|
40
|
-
isSelectedEnd: (date: DateValue) => boolean;
|
|
41
|
-
isHoveredOffset: (date: DateValue) => boolean;
|
|
42
|
-
setVisibleMonth: (event: SyntheticEvent, newVisibleMonth: DateValue) => void;
|
|
43
|
-
setFocusedDate: (event: SyntheticEvent, date: DateValue) => void;
|
|
44
|
-
setCalendarFocused: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
45
|
-
isDayUnselectable: (date: DateValue) => string | false | undefined;
|
|
46
|
-
isDayHighlighted: (date: DateValue) => string | false | undefined;
|
|
47
|
-
isDayDisabled: (date: DateValue) => boolean;
|
|
48
|
-
isDayVisible: (date: DateValue) => boolean;
|
|
49
|
-
isOutsideAllowedDates: (date: DateValue) => boolean;
|
|
50
|
-
isOutsideAllowedMonths: (date: DateValue) => boolean;
|
|
51
|
-
isOutsideAllowedYears: (date: DateValue) => boolean;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type DateValue } from "@internationalized/date";
|
|
2
|
-
import { type ComponentPropsWithoutRef, type RefObject } from "react";
|
|
3
|
-
export interface DayStatus {
|
|
4
|
-
outOfRange?: boolean;
|
|
5
|
-
selected?: boolean;
|
|
6
|
-
today?: boolean;
|
|
7
|
-
unselectable?: string | false;
|
|
8
|
-
highlighted?: string | false;
|
|
9
|
-
focused?: boolean;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
hidden?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface useCalendarDayProps {
|
|
14
|
-
date: DateValue;
|
|
15
|
-
month: DateValue;
|
|
16
|
-
}
|
|
17
|
-
export declare function useCalendarDay({ date, month }: useCalendarDayProps, ref: RefObject<HTMLElement | null>): {
|
|
18
|
-
status: DayStatus;
|
|
19
|
-
dayProps: ComponentPropsWithoutRef<"button">;
|
|
20
|
-
unselectableReason: string | false | undefined;
|
|
21
|
-
highlightedReason: string | false | undefined;
|
|
22
|
-
};
|