@vendorflow/components 2.0.74 → 2.0.75
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.
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import { Column, UseSortByColumnProps, HeaderGroup, UseSortByOptions, TableOptions, UseSortByColumnOptions, PluginHook, UsePaginationOptions, UseSortByInstanceProps, UsePaginationInstanceProps, TableInstance, TableState, UseSortByState, UsePaginationState, UseRowSelectOptions, UseRowSelectInstanceProps, UseRowSelectState, Row, UseRowSelectRowProps, UseExpandedOptions, UseExpandedInstanceProps, UseExpandedState, UseExpandedRowProps, UseGlobalFiltersInstanceProps, UseGlobalFiltersState, UseFiltersOptions, UseFiltersInstanceProps, UseFiltersState, UseFiltersColumnOptions, UseFiltersColumnProps, Renderer, FilterProps, UseTableOptions, UseGlobalFiltersOptions } from 'react-table';
|
|
2
5
|
import { ReactNode } from 'react';
|
|
3
6
|
export declare type Mode = 'single' | 'multi';
|
|
@@ -76,6 +79,7 @@ export interface UseDefaultTableInstanceProps<D extends object> {
|
|
|
76
79
|
defaultColumn?: Partial<Column<D>>;
|
|
77
80
|
}
|
|
78
81
|
export declare function useDefaultTableInstance<D extends object>({ columns, data, options, initialState, defaultColumn, }: UseDefaultTableInstanceProps<D>): EnhancedTableInstance<D>;
|
|
82
|
+
export declare function renderSingleLineCell(value: string): jsx.JSX.Element;
|
|
79
83
|
export declare type FilterType = 'text' | 'select' | 'multi-select' | 'range';
|
|
80
84
|
export declare function getColumnFilterConfig<D extends object>(filterType: FilterType): {
|
|
81
85
|
filter: string;
|
|
@@ -73,7 +73,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
73
73
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
74
74
|
};
|
|
75
75
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
-
exports.getColumnFilterConfig = exports.useDefaultTableInstance = exports.usePluginConfig = exports.CELL_PADDING = void 0;
|
|
76
|
+
exports.getColumnFilterConfig = exports.renderSingleLineCell = exports.useDefaultTableInstance = exports.usePluginConfig = exports.CELL_PADDING = void 0;
|
|
77
77
|
/** @jsxRuntime classic */
|
|
78
78
|
/** @jsx jsx */
|
|
79
79
|
var react_1 = require("@emotion/react");
|
|
@@ -317,6 +317,11 @@ function useDefaultTableInstance(_a) {
|
|
|
317
317
|
}], __read(plugins), false));
|
|
318
318
|
}
|
|
319
319
|
exports.useDefaultTableInstance = useDefaultTableInstance;
|
|
320
|
+
function renderSingleLineCell(value) {
|
|
321
|
+
return ((0, react_1.jsx)(material_1.Tooltip, { title: value },
|
|
322
|
+
(0, react_1.jsx)("div", { css: (0, react_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n text-overflow: ellipsis;\n overflow: hidden;\n "], ["\n text-overflow: ellipsis;\n overflow: hidden;\n "]))) }, value)));
|
|
323
|
+
}
|
|
324
|
+
exports.renderSingleLineCell = renderSingleLineCell;
|
|
320
325
|
function getColumnFilterConfig(filterType) {
|
|
321
326
|
switch (filterType) {
|
|
322
327
|
case 'select':
|
|
@@ -331,4 +336,4 @@ function getColumnFilterConfig(filterType) {
|
|
|
331
336
|
}
|
|
332
337
|
}
|
|
333
338
|
exports.getColumnFilterConfig = getColumnFilterConfig;
|
|
334
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
339
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|