@epam/ai-dial-ui-kit 0.15.0 → 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/CHANGELOG.md +2 -0
- package/dist/DateCellRenderer-C7yExfh5.cjs +1 -0
- package/dist/{DateCellRenderer-CZNa4jVJ.cjs → DateCellRenderer-ElULb0hY.cjs} +22 -22
- package/dist/components/New/Grid/Grid.js +139 -132
- package/dist/components/New/Grid/constants.js +5 -2
- package/dist/components/New/Popup/Popup.js +124 -101
- package/dist/components/New/Popup/constants.js +11 -9
- 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/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +19 -17
- package/dist/index.css +1 -1
- 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/components/New/Popup/constants.d.ts +7 -0
- 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
|
@@ -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;
|
|
@@ -10,6 +10,13 @@ export declare const popupFooterClassName = "flex flex-row items-center gap-2 px
|
|
|
10
10
|
export declare const popupFooterDividerClassName = "border-t border-tertiary";
|
|
11
11
|
/** Groups the controls sitting on one side of the header or footer. */
|
|
12
12
|
export declare const popupActionsGroupClassName = "flex shrink-0 flex-row items-center gap-2";
|
|
13
|
+
/**
|
|
14
|
+
* Trailing footer group. Below the `mobile` breakpoint it spans the footer and
|
|
15
|
+
* every button in it takes an equal share, so a Cancel/Confirm pair splits 50/50.
|
|
16
|
+
*/
|
|
17
|
+
export declare const popupMainActionsGroupClassName = "ml-auto mobile:flex-1";
|
|
18
|
+
/** Applied to each button in the trailing footer group. */
|
|
19
|
+
export declare const popupMainActionButtonClassName = "mobile:flex-1";
|
|
13
20
|
/**
|
|
14
21
|
* Max widths per size. Full width below the `md` breakpoint, where the popup
|
|
15
22
|
* fills the screen.
|
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';
|