@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,24 +0,0 @@
|
|
|
1
|
-
import { ColumnTypeFormatting } from "@vuu-ui/vuu-table-types";
|
|
2
|
-
declare const supportedDatePatterns: readonly ["dd.mm.yyyy", "dd/mm/yyyy", "dd MMM yyyy", "dd MMMM yyyy", "mm/dd/yyyy", "MMM dd, yyyy", "MMMM dd, yyyy"];
|
|
3
|
-
declare const supportedTimePatterns: readonly ["hh:mm:ss", "hh:mm:ss a", "hh:mm:ss.ms"];
|
|
4
|
-
export declare const supportedDateTimePatterns: {
|
|
5
|
-
date: readonly ["dd.mm.yyyy", "dd/mm/yyyy", "dd MMM yyyy", "dd MMMM yyyy", "mm/dd/yyyy", "MMM dd, yyyy", "MMMM dd, yyyy"];
|
|
6
|
-
time: readonly ["hh:mm:ss", "hh:mm:ss a", "hh:mm:ss.ms"];
|
|
7
|
-
};
|
|
8
|
-
export declare const dateTimeLabelByType: {
|
|
9
|
-
readonly date: "Date";
|
|
10
|
-
readonly time: "Time";
|
|
11
|
-
};
|
|
12
|
-
export type DatePattern = (typeof supportedDatePatterns)[number];
|
|
13
|
-
export type TimePattern = (typeof supportedTimePatterns)[number];
|
|
14
|
-
export type DateTimePattern = {
|
|
15
|
-
date?: DatePattern;
|
|
16
|
-
time: TimePattern;
|
|
17
|
-
} | {
|
|
18
|
-
date: DatePattern;
|
|
19
|
-
time?: TimePattern;
|
|
20
|
-
};
|
|
21
|
-
export declare const isDatePattern: (pattern?: string) => pattern is DatePattern;
|
|
22
|
-
export declare const isTimePattern: (pattern?: string) => pattern is TimePattern;
|
|
23
|
-
export declare const isDateTimePattern: (pattern?: ColumnTypeFormatting["pattern"]) => pattern is DateTimePattern;
|
|
24
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type Listener = (...args: any[]) => void;
|
|
2
|
-
export type EmittedEvents = Record<string, Listener>;
|
|
3
|
-
export interface IEventEmitter<Events extends EmittedEvents> {
|
|
4
|
-
addListener<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
5
|
-
emit<E extends keyof Events>(event: E, ...args: Parameters<Events[E]>): void;
|
|
6
|
-
on<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
7
|
-
removeListener<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
8
|
-
removeAllListeners<E extends keyof Events>(event?: E): void;
|
|
9
|
-
}
|
|
10
|
-
export declare class EventEmitter<Events extends EmittedEvents> implements IEventEmitter<Events> {
|
|
11
|
-
#private;
|
|
12
|
-
addListener<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
13
|
-
removeListener<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
14
|
-
removeAllListeners<E extends keyof Events>(event?: E): void;
|
|
15
|
-
emit<E extends keyof Events>(event: E, ...args: Parameters<Events[E]>): void;
|
|
16
|
-
once<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
17
|
-
on<E extends keyof Events>(event: E, listener: Events[E]): void;
|
|
18
|
-
hasListener<E extends keyof Events>(event: E, listener: Events[E]): boolean;
|
|
19
|
-
private invokeHandler;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import type { TableSchema } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import type { VuuTable } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
import { ListOption } from "@vuu-ui/vuu-table-types";
|
|
4
|
-
import { ReactElement } from "react";
|
|
5
|
-
export type PathMap = {
|
|
6
|
-
[key: string]: Pick<DynamicFeatureDescriptor, "css" | "url">;
|
|
7
|
-
};
|
|
8
|
-
export type Environment = "development" | "production";
|
|
9
|
-
export declare const env: Environment;
|
|
10
|
-
export type LookupTableProvider = (table: VuuTable) => ListOption[];
|
|
11
|
-
export interface ViewConfig {
|
|
12
|
-
allowRename?: boolean;
|
|
13
|
-
closeable?: boolean;
|
|
14
|
-
header?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface DynamicFeatureProps<P extends object | undefined = object> {
|
|
17
|
-
/**
|
|
18
|
-
props that will be passed to the lazily loaded component.
|
|
19
|
-
*/
|
|
20
|
-
ComponentProps?: P;
|
|
21
|
-
ViewProps?: ViewConfig;
|
|
22
|
-
css?: string;
|
|
23
|
-
height?: number;
|
|
24
|
-
title?: string;
|
|
25
|
-
/**
|
|
26
|
-
The url of javascript bundle to lazily load. Bundle must provide a default export
|
|
27
|
-
and that export must be a React component.
|
|
28
|
-
*/
|
|
29
|
-
url: string;
|
|
30
|
-
width?: number;
|
|
31
|
-
}
|
|
32
|
-
declare global {
|
|
33
|
-
const vuuConfig: Promise<VuuConfig>;
|
|
34
|
-
}
|
|
35
|
-
export interface DynamicFeatureDescriptor {
|
|
36
|
-
/**
|
|
37
|
-
* url for css file for feature
|
|
38
|
-
*/
|
|
39
|
-
css?: string;
|
|
40
|
-
featureProps?: {
|
|
41
|
-
vuuTables?: "*" | VuuTable[];
|
|
42
|
-
};
|
|
43
|
-
leftNavLocation: "vuu-features" | "vuu-tables";
|
|
44
|
-
name: string;
|
|
45
|
-
title: string;
|
|
46
|
-
/**
|
|
47
|
-
* url for javascript bundle to load feature
|
|
48
|
-
*/
|
|
49
|
-
url: string;
|
|
50
|
-
viewProps?: ViewConfig;
|
|
51
|
-
}
|
|
52
|
-
export interface StaticFeatureDescriptor {
|
|
53
|
-
group?: string;
|
|
54
|
-
label: string;
|
|
55
|
-
type: string;
|
|
56
|
-
}
|
|
57
|
-
export declare const isStaticFeatures: (features: unknown) => features is StaticFeatureDescriptor[];
|
|
58
|
-
export interface FilterTableFeatureProps {
|
|
59
|
-
tableSchema: TableSchema;
|
|
60
|
-
}
|
|
61
|
-
export type DynamicFeatures = {
|
|
62
|
-
[key: string]: DynamicFeatureDescriptor;
|
|
63
|
-
};
|
|
64
|
-
export declare function featureFromJson({ type }: {
|
|
65
|
-
type: string;
|
|
66
|
-
}): ReactElement;
|
|
67
|
-
export interface VuuConfig {
|
|
68
|
-
features: DynamicFeatures;
|
|
69
|
-
authUrl?: string;
|
|
70
|
-
websocketUrl: string;
|
|
71
|
-
ssl: boolean;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* We currently categorize 'features' simply by the leftNavLocation
|
|
75
|
-
* @param feature
|
|
76
|
-
* @returns
|
|
77
|
-
*/
|
|
78
|
-
export declare const isCustomFeature: (feature: DynamicFeatureDescriptor) => boolean;
|
|
79
|
-
export declare const isWildcardSchema: (vuuTables?: "*" | VuuTable[]) => vuuTables is "*";
|
|
80
|
-
export declare const isVuuTables: (vuuTables?: "*" | VuuTable[]) => vuuTables is VuuTable[];
|
|
81
|
-
export interface FeaturePropsWithFilterTableFeature extends Omit<DynamicFeatureProps, "ComponentProps"> {
|
|
82
|
-
ComponentProps: FilterTableFeatureProps;
|
|
83
|
-
}
|
|
84
|
-
export declare const hasFilterTableFeatureProps: (props: DynamicFeatureProps) => props is FeaturePropsWithFilterTableFeature;
|
|
85
|
-
export declare const isSameTable: (t1: VuuTable, t2: VuuTable) => void;
|
|
86
|
-
export declare const byModule: (schema1: TableSchema, schema2: TableSchema) => 0 | 1 | -1;
|
|
87
|
-
export type GetFeaturePaths = (params: {
|
|
88
|
-
env: Environment;
|
|
89
|
-
fileName: string;
|
|
90
|
-
withCss?: boolean;
|
|
91
|
-
}) => DynamicFeatureProps;
|
|
92
|
-
export declare const getFilterTableFeatures: (schemas: TableSchema[], getFeaturePath: GetFeaturePaths) => DynamicFeatureProps<FilterTableFeatureProps>[];
|
|
93
|
-
export type Component = {
|
|
94
|
-
componentName: string;
|
|
95
|
-
component: unknown;
|
|
96
|
-
};
|
|
97
|
-
export declare const assertComponentRegistered: (componentName: string, component: unknown) => void;
|
|
98
|
-
export declare const assertComponentsRegistered: (componentList: Component[]) => void;
|
|
99
|
-
/**
|
|
100
|
-
* Process the DynamicFeature descriptors. Identify
|
|
101
|
-
* the vuu tables required and inject the appropriate TableSchemas
|
|
102
|
-
*
|
|
103
|
-
* @param dynamicFeatures
|
|
104
|
-
* @param tableSchemas
|
|
105
|
-
* @returns
|
|
106
|
-
*/
|
|
107
|
-
export declare const getCustomAndTableFeatures: (dynamicFeatures: DynamicFeatureDescriptor[], tableSchemas: TableSchema[]) => {
|
|
108
|
-
dynamicFeatures: DynamicFeatureProps[];
|
|
109
|
-
tableFeatures: DynamicFeatureProps<FilterTableFeatureProps>[];
|
|
110
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import type { DataSourceFilter } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import { ColumnFilterOp, ColumnFilterValue, Filter, FilterClauseOp, FilterContainerFilter, FilterWithPartialClause, MultiClauseFilter, MultiValueFilterClause, SingleValueFilterClause } from "@vuu-ui/vuu-filter-types";
|
|
3
|
-
import { ColumnDescriptor, RuntimeColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
4
|
-
export declare const isValidFilterClauseOp: (op?: string) => op is FilterClauseOp;
|
|
5
|
-
export declare const isNamedFilter: (f?: Filter) => boolean;
|
|
6
|
-
export declare const isSingleValueFilter: (f?: Partial<Filter>) => f is SingleValueFilterClause;
|
|
7
|
-
export declare const isFilterClause: (f?: Partial<Filter>) => f is SingleValueFilterClause | MultiValueFilterClause;
|
|
8
|
-
export declare const isMultiValueFilter: (f?: Partial<Filter>) => f is MultiValueFilterClause;
|
|
9
|
-
export declare const isInFilter: (f: Partial<Filter>) => f is MultiValueFilterClause;
|
|
10
|
-
export declare const isAndFilter: (f?: Partial<Filter>) => f is MultiClauseFilter<"and">;
|
|
11
|
-
export declare const isBetweenFilter: (f?: Filter) => f is MultiClauseFilter<"and", SingleValueFilterClause>;
|
|
12
|
-
export declare const isOrFilter: (f?: Partial<Filter>) => f is MultiClauseFilter<"or">;
|
|
13
|
-
export declare const isCompleteFilter: (filter: Partial<Filter>) => filter is Filter;
|
|
14
|
-
export declare function isMultiClauseFilter(f?: Partial<Filter> | FilterWithPartialClause): f is MultiClauseFilter;
|
|
15
|
-
export declare const applyFilterToColumns: (columns: RuntimeColumnDescriptor[], { filterStruct }: DataSourceFilter) => RuntimeColumnDescriptor[];
|
|
16
|
-
export declare const isFilteredColumn: (column: RuntimeColumnDescriptor) => boolean;
|
|
17
|
-
export declare const stripFilterFromColumns: (columns: RuntimeColumnDescriptor[]) => {
|
|
18
|
-
align?: "left" | "right";
|
|
19
|
-
ariaColIndex: number;
|
|
20
|
-
CellRenderer?: import("react").FunctionComponent<import("@vuu-ui/vuu-table-types").TableCellRendererProps>;
|
|
21
|
-
HeaderCellLabelRenderer?: import("react").FunctionComponent<Omit<import("@vuu-ui/vuu-table-types").HeaderCellProps, "id" | "index">>;
|
|
22
|
-
HeaderCellContentRenderer?: import("react").FunctionComponent<Omit<import("@vuu-ui/vuu-table-types").HeaderCellProps, "id" | "index">>;
|
|
23
|
-
canStretch?: boolean;
|
|
24
|
-
className?: string;
|
|
25
|
-
clientSideEditValidationCheck?: import("@vuu-ui/vuu-data-types").DataValueValidationChecker;
|
|
26
|
-
endPin?: true | undefined;
|
|
27
|
-
flex?: number;
|
|
28
|
-
heading?: [...string[]];
|
|
29
|
-
isGroup?: boolean;
|
|
30
|
-
isSystemColumn?: boolean;
|
|
31
|
-
label: string;
|
|
32
|
-
locked?: boolean;
|
|
33
|
-
marginLeft?: number;
|
|
34
|
-
moving?: boolean;
|
|
35
|
-
originalIdx?: number;
|
|
36
|
-
pinnedOffset?: number;
|
|
37
|
-
resizeable?: boolean;
|
|
38
|
-
resizing?: boolean;
|
|
39
|
-
sortable?: boolean;
|
|
40
|
-
sorted?: import("@vuu-ui/vuu-table-types").ColumnSort;
|
|
41
|
-
valueFormatter: import("@vuu-ui/vuu-table-types").ValueFormatter;
|
|
42
|
-
width: number;
|
|
43
|
-
aggregate?: import("packages/vuu-protocol-types").VuuAggType;
|
|
44
|
-
allowColumnHeaderMenu?: false;
|
|
45
|
-
colHeaderContentRenderer?: string;
|
|
46
|
-
colHeaderLabelRenderer?: string;
|
|
47
|
-
getIcon?: (row: import("@vuu-ui/vuu-data-types").DataSourceRow) => string | undefined;
|
|
48
|
-
groupable?: boolean;
|
|
49
|
-
hidden?: boolean;
|
|
50
|
-
maxWidth?: number;
|
|
51
|
-
minWidth?: number;
|
|
52
|
-
pin?: import("@vuu-ui/vuu-table-types").PinLocation | false;
|
|
53
|
-
source?: "client" | "server";
|
|
54
|
-
editable?: boolean;
|
|
55
|
-
editableBulk?: import("@vuu-ui/vuu-data-types").BulkEdit;
|
|
56
|
-
name: string;
|
|
57
|
-
serverDataType?: import("packages/vuu-protocol-types").VuuColumnDataType;
|
|
58
|
-
type?: import("@vuu-ui/vuu-data-types").DataValueType;
|
|
59
|
-
}[];
|
|
60
|
-
export declare const extractFilterForColumn: (filter: Filter | undefined, columnName: string) => Filter | undefined;
|
|
61
|
-
export declare const getColumnValueFromFilter: (column: ColumnDescriptor, operator: ColumnFilterOp, filter?: FilterContainerFilter) => ColumnFilterValue;
|
|
62
|
-
/**
|
|
63
|
-
* Manages a filter that can be updated one clause at a time.
|
|
64
|
-
* Works with FilterContainer to aggregate multiple filter
|
|
65
|
-
* clauses edited via individual controls. It is just a wrapper
|
|
66
|
-
* around a Map, does not support switching filters - create a
|
|
67
|
-
* new FilterAggregator for a new filter.
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
export declare class FilterAggregator {
|
|
71
|
-
#private;
|
|
72
|
-
constructor(filter?: FilterContainerFilter);
|
|
73
|
-
add(column: ColumnDescriptor, value: ColumnFilterValue): void;
|
|
74
|
-
has({ name }: ColumnDescriptor): boolean;
|
|
75
|
-
get({ name }: ColumnDescriptor): FilterContainerFilter | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* Remove filter for this column. Return false if no filter found, otw true
|
|
78
|
-
*/
|
|
79
|
-
remove(column: ColumnDescriptor): boolean;
|
|
80
|
-
get filter(): FilterContainerFilter | undefined;
|
|
81
|
-
}
|
|
82
|
-
export declare const filtersAreEqual: (f1: FilterContainerFilter, f2: FilterContainerFilter) => boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ColumnDescriptorsByName, Filter, SingleValueFilterClause } from "@vuu-ui/vuu-filter-types";
|
|
2
|
-
import type { RuntimeColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
3
|
-
export declare const filterAsQuery: (f: Filter, opts?: {
|
|
4
|
-
columnsByName?: ColumnDescriptorsByName;
|
|
5
|
-
}) => string;
|
|
6
|
-
export declare function dateFilterAsQuery(f: SingleValueFilterClause<number>): string;
|
|
7
|
-
export declare const removeColumnFromFilter: (column: RuntimeColumnDescriptor, filter: Filter) => [Filter | undefined, string];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VuuColumnDataType, VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
2
|
-
import { KeyboardEvent, SyntheticEvent } from "react";
|
|
3
|
-
import { DataValueTypeSimple } from "@vuu-ui/vuu-data-types";
|
|
4
|
-
/**
|
|
5
|
-
* Use with the following convention:
|
|
6
|
-
*
|
|
7
|
-
* <FormField data-field="my-field-name">
|
|
8
|
-
*/
|
|
9
|
-
export declare const getFieldName: (target: EventTarget | HTMLElement) => string;
|
|
10
|
-
export type InputSource = "typeahead-suggestion" | "text-input";
|
|
11
|
-
export declare const isNumber: (type: string, value: VuuRowDataItemType) => value is number;
|
|
12
|
-
export type CommitHandler<E extends HTMLElement = HTMLInputElement, T = VuuRowDataItemType> = (evt: SyntheticEvent<E> | KeyboardEvent<E>, value: T, source?: InputSource) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Convert a string value to the type appropriate for the associated
|
|
15
|
-
* column or form field. Can be used when processing a string value
|
|
16
|
-
* from an input used for user editing.
|
|
17
|
-
*
|
|
18
|
-
* @param value
|
|
19
|
-
* @param type
|
|
20
|
-
* @param throwIfInvalid
|
|
21
|
-
*/
|
|
22
|
-
export declare function getTypedValue(value: string, type: VuuColumnDataType | DataValueTypeSimple, throwIfInvalid?: false): VuuRowDataItemType | undefined;
|
|
23
|
-
export declare function getTypedValue(value: string, type: VuuColumnDataType | DataValueTypeSimple, throwIfInvalid: true): VuuRowDataItemType;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ColumnDescriptor, ValueFormatter } from "@vuu-ui/vuu-table-types";
|
|
2
|
-
export type ValueFormatters = {
|
|
3
|
-
[key: string]: ValueFormatter;
|
|
4
|
-
};
|
|
5
|
-
export declare const defaultValueFormatter: (value: unknown) => string;
|
|
6
|
-
export declare const numericFormatter: ({ align, type, }: Partial<ColumnDescriptor>) => (value: unknown) => string;
|
|
7
|
-
export declare const getValueFormatter: (column: ColumnDescriptor, serverDataType?: import("packages/vuu-protocol-types").VuuColumnDataType | undefined) => ValueFormatter;
|
|
8
|
-
/**
|
|
9
|
-
* Lowercases a string and returns as Lowercase typescript type
|
|
10
|
-
*
|
|
11
|
-
* @param str the input string
|
|
12
|
-
* @returns str converted to Lowercase
|
|
13
|
-
*/
|
|
14
|
-
export declare const lowerCase: (str: string) => Lowercase<string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getUniqueId: () => string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
2
|
-
import { VuuGroupBy } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
export declare function addGroupColumn(groupBy: VuuGroupBy, column: ColumnDescriptor): string[];
|
|
4
|
-
export declare const removeGroupColumn: (groupBy: VuuGroupBy, column: ColumnDescriptor) => string[];
|
|
5
|
-
export type ColumnGroupStatus = "no-groupby" | "single-groupby-other-column" | "single-groupby" | "multi-groupby-other-columns" | "multi-groupby-includes-column";
|
|
6
|
-
/**
|
|
7
|
-
* Given a VuuGroupby definition and a column, determine whether the given column
|
|
8
|
-
* is included in the grouping and if so, in what position/direction.
|
|
9
|
-
*/
|
|
10
|
-
export declare const getGroupStatus: (columnName: string, groupBy?: VuuGroupBy) => ColumnGroupStatus;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const createEl: (elementType: "div" | "p" | "span", className?: string, textContent?: string) => HTMLElement;
|
|
2
|
-
export declare const getFocusableElement: (el: HTMLElement | null, tabIndex?: number) => HTMLElement | undefined;
|
|
3
|
-
export declare const getElementDataIndex: (el: HTMLElement | null) => number;
|
|
4
|
-
export declare function queryClosest<T extends HTMLElement = HTMLElement>(el: HTMLElement | EventTarget | null, cssQueryString: string, throwIfNotFound?: false): T | null;
|
|
5
|
-
export declare function queryClosest<T extends HTMLElement = HTMLElement>(el: HTMLElement | EventTarget | null, cssQueryString: string, throwIfNotFound: true): T;
|
|
6
|
-
export declare const getClosest: (el: HTMLElement, dataProperty: string) => HTMLElement | null;
|
|
7
|
-
export declare const getClosestIndexItem: (el: HTMLElement) => HTMLElement | null;
|
|
8
|
-
export declare function getElementByDataIndex(c: HTMLElement | null | undefined, i: number | string, throwIfNotFound: true): HTMLElement;
|
|
9
|
-
export declare function getElementByDataIndex(c: HTMLElement | null | undefined, i: number | string, throwIfNotFound?: false): HTMLElement | undefined;
|
|
10
|
-
export declare const focusFirstFocusableElement: (el: HTMLElement | null, tabIndex?: number) => void;
|
|
11
|
-
export declare const isSelectableElement: (el?: HTMLElement | null) => boolean;
|
|
12
|
-
export declare const isInputElement: (el: HTMLElement | EventTarget | null) => el is HTMLInputElement;
|
|
13
|
-
export declare const isDateInput: (el: HTMLElement | EventTarget | null) => el is HTMLInputElement;
|
|
14
|
-
export declare const hasOpenOptionList: (el: HTMLElement | EventTarget | null) => boolean | undefined;
|
|
15
|
-
export declare function getScrollbarSize(): number;
|
|
16
|
-
export type MouseEventTypes = "dblclick" | "click";
|
|
17
|
-
export type KeyboardEventTypes = "keydown" | "keypress" | "keyup";
|
|
18
|
-
export declare const dispatchMouseEvent: (el: HTMLElement, type: MouseEventTypes) => void;
|
|
19
|
-
export declare const dispatchKeyboardEvent: (el: HTMLElement, type: KeyboardEventTypes, key: string) => void;
|
|
20
|
-
export type VuuDomEventType = "vuu-commit" | "vuu-dropped";
|
|
21
|
-
export declare const dispatchCustomEvent: (el: HTMLElement, type: VuuDomEventType) => void;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { useSortable } from "@dnd-kit/react/sortable";
|
|
2
|
-
import { useInstance } from "@dnd-kit/react";
|
|
3
|
-
import { DragDropProvider, DragOverlay } from "@dnd-kit/react";
|
|
4
|
-
import { KeyboardSensor, PointerSensor } from "@dnd-kit/dom";
|
|
5
|
-
import { RestrictToHorizontalAxis } from "@dnd-kit/abstract/modifiers";
|
|
6
|
-
export { DragDropProvider, DragOverlay, KeyboardSensor, PointerSensor, RestrictToHorizontalAxis, useInstance, useSortable, };
|
|
7
|
-
export * from "./array-utils";
|
|
8
|
-
export * from "./box-utils";
|
|
9
|
-
export * from "./broadcast-channel";
|
|
10
|
-
export * from "./column-utils";
|
|
11
|
-
export * from "./cookie-utils";
|
|
12
|
-
export * from "./component-registry";
|
|
13
|
-
export * from "./DataWindow";
|
|
14
|
-
export { Clock } from "./Clock";
|
|
15
|
-
export * from "./common-types";
|
|
16
|
-
export * from "./css-utils";
|
|
17
|
-
export * from "./data-utils";
|
|
18
|
-
export * from "./datasource/BaseDataSource";
|
|
19
|
-
export * from "./datasource/datasource-action-utils";
|
|
20
|
-
export * from "./datasource/datasource-filter-utils";
|
|
21
|
-
export * from "./datasource/datasource-utils";
|
|
22
|
-
export * from "./date";
|
|
23
|
-
export * from "./debug-utils";
|
|
24
|
-
export * from "./filters";
|
|
25
|
-
export * from "./html-utils";
|
|
26
|
-
export * from "./event-emitter";
|
|
27
|
-
export * from "./feature-utils";
|
|
28
|
-
export * from "./form-utils";
|
|
29
|
-
export * from "./formatting-utils";
|
|
30
|
-
export * from "./getUniqueId";
|
|
31
|
-
export * from "./group-utils";
|
|
32
|
-
export * from "./input-utils";
|
|
33
|
-
export * from "./invariant";
|
|
34
|
-
export * from "./itemToString";
|
|
35
|
-
export * from "./json-types";
|
|
36
|
-
export * from "./json-utils";
|
|
37
|
-
export * from "./keyboard-utils";
|
|
38
|
-
export * from "./keyset";
|
|
39
|
-
export * from "./layout-types";
|
|
40
|
-
export * from "./list-utils";
|
|
41
|
-
export * from "./local-storage-utils";
|
|
42
|
-
export * from "./logging-utils";
|
|
43
|
-
export * from "./module-utils";
|
|
44
|
-
export * from "./moving-window";
|
|
45
|
-
export * from "./nanoid";
|
|
46
|
-
export * from "./react-utils";
|
|
47
|
-
export * from "./round-decimal";
|
|
48
|
-
export * from "./perf-utils";
|
|
49
|
-
export * from "./promise-utils";
|
|
50
|
-
export * from "./protocol-message-utils";
|
|
51
|
-
export * from "./range-utils";
|
|
52
|
-
export * from "./row-utils";
|
|
53
|
-
export * from "./selection-utils";
|
|
54
|
-
export * from "./shell-layout-types";
|
|
55
|
-
export * from "./sort-utils";
|
|
56
|
-
export * from "./table-schema-utils";
|
|
57
|
-
export * from "./text-utils";
|
|
58
|
-
export * from "./typeahead-utils";
|
|
59
|
-
export * from "./tree-types";
|
|
60
|
-
export * from "./tree-utils";
|
|
61
|
-
export * from "./ThemeProvider";
|
|
62
|
-
export * from "./ts-utils";
|
|
63
|
-
export * from "./url-utils";
|
|
64
|
-
export * from "./useId";
|
|
65
|
-
export * from "./useStateRef";
|
|
66
|
-
export * from "./user-types";
|
|
67
|
-
export * from "./useLayoutEffectSkipFirst";
|
|
68
|
-
/** Context declarations hosted in utils to minimize intra package dependencies */
|
|
69
|
-
export * from "./ShellContext";
|
|
70
|
-
export { DataContext } from "./context-definitions/DataContext";
|
|
71
|
-
export * from "./context-definitions/DataProvider";
|
|
72
|
-
export { DataSourceProvider, useDataSource, } from "./context-definitions/DataSourceProvider";
|
|
73
|
-
export * from "./context-definitions/WorkspaceContext";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function invariant(condition: boolean, message: string): void;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { NamedFilter } from "@vuu-ui/vuu-filter-types";
|
|
2
|
-
import { CSSProperties, ReactElement } from "react";
|
|
3
|
-
import { ValueOf } from "./ts-utils";
|
|
4
|
-
export interface ApplicationSettings {
|
|
5
|
-
leftNav?: {
|
|
6
|
-
activeTabIndex: number;
|
|
7
|
-
expanded: boolean;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* filters are keyed by MODULE:tablename
|
|
11
|
-
*/
|
|
12
|
-
filters?: {
|
|
13
|
-
[key: string]: NamedFilter[];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export type ApplicationSetting = ValueOf<ApplicationSettings>;
|
|
17
|
-
export type Settings = Record<string, string | number | boolean>;
|
|
18
|
-
export interface ApplicationJSON {
|
|
19
|
-
workspaceJSON: LayoutJSON | LayoutJSON[];
|
|
20
|
-
settings?: ApplicationSettings;
|
|
21
|
-
userSettings?: Settings;
|
|
22
|
-
}
|
|
23
|
-
export interface WithActive {
|
|
24
|
-
active?: number;
|
|
25
|
-
}
|
|
26
|
-
export interface WithProps {
|
|
27
|
-
props?: {
|
|
28
|
-
[key: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface LayoutRoot extends WithProps {
|
|
32
|
-
active?: number;
|
|
33
|
-
children?: ReactElement[];
|
|
34
|
-
type: string;
|
|
35
|
-
}
|
|
36
|
-
export interface WithType {
|
|
37
|
-
props?: unknown;
|
|
38
|
-
title?: string;
|
|
39
|
-
type: string;
|
|
40
|
-
}
|
|
41
|
-
export type LayoutModel = LayoutRoot | ReactElement | WithType;
|
|
42
|
-
export interface LayoutJSON<T extends object = {
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
}> extends WithType {
|
|
45
|
-
active?: number;
|
|
46
|
-
children?: LayoutJSON[];
|
|
47
|
-
id?: string;
|
|
48
|
-
props?: T;
|
|
49
|
-
state?: unknown;
|
|
50
|
-
type: string;
|
|
51
|
-
style?: CSSProperties;
|
|
52
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
3
|
-
export type JsonData = {
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
} | JsonData[];
|
|
6
|
-
export declare const jsonToDataSourceRows: (json: JsonData) => [ColumnDescriptor[], DataSourceRow[]];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const ArrowUp = "ArrowUp";
|
|
2
|
-
export declare const ArrowDown = "ArrowDown";
|
|
3
|
-
export declare const ArrowLeft = "ArrowLeft";
|
|
4
|
-
export declare const ArrowRight = "ArrowRight";
|
|
5
|
-
export declare const Enter = "Enter";
|
|
6
|
-
export declare const Escape = "Escape";
|
|
7
|
-
export declare const Home = "Home";
|
|
8
|
-
export declare const End = "End";
|
|
9
|
-
export declare const PageUp = "PageUp";
|
|
10
|
-
export declare const PageDown = "PageDown";
|
|
11
|
-
export declare const Space = " ";
|
|
12
|
-
export declare const Tab = "Tab";
|
|
13
|
-
export type ArrowKey = "ArrowUp" | "ArrowDown" | "ArrowLeft" | "ArrowRight";
|
|
14
|
-
export type PageKey = "Home" | "End" | "PageUp" | "PageDown";
|
|
15
|
-
export declare const isArrowKey: (key: string) => key is ArrowKey;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { VuuRange } from "@vuu-ui/vuu-protocol-types";
|
|
2
|
-
export interface IKeySet {
|
|
3
|
-
keyFor: (rowIndex: number) => number;
|
|
4
|
-
reset: (range: VuuRange) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare class KeySet implements IKeySet {
|
|
7
|
-
private keys;
|
|
8
|
-
private nextKeyValue;
|
|
9
|
-
private range;
|
|
10
|
-
constructor(range: VuuRange);
|
|
11
|
-
next(free?: number[]): number;
|
|
12
|
-
private init;
|
|
13
|
-
reset(range: VuuRange): boolean;
|
|
14
|
-
keyFor(rowIndex: number): number;
|
|
15
|
-
toDebugString(): string;
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LayoutJSON } from "@vuu-ui/vuu-utils";
|
|
2
|
-
export interface WithId {
|
|
3
|
-
id: string;
|
|
4
|
-
}
|
|
5
|
-
export interface LayoutMetadata extends WithId {
|
|
6
|
-
name: string;
|
|
7
|
-
group: string;
|
|
8
|
-
screenshot: string;
|
|
9
|
-
user: string;
|
|
10
|
-
created: string;
|
|
11
|
-
}
|
|
12
|
-
export interface SystemLayoutMetadata extends LayoutMetadata {
|
|
13
|
-
layoutJSON: LayoutJSON;
|
|
14
|
-
}
|
|
15
|
-
export type LayoutMetadataDto = Omit<LayoutMetadata, "id" | "created">;
|
|
16
|
-
export interface Layout extends WithId {
|
|
17
|
-
json: LayoutJSON;
|
|
18
|
-
}
|
|
19
|
-
export type ApplicationLayout = {
|
|
20
|
-
username: string;
|
|
21
|
-
definition: LayoutJSON;
|
|
22
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
const loggingSettings: loggingSettings;
|
|
3
|
-
}
|
|
4
|
-
export interface LogFn {
|
|
5
|
-
(message?: unknown, ...optionalParams: unknown[]): void;
|
|
6
|
-
}
|
|
7
|
-
export interface AssertLogFn {
|
|
8
|
-
(condition: boolean, message?: unknown, errorMessaage?: unknown): void;
|
|
9
|
-
}
|
|
10
|
-
export interface TableLogFn {
|
|
11
|
-
(properties?: object): void;
|
|
12
|
-
}
|
|
13
|
-
type loggingSettings = {
|
|
14
|
-
loggingLevel: LogLevel;
|
|
15
|
-
};
|
|
16
|
-
export interface Logger {
|
|
17
|
-
warn: LogFn;
|
|
18
|
-
error: LogFn;
|
|
19
|
-
debug: LogFn;
|
|
20
|
-
info: LogFn;
|
|
21
|
-
}
|
|
22
|
-
export type LogLevel = keyof Logger;
|
|
23
|
-
export type BuildEnv = "production" | "development";
|
|
24
|
-
export declare const logger: (category: string) => {
|
|
25
|
-
errorEnabled: boolean;
|
|
26
|
-
error: (message: string) => void;
|
|
27
|
-
debugEnabled?: undefined;
|
|
28
|
-
infoEnabled?: undefined;
|
|
29
|
-
warnEnabled?: undefined;
|
|
30
|
-
info?: undefined;
|
|
31
|
-
warn?: undefined;
|
|
32
|
-
debug?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
debugEnabled: boolean;
|
|
35
|
-
infoEnabled: boolean;
|
|
36
|
-
warnEnabled: boolean;
|
|
37
|
-
errorEnabled: boolean;
|
|
38
|
-
info: (message: string) => void;
|
|
39
|
-
warn: (message: string) => void;
|
|
40
|
-
debug: (message: string) => void;
|
|
41
|
-
error: (message: string) => void;
|
|
42
|
-
};
|
|
43
|
-
export declare const getLoggingConfigForWorker: () => string;
|
|
44
|
-
export declare const logUnhandledMessage: (message: never, context?: string) => void;
|
|
45
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
export type ReactComponent = {
|
|
3
|
-
(props?: any): ReactElement;
|
|
4
|
-
};
|
|
5
|
-
export declare const isModule: (entity: Module | ReactComponent) => entity is Module;
|
|
6
|
-
export interface Module<T = ReactComponent> {
|
|
7
|
-
[key: string]: Module<T> | T;
|
|
8
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
2
|
-
import { VuuRange } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
import { WindowRange } from "./range-utils";
|
|
4
|
-
export declare class MovingWindow {
|
|
5
|
-
#private;
|
|
6
|
-
data: DataSourceRow[];
|
|
7
|
-
rowCount: number;
|
|
8
|
-
constructor({ from, to }: VuuRange);
|
|
9
|
-
setRowCount: (rowCount: number) => void;
|
|
10
|
-
add(data: DataSourceRow): void;
|
|
11
|
-
getAtIndex(index: number): DataSourceRow | undefined;
|
|
12
|
-
isWithinRange(index: number): boolean;
|
|
13
|
-
setRange({ from, to }: VuuRange): void;
|
|
14
|
-
getSelectedRows(): DataSourceRow[];
|
|
15
|
-
get range(): WindowRange;
|
|
16
|
-
slice(): DataSourceRow[];
|
|
17
|
-
get hasAllRowsWithinRange(): boolean;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const uuid: (size?: number) => string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type VoidFunction = (...args: any) => void;
|
|
2
|
-
export type PerfFunction<T extends VoidFunction> = (...args: Parameters<T>) => void;
|
|
3
|
-
export declare function debounce<T extends VoidFunction>(callback: T, timeInterval: number): PerfFunction<T>;
|
|
4
|
-
export declare function throttle<T extends VoidFunction>(callback: T, limit: number): PerfFunction<T>;
|
|
5
|
-
export {};
|