@memobit/libs 1.0.6 → 1.0.8
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/dist/index.css +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.esm.js +3467 -3431
- package/dist/version.json +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -609,6 +609,8 @@ export declare interface ControlPanelFilterOption extends DropdownOption {
|
|
|
609
609
|
/** Optional image URL rendered as a small round avatar before the option label.
|
|
610
610
|
* Used by the `chips` filter to show a face crop / product thumbnail / etc. */
|
|
611
611
|
imageUrl?: string;
|
|
612
|
+
/** Optional icon rendered before the option label (chips filter today). */
|
|
613
|
+
icon?: IconName;
|
|
612
614
|
}
|
|
613
615
|
|
|
614
616
|
export declare type ControlPanelFilterType = 'radio' | 'chips' | 'dropdown' | 'text' | 'number' | 'rating' | 'range' | 'date-range' | 'search' | 'date' | 'checkbox';
|
|
@@ -693,6 +695,8 @@ export declare interface ControlPanelOptionItem {
|
|
|
693
695
|
title?: string;
|
|
694
696
|
/** When true, the item cannot be selected. */
|
|
695
697
|
disabled?: boolean;
|
|
698
|
+
/** Optional icon rendered before the option label (radio + chips options). */
|
|
699
|
+
icon?: IconName;
|
|
696
700
|
}
|
|
697
701
|
|
|
698
702
|
export declare interface ControlPanelProps {
|
|
@@ -781,7 +785,7 @@ declare interface CountryWithFlagProps {
|
|
|
781
785
|
className?: string;
|
|
782
786
|
}
|
|
783
787
|
|
|
784
|
-
declare function DataView_2<T>({ columns, data, rowKey, selectable, onSelectionChange, selectedIds: controlledSelectedIds, pageSizeOptions, initialPageSize, showPageSize, card, actions, actionsWidth, timeline, onRowClick, rowHref, rowClassName, rowDetail, empty, initialSortKey, initialSortDirection, sortKey: controlledSortKey, sortDirection: controlledSortDirection, onSortChange, miniSort, showCardSortControls, desktopView, cardMaxWidth, className, onPageChange, onPageSizeChange, currentPage: controlledCurrentPage, totalItems: controlledTotalItems, group, showResultsCount, totalCount, itemNoun, }: DataViewProps<T>): JSX.Element;
|
|
788
|
+
declare function DataView_2<T>({ columns, data, rowKey, pinnedIds, selectable, onSelectionChange, selectedIds: controlledSelectedIds, pageSizeOptions, initialPageSize, showPageSize, card, actions, actionsWidth, timeline, onRowClick, rowHref, rowClassName, rowDetail, empty, initialSortKey, initialSortDirection, sortKey: controlledSortKey, sortDirection: controlledSortDirection, onSortChange, miniSort, showCardSortControls, desktopView, cardMaxWidth, className, onPageChange, onPageSizeChange, currentPage: controlledCurrentPage, totalItems: controlledTotalItems, group, showResultsCount, totalCount, itemNoun, }: DataViewProps<T>): JSX.Element;
|
|
785
789
|
export { DataView_2 as DataView }
|
|
786
790
|
|
|
787
791
|
export declare interface DataViewCardConfig<T> {
|
|
@@ -862,6 +866,9 @@ export declare interface DataViewProps<T> {
|
|
|
862
866
|
columns: DataViewColumn<T>[];
|
|
863
867
|
data: T[];
|
|
864
868
|
rowKey?: (row: T, index: number) => string | number;
|
|
869
|
+
/** Row keys that should remain at the top of the list regardless of sorting/pagination.
|
|
870
|
+
* Pinned rows appear in the order given in this array, before any unpinned rows. */
|
|
871
|
+
pinnedIds?: Array<string | number>;
|
|
865
872
|
selectable?: boolean;
|
|
866
873
|
onSelectionChange?: (rows: T[]) => void;
|
|
867
874
|
/** Controlled selection. When provided, DataView reflects this array of row keys instead of its internal state. */
|