@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 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-9Ii-b9EJ.cjs';
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-wy1EEaeG.js';
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-9Ii-b9EJ.cjs';
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-wy1EEaeG.js';
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-9Ii-b9EJ.cjs';
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-wy1EEaeG.js';
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.scrollHeight > scroll.clientHeight + 1;
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.scrollHeight > ancestor.clientHeight + 1) {
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;