@ai-matrx/design-system 0.21.11 → 0.21.13
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 +12 -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/host.d.cts +1 -1
- package/dist/data-table/host.d.ts +1 -1
- package/dist/data-table/index.cjs +7 -2
- 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 +7 -2
- 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.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/{types-wy1EEaeG.d.ts → types-D9b_LfTB.d.ts} +10 -1
- package/dist/{types-9Ii-b9EJ.d.cts → types-DaKPLM6T.d.cts} +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.13
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/design-system/v0.21.12..npm/design-system/v0.21.13 -- apps/shared/design-system`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.21.12
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/design-system/v0.21.11..npm/design-system/v0.21.12 -- apps/shared/design-system`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.21.11
|
|
4
16
|
|
|
5
17
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentPayloadInput } from './copy-types.cjs';
|
|
2
|
-
import { g as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-
|
|
2
|
+
import { g as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-DaKPLM6T.cjs';
|
|
3
3
|
import '../content-transfer.cjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@ai-matrx/kit/content-transfer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentPayloadInput } from './copy-types.js';
|
|
2
|
-
import { g as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-
|
|
2
|
+
import { g as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-D9b_LfTB.js';
|
|
3
3
|
import '../content-transfer.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@ai-matrx/kit/content-transfer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-
|
|
1
|
+
import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-DaKPLM6T.cjs';
|
|
2
2
|
import '../content-transfer.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-
|
|
1
|
+
import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-D9b_LfTB.js';
|
|
2
2
|
import '../content-transfer.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, ReactNode, MouseEventHandler } from 'react';
|
|
3
|
-
import { b as TableSavedViewsProps, c as MatrxDataTableRecordControls, d as MatrxDataTableDensity } from '../types-
|
|
3
|
+
import { b as TableSavedViewsProps, c as MatrxDataTableRecordControls, d as MatrxDataTableDensity } from '../types-DaKPLM6T.cjs';
|
|
4
4
|
import { CopyControlProps } from './copy-types.cjs';
|
|
5
5
|
export { AgentPayloadInput, AiCustomSource, AiVariant, CopyExportConfig } from './copy-types.cjs';
|
|
6
6
|
import '../content-transfer.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, ReactNode, MouseEventHandler } from 'react';
|
|
3
|
-
import { b as TableSavedViewsProps, c as MatrxDataTableRecordControls, d as MatrxDataTableDensity } from '../types-
|
|
3
|
+
import { b as TableSavedViewsProps, c as MatrxDataTableRecordControls, d as MatrxDataTableDensity } from '../types-D9b_LfTB.js';
|
|
4
4
|
import { CopyControlProps } from './copy-types.js';
|
|
5
5
|
export { AgentPayloadInput, AiCustomSource, AiVariant, CopyExportConfig } from './copy-types.js';
|
|
6
6
|
import '../content-transfer.js';
|
|
@@ -48,6 +48,7 @@ __export(data_table_exports, {
|
|
|
48
48
|
downloadTableAsXlsx: () => downloadTableAsXlsx,
|
|
49
49
|
filterKindLabel: () => filterKindLabel,
|
|
50
50
|
parseTableViewSnapshot: () => parseTableViewSnapshot,
|
|
51
|
+
rankTableSearchRows: () => rankTableSearchRows,
|
|
51
52
|
resolveColumnMarker: () => resolveColumnMarker,
|
|
52
53
|
resolveFilterKind: () => resolveFilterKind,
|
|
53
54
|
rowsToCsvFromColumns: () => rowsToCsvFromColumns,
|
|
@@ -8616,6 +8617,10 @@ function TableToolbarAction({
|
|
|
8616
8617
|
function hasSameRowReferences(previous, next) {
|
|
8617
8618
|
return previous.length === next.length && previous.every((row, index) => row === next[index]);
|
|
8618
8619
|
}
|
|
8620
|
+
var VERTICAL_SCROLL_GEOMETRY_TOLERANCE_PX = 2;
|
|
8621
|
+
function hasUsableVerticalScroll(element) {
|
|
8622
|
+
return element.scrollHeight - element.clientHeight > VERTICAL_SCROLL_GEOMETRY_TOLERANCE_PX;
|
|
8623
|
+
}
|
|
8619
8624
|
function TableRowCopyControl({
|
|
8620
8625
|
copy,
|
|
8621
8626
|
row,
|
|
@@ -9131,7 +9136,7 @@ function MatrxDataTableCore({
|
|
|
9131
9136
|
if (!scroll || !table || !header || !stickyHeader) return;
|
|
9132
9137
|
let frame = 0;
|
|
9133
9138
|
const update = () => {
|
|
9134
|
-
const hasInternalVerticalScroll = scroll
|
|
9139
|
+
const hasInternalVerticalScroll = hasUsableVerticalScroll(scroll);
|
|
9135
9140
|
const nextDocumentSticky = !hasInternalVerticalScroll;
|
|
9136
9141
|
if (documentStickyHeaderRef.current !== nextDocumentSticky) {
|
|
9137
9142
|
documentStickyHeaderRef.current = nextDocumentSticky;
|
|
@@ -9151,7 +9156,7 @@ function MatrxDataTableCore({
|
|
|
9151
9156
|
for (let ancestor = scroll.parentElement; ancestor; ancestor = ancestor.parentElement) {
|
|
9152
9157
|
const ancestorStyle = window.getComputedStyle(ancestor);
|
|
9153
9158
|
const overflowY = ancestorStyle.overflowY;
|
|
9154
|
-
if (/^(auto|scroll|overlay)$/.test(overflowY) && ancestor
|
|
9159
|
+
if (/^(auto|scroll|overlay)$/.test(overflowY) && hasUsableVerticalScroll(ancestor)) {
|
|
9155
9160
|
const scrollPaddingTop = Number.parseFloat(ancestorStyle.scrollPaddingTop) || 0;
|
|
9156
9161
|
scrollTargetTop = ancestor.getBoundingClientRect().top + scrollPaddingTop;
|
|
9157
9162
|
break;
|