@ai-matrx/design-system 0.15.2 → 0.17.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.
- package/CHANGELOG.md +36 -0
- package/README.md +6 -0
- package/dist/data-table/copy-helpers.d.cts +1 -1
- package/dist/data-table/copy-helpers.d.ts +1 -1
- package/dist/data-table/filter-engine.d.cts +1 -1
- package/dist/data-table/filter-engine.d.ts +1 -1
- package/dist/data-table/index.cjs +303 -68
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +2 -2
- package/dist/data-table/index.d.ts +2 -2
- package/dist/data-table/index.js +299 -64
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/infer-filter.d.cts +1 -1
- package/dist/data-table/infer-filter.d.ts +1 -1
- package/dist/data-table/layered-filters.d.cts +1 -1
- package/dist/data-table/layered-filters.d.ts +1 -1
- package/dist/data-table/query-control.d.cts +1 -1
- package/dist/data-table/query-control.d.ts +1 -1
- package/dist/data-table/types.cjs.map +1 -1
- package/dist/data-table/types.d.cts +1 -1
- package/dist/data-table/types.d.ts +1 -1
- package/dist/data-table/url-state.d.cts +1 -1
- package/dist/data-table/url-state.d.ts +1 -1
- package/dist/data-table/xlsx.d.cts +1 -1
- package/dist/data-table/xlsx.d.ts +1 -1
- package/dist/index.cjs +12 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +41 -67
- package/dist/index.js.map +1 -1
- package/dist/{types-XXbVB1sh.d.cts → types-4fmLG5AN.d.cts} +16 -1
- package/dist/{types-ClaxTaXq.d.ts → types-pZ95iFk5.d.ts} +16 -1
- package/package.json +1 -1
|
@@ -683,6 +683,21 @@ interface MatrxDataTableMobileCardControls {
|
|
|
683
683
|
interface MatrxDataTableProps<T> {
|
|
684
684
|
data: T[];
|
|
685
685
|
columns: MatrxColumnDef<T>[];
|
|
686
|
+
/** Optional URL/source-owned column order and visibility. */
|
|
687
|
+
columnState?: {
|
|
688
|
+
order: string[];
|
|
689
|
+
hidden: string[];
|
|
690
|
+
onChange: (next: {
|
|
691
|
+
order: string[];
|
|
692
|
+
hidden: string[];
|
|
693
|
+
}) => void;
|
|
694
|
+
};
|
|
695
|
+
/** Enables package-owned drag reordering in table headers. */
|
|
696
|
+
reorderableColumns?: boolean;
|
|
697
|
+
columnManager?: {
|
|
698
|
+
open: boolean;
|
|
699
|
+
onOpenChange: (open: boolean) => void;
|
|
700
|
+
};
|
|
686
701
|
getRowId: (row: T) => string;
|
|
687
702
|
/**
|
|
688
703
|
* Additional row identity included in local global search without becoming
|
|
@@ -754,7 +769,7 @@ interface MatrxDataTableProps<T> {
|
|
|
754
769
|
rowClassName?: (row: T, index: number) => string | undefined;
|
|
755
770
|
/** Highlight an index in the currently rendered page without selecting it. */
|
|
756
771
|
highlightedIndex?: number | undefined;
|
|
757
|
-
/** Receives the complete visible local view after local processing, before paging. */
|
|
772
|
+
/** Receives the complete visible local view after local processing, before paging. Attaching after absence receives one snapshot; callback identity changes alone do not notify. */
|
|
758
773
|
onViewChange?: (rows: T[]) => void;
|
|
759
774
|
/**
|
|
760
775
|
* Wrap the whole `<tr>`. Return `children` unchanged for no-op.
|
|
@@ -683,6 +683,21 @@ interface MatrxDataTableMobileCardControls {
|
|
|
683
683
|
interface MatrxDataTableProps<T> {
|
|
684
684
|
data: T[];
|
|
685
685
|
columns: MatrxColumnDef<T>[];
|
|
686
|
+
/** Optional URL/source-owned column order and visibility. */
|
|
687
|
+
columnState?: {
|
|
688
|
+
order: string[];
|
|
689
|
+
hidden: string[];
|
|
690
|
+
onChange: (next: {
|
|
691
|
+
order: string[];
|
|
692
|
+
hidden: string[];
|
|
693
|
+
}) => void;
|
|
694
|
+
};
|
|
695
|
+
/** Enables package-owned drag reordering in table headers. */
|
|
696
|
+
reorderableColumns?: boolean;
|
|
697
|
+
columnManager?: {
|
|
698
|
+
open: boolean;
|
|
699
|
+
onOpenChange: (open: boolean) => void;
|
|
700
|
+
};
|
|
686
701
|
getRowId: (row: T) => string;
|
|
687
702
|
/**
|
|
688
703
|
* Additional row identity included in local global search without becoming
|
|
@@ -754,7 +769,7 @@ interface MatrxDataTableProps<T> {
|
|
|
754
769
|
rowClassName?: (row: T, index: number) => string | undefined;
|
|
755
770
|
/** Highlight an index in the currently rendered page without selecting it. */
|
|
756
771
|
highlightedIndex?: number | undefined;
|
|
757
|
-
/** Receives the complete visible local view after local processing, before paging. */
|
|
772
|
+
/** Receives the complete visible local view after local processing, before paging. Attaching after absence receives one snapshot; callback identity changes alone do not notify. */
|
|
758
773
|
onViewChange?: (rows: T[]) => void;
|
|
759
774
|
/**
|
|
760
775
|
* Wrap the whole `<tr>`. Return `children` unchanged for no-op.
|
package/package.json
CHANGED