@parallelworks/ui 0.84.0 → 0.84.2

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.
@@ -1,8 +1,8 @@
1
1
  export { ActionToolbar, type ToolbarAction, ToolbarButton, type ToolbarItem, } from './ActionToolbar.js';
2
2
  export { type ActiveFilter, applyFilterList, DATE_PRESETS, type DatePreset, dateFilterRange, decodeFilters, encodeFilters, type FilterField, type FilterKind, type FilterOperator, type FilterOption, type FilterRowValue, filterParamKeys, matchFilter, sameFilters, withFilterParams, } from './filterModel.js';
3
3
  export { AddFilterMenu, type AddFilterMenuProps, FilterChip, ListFilterBar, type ListFilterBarProps, } from './ListFilterBar.js';
4
- export { ListColumns, ListPage, type ListPageEmpty, type ListPageProps, ListRow, ListRowActionsProvider, useListNavigate, } from './ListPage.js';
5
- export { actionsColumnWidth, GroupRow, ListActionsHeader, ListCellText, ListError, ListSelectAllHeader, ListSkeleton, listTableFixedProps, listTableProps, NAME_MIN_WIDTH_PX, NameCell, RowSelectCheckbox, } from './ListTable.js';
4
+ export { GroupRow, ListColumns, ListPage, type ListPageEmpty, type ListPageProps, ListRow, ListRowActionsProvider, useListNavigate, } from './ListPage.js';
5
+ export { actionsColumnWidth, ListActionsHeader, ListCellText, ListError, ListSelectAllHeader, ListSkeleton, listTableFixedProps, listTableProps, NAME_MIN_WIDTH_PX, NameCell, RowSelectCheckbox, } from './ListTable.js';
6
6
  export { ListToolbar, type ListToolbarProps } from './ListToolbar.js';
7
7
  export { ListDisplayMenu, ListFilterMenu } from './ListViewControls.js';
8
8
  export { ListCount, type ListSearch, ListSearchControl, useListSearch, } from './listSearch.js';
@@ -1,9 +1,9 @@
1
1
  import { ActionToolbar, ToolbarButton } from "./ActionToolbar.js";
2
2
  import { DATE_PRESETS, applyFilterList, dateFilterRange, decodeFilters, encodeFilters, filterParamKeys, matchFilter, sameFilters, withFilterParams } from "./filterModel.js";
3
3
  import { AddFilterMenu, FilterChip, ListFilterBar } from "./ListFilterBar.js";
4
- import { GroupRow, ListActionsHeader, ListCellText, ListError, ListSelectAllHeader, ListSkeleton, NAME_MIN_WIDTH_PX, NameCell, RowSelectCheckbox, actionsColumnWidth, listTableFixedProps, listTableProps } from "./ListTable.js";
4
+ import { ListActionsHeader, ListCellText, ListError, ListSelectAllHeader, ListSkeleton, NAME_MIN_WIDTH_PX, NameCell, RowSelectCheckbox, actionsColumnWidth, listTableFixedProps, listTableProps } from "./ListTable.js";
5
5
  import { MoreButton, assembleRowMenu, rowContextMenuProps, useCopySubmenu, useRowMenuActive } from "./rowMenu.js";
6
- import { ListColumns, ListPage, ListRow, ListRowActionsProvider, useListNavigate } from "./ListPage.js";
6
+ import { GroupRow, ListColumns, ListPage, ListRow, ListRowActionsProvider, useListNavigate } from "./ListPage.js";
7
7
  import { ListDisplayMenu, ListFilterMenu } from "./ListViewControls.js";
8
8
  import { ListCount, ListSearchControl, useListSearch } from "./listSearch.js";
9
9
  import { ListToolbar } from "./ListToolbar.js";
@@ -25,6 +25,12 @@ export interface ColumnDef {
25
25
  * then sorts the list: it shows, and sets, the same order as Display
26
26
  * options' Ordering. */
27
27
  orderBy?: string;
28
+ /** The column's width, such as `'12%'` or `128`, set on its header. In a
29
+ * fixed-layout list (`listTableFixedProps`), where every column without one
30
+ * takes an equal share, give the other columns a width each and leave the
31
+ * name without one, so it takes what they leave. A percentage is of the
32
+ * list's width, and a hidden column's no longer counts. */
33
+ width?: string | number;
28
34
  /** `end` sets the header and the cells against the column's far edge, for
29
35
  * figures, sizes and times that compare best lined up on their last digit. */
30
36
  align?: 'start' | 'end';