@movable/ui 3.2.0 → 3.3.0
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.
|
@@ -4,9 +4,14 @@ export interface InkDataGridProps extends DataGridPremiumProps {
|
|
|
4
4
|
* Test selector for automated testing
|
|
5
5
|
*/
|
|
6
6
|
testSelector?: string;
|
|
7
|
+
/**
|
|
8
|
+
* If true, the column reordering feature is disabled
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
disableColumnReorder?: boolean;
|
|
7
12
|
}
|
|
8
13
|
/**
|
|
9
14
|
* InkDataGrid is a customized DataGridPremium component with Movable Ink styling and behavior.
|
|
10
15
|
* It provides automatic height adjustment, hidden column separators, and transparent row hover effects.
|
|
11
16
|
*/
|
|
12
|
-
export declare function InkDataGrid({ testSelector, sx, rows, ...rest }: InkDataGridProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function InkDataGrid({ testSelector, disableColumnReorder, sx, rows, ...rest }: InkDataGridProps): import("react/jsx-runtime").JSX.Element;
|
package/lib/index.d.ts
CHANGED
|
@@ -378,7 +378,7 @@ declare type InkChipPropType = {
|
|
|
378
378
|
* InkDataGrid is a customized DataGridPremium component with Movable Ink styling and behavior.
|
|
379
379
|
* It provides automatic height adjustment, hidden column separators, and transparent row hover effects.
|
|
380
380
|
*/
|
|
381
|
-
export declare function InkDataGrid({ testSelector, sx, rows, ...rest }: InkDataGridProps): JSX_2.Element;
|
|
381
|
+
export declare function InkDataGrid({ testSelector, disableColumnReorder, sx, rows, ...rest }: InkDataGridProps): JSX_2.Element;
|
|
382
382
|
|
|
383
383
|
/**
|
|
384
384
|
* InkDataGridEmpty displays an empty state grid with skeleton rows.
|
|
@@ -402,6 +402,11 @@ export declare interface InkDataGridProps extends DataGridPremiumProps {
|
|
|
402
402
|
* Test selector for automated testing
|
|
403
403
|
*/
|
|
404
404
|
testSelector?: string;
|
|
405
|
+
/**
|
|
406
|
+
* If true, the column reordering feature is disabled
|
|
407
|
+
* @default true
|
|
408
|
+
*/
|
|
409
|
+
disableColumnReorder?: boolean;
|
|
405
410
|
}
|
|
406
411
|
|
|
407
412
|
export declare function InkDialog({ Title, Content, Actions, onClose, hideCloseButton, ActionsProp, ...props }: InkDialogProps): JSX_2.Element;
|
package/lib/index.mjs
CHANGED
|
@@ -21636,13 +21636,13 @@ function wO({ groupingProps: e, filterDrawerBtnProps: t, showFilterDrawerBtn: n
|
|
|
21636
21636
|
".MuiInput-root:after": { borderBottom: "none" }
|
|
21637
21637
|
}, "data-cy": "grid-tool-bar-quick-filter" }), n && t && p.jsx(qp, { badgeContent: t.filterBtnBadgeContent, color: "primary", "data-cy": "grid-tool-bar-filter-badge", children: p.jsx(OS, { onClick: t.onShowFilterDrawerClick }) })] }), p.jsxs(Oe, { direction: "row", spacing: 1, children: [a && p.jsx(xf, {}), c && p.jsx(kS, { columnData: c.columnData, handleColumnFilterChange: c.handleColumnFilterChange, customGridVisibility: c.customGridVisibility, lockedFields: c.lockedFields, hiddenInColumnPicker: c.hiddenInColumnPicker }), i && p.jsx(Tf, {}), m !== void 0 && h && g && p.jsx(RS, { value: m, onChange: h, options: g }), s && p.jsx(ES, { onClick: s, loadingExport: l })] })] }), u] }) });
|
|
21638
21638
|
}
|
|
21639
|
-
function SO({ testSelector: e = "",
|
|
21640
|
-
return p.jsx(Gc, { "data-test-ink-data-grid": e, rows:
|
|
21641
|
-
...
|
|
21639
|
+
function SO({ testSelector: e = "", disableColumnReorder: t = !0, sx: n, rows: o, ...i }) {
|
|
21640
|
+
return p.jsx(Gc, { "data-test-ink-data-grid": e, rows: o, disableColumnReorder: t, sx: {
|
|
21641
|
+
...n,
|
|
21642
21642
|
".MuiDataGrid-virtualScroller": {
|
|
21643
|
-
display:
|
|
21643
|
+
display: o && o.length ? "block" : "none"
|
|
21644
21644
|
}
|
|
21645
|
-
}, ...
|
|
21645
|
+
}, ...i });
|
|
21646
21646
|
}
|
|
21647
21647
|
const PS = [{ id: 0 }, { id: 1 }, { id: 2 }];
|
|
21648
21648
|
function EO({ testSelector: e = "", emptyColumns: t }) {
|