@snowui-design-system/components 0.3.0-alpha.7 → 0.3.0-alpha.9

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 (227) 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/Pagination.js +36 -11
  11. package/dist/client/components/Table.js +14 -7
  12. package/dist/client/components/TableCell.js +33 -11
  13. package/dist/client/context.js +1 -1
  14. package/dist/client/dev.js +1 -1
  15. package/dist/client/i18n/messages.js +1 -1
  16. package/dist/client/index.js +1 -1
  17. package/dist/client/internal/code-block/prettier-svelte.d.ts +1 -1
  18. package/dist/client/internal/component-icon/index.js +1 -1
  19. package/dist/client/internal/snow-ui-logo/emoji-metrics.js +1 -1
  20. package/dist/client/keys.js +1 -1
  21. package/dist/client/lib/adaptive-contrast-renderer.js +1 -1
  22. package/dist/client/lib/chart/appearance-timeline.js +1 -1
  23. package/dist/client/lib/chart/arc-path.js +1 -1
  24. package/dist/client/lib/chart/colors.js +1 -1
  25. package/dist/client/lib/chart/size.js +1 -1
  26. package/dist/client/lib/clipboard.js +1 -1
  27. package/dist/client/lib/color.js +1 -1
  28. package/dist/client/lib/date-format.js +1 -1
  29. package/dist/client/lib/edge-fade.js +1 -1
  30. package/dist/client/lib/media-loading.js +1 -1
  31. package/dist/client/lib/number-format.js +1 -1
  32. package/dist/client/lib/overflow-actions-motion.js +1 -1
  33. package/dist/client/lib/overlay-trigger-timing.js +1 -1
  34. package/dist/client/lib/responsive-exit.js +1 -1
  35. package/dist/client/lib/search-filter.js +1 -1
  36. package/dist/client/lib/side-panel.js +1 -1
  37. package/dist/client/lib/split-pane.js +1 -1
  38. package/dist/client/lib/table-column-motion.js +1 -1
  39. package/dist/client/lib/table-context.d.ts +5 -0
  40. package/dist/client/lib/table-context.js +4 -1
  41. package/dist/client/lib/table-responsive.d.ts +1 -1
  42. package/dist/client/lib/table-responsive.js +40 -8
  43. package/dist/client/lib/table-selection-fade.js +1 -1
  44. package/dist/client/lib/table-truncation.js +1 -1
  45. package/dist/client/lib/text-motion/animation.js +1 -1
  46. package/dist/client/lib/text-motion/character.js +1 -1
  47. package/dist/client/lib/text-motion/color.js +1 -1
  48. package/dist/client/lib/text-motion/layout.js +1 -1
  49. package/dist/client/lib/text-motion/preference.js +1 -1
  50. package/dist/client/lib/text-motion/sequence.js +1 -1
  51. package/dist/client/lib/text-motion/typography.js +1 -1
  52. package/dist/client/lib/tooltip-delay.js +1 -1
  53. package/dist/client/lib/tooltip-motion-dismiss.js +1 -1
  54. package/dist/client/lib/tooltip-pointer-speed.js +1 -1
  55. package/dist/client/lib/truncate.js +1 -1
  56. package/dist/client/logic/frame-field-control.js +1 -1
  57. package/dist/client/logic/frame-motion-defaults.js +1 -1
  58. package/dist/client/logic/frame-prop-filter.js +1 -1
  59. package/dist/client/logic/geometry-cache.js +1 -1
  60. package/dist/client/logic/layout-flip.js +1 -1
  61. package/dist/client/logic/morph.js +1 -1
  62. package/dist/client/logic/motion-engine.js +1 -1
  63. package/dist/client/logic/motion-orchestration.js +1 -1
  64. package/dist/client/logic/motion-types.js +1 -1
  65. package/dist/client/logic/overflow-actions.d.ts +8 -0
  66. package/dist/client/logic/overflow-actions.js +5 -0
  67. package/dist/client/logic/toast.js +7 -4
  68. package/dist/client/logic/wc-adapter.js +1 -1
  69. package/dist/client/motion/bridge.js +1 -1
  70. package/dist/client/motion/content-crossfade.js +1 -1
  71. package/dist/client/motion/expand.js +1 -1
  72. package/dist/client/motion/fade-in.js +1 -1
  73. package/dist/client/motion/fade-out.js +1 -1
  74. package/dist/client/motion/morph.js +1 -1
  75. package/dist/client/motion/move.js +1 -1
  76. package/dist/client/motion/number.js +1 -1
  77. package/dist/client/motion/replace.js +1 -1
  78. package/dist/client/motion/rotate.css +1 -1
  79. package/dist/client/motion/rotate.js +1 -1
  80. package/dist/client/motion/scale-in.js +1 -1
  81. package/dist/client/motion/tokens.js +1 -1
  82. package/dist/client/motion/while-2xl.js +1 -1
  83. package/dist/client/motion/while-active.js +1 -1
  84. package/dist/client/motion/while-appear.js +1 -1
  85. package/dist/client/motion/while-click.js +1 -1
  86. package/dist/client/motion/while-collapsed.js +1 -1
  87. package/dist/client/motion/while-disabled.js +1 -1
  88. package/dist/client/motion/while-disappear.js +1 -1
  89. package/dist/client/motion/while-drag.js +1 -1
  90. package/dist/client/motion/while-editing.js +1 -1
  91. package/dist/client/motion/while-expanded.js +1 -1
  92. package/dist/client/motion/while-focus.js +1 -1
  93. package/dist/client/motion/while-hover.js +1 -1
  94. package/dist/client/motion/while-idle.js +1 -1
  95. package/dist/client/motion/while-key.js +1 -1
  96. package/dist/client/motion/while-lg.js +1 -1
  97. package/dist/client/motion/while-load.js +1 -1
  98. package/dist/client/motion/while-md.js +1 -1
  99. package/dist/client/motion/while-reload.js +1 -1
  100. package/dist/client/motion/while-scroll.js +1 -1
  101. package/dist/client/motion/while-sm.js +1 -1
  102. package/dist/client/motion/while-uploading.js +1 -1
  103. package/dist/client/motion/while-validating.js +1 -1
  104. package/dist/client/motion/while-xl.js +1 -1
  105. package/dist/client/motion/while-xs.js +1 -1
  106. package/dist/client/styles/auto-layout.css +1 -1
  107. package/dist/client/styles/backdrop.css +1 -1
  108. package/dist/client/styles/components.css +1 -1
  109. package/dist/client/styles/index.css +1 -1
  110. package/dist/client/styles/layout.css +1 -1
  111. package/dist/client/styles/scale.css +1 -1
  112. package/dist/client/styles/scrollbar.css +1 -1
  113. package/dist/client/styles/tokens.css +1 -1
  114. package/dist/client/vite-env.d.ts +1 -1
  115. package/dist/server/blocks/index.js +1 -1
  116. package/dist/server/compat.js +1 -1
  117. package/dist/server/components/DataTable.d.ts +8 -2
  118. package/dist/server/components/DataTable.js +9 -3
  119. package/dist/server/components/OverflowActions.d.ts +5 -1
  120. package/dist/server/components/OverflowActions.js +41 -18
  121. package/dist/server/components/Pagination.js +18 -9
  122. package/dist/server/components/Table.js +8 -3
  123. package/dist/server/components/TableCell.js +31 -11
  124. package/dist/server/context.js +1 -1
  125. package/dist/server/dev.js +1 -1
  126. package/dist/server/i18n/messages.js +1 -1
  127. package/dist/server/index.js +1 -1
  128. package/dist/server/internal/code-block/prettier-svelte.d.ts +1 -1
  129. package/dist/server/internal/component-icon/index.js +1 -1
  130. package/dist/server/internal/snow-ui-logo/emoji-metrics.js +1 -1
  131. package/dist/server/keys.js +1 -1
  132. package/dist/server/lib/adaptive-contrast-renderer.js +1 -1
  133. package/dist/server/lib/chart/appearance-timeline.js +1 -1
  134. package/dist/server/lib/chart/arc-path.js +1 -1
  135. package/dist/server/lib/chart/colors.js +1 -1
  136. package/dist/server/lib/chart/size.js +1 -1
  137. package/dist/server/lib/clipboard.js +1 -1
  138. package/dist/server/lib/color.js +1 -1
  139. package/dist/server/lib/date-format.js +1 -1
  140. package/dist/server/lib/edge-fade.js +1 -1
  141. package/dist/server/lib/media-loading.js +1 -1
  142. package/dist/server/lib/number-format.js +1 -1
  143. package/dist/server/lib/overflow-actions-motion.js +1 -1
  144. package/dist/server/lib/overlay-trigger-timing.js +1 -1
  145. package/dist/server/lib/responsive-exit.js +1 -1
  146. package/dist/server/lib/search-filter.js +1 -1
  147. package/dist/server/lib/side-panel.js +1 -1
  148. package/dist/server/lib/split-pane.js +1 -1
  149. package/dist/server/lib/table-column-motion.js +1 -1
  150. package/dist/server/lib/table-context.d.ts +5 -0
  151. package/dist/server/lib/table-context.js +4 -1
  152. package/dist/server/lib/table-responsive.d.ts +1 -1
  153. package/dist/server/lib/table-responsive.js +40 -8
  154. package/dist/server/lib/table-selection-fade.js +1 -1
  155. package/dist/server/lib/table-truncation.js +1 -1
  156. package/dist/server/lib/text-motion/animation.js +1 -1
  157. package/dist/server/lib/text-motion/character.js +1 -1
  158. package/dist/server/lib/text-motion/color.js +1 -1
  159. package/dist/server/lib/text-motion/layout.js +1 -1
  160. package/dist/server/lib/text-motion/preference.js +1 -1
  161. package/dist/server/lib/text-motion/sequence.js +1 -1
  162. package/dist/server/lib/text-motion/typography.js +1 -1
  163. package/dist/server/lib/tooltip-delay.js +1 -1
  164. package/dist/server/lib/tooltip-motion-dismiss.js +1 -1
  165. package/dist/server/lib/tooltip-pointer-speed.js +1 -1
  166. package/dist/server/lib/truncate.js +1 -1
  167. package/dist/server/logic/frame-field-control.js +1 -1
  168. package/dist/server/logic/frame-motion-defaults.js +1 -1
  169. package/dist/server/logic/frame-prop-filter.js +1 -1
  170. package/dist/server/logic/geometry-cache.js +1 -1
  171. package/dist/server/logic/layout-flip.js +1 -1
  172. package/dist/server/logic/morph.js +1 -1
  173. package/dist/server/logic/motion-engine.js +1 -1
  174. package/dist/server/logic/motion-orchestration.js +1 -1
  175. package/dist/server/logic/motion-types.js +1 -1
  176. package/dist/server/logic/overflow-actions.d.ts +8 -0
  177. package/dist/server/logic/overflow-actions.js +5 -0
  178. package/dist/server/logic/toast.js +7 -4
  179. package/dist/server/logic/wc-adapter.js +1 -1
  180. package/dist/server/motion/bridge.js +1 -1
  181. package/dist/server/motion/content-crossfade.js +1 -1
  182. package/dist/server/motion/expand.js +1 -1
  183. package/dist/server/motion/fade-in.js +1 -1
  184. package/dist/server/motion/fade-out.js +1 -1
  185. package/dist/server/motion/morph.js +1 -1
  186. package/dist/server/motion/move.js +1 -1
  187. package/dist/server/motion/number.js +1 -1
  188. package/dist/server/motion/replace.js +1 -1
  189. package/dist/server/motion/rotate.css +1 -1
  190. package/dist/server/motion/rotate.js +1 -1
  191. package/dist/server/motion/scale-in.js +1 -1
  192. package/dist/server/motion/tokens.js +1 -1
  193. package/dist/server/motion/while-2xl.js +1 -1
  194. package/dist/server/motion/while-active.js +1 -1
  195. package/dist/server/motion/while-appear.js +1 -1
  196. package/dist/server/motion/while-click.js +1 -1
  197. package/dist/server/motion/while-collapsed.js +1 -1
  198. package/dist/server/motion/while-disabled.js +1 -1
  199. package/dist/server/motion/while-disappear.js +1 -1
  200. package/dist/server/motion/while-drag.js +1 -1
  201. package/dist/server/motion/while-editing.js +1 -1
  202. package/dist/server/motion/while-expanded.js +1 -1
  203. package/dist/server/motion/while-focus.js +1 -1
  204. package/dist/server/motion/while-hover.js +1 -1
  205. package/dist/server/motion/while-idle.js +1 -1
  206. package/dist/server/motion/while-key.js +1 -1
  207. package/dist/server/motion/while-lg.js +1 -1
  208. package/dist/server/motion/while-load.js +1 -1
  209. package/dist/server/motion/while-md.js +1 -1
  210. package/dist/server/motion/while-reload.js +1 -1
  211. package/dist/server/motion/while-scroll.js +1 -1
  212. package/dist/server/motion/while-sm.js +1 -1
  213. package/dist/server/motion/while-uploading.js +1 -1
  214. package/dist/server/motion/while-validating.js +1 -1
  215. package/dist/server/motion/while-xl.js +1 -1
  216. package/dist/server/motion/while-xs.js +1 -1
  217. package/dist/server/styles/auto-layout.css +1 -1
  218. package/dist/server/styles/backdrop.css +1 -1
  219. package/dist/server/styles/components.css +1 -1
  220. package/dist/server/styles/index.css +1 -1
  221. package/dist/server/styles/layout.css +1 -1
  222. package/dist/server/styles/scale.css +1 -1
  223. package/dist/server/styles/scrollbar.css +1 -1
  224. package/dist/server/styles/tokens.css +1 -1
  225. package/dist/server/vite-env.d.ts +1 -1
  226. package/llms.txt +2 -0
  227. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  import 'svelte/internal/disclose-version';
2
2
  import { createEdgeFadeMaskImage } from "../lib/edge-fade.js";
3
3
  import * as $ from 'svelte/internal/client';
4
- import { getContext } from "svelte";
4
+ import { getContext, setContext } from "svelte";
5
+ import { OVERFLOW_ACTIONS_LAYOUT_CONTEXT_KEY } from "../logic/overflow-actions.js";
5
6
  import Frame from "./Frame.js";
6
7
  import Tooltip from "./Tooltip.js";
7
8
  import Checkbox from "./Checkbox.js";
@@ -33,7 +34,7 @@ var root_5 = $.from_html(`<td data-snowui-frame="true" data-content-width="hug"
33
34
 
34
35
  const $$css = {
35
36
  hash: 'svelte-5fogvw',
36
- 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 }'
37
+ 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 }'
37
38
  };
38
39
 
39
40
  export default function TableCell($$anchor, $$props) {
@@ -159,32 +160,38 @@ export default function TableCell($$anchor, $$props) {
159
160
 
160
161
  var consequent_4 = ($$anchor) => {
161
162
  {
162
- let $0 = $.derived(() => table.getActionsCompact());
163
- let $1 = $.derived(() => table.getActionsOverflow());
164
- let $2 = $.derived(() => table.getActionsOverflowFrom());
163
+ let $0 = $.derived(() => table.getActionsProps());
164
+ let $1 = $.derived(() => table.getActionsMaxVisible());
165
+ let $2 = $.derived(() => table.getActionsCompact());
166
+ let $3 = $.derived(() => table.getActionsOverflow());
167
+ let $4 = $.derived(() => table.getActionsOverflowFrom());
165
168
 
166
- OverflowActions($$anchor, {
169
+ OverflowActions($$anchor, $.spread_props(() => $.get($0), {
167
170
  get items() {
168
171
  return $.get(defaultActions);
169
172
  },
170
173
 
174
+ get maxVisible() {
175
+ return $.get($1);
176
+ },
177
+
171
178
  get compact() {
172
- return $.get($0);
179
+ return $.get($2);
173
180
  },
174
181
 
175
182
  get overflow() {
176
- return $.get($1);
183
+ return $.get($3);
177
184
  },
178
185
 
179
186
  get overflowFrom() {
180
- return $.get($2);
187
+ return $.get($4);
181
188
  },
182
189
 
183
190
  get availableWidth() {
184
191
  return $.get(actionsAvailableWidth);
185
192
  },
186
193
  onAction: ({ id, item }) => table.runRowAction({ rowId: $.get(rowId), actionId: id, item })
187
- });
194
+ }));
188
195
  }
189
196
  };
190
197
 
@@ -383,7 +390,22 @@ export default function TableCell($$anchor, $$props) {
383
390
  : undefined);
384
391
 
385
392
  const defaultActions = $.derived(() => $.get(isActionsRole) && $.get(rowId) !== undefined ? table.getRowActions($.get(rowId)) : []);
386
- const actionsAvailableWidth = $.derived(() => Math.max(0, ($.get(width) ?? table.getActionsColumnWidth()) - 24));
393
+ const actionsAvailableWidth = $.derived(() => table.getActionsContentWidth() ?? Math.max(0, ($.get(width) ?? table.getActionsColumnWidth()) - 24));
394
+
395
+ setContext(OVERFLOW_ACTIONS_LAYOUT_CONTEXT_KEY, {
396
+ get availableWidth() {
397
+ return $.get(isActionsRole) ? $.get(actionsAvailableWidth) : undefined;
398
+ },
399
+
400
+ get maxVisible() {
401
+ return $.get(isActionsRole) ? table.getActionsMaxVisible() : undefined;
402
+ },
403
+
404
+ get overflow() {
405
+ return $.get(isActionsRole) ? table.getActionsOverflow() : undefined;
406
+ }
407
+ });
408
+
387
409
  const resolvedLines = $.derived(() => $.get(skeleton) || $.get(isSelectionRole) || $.get(isActionsRole) || $.get(lines) === false ? undefined : $.get(lines));
388
410
  const contextRowAppearMotion = $.derived(() => !$.get(skeleton) && !$.get(isSelectionRole) && !$.get(isActionsRole) && $.get(rowId) !== undefined ? table.getRowAppearMotion($.get(rowId)) : undefined);
389
411
  const resolvedWhileAppear = $.derived(() => $.get(userWhileAppear) ?? $.get(contextRowAppearMotion));
@@ -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): {
@@ -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 { createResponsiveExit } from "./responsive-exit.js";
4
4
  import { createTableColumnMotion } from "./table-column-motion.js";
@@ -24,6 +24,8 @@ export function observeTableResponsive(table, viewport, initial) {
24
24
  }
25
25
  });
26
26
  let measuredActionsWidth = 0;
27
+ let cachedActionsPadding = 0;
28
+ let cachedMoreWidth = 0;
27
29
  let complexGrid = false;
28
30
  const originalSpans = new WeakMap();
29
31
  const renderedSpans = new WeakMap();
@@ -91,20 +93,50 @@ export function observeTableResponsive(table, viewport, initial) {
91
93
  const hideable = !complexGrid && !role && !firstData && head.dataset.responsiveHide !== 'false' && head.colSpan === 1;
92
94
  if (!role)
93
95
  firstData = false;
94
- return { role, hideable, preferred: preferred[index], minimum: minimum[index] };
96
+ return { role, actions: head.dataset.as === 'actions', hideable, preferred: preferred[index], minimum: minimum[index] };
95
97
  });
98
+ measureActionChrome();
96
99
  copy.remove();
97
100
  }
101
+ function measureActionChrome() {
102
+ const actionCells = Array.from(table.querySelectorAll('.snowui-table-cell[data-as="actions"]'));
103
+ let padding = preferredPadding * 2;
104
+ let moreWidth = 0;
105
+ for (const cell of actionCells) {
106
+ const style = getComputedStyle(cell);
107
+ const content = cell.querySelector('.snowui-table-cell-content[data-actions="true"]');
108
+ const contentStyle = content ? getComputedStyle(content) : undefined;
109
+ padding = Math.max(padding, parseFloat(style.paddingLeft) + parseFloat(style.paddingRight), contentStyle ? parseFloat(contentStyle.paddingLeft) + parseFloat(contentStyle.paddingRight) : 0);
110
+ for (const more of cell.querySelectorAll('.snowui-overflow-actions-more-measure')) {
111
+ moreWidth = Math.max(moreWidth, more.getBoundingClientRect().width);
112
+ }
113
+ }
114
+ cachedActionsPadding = padding;
115
+ cachedMoreWidth = moreWidth;
116
+ }
98
117
  function flush() {
99
118
  frame = 0;
100
119
  if (disposed || !table.isConnected || viewport.clientWidth <= 0)
101
120
  return;
121
+ // 菜单存在时保留触发器几何;关闭属性变更会重新进入同一求解入口。
122
+ if (table.querySelector('.snowui-select-button-trigger[aria-expanded="true"]'))
123
+ return;
102
124
  if (!columns)
103
125
  measureColumns();
104
126
  const measured = columns;
105
127
  // clientWidth 会取整;慢速拖动时会让 padding 与渐隐每隔 1px 才跳一次。
106
128
  // 内部 viewport 无边框及 padding,计算样式保留未受 transform 影响的 CSS 小数宽度。
107
129
  const available = parseFloat(getComputedStyle(viewport).width) || viewport.clientWidth;
130
+ const padding = cachedActionsPadding;
131
+ const moreWidth = cachedMoreWidth;
132
+ const protectedWidth = measured.filter(column => !column.role && !column.hideable).reduce((sum, column) => sum + column.minimum, 0);
133
+ const selectionWidth = measured.filter(column => column.role && !column.actions).reduce((sum, column) => sum + column.minimum, 0);
134
+ const floor = moreWidth + padding + fadeDistance;
135
+ const budget = Math.max(floor, Math.min(available * .2, 14 * (parseFloat(getComputedStyle(document.documentElement).fontSize) || 16), options.actionsWidth, Math.max(0, available - protectedWidth - selectionWidth)));
136
+ measuredActionsWidth = budget;
137
+ for (const column of measured)
138
+ if (column.actions)
139
+ column.preferred = column.minimum = budget;
108
140
  const full = measured.reduce((sum, column) => sum + column.preferred, 0);
109
141
  const layout = options.roleLayout === 'auto' ? (full <= available + 0.5 ? 'column' : 'overlay') : options.roleLayout;
110
142
  const included = measured.filter(column => layout === 'column' || !column.role);
@@ -162,14 +194,14 @@ export function observeTableResponsive(table, viewport, initial) {
162
194
  table.classList.toggle('snowui-table-responsive-text-fit', textFit);
163
195
  // 容器改变时由同一次 CSS 布局同步调整 padding,不能等尺寸回调再补一次位移。
164
196
  // 显式固定列宽可能使首选与最小宽度相等,此时保留原来的边界选择。
165
- const padding = preferred > minimum
197
+ const responsivePadding = preferred > minimum
166
198
  ? `clamp(${minimumPadding}px, calc(${minimumPadding}px + (100cqw - ${minimum}px) * ${(preferredPadding - minimumPadding) / (preferred - minimum)}), ${preferredPadding}px)`
167
199
  : `${minimumPadding + (preferredPadding - minimumPadding) * ratio}px`;
168
200
  const paddingProperty = '--snowui-table-responsive-cell-padding-inline';
169
- if (table.style.getPropertyValue(paddingProperty) !== padding)
170
- table.style.setProperty(paddingProperty, padding);
201
+ if (table.style.getPropertyValue(paddingProperty) !== responsivePadding)
202
+ table.style.setProperty(paddingProperty, responsivePadding);
171
203
  table.dataset.responsiveLayout = layout;
172
- options.onLayout(layout, measuredActionsWidth);
204
+ options.onLayout(layout, measuredActionsWidth, Math.max(moreWidth, budget - padding - fadeDistance));
173
205
  for (const row of rows()) {
174
206
  let index = 0;
175
207
  const visible = [];
@@ -242,11 +274,11 @@ export function observeTableResponsive(table, viewport, initial) {
242
274
  originalSpans.set(record.target, record.target.colSpan);
243
275
  return true;
244
276
  }
245
- return record.type !== 'attributes' || record.attributeName !== 'style' || (record.target instanceof Element && record.target.matches('th, td'));
277
+ return record.type !== 'attributes' || record.attributeName !== 'style' || (record.target instanceof Element && (record.target.matches('th, td') || record.target.closest('.snowui-overflow-actions-more-measure')));
246
278
  }))
247
279
  refresh();
248
280
  });
249
- observer.observe(table, { childList: true, characterData: true, subtree: true, attributes: true, attributeOldValue: true, attributeFilter: ['data-responsive-hide', 'data-column-id', 'style', 'colspan', 'rowspan', 'class'] });
281
+ observer.observe(table, { childList: true, characterData: true, subtree: true, attributes: true, attributeOldValue: true, attributeFilter: ['data-responsive-hide', 'data-column-id', 'style', 'colspan', 'rowspan', 'class', 'aria-expanded'] });
250
282
  window.addEventListener('resize', refresh);
251
283
  table.addEventListener('load', refresh, true);
252
284
  document.fonts?.addEventListener('loadingdone', refresh);
@@ -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 { createEdgeFadeMaskImage } from "./edge-fade.js";
4
4
  import { resizeManager } from "../logic/observer.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 { resizeManager } from "../logic/observer.js";
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
  /** 内部连续重定向:逻辑终点与仍在播放的差值分离。 */
4
4
  export function animateTextMotionDelta(element, property, from, to, timing) {
@@ -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 { animateSettledTextMotionColor, animateTextMotionColorSequence, cancelTextMotionColor, } from "./color.js";
4
4
  import { cancelTextMotionLayout, flipTextMotionElement, splitTextMotionGraphemes, TEXT_MOTION_LAYOUT_TRANSITION, } from "./layout.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 { getTextMotionStagger } from "./sequence.js";
4
4
  import { resolveTextMotionColor } from "./typography.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 { TEXT_MOTION_SPACE } from "./sequence.js";
4
4
  export const TEXT_MOTION_LAYOUT_TRANSITION = {
@@ -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 function shouldReduceTextMotion(respectMotionPreference) {
4
4
  return (respectMotionPreference &&
@@ -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 TEXT_MOTION_STAGGER_MS = 25;
4
4
  export const TEXT_MOTION_SPACE = "\u00A0";
@@ -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 "../color.js";
4
4
  function resolveCssValue(value, numberUnit = "unitless") {
@@ -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
  * Tooltip hover 延迟协调器。
@@ -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
  * Tooltip 动效感知关闭协调器。
@@ -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
  /** 仅由可见的共享 Tooltip 宿主持有;事件只更新数值,不读布局或驱动渲染。 */
4
4
  export function trackTooltipPointerSpeed(document) {
@@ -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 (Truncate 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
  /**
4
4
  * Frame Field Control