@woven-planet/lakefront 6.0.1 → 6.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs.d.ts +39 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.d.ts +39 -3
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,3 +85,4 @@ Please do not add information below this table, the 'npm run update-readme' will
|
|
|
85
85
|
| [Tabs](https://woven-planet.github.io/lakefront?path=/docs/lakefront-tabs--tabs) | <details><summary>Screenshot</summary><img src="src/screenshots/Tabs.png"></details> | [TextArea](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-textarea--placeholder) | <details><summary>Screenshot</summary><img src="src/screenshots/TextArea.png"></details> |
|
|
86
86
|
| [Toggle](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-toggle--toggle) | <details><summary>Screenshot</summary><img src="src/screenshots/Toggle.png"></details> | [TypeaheadSearch](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-typeaheadsearch--search-bottom-start) |<details><summary>Screenshot</summary><img src="src/screenshots/TypeaheadSearch.png"></details> |
|
|
87
87
|
| [ModeSelector](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-modeselector--simple-mode-selector) | <details><summary>Screenshot</summary><img src="src/screenshots/ModeSelector.png"></details> | [Colors](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-theme-colors--docs) | <details><summary>Screenshot</summary><img src="src/screenshots/Colors.png"></details> |
|
|
88
|
+
[ContextMenu](https://woven-planet.github.io/lakefront/ContextMenu) | <details><summary>Screenshot</summary><img src="src/screenshots/ContextMenu.png"></details> |
|
package/dist/index.cjs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ComponentPropsWithoutRef, FC, RefAttributes, ReactNode, ElementType, ReactElement, ChangeEvent, Dispatch, MouseEventHandler, SetStateAction, ComponentPropsWithRef, MouseEvent } from "react";
|
|
3
|
+
import { ComponentPropsWithoutRef, FC, RefAttributes, ReactNode, ElementType, ReactElement, ChangeEvent, Dispatch, MouseEventHandler, SetStateAction, ComponentPropsWithRef, MouseEvent, ComponentProps } from "react";
|
|
4
4
|
import { LinkProps } from "react-router-dom";
|
|
5
5
|
import { GetStyles, GroupBase } from "react-select/dist/declarations/src/types";
|
|
6
6
|
import { ParsedQuery } from "query-string";
|
|
@@ -388,6 +388,33 @@ interface CollapsibleProps {
|
|
|
388
388
|
*
|
|
389
389
|
*/
|
|
390
390
|
declare const Collapsible: FC<CollapsibleProps & Pick<ComponentPropsWithoutRef<"div">, Exclude<keyof ComponentPropsWithoutRef<"div">, keyof CollapsibleProps>>>;
|
|
391
|
+
type ClickableMenuItem = {
|
|
392
|
+
key: string;
|
|
393
|
+
label: ReactNode;
|
|
394
|
+
onClick: () => void;
|
|
395
|
+
isSeparator?: false;
|
|
396
|
+
disabled?: boolean;
|
|
397
|
+
};
|
|
398
|
+
type SeparatorMenuItem = {
|
|
399
|
+
isSeparator: true;
|
|
400
|
+
};
|
|
401
|
+
type MenuItem = ClickableMenuItem | SeparatorMenuItem;
|
|
402
|
+
interface ContextMenuProps {
|
|
403
|
+
/** The content that will trigger the context menu on right-click. */
|
|
404
|
+
children: ReactElement;
|
|
405
|
+
/** An array of menu item objects to be displayed. */
|
|
406
|
+
menuItems: MenuItem[];
|
|
407
|
+
/** The component or HTML tag to use as the wrapper. Defaults to 'div'. */
|
|
408
|
+
wrapper?: ElementType;
|
|
409
|
+
/**
|
|
410
|
+
* When true, the component will mount a div to the body and render the dialog through it.
|
|
411
|
+
* This is useful when the dialog would be inside a scrollable container or one with "overflow: hidden"
|
|
412
|
+
* so it doesn't get cut off. Uses IntersectionObserver and needs a polyfill if IE compatibility is needed. This
|
|
413
|
+
* defaults to `false`.
|
|
414
|
+
*/
|
|
415
|
+
renderInPortal?: boolean;
|
|
416
|
+
}
|
|
417
|
+
declare const ContextMenu: FC<ContextMenuProps>;
|
|
391
418
|
interface CopyButtonProps {
|
|
392
419
|
/**
|
|
393
420
|
* `Default = "Copy"` The text to display within the button.
|
|
@@ -578,6 +605,7 @@ interface LakefrontTheme {
|
|
|
578
605
|
widget: string;
|
|
579
606
|
disabled: string;
|
|
580
607
|
inverted: string;
|
|
608
|
+
hover: string;
|
|
581
609
|
};
|
|
582
610
|
foregrounds: {
|
|
583
611
|
primary: string;
|
|
@@ -2560,6 +2588,9 @@ interface TableSortByOptions {
|
|
|
2560
2588
|
id: string;
|
|
2561
2589
|
desc: boolean;
|
|
2562
2590
|
}
|
|
2591
|
+
interface ContextMenuConfig {
|
|
2592
|
+
getRowMenuItems: (row: any) => MenuItem[];
|
|
2593
|
+
}
|
|
2563
2594
|
interface TableProps {
|
|
2564
2595
|
/**
|
|
2565
2596
|
* This is to set the data for the table.
|
|
@@ -2577,7 +2608,7 @@ interface TableProps {
|
|
|
2577
2608
|
/**
|
|
2578
2609
|
* This is to set the row properties.
|
|
2579
2610
|
*/
|
|
2580
|
-
rowProps?:
|
|
2611
|
+
rowProps?: ComponentProps<"tr">;
|
|
2581
2612
|
/**
|
|
2582
2613
|
* This is to set the display message when there is no data.
|
|
2583
2614
|
*/
|
|
@@ -2618,6 +2649,11 @@ interface TableProps {
|
|
|
2618
2649
|
* This is defaulted to false.
|
|
2619
2650
|
*/
|
|
2620
2651
|
hideHeaders?: boolean;
|
|
2652
|
+
/**
|
|
2653
|
+
* Configuration for the row-level context menu.
|
|
2654
|
+
* If provided, a context menu will be enabled for each row.
|
|
2655
|
+
*/
|
|
2656
|
+
contextMenuConfig?: ContextMenuConfig;
|
|
2621
2657
|
}
|
|
2622
2658
|
/**
|
|
2623
2659
|
* The Table Component is used to render table with specified columns and data.
|
|
@@ -2830,4 +2866,4 @@ interface TypeaheadSearchProps {
|
|
|
2830
2866
|
declare const TypeaheadSearch: FC<TypeaheadSearchProps & ComponentPropsWithoutRef<"input">>;
|
|
2831
2867
|
declare const THEME: Theme;
|
|
2832
2868
|
declare const DARK_THEME: Theme;
|
|
2833
|
-
export { AnchorCopy, AnchorCopyProps, BoundingBoxes, BoundingBoxesProps, BoundingBoxItemProp, BreadcrumbHeader, BreadcrumbProps, RouteProp, Breadcrumb, BreadcrumbHeaderProps, Button, ButtonProps$0 as ButtonProps, Card, CardProps, Checkbox, CheckboxProps, CheckboxGroup, CheckboxGroupProps, CheckboxGroupOption, Collapsible, CollapsibleProps, CopyButton, CopyButtonProps, Drawer, DrawerProps, Filter, getApiQueryUrl, getApiPostBody, parseInitialFilterValues, getCurrentBrowserQueryParams, getFilterBrowserQueryParams, FILTER_MODE_OPTIONS, USER_JSON_QUERY_PARAM, getDefaultValue, getDefaultJsonViewValue, getFilterAppliedCount, getUrlFromList, areSetsEqual, convertToFilterDropdownOptions, useFilter, FilterRenderProps, FilterPostBody, FilterModule, FilterSet, FilterValues, FilterHooks, FilterMap, FilterSectionHeaderProps, FilterMode, Location, UrlParameters, UpdateHistory, ContextSwitchMenuValue, ContextSwitchMenuProps, FilterBarProps, FilterJSONConfirmationModalProps, FilterJSONInputProps, FilterComponentProps, FilterContainerProps, AdditionalJSONFilterOptions, DoubleMultiSelectData, DoubleMultiSelectOptions, DoubleMultiSelectValues, DoubleMultiSelectFilterProps, DoubleMultiSelectFilterOptions, ListFilterOverrides, MultiSelectFilterProps, MultiSelectFilterOptions, RadioFilterProps, RadioFilterOptions, SingleSelectFilterProps, SingleSelectFilterOptions, TextFilterOverrides, AdditionalJSONFilter, DoubleMultiSelectFilter, ListFilter, MultiSelectFilter, RadioFilter, SingleSelectFilter, TextFilter, DurationFilter, MinMaxFilter, MinMaxInput, Header, IconButton, Input, InputProps, ItemGrid, ItemGridProps, ItemResults, ItemResultsProps, Loading, LoadingProps, MaskableImage, MaskableImageProps, ImageTagProps, Modal, ConfirmationModal, ConfirmationModalProps, ModalProps, ModeSelector, ModeSelectorProps, ModeSelectorLegendRowProps, Page, PageProps, PlaybackBar, PlaybackBarProps, HighlightsProp, usePopover, UsePopoverProps, PortalStyles, PopoverContent, ProgressBar, ProgressBarProps, CircularProgress, CircularProgressProps, DeviceProgressBar, DeviceProgressProps, DeviceProgressBarThreshold, PropertyList, Property, PropertyListProps, PropertyListVariable, RadioGroup, RadioGroupProps, RefreshToolbar, RefreshToolbarProps, Select, SelectProps, SELECT_OVERLAY_STYLES, SelectOverlayStyles, SelectPopover, SelectPopoverProps, SelectPopoverOption, Snackbar, SnackbarProps, MESSAGE_TYPES as SNACKBAR_MESSAGE_TYPES, SpeedInput, SpeedInputProps, SpeedInputVehicleSpeed, SpeedInputVehicleSpeedMode, StackBanner, StackBannerProps, StackBannerRow, StackBannerRowProps, StatusTable, StatusCard, StatusCardProps, StatusCellBadge, StatusCellBadgeProps, StatusRow, StatusRowProps, Status, StatusTableProps, StatusTableHeader, useStatusTable, StatusTableHooks, StatusTableOptions, filterData, getCompareFormat, mapTableFilters, sortData, SortOptions, sortByField, StepFunctionGraph, StepFunctionGraphProps, Table, TableProps, TableSortByOptions, Tabs, TabProps, TextArea, TextAreaProps, Toggle, ToggleProps, TransferList, ListItem, TransferListProps, TypeaheadSearch, TypeaheadSearchResultProps, TypeaheadSearchProps, TypeaheadResultItem, LAKEFRONT_COLORS as colors, THEME as theme, DARK_THEME as darkTheme, SelectOption, TabDef, LakefrontTheme };
|
|
2869
|
+
export { AnchorCopy, AnchorCopyProps, BoundingBoxes, BoundingBoxesProps, BoundingBoxItemProp, BreadcrumbHeader, BreadcrumbProps, RouteProp, Breadcrumb, BreadcrumbHeaderProps, Button, ButtonProps$0 as ButtonProps, Card, CardProps, Checkbox, CheckboxProps, CheckboxGroup, CheckboxGroupProps, CheckboxGroupOption, Collapsible, CollapsibleProps, ContextMenu, MenuItem, CopyButton, CopyButtonProps, Drawer, DrawerProps, Filter, getApiQueryUrl, getApiPostBody, parseInitialFilterValues, getCurrentBrowserQueryParams, getFilterBrowserQueryParams, FILTER_MODE_OPTIONS, USER_JSON_QUERY_PARAM, getDefaultValue, getDefaultJsonViewValue, getFilterAppliedCount, getUrlFromList, areSetsEqual, convertToFilterDropdownOptions, useFilter, FilterRenderProps, FilterPostBody, FilterModule, FilterSet, FilterValues, FilterHooks, FilterMap, FilterSectionHeaderProps, FilterMode, Location, UrlParameters, UpdateHistory, ContextSwitchMenuValue, ContextSwitchMenuProps, FilterBarProps, FilterJSONConfirmationModalProps, FilterJSONInputProps, FilterComponentProps, FilterContainerProps, AdditionalJSONFilterOptions, DoubleMultiSelectData, DoubleMultiSelectOptions, DoubleMultiSelectValues, DoubleMultiSelectFilterProps, DoubleMultiSelectFilterOptions, ListFilterOverrides, MultiSelectFilterProps, MultiSelectFilterOptions, RadioFilterProps, RadioFilterOptions, SingleSelectFilterProps, SingleSelectFilterOptions, TextFilterOverrides, AdditionalJSONFilter, DoubleMultiSelectFilter, ListFilter, MultiSelectFilter, RadioFilter, SingleSelectFilter, TextFilter, DurationFilter, MinMaxFilter, MinMaxInput, Header, IconButton, Input, InputProps, ItemGrid, ItemGridProps, ItemResults, ItemResultsProps, Loading, LoadingProps, MaskableImage, MaskableImageProps, ImageTagProps, Modal, ConfirmationModal, ConfirmationModalProps, ModalProps, ModeSelector, ModeSelectorProps, ModeSelectorLegendRowProps, Page, PageProps, PlaybackBar, PlaybackBarProps, HighlightsProp, usePopover, UsePopoverProps, PortalStyles, PopoverContent, ProgressBar, ProgressBarProps, CircularProgress, CircularProgressProps, DeviceProgressBar, DeviceProgressProps, DeviceProgressBarThreshold, PropertyList, Property, PropertyListProps, PropertyListVariable, RadioGroup, RadioGroupProps, RefreshToolbar, RefreshToolbarProps, Select, SelectProps, SELECT_OVERLAY_STYLES, SelectOverlayStyles, SelectPopover, SelectPopoverProps, SelectPopoverOption, Snackbar, SnackbarProps, MESSAGE_TYPES as SNACKBAR_MESSAGE_TYPES, SpeedInput, SpeedInputProps, SpeedInputVehicleSpeed, SpeedInputVehicleSpeedMode, StackBanner, StackBannerProps, StackBannerRow, StackBannerRowProps, StatusTable, StatusCard, StatusCardProps, StatusCellBadge, StatusCellBadgeProps, StatusRow, StatusRowProps, Status, StatusTableProps, StatusTableHeader, useStatusTable, StatusTableHooks, StatusTableOptions, filterData, getCompareFormat, mapTableFilters, sortData, SortOptions, sortByField, StepFunctionGraph, StepFunctionGraphProps, Table, TableProps, TableSortByOptions, Tabs, TabProps, TextArea, TextAreaProps, Toggle, ToggleProps, TransferList, ListItem, TransferListProps, TypeaheadSearch, TypeaheadSearchResultProps, TypeaheadSearchProps, TypeaheadResultItem, LAKEFRONT_COLORS as colors, THEME as theme, DARK_THEME as darkTheme, SelectOption, TabDef, LakefrontTheme };
|