@ai-matrx/design-system 0.60.7 → 0.60.8
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 +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 +2 -2
- package/dist/data-table/filter-engine.d.ts +2 -2
- package/dist/data-table/host.d.cts +1 -1
- package/dist/data-table/host.d.ts +1 -1
- package/dist/data-table/index.cjs +2286 -2213
- 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 +1861 -1788
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/infer-filter.d.cts +2 -2
- package/dist/data-table/infer-filter.d.ts +2 -2
- package/dist/data-table/layered-filters.d.cts +2 -2
- package/dist/data-table/layered-filters.d.ts +2 -2
- package/dist/data-table/query-control.d.cts +2 -2
- package/dist/data-table/query-control.d.ts +2 -2
- 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 +2 -2
- package/dist/data-table/url-state.d.ts +2 -2
- package/dist/data-table/xlsx.d.cts +2 -2
- package/dist/data-table/xlsx.d.ts +2 -2
- package/dist/{layered-filters-cXDqSLSR.d.ts → layered-filters-BsnawJgC.d.ts} +49 -2
- package/dist/{layered-filters-CNFxkmfs.d.cts → layered-filters-C9MwGVTc.d.cts} +49 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ContentTransferReference } from './content-transfer.js';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { ReactNode, ComponentType, MouseEvent } from 'react';
|
|
3
|
+
import { ContentTransferReference } from './content-transfer.js';
|
|
4
4
|
import { AgentPayloadInput, AiVariant, AiCustomSource, CopyExportConfig } from './data-table/copy-types.js';
|
|
5
5
|
import { TableStyle, ChoiceColorLookup } from './data-table/table-style.js';
|
|
6
6
|
import { F as FieldFormatConfig } from './types-JnZD8wM0.js';
|
|
@@ -12,6 +12,46 @@ import { SpreadsheetIntent, SpreadsheetPastePlan, SpreadsheetController } from '
|
|
|
12
12
|
import { DateColumnFilterValue } from './data-table/date-filter.js';
|
|
13
13
|
import { MatrxTableMenuItem, MatrxTableMenuPayload, MatrxTableMenuSection } from './data-table/menu-targets.js';
|
|
14
14
|
|
|
15
|
+
interface TableScopeLane {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
/** Unknown counts are omitted; a known zero remains visible. */
|
|
19
|
+
count?: number | null;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface TableScopeOption {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
type TableScopeFilter = {
|
|
28
|
+
label: string;
|
|
29
|
+
options: readonly TableScopeOption[];
|
|
30
|
+
value: string;
|
|
31
|
+
onChange: (value: string) => void;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
control?: never;
|
|
34
|
+
} | {
|
|
35
|
+
label: string;
|
|
36
|
+
control: ReactNode;
|
|
37
|
+
options?: never;
|
|
38
|
+
value?: never;
|
|
39
|
+
onChange?: never;
|
|
40
|
+
disabled?: never;
|
|
41
|
+
};
|
|
42
|
+
/** Hosts own source queries, page resets and selection. These are display filters,
|
|
43
|
+
* never authorization or the active organization used for writes. */
|
|
44
|
+
interface TableScopeBarProps {
|
|
45
|
+
lanes: readonly TableScopeLane[];
|
|
46
|
+
value: string;
|
|
47
|
+
onChange: (value: string) => void;
|
|
48
|
+
dimension?: TableScopeFilter;
|
|
49
|
+
organization?: TableScopeFilter;
|
|
50
|
+
}
|
|
51
|
+
/** Shared scope row, available independently or through MatrxDataTable.scopeBar.
|
|
52
|
+
* On narrow screens a select exposes every lane without hiding either filter. */
|
|
53
|
+
declare function TableScopeBar({ lanes, value, onChange, dimension, organization }: TableScopeBarProps): React.JSX.Element;
|
|
54
|
+
|
|
15
55
|
interface TableViewTab {
|
|
16
56
|
id: string;
|
|
17
57
|
label: string;
|
|
@@ -1627,6 +1667,11 @@ interface MatrxDataTableProps<T> {
|
|
|
1627
1667
|
window?: MatrxDataTableWindowConfig<T>;
|
|
1628
1668
|
/** Copy + Copy for AI (rows + this view). Omit for the declared-column default; false suppresses it. */
|
|
1629
1669
|
copy?: false | MatrxDataTableCopyConfig<T>;
|
|
1670
|
+
/** Independently hide table or row copy without replacing canonical payloads. */
|
|
1671
|
+
copyControls?: {
|
|
1672
|
+
table?: boolean;
|
|
1673
|
+
row?: boolean;
|
|
1674
|
+
};
|
|
1630
1675
|
/** Where canonical per-row Alchemy appears. Inline preserves current behavior. */
|
|
1631
1676
|
rowCopyPlacement?: "inline" | "menu";
|
|
1632
1677
|
/** One pane-level right-click resolver; host owns the opaque descriptor. */
|
|
@@ -1651,6 +1696,8 @@ interface MatrxDataTableProps<T> {
|
|
|
1651
1696
|
/** Extra rows rendered in the table footer with the same columns as data rows. */
|
|
1652
1697
|
footerRows?: T[];
|
|
1653
1698
|
/** Optional KPIs above the toolbar and aligned totals in the canonical footer. */
|
|
1699
|
+
/** Controlled list filters. Hosts reset source paging/selection in callbacks. */
|
|
1700
|
+
scopeBar?: TableScopeBarProps;
|
|
1654
1701
|
summary?: MatrxDataTableSummaryConfig<T>;
|
|
1655
1702
|
/** Per-row presentation class, after canonical selection/highlight state. */
|
|
1656
1703
|
rowClassName?: (row: T, index: number) => string | undefined;
|
|
@@ -1851,4 +1898,4 @@ declare function columnFiltersToLayeredRules(filters: ColumnFiltersState, fieldI
|
|
|
1851
1898
|
declare function layeredFilterMatchesValue(value: unknown, rule: LayeredFilterRule): boolean;
|
|
1852
1899
|
declare function layeredFilterRuleSummary(rule: LayeredFilterRule, fields: readonly LayeredFilterField[]): string;
|
|
1853
1900
|
|
|
1854
|
-
export { type SpreadsheetSelection as $, type AnyOfColumnSearch as A, type MatrxDataTableHierarchyMove as B, type ColumnFiltersState as C, type MatrxDataTableMobileCardControls as D, type MatrxDataTableMultiExpandedDetailConfig as E, type MatrxDataTableQueryControl as F, type MatrxDataTableReadStatus as G, type MatrxDataTableSelectionConfig as H, type MatrxDataTableSingleExpandedDetailConfig as I, type MatrxDataTableSourceProcessing as J, type MatrxDataTableSpreadsheetConfig as K, type LayeredFilterRule as L, type MatrxColumnDef as M, type MatrxDataTableStyleConfig as N, type MatrxDataTableSummaryConfig as O, type MatrxDataTableSummaryContext as P, type MatrxDataTableSummaryMetric as Q, type MatrxDataTableToolbar as R, type SortState as S, type TableSearchMatchMode as T, type MatrxDataTableUrlStateConfig as U, type MatrxDataTableVirtualizeConfig as V, type MatrxDataTableWindowConfig as W, type MatrxTablePagination as X, type NumberFilterOp as Y, type SavedTableViewTab as Z, type SortDirection as _, type ColumnFilterValue as a, type TableRankedSearchOptions as a0, type TableSearchRole as
|
|
1901
|
+
export { type SpreadsheetSelection as $, type AnyOfColumnSearch as A, type MatrxDataTableHierarchyMove as B, type ColumnFiltersState as C, type MatrxDataTableMobileCardControls as D, type MatrxDataTableMultiExpandedDetailConfig as E, type MatrxDataTableQueryControl as F, type MatrxDataTableReadStatus as G, type MatrxDataTableSelectionConfig as H, type MatrxDataTableSingleExpandedDetailConfig as I, type MatrxDataTableSourceProcessing as J, type MatrxDataTableSpreadsheetConfig as K, type LayeredFilterRule as L, type MatrxColumnDef as M, type MatrxDataTableStyleConfig as N, type MatrxDataTableSummaryConfig as O, type MatrxDataTableSummaryContext as P, type MatrxDataTableSummaryMetric as Q, type MatrxDataTableToolbar as R, type SortState as S, type TableSearchMatchMode as T, type MatrxDataTableUrlStateConfig as U, type MatrxDataTableVirtualizeConfig as V, type MatrxDataTableWindowConfig as W, type MatrxTablePagination as X, type NumberFilterOp as Y, type SavedTableViewTab as Z, type SortDirection as _, type ColumnFilterValue as a, type TableRankedSearchOptions as a0, TableScopeBar as a1, type TableScopeBarProps as a2, type TableScopeFilter as a3, type TableScopeLane as a4, type TableScopeOption as a5, type TableSearchRole as a6, type TableSearchScope as a7, type TableViewQuery as a8, type TableViewTab as a9, TableViewTabs as aa, type TableViewTabsProps as ab, type TableViewTabsStore as ac, type TextFilterMode as ad, type ToolbarFacet as ae, inferTableSearchRole as af, rankTableSearchRows as ag, resolveTableSearchScopes as ah, LAYERED_FILTER_OPERATORS as ai, LAYERED_FILTER_OPERATOR_LABELS as aj, type LayeredFilterField as ak, type LayeredFilterOperator as al, columnFiltersToLayeredRules as am, completeLayeredFilterRules as an, decodeLayeredFilterRules as ao, encodeLayeredFilterRules as ap, isCompleteLayeredFilterRule as aq, isLayeredFilterOperator as ar, layeredFilterMatchesValue as as, layeredFilterNeedsValue as at, layeredFilterRuleSummary as au, operatorsForLayeredField as av, type TableSavedViewsProps as b, type MatrxDataTableDensity as c, type MatrxDataTableRecordControls as d, type MatrxDataTableQueryState as e, type ColumnFilterKind as f, type MatrxDataTableCopyConfig as g, type MatrxTableIconAction as h, type MatrxDataTableProps as i, type MatrxDataTableAppearance as j, type TableViewSnapshot as k, type MatrxDataTableRead as l, type ColumnMarker as m, type CellEditType as n, type CellEditsMap as o, type MatrxDataTableContextMenuConfig as p, type MatrxDataTableCoverageConfig as q, type MatrxDataTableDetailConfig as r, type MatrxDataTableDrillConfig as s, type MatrxDataTableEditConfig as t, type MatrxDataTableEmptyState as u, type MatrxDataTableExpandedDetailConfig as v, type MatrxDataTableFacetsConfig as w, type MatrxDataTableFilterUi as x, type MatrxDataTableGroupingConfig as y, type MatrxDataTableHierarchyConfig as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ContentTransferReference } from './content-transfer.cjs';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { ReactNode, ComponentType, MouseEvent } from 'react';
|
|
3
|
+
import { ContentTransferReference } from './content-transfer.cjs';
|
|
4
4
|
import { AgentPayloadInput, AiVariant, AiCustomSource, CopyExportConfig } from './data-table/copy-types.cjs';
|
|
5
5
|
import { TableStyle, ChoiceColorLookup } from './data-table/table-style.cjs';
|
|
6
6
|
import { F as FieldFormatConfig } from './types-JnZD8wM0.cjs';
|
|
@@ -12,6 +12,46 @@ import { SpreadsheetIntent, SpreadsheetPastePlan, SpreadsheetController } from '
|
|
|
12
12
|
import { DateColumnFilterValue } from './data-table/date-filter.cjs';
|
|
13
13
|
import { MatrxTableMenuItem, MatrxTableMenuPayload, MatrxTableMenuSection } from './data-table/menu-targets.cjs';
|
|
14
14
|
|
|
15
|
+
interface TableScopeLane {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
/** Unknown counts are omitted; a known zero remains visible. */
|
|
19
|
+
count?: number | null;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface TableScopeOption {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
type TableScopeFilter = {
|
|
28
|
+
label: string;
|
|
29
|
+
options: readonly TableScopeOption[];
|
|
30
|
+
value: string;
|
|
31
|
+
onChange: (value: string) => void;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
control?: never;
|
|
34
|
+
} | {
|
|
35
|
+
label: string;
|
|
36
|
+
control: ReactNode;
|
|
37
|
+
options?: never;
|
|
38
|
+
value?: never;
|
|
39
|
+
onChange?: never;
|
|
40
|
+
disabled?: never;
|
|
41
|
+
};
|
|
42
|
+
/** Hosts own source queries, page resets and selection. These are display filters,
|
|
43
|
+
* never authorization or the active organization used for writes. */
|
|
44
|
+
interface TableScopeBarProps {
|
|
45
|
+
lanes: readonly TableScopeLane[];
|
|
46
|
+
value: string;
|
|
47
|
+
onChange: (value: string) => void;
|
|
48
|
+
dimension?: TableScopeFilter;
|
|
49
|
+
organization?: TableScopeFilter;
|
|
50
|
+
}
|
|
51
|
+
/** Shared scope row, available independently or through MatrxDataTable.scopeBar.
|
|
52
|
+
* On narrow screens a select exposes every lane without hiding either filter. */
|
|
53
|
+
declare function TableScopeBar({ lanes, value, onChange, dimension, organization }: TableScopeBarProps): React.JSX.Element;
|
|
54
|
+
|
|
15
55
|
interface TableViewTab {
|
|
16
56
|
id: string;
|
|
17
57
|
label: string;
|
|
@@ -1627,6 +1667,11 @@ interface MatrxDataTableProps<T> {
|
|
|
1627
1667
|
window?: MatrxDataTableWindowConfig<T>;
|
|
1628
1668
|
/** Copy + Copy for AI (rows + this view). Omit for the declared-column default; false suppresses it. */
|
|
1629
1669
|
copy?: false | MatrxDataTableCopyConfig<T>;
|
|
1670
|
+
/** Independently hide table or row copy without replacing canonical payloads. */
|
|
1671
|
+
copyControls?: {
|
|
1672
|
+
table?: boolean;
|
|
1673
|
+
row?: boolean;
|
|
1674
|
+
};
|
|
1630
1675
|
/** Where canonical per-row Alchemy appears. Inline preserves current behavior. */
|
|
1631
1676
|
rowCopyPlacement?: "inline" | "menu";
|
|
1632
1677
|
/** One pane-level right-click resolver; host owns the opaque descriptor. */
|
|
@@ -1651,6 +1696,8 @@ interface MatrxDataTableProps<T> {
|
|
|
1651
1696
|
/** Extra rows rendered in the table footer with the same columns as data rows. */
|
|
1652
1697
|
footerRows?: T[];
|
|
1653
1698
|
/** Optional KPIs above the toolbar and aligned totals in the canonical footer. */
|
|
1699
|
+
/** Controlled list filters. Hosts reset source paging/selection in callbacks. */
|
|
1700
|
+
scopeBar?: TableScopeBarProps;
|
|
1654
1701
|
summary?: MatrxDataTableSummaryConfig<T>;
|
|
1655
1702
|
/** Per-row presentation class, after canonical selection/highlight state. */
|
|
1656
1703
|
rowClassName?: (row: T, index: number) => string | undefined;
|
|
@@ -1851,4 +1898,4 @@ declare function columnFiltersToLayeredRules(filters: ColumnFiltersState, fieldI
|
|
|
1851
1898
|
declare function layeredFilterMatchesValue(value: unknown, rule: LayeredFilterRule): boolean;
|
|
1852
1899
|
declare function layeredFilterRuleSummary(rule: LayeredFilterRule, fields: readonly LayeredFilterField[]): string;
|
|
1853
1900
|
|
|
1854
|
-
export { type SpreadsheetSelection as $, type AnyOfColumnSearch as A, type MatrxDataTableHierarchyMove as B, type ColumnFiltersState as C, type MatrxDataTableMobileCardControls as D, type MatrxDataTableMultiExpandedDetailConfig as E, type MatrxDataTableQueryControl as F, type MatrxDataTableReadStatus as G, type MatrxDataTableSelectionConfig as H, type MatrxDataTableSingleExpandedDetailConfig as I, type MatrxDataTableSourceProcessing as J, type MatrxDataTableSpreadsheetConfig as K, type LayeredFilterRule as L, type MatrxColumnDef as M, type MatrxDataTableStyleConfig as N, type MatrxDataTableSummaryConfig as O, type MatrxDataTableSummaryContext as P, type MatrxDataTableSummaryMetric as Q, type MatrxDataTableToolbar as R, type SortState as S, type TableSearchMatchMode as T, type MatrxDataTableUrlStateConfig as U, type MatrxDataTableVirtualizeConfig as V, type MatrxDataTableWindowConfig as W, type MatrxTablePagination as X, type NumberFilterOp as Y, type SavedTableViewTab as Z, type SortDirection as _, type ColumnFilterValue as a, type TableRankedSearchOptions as a0, type TableSearchRole as
|
|
1901
|
+
export { type SpreadsheetSelection as $, type AnyOfColumnSearch as A, type MatrxDataTableHierarchyMove as B, type ColumnFiltersState as C, type MatrxDataTableMobileCardControls as D, type MatrxDataTableMultiExpandedDetailConfig as E, type MatrxDataTableQueryControl as F, type MatrxDataTableReadStatus as G, type MatrxDataTableSelectionConfig as H, type MatrxDataTableSingleExpandedDetailConfig as I, type MatrxDataTableSourceProcessing as J, type MatrxDataTableSpreadsheetConfig as K, type LayeredFilterRule as L, type MatrxColumnDef as M, type MatrxDataTableStyleConfig as N, type MatrxDataTableSummaryConfig as O, type MatrxDataTableSummaryContext as P, type MatrxDataTableSummaryMetric as Q, type MatrxDataTableToolbar as R, type SortState as S, type TableSearchMatchMode as T, type MatrxDataTableUrlStateConfig as U, type MatrxDataTableVirtualizeConfig as V, type MatrxDataTableWindowConfig as W, type MatrxTablePagination as X, type NumberFilterOp as Y, type SavedTableViewTab as Z, type SortDirection as _, type ColumnFilterValue as a, type TableRankedSearchOptions as a0, TableScopeBar as a1, type TableScopeBarProps as a2, type TableScopeFilter as a3, type TableScopeLane as a4, type TableScopeOption as a5, type TableSearchRole as a6, type TableSearchScope as a7, type TableViewQuery as a8, type TableViewTab as a9, TableViewTabs as aa, type TableViewTabsProps as ab, type TableViewTabsStore as ac, type TextFilterMode as ad, type ToolbarFacet as ae, inferTableSearchRole as af, rankTableSearchRows as ag, resolveTableSearchScopes as ah, LAYERED_FILTER_OPERATORS as ai, LAYERED_FILTER_OPERATOR_LABELS as aj, type LayeredFilterField as ak, type LayeredFilterOperator as al, columnFiltersToLayeredRules as am, completeLayeredFilterRules as an, decodeLayeredFilterRules as ao, encodeLayeredFilterRules as ap, isCompleteLayeredFilterRule as aq, isLayeredFilterOperator as ar, layeredFilterMatchesValue as as, layeredFilterNeedsValue as at, layeredFilterRuleSummary as au, operatorsForLayeredField as av, type TableSavedViewsProps as b, type MatrxDataTableDensity as c, type MatrxDataTableRecordControls as d, type MatrxDataTableQueryState as e, type ColumnFilterKind as f, type MatrxDataTableCopyConfig as g, type MatrxTableIconAction as h, type MatrxDataTableProps as i, type MatrxDataTableAppearance as j, type TableViewSnapshot as k, type MatrxDataTableRead as l, type ColumnMarker as m, type CellEditType as n, type CellEditsMap as o, type MatrxDataTableContextMenuConfig as p, type MatrxDataTableCoverageConfig as q, type MatrxDataTableDetailConfig as r, type MatrxDataTableDrillConfig as s, type MatrxDataTableEditConfig as t, type MatrxDataTableEmptyState as u, type MatrxDataTableExpandedDetailConfig as v, type MatrxDataTableFacetsConfig as w, type MatrxDataTableFilterUi as x, type MatrxDataTableGroupingConfig as y, type MatrxDataTableHierarchyConfig as z };
|
package/package.json
CHANGED