@snowui-design-system/components 0.3.0-alpha.7 → 0.3.0-alpha.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.
Files changed (223) hide show
  1. package/AGENTS.md +2 -0
  2. package/LICENSE +31 -14
  3. package/README.md +2 -0
  4. package/dist/client/blocks/index.js +1 -1
  5. package/dist/client/compat.js +1 -1
  6. package/dist/client/components/DataTable.d.ts +8 -2
  7. package/dist/client/components/DataTable.js +9 -3
  8. package/dist/client/components/OverflowActions.d.ts +5 -1
  9. package/dist/client/components/OverflowActions.js +36 -11
  10. package/dist/client/components/Table.js +14 -7
  11. package/dist/client/components/TableCell.js +33 -11
  12. package/dist/client/context.js +1 -1
  13. package/dist/client/dev.js +1 -1
  14. package/dist/client/i18n/messages.js +1 -1
  15. package/dist/client/index.js +1 -1
  16. package/dist/client/internal/code-block/prettier-svelte.d.ts +1 -1
  17. package/dist/client/internal/component-icon/index.js +1 -1
  18. package/dist/client/internal/snow-ui-logo/emoji-metrics.js +1 -1
  19. package/dist/client/keys.js +1 -1
  20. package/dist/client/lib/adaptive-contrast-renderer.js +1 -1
  21. package/dist/client/lib/chart/appearance-timeline.js +1 -1
  22. package/dist/client/lib/chart/arc-path.js +1 -1
  23. package/dist/client/lib/chart/colors.js +1 -1
  24. package/dist/client/lib/chart/size.js +1 -1
  25. package/dist/client/lib/clipboard.js +1 -1
  26. package/dist/client/lib/color.js +1 -1
  27. package/dist/client/lib/date-format.js +1 -1
  28. package/dist/client/lib/edge-fade.js +1 -1
  29. package/dist/client/lib/media-loading.js +1 -1
  30. package/dist/client/lib/number-format.js +1 -1
  31. package/dist/client/lib/overflow-actions-motion.js +1 -1
  32. package/dist/client/lib/overlay-trigger-timing.js +1 -1
  33. package/dist/client/lib/responsive-exit.js +1 -1
  34. package/dist/client/lib/search-filter.js +1 -1
  35. package/dist/client/lib/side-panel.js +1 -1
  36. package/dist/client/lib/split-pane.js +1 -1
  37. package/dist/client/lib/table-column-motion.js +1 -1
  38. package/dist/client/lib/table-context.d.ts +5 -0
  39. package/dist/client/lib/table-context.js +4 -1
  40. package/dist/client/lib/table-responsive.d.ts +1 -1
  41. package/dist/client/lib/table-responsive.js +40 -8
  42. package/dist/client/lib/table-selection-fade.js +1 -1
  43. package/dist/client/lib/table-truncation.js +1 -1
  44. package/dist/client/lib/text-motion/animation.js +1 -1
  45. package/dist/client/lib/text-motion/character.js +1 -1
  46. package/dist/client/lib/text-motion/color.js +1 -1
  47. package/dist/client/lib/text-motion/layout.js +1 -1
  48. package/dist/client/lib/text-motion/preference.js +1 -1
  49. package/dist/client/lib/text-motion/sequence.js +1 -1
  50. package/dist/client/lib/text-motion/typography.js +1 -1
  51. package/dist/client/lib/tooltip-delay.js +1 -1
  52. package/dist/client/lib/tooltip-motion-dismiss.js +1 -1
  53. package/dist/client/lib/tooltip-pointer-speed.js +1 -1
  54. package/dist/client/lib/truncate.js +1 -1
  55. package/dist/client/logic/frame-field-control.js +1 -1
  56. package/dist/client/logic/frame-motion-defaults.js +1 -1
  57. package/dist/client/logic/frame-prop-filter.js +1 -1
  58. package/dist/client/logic/geometry-cache.js +1 -1
  59. package/dist/client/logic/layout-flip.js +1 -1
  60. package/dist/client/logic/morph.js +1 -1
  61. package/dist/client/logic/motion-engine.js +1 -1
  62. package/dist/client/logic/motion-orchestration.js +1 -1
  63. package/dist/client/logic/motion-types.js +1 -1
  64. package/dist/client/logic/overflow-actions.d.ts +8 -0
  65. package/dist/client/logic/overflow-actions.js +5 -0
  66. package/dist/client/logic/wc-adapter.js +1 -1
  67. package/dist/client/motion/bridge.js +1 -1
  68. package/dist/client/motion/content-crossfade.js +1 -1
  69. package/dist/client/motion/expand.js +1 -1
  70. package/dist/client/motion/fade-in.js +1 -1
  71. package/dist/client/motion/fade-out.js +1 -1
  72. package/dist/client/motion/morph.js +1 -1
  73. package/dist/client/motion/move.js +1 -1
  74. package/dist/client/motion/number.js +1 -1
  75. package/dist/client/motion/replace.js +1 -1
  76. package/dist/client/motion/rotate.css +1 -1
  77. package/dist/client/motion/rotate.js +1 -1
  78. package/dist/client/motion/scale-in.js +1 -1
  79. package/dist/client/motion/tokens.js +1 -1
  80. package/dist/client/motion/while-2xl.js +1 -1
  81. package/dist/client/motion/while-active.js +1 -1
  82. package/dist/client/motion/while-appear.js +1 -1
  83. package/dist/client/motion/while-click.js +1 -1
  84. package/dist/client/motion/while-collapsed.js +1 -1
  85. package/dist/client/motion/while-disabled.js +1 -1
  86. package/dist/client/motion/while-disappear.js +1 -1
  87. package/dist/client/motion/while-drag.js +1 -1
  88. package/dist/client/motion/while-editing.js +1 -1
  89. package/dist/client/motion/while-expanded.js +1 -1
  90. package/dist/client/motion/while-focus.js +1 -1
  91. package/dist/client/motion/while-hover.js +1 -1
  92. package/dist/client/motion/while-idle.js +1 -1
  93. package/dist/client/motion/while-key.js +1 -1
  94. package/dist/client/motion/while-lg.js +1 -1
  95. package/dist/client/motion/while-load.js +1 -1
  96. package/dist/client/motion/while-md.js +1 -1
  97. package/dist/client/motion/while-reload.js +1 -1
  98. package/dist/client/motion/while-scroll.js +1 -1
  99. package/dist/client/motion/while-sm.js +1 -1
  100. package/dist/client/motion/while-uploading.js +1 -1
  101. package/dist/client/motion/while-validating.js +1 -1
  102. package/dist/client/motion/while-xl.js +1 -1
  103. package/dist/client/motion/while-xs.js +1 -1
  104. package/dist/client/styles/auto-layout.css +1 -1
  105. package/dist/client/styles/backdrop.css +1 -1
  106. package/dist/client/styles/components.css +1 -1
  107. package/dist/client/styles/index.css +1 -1
  108. package/dist/client/styles/layout.css +1 -1
  109. package/dist/client/styles/scale.css +1 -1
  110. package/dist/client/styles/scrollbar.css +1 -1
  111. package/dist/client/styles/tokens.css +1 -1
  112. package/dist/client/vite-env.d.ts +1 -1
  113. package/dist/server/blocks/index.js +1 -1
  114. package/dist/server/compat.js +1 -1
  115. package/dist/server/components/DataTable.d.ts +8 -2
  116. package/dist/server/components/DataTable.js +9 -3
  117. package/dist/server/components/OverflowActions.d.ts +5 -1
  118. package/dist/server/components/OverflowActions.js +41 -18
  119. package/dist/server/components/Table.js +8 -3
  120. package/dist/server/components/TableCell.js +31 -11
  121. package/dist/server/context.js +1 -1
  122. package/dist/server/dev.js +1 -1
  123. package/dist/server/i18n/messages.js +1 -1
  124. package/dist/server/index.js +1 -1
  125. package/dist/server/internal/code-block/prettier-svelte.d.ts +1 -1
  126. package/dist/server/internal/component-icon/index.js +1 -1
  127. package/dist/server/internal/snow-ui-logo/emoji-metrics.js +1 -1
  128. package/dist/server/keys.js +1 -1
  129. package/dist/server/lib/adaptive-contrast-renderer.js +1 -1
  130. package/dist/server/lib/chart/appearance-timeline.js +1 -1
  131. package/dist/server/lib/chart/arc-path.js +1 -1
  132. package/dist/server/lib/chart/colors.js +1 -1
  133. package/dist/server/lib/chart/size.js +1 -1
  134. package/dist/server/lib/clipboard.js +1 -1
  135. package/dist/server/lib/color.js +1 -1
  136. package/dist/server/lib/date-format.js +1 -1
  137. package/dist/server/lib/edge-fade.js +1 -1
  138. package/dist/server/lib/media-loading.js +1 -1
  139. package/dist/server/lib/number-format.js +1 -1
  140. package/dist/server/lib/overflow-actions-motion.js +1 -1
  141. package/dist/server/lib/overlay-trigger-timing.js +1 -1
  142. package/dist/server/lib/responsive-exit.js +1 -1
  143. package/dist/server/lib/search-filter.js +1 -1
  144. package/dist/server/lib/side-panel.js +1 -1
  145. package/dist/server/lib/split-pane.js +1 -1
  146. package/dist/server/lib/table-column-motion.js +1 -1
  147. package/dist/server/lib/table-context.d.ts +5 -0
  148. package/dist/server/lib/table-context.js +4 -1
  149. package/dist/server/lib/table-responsive.d.ts +1 -1
  150. package/dist/server/lib/table-responsive.js +40 -8
  151. package/dist/server/lib/table-selection-fade.js +1 -1
  152. package/dist/server/lib/table-truncation.js +1 -1
  153. package/dist/server/lib/text-motion/animation.js +1 -1
  154. package/dist/server/lib/text-motion/character.js +1 -1
  155. package/dist/server/lib/text-motion/color.js +1 -1
  156. package/dist/server/lib/text-motion/layout.js +1 -1
  157. package/dist/server/lib/text-motion/preference.js +1 -1
  158. package/dist/server/lib/text-motion/sequence.js +1 -1
  159. package/dist/server/lib/text-motion/typography.js +1 -1
  160. package/dist/server/lib/tooltip-delay.js +1 -1
  161. package/dist/server/lib/tooltip-motion-dismiss.js +1 -1
  162. package/dist/server/lib/tooltip-pointer-speed.js +1 -1
  163. package/dist/server/lib/truncate.js +1 -1
  164. package/dist/server/logic/frame-field-control.js +1 -1
  165. package/dist/server/logic/frame-motion-defaults.js +1 -1
  166. package/dist/server/logic/frame-prop-filter.js +1 -1
  167. package/dist/server/logic/geometry-cache.js +1 -1
  168. package/dist/server/logic/layout-flip.js +1 -1
  169. package/dist/server/logic/morph.js +1 -1
  170. package/dist/server/logic/motion-engine.js +1 -1
  171. package/dist/server/logic/motion-orchestration.js +1 -1
  172. package/dist/server/logic/motion-types.js +1 -1
  173. package/dist/server/logic/overflow-actions.d.ts +8 -0
  174. package/dist/server/logic/overflow-actions.js +5 -0
  175. package/dist/server/logic/wc-adapter.js +1 -1
  176. package/dist/server/motion/bridge.js +1 -1
  177. package/dist/server/motion/content-crossfade.js +1 -1
  178. package/dist/server/motion/expand.js +1 -1
  179. package/dist/server/motion/fade-in.js +1 -1
  180. package/dist/server/motion/fade-out.js +1 -1
  181. package/dist/server/motion/morph.js +1 -1
  182. package/dist/server/motion/move.js +1 -1
  183. package/dist/server/motion/number.js +1 -1
  184. package/dist/server/motion/replace.js +1 -1
  185. package/dist/server/motion/rotate.css +1 -1
  186. package/dist/server/motion/rotate.js +1 -1
  187. package/dist/server/motion/scale-in.js +1 -1
  188. package/dist/server/motion/tokens.js +1 -1
  189. package/dist/server/motion/while-2xl.js +1 -1
  190. package/dist/server/motion/while-active.js +1 -1
  191. package/dist/server/motion/while-appear.js +1 -1
  192. package/dist/server/motion/while-click.js +1 -1
  193. package/dist/server/motion/while-collapsed.js +1 -1
  194. package/dist/server/motion/while-disabled.js +1 -1
  195. package/dist/server/motion/while-disappear.js +1 -1
  196. package/dist/server/motion/while-drag.js +1 -1
  197. package/dist/server/motion/while-editing.js +1 -1
  198. package/dist/server/motion/while-expanded.js +1 -1
  199. package/dist/server/motion/while-focus.js +1 -1
  200. package/dist/server/motion/while-hover.js +1 -1
  201. package/dist/server/motion/while-idle.js +1 -1
  202. package/dist/server/motion/while-key.js +1 -1
  203. package/dist/server/motion/while-lg.js +1 -1
  204. package/dist/server/motion/while-load.js +1 -1
  205. package/dist/server/motion/while-md.js +1 -1
  206. package/dist/server/motion/while-reload.js +1 -1
  207. package/dist/server/motion/while-scroll.js +1 -1
  208. package/dist/server/motion/while-sm.js +1 -1
  209. package/dist/server/motion/while-uploading.js +1 -1
  210. package/dist/server/motion/while-validating.js +1 -1
  211. package/dist/server/motion/while-xl.js +1 -1
  212. package/dist/server/motion/while-xs.js +1 -1
  213. package/dist/server/styles/auto-layout.css +1 -1
  214. package/dist/server/styles/backdrop.css +1 -1
  215. package/dist/server/styles/components.css +1 -1
  216. package/dist/server/styles/index.css +1 -1
  217. package/dist/server/styles/layout.css +1 -1
  218. package/dist/server/styles/scale.css +1 -1
  219. package/dist/server/styles/scrollbar.css +1 -1
  220. package/dist/server/styles/tokens.css +1 -1
  221. package/dist/server/vite-env.d.ts +1 -1
  222. package/llms.txt +2 -0
  223. package/package.json +1 -1
@@ -11,7 +11,12 @@ import OverflowAction from "./OverflowAction.js";
11
11
  import { createOverflowActionsMotion } from "../lib/overflow-actions-motion.js";
12
12
  import { createResponsiveExit } from "../lib/responsive-exit.js";
13
13
  import { resizeManager } from "../logic/observer.js";
14
- import { OVERFLOW_ACTIONS_CONTEXT_KEY } from "../logic/overflow-actions.js";
14
+
15
+ import {
16
+ OVERFLOW_ACTIONS_CONTEXT_KEY,
17
+ getOverflowActionsLayoutContext
18
+ } from "../logic/overflow-actions.js";
19
+
15
20
  import { mergeComponentPartProps } from "../logic/component-parts.js";
16
21
  import { useLocale } from "../i18n/locale.js";
17
22
 
@@ -43,9 +48,10 @@ export default function OverflowActions($$renderer, $$props) {
43
48
  let {
44
49
  items = [],
45
50
  compact = "auto",
46
- overflow = "all",
51
+ overflow = undefined,
47
52
  overflowFrom = "end",
48
53
  availableWidth = undefined,
54
+ maxVisible = undefined,
49
55
  moreLabel = undefined,
50
56
  align = "end",
51
57
  disabled = false,
@@ -60,6 +66,19 @@ export default function OverflowActions($$renderer, $$props) {
60
66
  } = $$props;
61
67
 
62
68
  const locale = useLocale();
69
+ const layoutContext = getOverflowActionsLayoutContext();
70
+ const resolvedOverflow = $.derived(() => overflow ?? layoutContext?.overflow ?? "all");
71
+
72
+ const resolvedMaxVisible = $.derived(() => {
73
+ const value = maxVisible ?? layoutContext?.maxVisible;
74
+
75
+ return typeof value === "number" && Number.isFinite(value) ? Math.max(0, Math.floor(value)) : Infinity;
76
+ });
77
+
78
+ const resolvedAvailableWidth = $.derived(() => layoutContext?.availableWidth === undefined
79
+ ? availableWidth
80
+ : Math.min(availableWidth ?? Infinity, layoutContext.availableWidth));
81
+
63
82
  const resolvedMoreLabel = $.derived(() => moreLabel ?? locale.t("overflowActions.more"));
64
83
  let rootElement = undefined;
65
84
  let moreMeasureElement = undefined;
@@ -249,7 +268,7 @@ export default function OverflowActions($$renderer, $$props) {
249
268
  const computed = getComputedStyle(rootElement);
250
269
 
251
270
  // 与 Table 一样读取小数布局宽度;clientWidth 的整数取整会在临界点往返跳变。
252
- const width = Math.max(0, availableWidth ?? (Number.parseFloat(computed.width) || rootElement.clientWidth));
271
+ const width = Math.max(0, resolvedAvailableWidth() ?? (Number.parseFloat(computed.width) || rootElement.clientWidth));
253
272
 
254
273
  const gap = Number.parseFloat(computed.columnGap || computed.gap) || 0;
255
274
  const canCompact = compact === "auto" && actions.length > 0 && actions.every((action) => !!action.icon);
@@ -279,11 +298,11 @@ export default function OverflowActions($$renderer, $$props) {
279
298
  let nextMenuEntries = [];
280
299
  let visibleEntries = normalizedAll;
281
300
 
282
- if (totalWidth(normalizedAll, "full", false, gap) <= budget) {
301
+ if (actions.length <= resolvedMaxVisible() && totalWidth(normalizedAll, "full", false, gap) <= budget) {
283
302
  // Full is the preferred stable state.
284
- } else if (canCompact && totalWidth(normalizedAll, "compact", false, gap) <= budget) {
303
+ } else if (canCompact && actions.length <= resolvedMaxVisible() && totalWidth(normalizedAll, "compact", false, gap) <= budget) {
285
304
  nextModes = Object.fromEntries(actions.map((action) => [action.id, "compact"]));
286
- } else if (overflow === "all") {
305
+ } else if (resolvedOverflow() === "all") {
287
306
  nextModes = Object.fromEntries(actions.map((action) => [action.id, "hidden"]));
288
307
  visibleEntries = [];
289
308
  nextMenuEntries = normalizedAll;
@@ -295,7 +314,7 @@ export default function OverflowActions($$renderer, $$props) {
295
314
  for (const candidate of candidates) {
296
315
  const normalizedVisible = normalizeEntries(entries, visibleIds);
297
316
 
298
- if (totalWidth(normalizedVisible, baseMode, true, gap) <= budget) break;
317
+ if (visibleIds.size <= resolvedMaxVisible() && totalWidth(normalizedVisible, baseMode, true, gap) <= budget) break;
299
318
 
300
319
  visibleIds.delete(candidate.id);
301
320
  }
@@ -459,17 +478,21 @@ export default function OverflowActions($$renderer, $$props) {
459
478
  } else {
460
479
  $$renderer.push('<!--[-1-->');
461
480
 
462
- OverflowAction($$renderer, {
463
- as: 'item',
464
- id: item.id,
465
- label: item.label,
466
- icon: item.icon,
467
- disabled: item.disabled,
468
- href: item.href,
469
- target: item.target,
470
- rel: item.rel,
471
- onclick: item.onAction
472
- });
481
+ OverflowAction($$renderer, $.spread_props([
482
+ item.buttonProps,
483
+ {
484
+ parts: item.parts,
485
+ as: 'item',
486
+ id: item.id,
487
+ label: item.label,
488
+ icon: item.icon,
489
+ disabled: item.disabled,
490
+ href: item.href,
491
+ target: item.target,
492
+ rel: item.rel,
493
+ onclick: item.onAction
494
+ }
495
+ ]));
473
496
  }
474
497
 
475
498
  $$renderer.push(`<!--]-->`);
@@ -49,6 +49,7 @@ export default function Table($$renderer, $$props) {
49
49
  const parentTable = getTableContext();
50
50
  const localeContext = useLocale();
51
51
  let measuredActionsWidth = 0;
52
+ let actionsContentWidth = undefined;
52
53
  let resolvedRoleLayout = "overlay";
53
54
  const requestedRoleLayout = $.derived(() => roleLayout ?? parentTable.getRoleLayout());
54
55
  const resolvedHorizontalScroll = $.derived(() => horizontalScroll ?? parentTable.getHorizontalScroll());
@@ -131,11 +132,15 @@ export default function Table($$renderer, $$props) {
131
132
  }
132
133
 
133
134
  provideTableContext({
135
+ getActionsColumnWidth: () => measuredActionsWidth || parentTable.getActionsColumnWidth(),
136
+ getActionsContentWidth: () => actionsContentWidth,
134
137
  getRoleLayout: () => requestedRoleLayout() === "auto" ? resolvedRoleLayout : requestedRoleLayout(),
135
138
  getHorizontalScroll: () => resolvedHorizontalScroll(),
136
- getColumnWidth: (columnId) => columnWidths[columnId] ?? autoLockedColumnWidths[columnId] ?? (columnId === "__actions" && (requestedRoleLayout() === "column" || requestedRoleLayout() === "auto" && resolvedRoleLayout === "column")
137
- ? Math.max(measuredActionsWidth, parentTable.getActionsColumnWidth())
138
- : parentTable.getColumnWidth(columnId)),
139
+ getColumnWidth: (columnId) => columnId === "__actions" && measuredActionsWidth > 0
140
+ ? measuredActionsWidth
141
+ : columnWidths[columnId] ?? autoLockedColumnWidths[columnId] ?? (columnId === "__actions" && (requestedRoleLayout() === "column" || requestedRoleLayout() === "auto" && resolvedRoleLayout === "column")
142
+ ? Math.max(measuredActionsWidth, parentTable.getActionsColumnWidth())
143
+ : parentTable.getColumnWidth(columnId)),
139
144
  setColumnWidth,
140
145
  fitColumnWidth,
141
146
  getLoadingSpinnerSize: () => loadingSpinnerSize,
@@ -1,5 +1,6 @@
1
1
  import * as $ from 'svelte/internal/server';
2
- import { getContext } from "svelte";
2
+ import { getContext, setContext } from "svelte";
3
+ import { OVERFLOW_ACTIONS_LAYOUT_CONTEXT_KEY } from "../logic/overflow-actions.js";
3
4
  import Frame from "./Frame.js";
4
5
  import Tooltip from "./Tooltip.js";
5
6
  import Checkbox from "./Checkbox.js";
@@ -24,7 +25,7 @@ const actionsFadeMask = createEdgeFadeMaskImage({
24
25
 
25
26
  const $$css = {
26
27
  hash: 'svelte-5fogvw',
27
- code: ':where(.snowui-table-cell.snowui-table-cell-visible-first) {--snowui-table-cell-padding-start: max(var(--padding-2), var(--snowui-table-responsive-cell-padding-inline, var(--padding-3)));}:where(.snowui-table-cell.snowui-table-cell-visible-last) {--snowui-table-cell-padding-end: max(var(--padding-2), var(--snowui-table-responsive-cell-padding-inline, var(--padding-3)));}:where(.snowui-table-cell) {position:relative;box-sizing:border-box;height:var(--size-10, 2.5rem);padding:var(--snowui-table-cell-padding-override, var(--padding-2) var(--snowui-table-cell-padding-end, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))) var(--padding-2) var(--snowui-table-cell-padding-start, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))));border-bottom:var(--border-1, .5px) solid var(--black-10, #0000001a);background:var(--snowui-table-row-active-background, transparent);font-size:var(--text-12, .75rem);line-height:var(--leading-12, 1rem);vertical-align:middle;}:where(.snowui-table-cell[data-as="selection"]) {width:var(--size-10);padding:var(--snowui-table-cell-selection-padding-override, var(--padding-2) var(--snowui-table-cell-padding-end, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))) var(--padding-2) var(--snowui-table-cell-padding-start, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))));}:where(.snowui-table-cell[data-as="actions"]) {width:var(--size-10);padding:var(--snowui-table-cell-actions-padding-override, var(--padding-2) var(--snowui-table-cell-padding-end, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))) var(--padding-2) var(--snowui-table-cell-padding-start, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))));}:where(.snowui-table-cell[data-skeleton="true"]) {pointer-events:none;}:where(.snowui-table-cell-skeleton) {display:flex;width:100%;align-items:center;}:where(.snowui-table-cell[data-as="selection"] .snowui-table-selection-control),\n :where(.snowui-table-cell-content[data-actions="true"]) {opacity:0;pointer-events:none;transition:opacity var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out);}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row[data-selected="true"]) .snowui-table-cell[data-as="selection"] .snowui-table-selection-control,\n :where(.snowui-table-cell[data-as="selection"] .snowui-table-selection-control[data-selected="true"]) {opacity:1;pointer-events:auto;}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has(.snowui-select-button-trigger[aria-expanded="true"])) .snowui-table-cell:not([data-role-layout="overlay"]) .snowui-table-cell-content[data-actions="true"] {opacity:1;pointer-events:auto;}:where(.snowui-table-cell[data-role-layout="overlay"][data-as="selection"]),\n :where(.snowui-table-cell[data-role-layout="overlay"][data-as="actions"]) {position:sticky;width:0;min-width:0;max-width:0;padding:0;overflow:visible;background:transparent;z-index:3;}:where(.snowui-table-cell[data-role-layout="overlay"][data-as="selection"]) {left:0;}:where(.snowui-table-cell[data-role-layout="overlay"][data-as="actions"]) {right:0;}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-selection-control) {position:absolute;inset-block:0 calc(-1 * var(--border-1, .5px));inset-inline-start:0;box-sizing:border-box;display:flex;width:var(--size-10, 2.5rem);align-items:center;justify-content:center;overflow:visible;padding-block:var(--padding-2);padding-inline:max(var(--padding-2), var(--snowui-table-responsive-cell-padding-inline, var(--padding-3)));border-radius:var(--snowui-table-row-radius-override, var(--radius-3, 0.75rem));background:transparent;z-index:2147483647;pointer-events:auto;}\n /* 内容 mask 退出是离散切换;同步撤去整个操作浮层,避免淡出按钮叠在已恢复的文字上。 */:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"]) {opacity:1;visibility:hidden;pointer-events:none;transition:none;}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has(.snowui-select-button-trigger[aria-expanded="true"])) .snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"] {visibility:visible;}:where(.snowui-table-body .snowui-table-row:last-child) > .snowui-table-cell {border-bottom-color:transparent;}:where(.snowui-table-cell-content) {position:relative;display:block;min-width:0;max-width:100%;overflow:hidden;--snowui-table-cell-actions-legacy-tail: calc(var(--snowui-table-cell-actions-fade-width) * (var(--snowui-table-actions-fade-feather-override) - 1));--snowui-table-cell-actions-fade-width: calc(var(--snowui-table-role-overlay-content-width, var(--snowui-table-role-overlay-width-override, calc((var(--size-12, 3rem) + var(--size-14, 3.5rem)) / 3))) * var(--snowui-table-actions-fade-coverage-override, 1));}\n /* 关闭截断的普通内容保留子组件外扩;角色浮层和 Skeleton 仍使用各自裁切。 */:where(.snowui-table-cell-content[data-lines="none"]) {overflow:visible;}:where(.snowui-table-cell-content.snowui-line-clamp-1) {white-space:nowrap;text-overflow:ellipsis;}:where(.snowui-table-cell-content.snowui-line-clamp-2),\n :where(.snowui-table-cell-content.snowui-line-clamp-3) {display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;}:where(.snowui-table-cell-content.snowui-line-clamp-2) {-webkit-line-clamp:2;line-clamp:2;}:where(.snowui-table-cell-content.snowui-line-clamp-3) {-webkit-line-clamp:3;line-clamp:3;}:where(.snowui-table-cell-content[data-row="true"]) {display:inline-flex;vertical-align:middle;align-items:center;flex-wrap:wrap;}:where(.snowui-table-cell-content[data-nowrap="true"]) {white-space:nowrap;}:where(.snowui-table-cell-content[data-row="true"][data-nowrap="true"]) {flex-wrap:nowrap;}:where(.snowui-table-cell-content[data-actions="true"]) {display:flex;overflow:visible;width:100%;align-items:center;justify-content:flex-end;gap:var(--snowui-table-cell-actions-gap-override, var(--gap-2));}:where(.snowui-table-cell-content[data-actions="true"] .snowui-table-role-overlay-controls) {display:flex;align-items:center;justify-content:flex-end;gap:var(--snowui-table-cell-actions-gap-override, var(--gap-2));}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"]) {position:absolute;inset-block:0 calc(-1 * var(--border-1, .5px));inset-inline-end:0;display:flex;width:var(--snowui-table-role-overlay-width-override, calc((var(--size-12, 3rem) + var(--size-14, 3.5rem)) / 3));max-width:none;align-items:center;justify-content:flex-end;overflow:hidden;padding-inline:max(var(--padding-2), var(--snowui-table-responsive-cell-padding-inline, var(--padding-3)));border-radius:var(--snowui-table-row-radius-override, var(--radius-3, 0.75rem));}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-role-blur-layer) {opacity:0;transition:opacity var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out);}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row[data-selected="true"]) .snowui-table-cell[data-role-layout="overlay"] .snowui-table-role-blur-layer {opacity:1;}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-selection-control) > :not(.snowui-table-role-blur-layer),\n :where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"]) > :not(.snowui-table-role-blur-layer) {position:relative;z-index:2;}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-selection-control) > :not(.snowui-table-role-blur-layer),\n :where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"]) > :not(.snowui-table-role-blur-layer) {opacity:0;pointer-events:none;transition:opacity var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out);}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row[data-selected="true"]) .snowui-table-cell[data-role-layout="overlay"][data-as="selection"] .snowui-table-selection-control > :not(.snowui-table-role-blur-layer),\n :where(.snowui-table-cell[data-role-layout="overlay"][data-as="selection"] .snowui-table-selection-control[data-selected="true"]) > :not(.snowui-table-role-blur-layer),\n :where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has(.snowui-select-button-trigger[aria-expanded="true"])) .snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"] > :not(.snowui-table-role-blur-layer) {opacity:1;pointer-events:auto;}:where(.snowui-table-cell[data-table-variant="striped"]) {border-bottom-color:transparent;}:where(.snowui-table-body .snowui-table-row:nth-child(odd of :not(:has(> .snowui-table-loading-cell)))) > .snowui-table-cell[data-table-variant="striped"] {background:var(--snowui-table-row-active-background, var(--surface-3, #f7f7f7));}:where(.snowui-table-body .snowui-table-row:nth-child(even of :not(:has(> .snowui-table-loading-cell)))) > .snowui-table-cell[data-table-variant="striped"] {background:var(--snowui-table-row-active-background, transparent);}:where(.snowui-table-body[data-continuous-hover-enabled="true"] .snowui-table-row:hover) > .snowui-table-cell[data-table-variant="striped"] {background:var(--snowui-table-row-active-background, transparent);}:where(.snowui-table-body .snowui-table-row[data-force-hover="true"]) > .snowui-table-cell:not([data-role-layout="overlay"]) {background:var(--snowui-table-row-hover-background-override, var(--black-4, #0000000a));}:where(.snowui-table-body .snowui-table-row:not([data-skeleton="true"]):hover, .snowui-table-body .snowui-table-row:not([data-skeleton="true"])[data-force-hover="true"]) > .snowui-table-cell {border-bottom-color:transparent;}:where(.snowui-table-body .snowui-table-row:has(+ .snowui-table-row:not([data-skeleton="true"]):hover), .snowui-table-body .snowui-table-row:has(+ .snowui-table-row:not([data-skeleton="true"])[data-force-hover="true"])) > .snowui-table-cell {border-bottom-color:transparent;}:where(.snowui-table-body .snowui-table-row) > .snowui-table-cell[data-role-layout="overlay"] {background:transparent;}:where(.snowui-table-body .snowui-table-row:hover) > .snowui-table-cell[data-role-layout="overlay"] {background:transparent;}\n /* overlay 模式 hover 边缘渐进式透明(复用 edge-fade 通用能力 ../lib/edge-fade.ts;详见 Table.md)。\n selection mask 按 Checkbox 实际右边缘在内容节点生成;actions mask 依赖行级实测宽度,由内容 TableCell 在自身作用域生成,并按内容右边缘到可见行右边缘的实测距离平移。\n 此处状态规则只消费对应 CSS 变量,未触发时无 mask。selection 的内容遮罩与 Checkbox 可见条件一致(hover、键盘 focus、选中或 force-hover);actions 保持行 hover 时触发。相邻内容从靠控件一侧渐隐到清晰:\n - checkbox 侧(to right):透明区覆盖到 Checkbox 实际右边缘,再向右使用固定 --size-5(名义 20px)过渡;\n - actions 侧(to left):透明区默认覆盖到最左按钮实际左边缘,向左以 --size-5(名义 20px)固定长度过渡到清晰,不随按钮组宽度或响应式间距变化。\n coverage 默认 1;显式旧 feather override 仍按倍数计算尾巴,未设置时旧表达式无效,自动回退固定 Token 长度。\n 这些变量与表头渐隐(--snowui-table-head-fade-*-override)相互独立,可在 Table / 容器上单独设置覆盖。\n mask 只改变视觉,不影响指针事件,单元格内链接/按钮点击不受影响。\n data-force-hover="true" 可让某一行静态呈现 hover 态(用于演示 / 视觉走查)。 */:where(.snowui-table-cell-content) {transition:-webkit-mask-image var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out),\n mask-image var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out);}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row[data-selected="true"]) > .snowui-table-cell[data-role-layout="overlay"][data-as="selection"] + .snowui-table-cell > .snowui-table-cell-content {--snowui-table-cell-active-selection-mask: var(--snowui-table-selection-fade-mask);-webkit-mask-image:var(--snowui-table-cell-active-selection-mask), var(--snowui-table-cell-active-actions-mask, linear-gradient(#000, #000));mask-image:var(--snowui-table-cell-active-selection-mask), var(--snowui-table-cell-active-actions-mask, linear-gradient(#000, #000));mask-composite:intersect;}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has(.snowui-select-button-trigger[aria-expanded="true"])) > .snowui-table-cell:not([data-as="selection"]):has(~ .snowui-table-cell[data-role-layout="overlay"][data-as="actions"]) > .snowui-table-cell-content {--snowui-table-cell-active-actions-mask: var(--snowui-table-cell-actions-fade-mask);-webkit-mask-image:var(--snowui-table-cell-active-selection-mask, linear-gradient(#000, #000)), var(--snowui-table-cell-active-actions-mask);mask-image:var(--snowui-table-cell-active-selection-mask, linear-gradient(#000, #000)), var(--snowui-table-cell-active-actions-mask);mask-composite:intersect;}\n\n /* 遮罩退出时 Checkbox 同帧消失;不隐藏 DOM,保留键盘聚焦入口。 */:where(.snowui-table-row:not(:hover):not([data-force-hover="true"]):not(:has(:focus-visible)):not([data-selected="true"])) > .snowui-table-cell[data-role-layout="overlay"][data-as="selection"] .snowui-table-selection-control:not([data-selected="true"]),\n :where(.snowui-table-row:not(:hover):not([data-force-hover="true"]):not(:has(:focus-visible)):not([data-selected="true"])) > .snowui-table-cell[data-role-layout="overlay"][data-as="selection"] .snowui-table-selection-control:not([data-selected="true"]) > * {transition:none;}:where(.snowui-table-cell) {border-radius:var(--snowui-table-cell-leading-radius, 0) var(--snowui-table-cell-trailing-radius, 0) var(--snowui-table-cell-trailing-radius, 0) var(--snowui-table-cell-leading-radius, 0);}:where(.snowui-table-cell-visible-first) {--snowui-table-cell-leading-radius: var(--snowui-table-cell-corner-radius, var(--snowui-table-row-corner-radius, 0));}:where(.snowui-table-cell-visible-last) {--snowui-table-cell-trailing-radius: var(--snowui-table-cell-corner-radius, var(--snowui-table-row-corner-radius, 0));}:where(.snowui-table-cell[data-table-variant="striped"]) {--snowui-table-cell-corner-radius: var(--snowui-table-row-radius-override, var(--radius-3));}:where(.snowui-table-cell[data-role-layout="column"]) .snowui-table-selection-control,\n :where(.snowui-table-cell[data-role-layout="column"]) .snowui-table-cell-content[data-actions="true"] {opacity:1;pointer-events:auto;}:where(.snowui-table-responsive-text-fit .snowui-table-cell-content[data-nowrap="true"]:not([data-actions="true"])) {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}:where(.snowui-table-responsive-text-fit .snowui-table-cell-content[data-nowrap="false"]) {overflow-wrap:anywhere;}:where(.snowui-table-cell:not([data-as]) > .snowui-table-cell-content) {opacity:var(--snowui-table-responsive-column-opacity, 1);}\n @media (prefers-reduced-motion: reduce) {:where(.snowui-table-cell:not([data-as]) > .snowui-table-cell-content) {opacity:1;}\n }'
28
+ code: ':where(.snowui-table-cell.snowui-table-cell-visible-first) {--snowui-table-cell-padding-start: max(var(--padding-2), var(--snowui-table-responsive-cell-padding-inline, var(--padding-3)));}:where(.snowui-table-cell.snowui-table-cell-visible-last) {--snowui-table-cell-padding-end: max(var(--padding-2), var(--snowui-table-responsive-cell-padding-inline, var(--padding-3)));}:where(.snowui-table-cell) {position:relative;box-sizing:border-box;height:var(--size-10, 2.5rem);padding:var(--snowui-table-cell-padding-override, var(--padding-2) var(--snowui-table-cell-padding-end, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))) var(--padding-2) var(--snowui-table-cell-padding-start, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))));border-bottom:var(--border-1, .5px) solid var(--black-10, #0000001a);background:var(--snowui-table-row-active-background, transparent);font-size:var(--text-12, .75rem);line-height:var(--leading-12, 1rem);vertical-align:middle;}:where(.snowui-table-cell[data-as="selection"]) {width:var(--size-10);padding:var(--snowui-table-cell-selection-padding-override, var(--padding-2) var(--snowui-table-cell-padding-end, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))) var(--padding-2) var(--snowui-table-cell-padding-start, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))));}:where(.snowui-table-cell[data-as="actions"]) {width:var(--size-10);padding:var(--snowui-table-cell-actions-padding-override, var(--padding-2) var(--snowui-table-cell-padding-end, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))) var(--padding-2) var(--snowui-table-cell-padding-start, var(--snowui-table-responsive-cell-padding-inline, var(--padding-3))));}:where(.snowui-table-cell[data-skeleton="true"]) {pointer-events:none;}:where(.snowui-table-cell-skeleton) {display:flex;width:100%;align-items:center;}:where(.snowui-table-cell[data-as="selection"] .snowui-table-selection-control),\n :where(.snowui-table-cell-content[data-actions="true"]) {opacity:0;pointer-events:none;transition:opacity var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out);}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has([data-as="actions"] :focus), .snowui-table-row[data-selected="true"]) .snowui-table-cell[data-as="selection"] .snowui-table-selection-control,\n :where(.snowui-table-cell[data-as="selection"] .snowui-table-selection-control[data-selected="true"]) {opacity:1;pointer-events:auto;}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has([data-as="actions"] :focus), .snowui-table-row:has(.snowui-select-button-trigger[aria-expanded="true"])) .snowui-table-cell:not([data-role-layout="overlay"]) .snowui-table-cell-content[data-actions="true"] {opacity:1;pointer-events:auto;}:where(.snowui-table-cell[data-role-layout="overlay"][data-as="selection"]),\n :where(.snowui-table-cell[data-role-layout="overlay"][data-as="actions"]) {position:sticky;width:0;min-width:0;max-width:0;padding:0;overflow:visible;background:transparent;z-index:3;}:where(.snowui-table-cell[data-role-layout="overlay"][data-as="selection"]) {left:0;}:where(.snowui-table-cell[data-role-layout="overlay"][data-as="actions"]) {right:0;}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-selection-control) {position:absolute;inset-block:0 calc(-1 * var(--border-1, .5px));inset-inline-start:0;box-sizing:border-box;display:flex;width:var(--size-10, 2.5rem);align-items:center;justify-content:center;overflow:visible;padding-block:var(--padding-2);padding-inline:max(var(--padding-2), var(--snowui-table-responsive-cell-padding-inline, var(--padding-3)));border-radius:var(--snowui-table-row-radius-override, var(--radius-3, 0.75rem));background:transparent;z-index:2147483647;pointer-events:auto;}\n /* 内容 mask 退出是离散切换;同步撤去整个操作浮层,避免淡出按钮叠在已恢复的文字上。 */:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"]) {opacity:1;visibility:hidden;pointer-events:none;transition:none;}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has([data-as="actions"] :focus), .snowui-table-row:has(.snowui-select-button-trigger[aria-expanded="true"])) .snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"] {visibility:visible;}:where(.snowui-table-body .snowui-table-row:last-child) > .snowui-table-cell {border-bottom-color:transparent;}:where(.snowui-table-cell-content) {position:relative;display:block;min-width:0;max-width:100%;overflow:hidden;--snowui-table-cell-actions-legacy-tail: calc(var(--snowui-table-cell-actions-fade-width) * (var(--snowui-table-actions-fade-feather-override) - 1));--snowui-table-cell-actions-fade-width: calc(var(--snowui-table-role-overlay-content-width, var(--snowui-table-role-overlay-width-override, calc((var(--size-12, 3rem) + var(--size-14, 3.5rem)) / 3))) * var(--snowui-table-actions-fade-coverage-override, 1));}\n /* 关闭截断的普通内容保留子组件外扩;角色浮层和 Skeleton 仍使用各自裁切。 */:where(.snowui-table-cell-content[data-lines="none"]) {overflow:visible;}:where(.snowui-table-cell-content.snowui-line-clamp-1) {white-space:nowrap;text-overflow:ellipsis;}:where(.snowui-table-cell-content.snowui-line-clamp-2),\n :where(.snowui-table-cell-content.snowui-line-clamp-3) {display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;}:where(.snowui-table-cell-content.snowui-line-clamp-2) {-webkit-line-clamp:2;line-clamp:2;}:where(.snowui-table-cell-content.snowui-line-clamp-3) {-webkit-line-clamp:3;line-clamp:3;}:where(.snowui-table-cell-content[data-row="true"]) {display:inline-flex;vertical-align:middle;align-items:center;flex-wrap:wrap;}:where(.snowui-table-cell-content[data-nowrap="true"]) {white-space:nowrap;}:where(.snowui-table-cell-content[data-row="true"][data-nowrap="true"]) {flex-wrap:nowrap;}:where(.snowui-table-cell-content[data-actions="true"]) {display:flex;overflow:visible;width:100%;align-items:center;justify-content:flex-end;gap:var(--snowui-table-cell-actions-gap-override, var(--gap-2));}:where(.snowui-table-cell-content[data-actions="true"] .snowui-table-role-overlay-controls) {display:flex;align-items:center;justify-content:flex-end;gap:var(--snowui-table-cell-actions-gap-override, var(--gap-2));}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"]) {position:absolute;inset-block:0 calc(-1 * var(--border-1, .5px));inset-inline-end:0;display:flex;width:var(--snowui-table-role-overlay-width-override, calc((var(--size-12, 3rem) + var(--size-14, 3.5rem)) / 3));max-width:none;align-items:center;justify-content:flex-end;overflow:hidden;padding-inline:max(var(--padding-2), var(--snowui-table-responsive-cell-padding-inline, var(--padding-3)));border-radius:var(--snowui-table-row-radius-override, var(--radius-3, 0.75rem));}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-role-blur-layer) {opacity:0;transition:opacity var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out);}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has([data-as="actions"] :focus), .snowui-table-row[data-selected="true"]) .snowui-table-cell[data-role-layout="overlay"] .snowui-table-role-blur-layer {opacity:1;}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-selection-control) > :not(.snowui-table-role-blur-layer),\n :where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"]) > :not(.snowui-table-role-blur-layer) {position:relative;z-index:2;}:where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-selection-control) > :not(.snowui-table-role-blur-layer),\n :where(.snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"]) > :not(.snowui-table-role-blur-layer) {opacity:0;pointer-events:none;transition:opacity var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out);}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has([data-as="actions"] :focus), .snowui-table-row[data-selected="true"]) .snowui-table-cell[data-role-layout="overlay"][data-as="selection"] .snowui-table-selection-control > :not(.snowui-table-role-blur-layer),\n :where(.snowui-table-cell[data-role-layout="overlay"][data-as="selection"] .snowui-table-selection-control[data-selected="true"]) > :not(.snowui-table-role-blur-layer),\n :where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has([data-as="actions"] :focus), .snowui-table-row:has(.snowui-select-button-trigger[aria-expanded="true"])) .snowui-table-cell[data-role-layout="overlay"] .snowui-table-cell-content[data-actions="true"] > :not(.snowui-table-role-blur-layer) {opacity:1;pointer-events:auto;}:where(.snowui-table-cell[data-table-variant="striped"]) {border-bottom-color:transparent;}:where(.snowui-table-body .snowui-table-row:nth-child(odd of :not(:has(> .snowui-table-loading-cell)))) > .snowui-table-cell[data-table-variant="striped"] {background:var(--snowui-table-row-active-background, var(--surface-3, #f7f7f7));}:where(.snowui-table-body .snowui-table-row:nth-child(even of :not(:has(> .snowui-table-loading-cell)))) > .snowui-table-cell[data-table-variant="striped"] {background:var(--snowui-table-row-active-background, transparent);}:where(.snowui-table-body[data-continuous-hover-enabled="true"] .snowui-table-row:hover) > .snowui-table-cell[data-table-variant="striped"] {background:var(--snowui-table-row-active-background, transparent);}:where(.snowui-table-body .snowui-table-row[data-force-hover="true"]) > .snowui-table-cell:not([data-role-layout="overlay"]) {background:var(--snowui-table-row-hover-background-override, var(--black-4, #0000000a));}:where(.snowui-table-body .snowui-table-row:not([data-skeleton="true"]):hover, .snowui-table-body .snowui-table-row:not([data-skeleton="true"])[data-force-hover="true"]) > .snowui-table-cell {border-bottom-color:transparent;}:where(.snowui-table-body .snowui-table-row:has(+ .snowui-table-row:not([data-skeleton="true"]):hover), .snowui-table-body .snowui-table-row:has(+ .snowui-table-row:not([data-skeleton="true"])[data-force-hover="true"])) > .snowui-table-cell {border-bottom-color:transparent;}:where(.snowui-table-body .snowui-table-row) > .snowui-table-cell[data-role-layout="overlay"] {background:transparent;}:where(.snowui-table-body .snowui-table-row:hover) > .snowui-table-cell[data-role-layout="overlay"] {background:transparent;}\n /* overlay 模式 hover 边缘渐进式透明(复用 edge-fade 通用能力 ../lib/edge-fade.ts;详见 Table.md)。\n selection mask 按 Checkbox 实际右边缘在内容节点生成;actions mask 依赖行级实测宽度,由内容 TableCell 在自身作用域生成,并按内容右边缘到可见行右边缘的实测距离平移。\n 此处状态规则只消费对应 CSS 变量,未触发时无 mask。selection 的内容遮罩与 Checkbox 可见条件一致(hover、键盘 focus、选中或 force-hover);actions 保持行 hover 时触发。相邻内容从靠控件一侧渐隐到清晰:\n - checkbox 侧(to right):透明区覆盖到 Checkbox 实际右边缘,再向右使用固定 --size-5(名义 20px)过渡;\n - actions 侧(to left):透明区默认覆盖到最左按钮实际左边缘,向左以 --size-5(名义 20px)固定长度过渡到清晰,不随按钮组宽度或响应式间距变化。\n coverage 默认 1;显式旧 feather override 仍按倍数计算尾巴,未设置时旧表达式无效,自动回退固定 Token 长度。\n 这些变量与表头渐隐(--snowui-table-head-fade-*-override)相互独立,可在 Table / 容器上单独设置覆盖。\n mask 只改变视觉,不影响指针事件,单元格内链接/按钮点击不受影响。\n data-force-hover="true" 可让某一行静态呈现 hover 态(用于演示 / 视觉走查)。 */:where(.snowui-table-cell-content) {transition:-webkit-mask-image var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out),\n mask-image var(--snowui-frame-color-motion-duration, .15s) var(--snowui-frame-color-motion-easing, ease-out);}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has([data-as="actions"] :focus), .snowui-table-row[data-selected="true"]) > .snowui-table-cell[data-role-layout="overlay"][data-as="selection"] + .snowui-table-cell > .snowui-table-cell-content {--snowui-table-cell-active-selection-mask: var(--snowui-table-selection-fade-mask);-webkit-mask-image:var(--snowui-table-cell-active-selection-mask), var(--snowui-table-cell-active-actions-mask, linear-gradient(#000, #000));mask-image:var(--snowui-table-cell-active-selection-mask), var(--snowui-table-cell-active-actions-mask, linear-gradient(#000, #000));mask-composite:intersect;}:where(.snowui-table-row:hover, .snowui-table-row[data-force-hover="true"], .snowui-table-row:has(:focus-visible), .snowui-table-row:has([data-as="actions"] :focus), .snowui-table-row:has(.snowui-select-button-trigger[aria-expanded="true"])) > .snowui-table-cell:not([data-as="selection"]):has(~ .snowui-table-cell[data-role-layout="overlay"][data-as="actions"]) > .snowui-table-cell-content {--snowui-table-cell-active-actions-mask: var(--snowui-table-cell-actions-fade-mask);-webkit-mask-image:var(--snowui-table-cell-active-selection-mask, linear-gradient(#000, #000)), var(--snowui-table-cell-active-actions-mask);mask-image:var(--snowui-table-cell-active-selection-mask, linear-gradient(#000, #000)), var(--snowui-table-cell-active-actions-mask);mask-composite:intersect;}\n\n /* 遮罩退出时 Checkbox 同帧消失;不隐藏 DOM,保留键盘聚焦入口。 */:where(.snowui-table-row:not(:hover):not([data-force-hover="true"]):not(:has(:focus-visible)):not([data-selected="true"])) > .snowui-table-cell[data-role-layout="overlay"][data-as="selection"] .snowui-table-selection-control:not([data-selected="true"]),\n :where(.snowui-table-row:not(:hover):not([data-force-hover="true"]):not(:has(:focus-visible)):not([data-selected="true"])) > .snowui-table-cell[data-role-layout="overlay"][data-as="selection"] .snowui-table-selection-control:not([data-selected="true"]) > * {transition:none;}:where(.snowui-table-cell) {border-radius:var(--snowui-table-cell-leading-radius, 0) var(--snowui-table-cell-trailing-radius, 0) var(--snowui-table-cell-trailing-radius, 0) var(--snowui-table-cell-leading-radius, 0);}:where(.snowui-table-cell-visible-first) {--snowui-table-cell-leading-radius: var(--snowui-table-cell-corner-radius, var(--snowui-table-row-corner-radius, 0));}:where(.snowui-table-cell-visible-last) {--snowui-table-cell-trailing-radius: var(--snowui-table-cell-corner-radius, var(--snowui-table-row-corner-radius, 0));}:where(.snowui-table-cell[data-table-variant="striped"]) {--snowui-table-cell-corner-radius: var(--snowui-table-row-radius-override, var(--radius-3));}:where(.snowui-table-cell[data-role-layout="column"]) .snowui-table-selection-control,\n :where(.snowui-table-cell[data-role-layout="column"]) .snowui-table-cell-content[data-actions="true"] {opacity:1;pointer-events:auto;}:where(.snowui-table-responsive-text-fit .snowui-table-cell-content[data-nowrap="true"]:not([data-actions="true"])) {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}:where(.snowui-table-responsive-text-fit .snowui-table-cell-content[data-nowrap="false"]) {overflow-wrap:anywhere;}:where(.snowui-table-cell:not([data-as]) > .snowui-table-cell-content) {opacity:var(--snowui-table-responsive-column-opacity, 1);}\n @media (prefers-reduced-motion: reduce) {:where(.snowui-table-cell:not([data-as]) > .snowui-table-cell-content) {opacity:1;}\n }'
28
29
  };
29
30
 
30
31
  export default function TableCell($$renderer, $$props) {
@@ -102,7 +103,22 @@ export default function TableCell($$renderer, $$props) {
102
103
  const hasActionsOverlay = $.derived(() => table.isDataTable() && actionsEnabled() && resolvedRoleLayout() === "overlay");
103
104
  const width = $.derived(() => resolvedColumnId() ? table.getColumnWidth(resolvedColumnId()) : undefined);
104
105
  const defaultActions = $.derived(() => isActionsRole() && rowId() !== undefined ? table.getRowActions(rowId()) : []);
105
- const actionsAvailableWidth = $.derived(() => Math.max(0, (width() ?? table.getActionsColumnWidth()) - 24));
106
+ const actionsAvailableWidth = $.derived(() => table.getActionsContentWidth() ?? Math.max(0, (width() ?? table.getActionsColumnWidth()) - 24));
107
+
108
+ setContext(OVERFLOW_ACTIONS_LAYOUT_CONTEXT_KEY, {
109
+ get availableWidth() {
110
+ return isActionsRole() ? actionsAvailableWidth() : undefined;
111
+ },
112
+
113
+ get maxVisible() {
114
+ return isActionsRole() ? table.getActionsMaxVisible() : undefined;
115
+ },
116
+
117
+ get overflow() {
118
+ return isActionsRole() ? table.getActionsOverflow() : undefined;
119
+ }
120
+ });
121
+
106
122
  const resolvedLines = $.derived(() => skeleton() || isSelectionRole() || isActionsRole() || lines() === false ? undefined : lines());
107
123
  const contextRowAppearMotion = $.derived(() => !skeleton() && !isSelectionRole() && !isActionsRole() && rowId() !== undefined ? table.getRowAppearMotion(rowId()) : undefined);
108
124
  const resolvedWhileAppear = $.derived(() => userWhileAppear() ?? contextRowAppearMotion());
@@ -252,14 +268,18 @@ export default function TableCell($$renderer, $$props) {
252
268
  } else if (rowId() !== undefined && defaultActions().length > 0) {
253
269
  $$renderer.push('<!--[1-->');
254
270
 
255
- OverflowActions($$renderer, {
256
- items: defaultActions(),
257
- compact: table.getActionsCompact(),
258
- overflow: table.getActionsOverflow(),
259
- overflowFrom: table.getActionsOverflowFrom(),
260
- availableWidth: actionsAvailableWidth(),
261
- onAction: ({ id, item }) => table.runRowAction({ rowId: rowId(), actionId: id, item })
262
- });
271
+ OverflowActions($$renderer, $.spread_props([
272
+ table.getActionsProps(),
273
+ {
274
+ items: defaultActions(),
275
+ maxVisible: table.getActionsMaxVisible(),
276
+ compact: table.getActionsCompact(),
277
+ overflow: table.getActionsOverflow(),
278
+ overflowFrom: table.getActionsOverflowFrom(),
279
+ availableWidth: actionsAvailableWidth(),
280
+ onAction: ({ id, item }) => table.runRowAction({ rowId: rowId(), actionId: id, item })
281
+ }
282
+ ]));
263
283
  } else {
264
284
  $$renderer.push('<!--[-1-->');
265
285
  }
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  /**
4
4
  * 全局上下文定义 (Global Context Definitions)
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- /* SnowUI source notice | LICENSE 2.2.0: ../LICENSE
2
+ /* SnowUI source notice | LICENSE 2.3.0: ../LICENSE
3
3
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
4
4
  // Dev entry — use `playground/` for component development
5
5
  // Run: cd ../playground && pnpm dev
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  /** SnowUI 组件内置 UI 文案 catalog。文档: ../../../specs/maintainers/LocalizationSpec.md */
4
4
  export const DEFAULT_LOCALE = "zh-CN";
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  // SnowUI 许可入口:阅读或使用本公开入口前先读 ../LICENSE;同任务同许可版本去重,源码修改与框架移植须有相应权限。
4
4
  export { default as Accordion } from "./components/Accordion.js";
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  // 插件 browser 子路径尚未声明类型,沿用 Prettier 官方 Plugin 接口。
4
4
  declare module "prettier-plugin-svelte/browser" {
@@ -1,3 +1,3 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  export { default as ComponentIcon } from "./ComponentIcon.js";
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  // 品牌专用:以系统 emoji 的实际着色像素边界匹配 32×32 图标,保持原始比例。
4
4
  export const LOGO_EMOJI_FONT = '"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif';
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  /**
4
4
  * Context Keys
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  /** 按需导入的 SVG 渲染入口;不注入 Frame,也不在模块顶层访问 DOM。 */
4
4
  export { default as AdaptiveContrastMask } from "./AdaptiveContrastMask.js";
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  import { clamp } from "./geometry.js";
4
4
  export const SEGMENT_APPEARANCE_FILL_DURATION = 500;
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  import { arc } from "d3-shape";
4
4
  import { clamp, formatPoint, normalizePositiveAngle } from "./geometry.js";
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  import { resolveSnowUIColor, } from "../../index.js";
4
4
  export const DEFAULT_CHART_COLORS = [
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  import { resizeManager } from "../../index.js";
4
4
  import { toNumber } from "./geometry.js";
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  export async function writeClipboardText(text) {
4
4
  if (typeof navigator === "undefined" ||
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  export const SNOWUI_COLOR_TOKENS = {
4
4
  StaticBlack100: "--static-black-100",
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  export const DEFAULT_DATE_LOCALE = "en-US";
4
4
  export const DEFAULT_DATE_EMPTY_VALUE = "—";
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  // 内容边缘渐隐遮罩(Edge Fade Mask)共享能力。
4
4
  //
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  import { getContext, setContext } from "svelte";
4
4
  import { MEDIA_LOADING_CONTEXT_KEY } from "../keys.js";
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  export const DEFAULT_NUMBER_VALUE_LABEL_FRACTION_DIGITS = 2;
4
4
  export const DEFAULT_NUMBER_PERCENT_FRACTION_DIGITS = 1;
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  import { RESIZE_MOTION } from '../motion/presets/resize.js';
4
4
  /** 操作组私有布局适配;Flex 决定终点,独立视觉壳只做平移,不缩放 Button。 */
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  /**
4
4
  * overlay-trigger-timing.ts
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  import { RESIZE_MOTION } from "../motion/presets/resize.js";
4
4
  /** 宽度驱动的退出进度;requiredWidth 是宿主下一次收起项目的宽度阈值。 */
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  /**
4
4
  * 搜索过滤工具 (Search Filter Utilities)
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  import { SIDE_PANEL_APPEAR_MOTION, SIDE_PANEL_DISAPPEAR_MOTION, } from "../motion/presets/effects.js";
4
4
  import { resolveMotionCssTiming } from "../motion/spring.js";
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  /**
4
4
  * 分割面板 Action (Split Pane Action)
@@ -1,4 +1,4 @@
1
- /* SnowUI source notice | LICENSE 2.2.0: ../../../LICENSE
1
+ /* SnowUI source notice | LICENSE 2.3.0: ../../../LICENSE
2
2
  复制或移植时随附该版本完整 LICENSE 与第三方声明;同任务、同版本、同已确认用途不逐组件重复检查。 */
3
3
  import { RESIZE_MOTION } from '../motion/presets/resize.js';
4
4
  const contentSelector = ':scope > .snowui-table-cell-content, :scope > .snowui-table-head-content, :scope > .snowui-table-sort';
@@ -2,6 +2,8 @@ import type { ResourceSize } from "../context";
2
2
  import type { MotionConfig } from "../logic/motion-config";
3
3
  import type { TableTruncationResult } from "./table-truncation";
4
4
  import type { OverflowActionsItem } from "../components/OverflowActions.js";
5
+ import type { ComponentProps } from "svelte";
6
+ import type OverflowActions from "../components/OverflowActions.js";
5
7
  export type TableSortDirection = "ascending" | "descending";
6
8
  export type TableRoleLayout = "auto" | "column" | "overlay";
7
9
  export type TableRoleOverlayBlurMode = "progressive" | "uniform";
@@ -49,6 +51,9 @@ export interface TableContext {
49
51
  getActionsCompact: () => "auto" | "none";
50
52
  getActionsOverflow: () => "all" | "progressive";
51
53
  getActionsOverflowFrom: () => "start" | "end";
54
+ getActionsMaxVisible: () => number;
55
+ getActionsProps: () => Pick<ComponentProps<typeof OverflowActions>, "buttonProps" | "parts" | "moreLabel">;
56
+ getActionsContentWidth: () => number | undefined;
52
57
  getActionsColumnWidth: () => number;
53
58
  getActionsMinWidth: () => number;
54
59
  getActionsMaxWidth: () => number;
@@ -22,8 +22,11 @@ const fallback = {
22
22
  getRowActions: () => [],
23
23
  runRowAction: () => {},
24
24
  getActionsCompact: () => "auto",
25
- getActionsOverflow: () => "all",
25
+ getActionsOverflow: () => "progressive",
26
26
  getActionsOverflowFrom: () => "end",
27
+ getActionsMaxVisible: () => 3,
28
+ getActionsProps: () => ({}),
29
+ getActionsContentWidth: () => undefined,
27
30
  getActionsColumnWidth: () => 160,
28
31
  getActionsMinWidth: () => 40,
29
32
  getActionsMaxWidth: () => 320,
@@ -3,7 +3,7 @@ interface Options {
3
3
  horizontalScroll: boolean;
4
4
  roleLayout: TableRoleLayout;
5
5
  actionsWidth: number;
6
- onLayout: (layout: "column" | "overlay", actionsWidth: number) => void;
6
+ onLayout: (layout: "column" | "overlay", actionsWidth: number, actionsContentWidth: number) => void;
7
7
  }
8
8
  /** 表格私有响应式控制器;每表统一测量,不为各 Cell 创建 Observer。 */
9
9
  export declare function observeTableResponsive(table: HTMLTableElement, viewport: HTMLElement, initial: Options): {