@epam/ai-dial-ui-kit 0.15.1 → 0.15.2
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/DateCellRenderer-C7yExfh5.cjs +1 -0
- package/dist/{DateCellRenderer-CZNa4jVJ.cjs → DateCellRenderer-ElULb0hY.cjs} +22 -22
- package/dist/JsonEditor-Bxui5wJH.cjs +1 -0
- package/dist/{MarkdownEditor-Cp-KX6-T.cjs → MarkdownEditor-BKtFs714.cjs} +1 -1
- package/dist/{MarkdownEditor-Dav_pp0T.cjs → MarkdownEditor-Bapd1ycU.cjs} +1 -1
- package/dist/MarkdownEditorContainer-B5aHwoYF.cjs +1 -0
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
- package/dist/components/New/Grid/Grid.js +139 -132
- package/dist/components/New/Grid/constants.js +5 -2
- package/dist/components-manifest.json +27 -4
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +37 -35
- package/dist/editors.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +19 -17
- package/dist/lazy-_W6FYhKg.cjs +1 -0
- package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +1767 -1763
- package/dist/src/components/New/Grid/Grid.d.ts +12 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/subpaths/grid.d.ts +1 -0
- package/dist/src/types/grid.d.ts +8 -0
- package/dist/types/grid.js +4 -0
- package/dist/{use-file-manager-tabs-Bzzwwcgk.cjs → use-file-manager-tabs-Bgh8mfOJ.cjs} +1 -1
- package/package.json +1 -1
- package/dist/DateCellRenderer-BdUMSg-E.cjs +0 -1
- package/dist/JsonEditor-eAV7SaKu.cjs +0 -1
- package/dist/MarkdownEditorContainer-96cKYmYd.cjs +0 -1
- package/dist/editor-BH6_A1k2.cjs +0 -1
- package/dist/lazy-DMVYJhUR.cjs +0 -1
|
@@ -2,6 +2,7 @@ import { ColDef, GridApi, GridOptions } from 'ag-grid-community';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DropdownItem } from '../../../models/dropdown';
|
|
4
4
|
import { GridSelectionMode } from '../../../models/selection-mode';
|
|
5
|
+
import { GridColorScheme } from '../../../types/grid';
|
|
5
6
|
/** Column id of the selection column this component prepends itself. */
|
|
6
7
|
export declare const GRID_SELECTION_COLUMN_ID = "dial-kit-grid-selection";
|
|
7
8
|
export interface GridProps<T extends object = Record<string, unknown>> {
|
|
@@ -53,6 +54,12 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
53
54
|
selectRowLabel?: (row: T) => string;
|
|
54
55
|
/** Accessible name of the select-all control. Defaults to `'Select all rows'`. */
|
|
55
56
|
selectAllLabel?: string;
|
|
57
|
+
/**
|
|
58
|
+
* AG Grid color scheme. `dark` selects the dark theme part and asks the
|
|
59
|
+
* browser to paint native controls — the date filter calendar, scrollbars —
|
|
60
|
+
* dark. Defaults to `light`, which leaves the current appearance unchanged.
|
|
61
|
+
*/
|
|
62
|
+
colorScheme?: GridColorScheme;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* A data grid built on ag-Grid, wired to the 2.0 tokens and controls.
|
|
@@ -94,6 +101,9 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
94
101
|
* selectRowLabel={(row) => `Select ${row.name}`}
|
|
95
102
|
* getContextMenuItems={(row) => [{ key: 'edit', label: 'Edit' }]}
|
|
96
103
|
* />
|
|
104
|
+
*
|
|
105
|
+
* // Dark native controls, including the date-filter calendar
|
|
106
|
+
* <Grid<Product> columnDefs={columns} rowData={products} colorScheme={GridColorScheme.Dark} />
|
|
97
107
|
* ```
|
|
98
108
|
*
|
|
99
109
|
* @param [columnDefs] - Column definitions, in ag-Grid `ColDef` format.
|
|
@@ -120,5 +130,6 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
120
130
|
* @param [allowDisabledContextMenu=false] - Keeps the context menu on a non-selectable row.
|
|
121
131
|
* @param [selectRowLabel] - Accessible name of a row's selection control.
|
|
122
132
|
* @param [selectAllLabel='Select all rows'] - Accessible name of the select-all control.
|
|
133
|
+
* @param [colorScheme='light'] - AG Grid color scheme. `dark` paints native controls dark.
|
|
123
134
|
*/
|
|
124
|
-
export declare const Grid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, selectRowLabel, selectAllLabel, }: GridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
135
|
+
export declare const Grid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, selectRowLabel, selectAllLabel, colorScheme, }: GridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -294,6 +294,7 @@ export { DEFAULT_TRANSFER_QUEUE_LABELS, TRANSFER_QUEUE_AUTO_CLOSE_DELAY_MS, } fr
|
|
|
294
294
|
export { TransferQueueItemStatus } from './types/transfer-queue';
|
|
295
295
|
export { Grid, GRID_SELECTION_COLUMN_ID } from './components/New/Grid/Grid';
|
|
296
296
|
export type { GridProps } from './components/New/Grid/Grid';
|
|
297
|
+
export { GridColorScheme } from './types/grid';
|
|
297
298
|
export { DateCellRenderer } from './components/New/Grid/renderers/DateCellRenderer';
|
|
298
299
|
export type { DateCellRendererProps, DateValue, } from './components/New/Grid/renderers/DateCellRenderer';
|
|
299
300
|
export { DEFAULT_DATE_FORMAT_OPTIONS, DEFAULT_LOCALE as DEFAULT_DATE_LOCALE, } from './components/New/Grid/renderers/constants';
|
|
@@ -16,6 +16,7 @@ export { DEFAULT_DATE_FORMAT_OPTIONS as DEFAULT_GRID_DATE_FORMAT_OPTIONS, DEFAUL
|
|
|
16
16
|
export { convertToDate as convertGridDateToDate } from '../components/Grid/renderers/utils';
|
|
17
17
|
export { Grid, GRID_SELECTION_COLUMN_ID } from '../components/New/Grid/Grid';
|
|
18
18
|
export type { GridProps } from '../components/New/Grid/Grid';
|
|
19
|
+
export { GridColorScheme } from '../types/grid';
|
|
19
20
|
export { DateCellRenderer } from '../components/New/Grid/renderers/DateCellRenderer';
|
|
20
21
|
export type { DateCellRendererProps, DateValue, } from '../components/New/Grid/renderers/DateCellRenderer';
|
|
21
22
|
export { DEFAULT_DATE_FORMAT_OPTIONS, DEFAULT_LOCALE as DEFAULT_DATE_LOCALE, } from '../components/New/Grid/renderers/constants';
|