@wpic/ui 0.9.83 → 0.9.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Unreleased
2
2
 
3
+ - `WInput variant="bare"` removes the border, background, focus ring and horizontal padding, so an editable value reads like the surrounding table text.
4
+
5
+ - `WSpreadsheet` can resize header columns by dragging their right edge or using Left/Right on the resize handle. `resizableColumns` enables the handles; `v-model:columnWidths` preserves widths across remounts.
6
+
3
7
  - `WTable` accepts `summaryPosition="both"` to repeat the native total row above and below the data.
4
8
 
5
9
  - `WTable` supports `summaryPosition="bottom"` to display a gray, bold total after the data rows; the existing top placement remains the default.
package/COMPONENTS.md CHANGED
@@ -869,7 +869,9 @@ Inline plain-text editing with Tiptap, inheriting the surrounding typography. Pr
869
869
 
870
870
  ### Neutral spreadsheet editing
871
871
 
872
- Use `WSpreadsheet appearance="plain"` for a uniform white surface (dark in dark mode), preserving grid lines and header typography. Pair slotted controls with `WInput variant="plain"` and `WSelect variant="plain"` to avoid nested borders. The default spreadsheet appearance is unchanged.
872
+ Use `WSpreadsheet appearance="plain"` for a uniform white surface (dark in dark mode), preserving grid lines and header typography. Pair slotted controls with `WInput variant="plain"` and `WSelect variant="plain"` to avoid nested borders. Use `WInput variant="bare"` inside a `WTable` cell when the value must align with the column text: it has no border, background, focus ring or horizontal padding. The default spreadsheet appearance is unchanged.
873
+
874
+ Set `resizableColumns` to let users drag the right edge of a header cell. The focused handle also accepts Left and Right arrows in 10 px steps. Bind `v-model:columnWidths` to a `Record<string, number>` to keep widths when the spreadsheet remounts; pass `resizeColumnLabel` for a localized handle label.
873
875
 
874
876
  WModal supports `size="screen"` (12px viewport gutters) and `:body-scroll="false"` for content that owns its scroll container.
875
877
 
@@ -8,7 +8,8 @@ type __VLS_Props = {
8
8
  size?: 'sm' | 'md' | 'lg' | 'xl';
9
9
  clearable?: boolean;
10
10
  loading?: boolean;
11
- variant?: 'default' | 'subtle' | 'plain';
11
+ /** `bare`: no border, background, focus ring or horizontal padding, for text that reads as a table cell. */
12
+ variant?: 'default' | 'subtle' | 'plain' | 'bare';
12
13
  prepend?: string | number;
13
14
  append?: string | number;
14
15
  };
@@ -40,6 +40,9 @@ type __VLS_Props = {
40
40
  showRowNumbers?: boolean;
41
41
  minWidth?: string;
42
42
  maxHeight?: string;
43
+ resizableColumns?: boolean;
44
+ columnWidths?: Record<string, number>;
45
+ resizeColumnLabel?: string;
43
46
  sortable?: boolean;
44
47
  expandable?: boolean;
45
48
  showExpandButton?: boolean;
@@ -75,6 +78,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
75
78
  download: typeof download;
76
79
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
77
80
  "update:expanded": (value: boolean) => any;
81
+ "update:columnWidths": (value: Record<string, number>) => any;
78
82
  "cell-change": (payload: {
79
83
  rowKey: string;
80
84
  cellKey: string;
@@ -84,6 +88,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
84
88
  }) => any;
85
89
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
86
90
  "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
91
+ "onUpdate:columnWidths"?: ((value: Record<string, number>) => any) | undefined;
87
92
  "onCell-change"?: ((payload: {
88
93
  rowKey: string;
89
94
  cellKey: string;