@addsign/moje-agenda-shared-lib 2.0.49 → 2.0.50

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.
@@ -13,11 +13,12 @@ interface DataTableServerProps<T> {
13
13
  filters?: object;
14
14
  selectedItemKey?: string;
15
15
  itemsPerPageOptions?: IOptionItem[];
16
+ setMinWidth?: boolean;
16
17
  }
17
18
  type DataTableInternalItems = {
18
19
  _isHighlighted?: boolean;
19
20
  id: string;
20
21
  };
21
22
  export declare const resetAllDataTablePaging: () => void;
22
- declare function DataTableServer<T extends DataTableInternalItems>({ id, url, columns, title, subtitle, allowSearch, showHeader, rowAction, bulkAction, filters, selectedItemKey, itemsPerPageOptions, }: DataTableServerProps<T>): import("react/jsx-runtime").JSX.Element;
23
+ declare function DataTableServer<T extends DataTableInternalItems>({ id, url, columns, title, subtitle, allowSearch, showHeader, rowAction, bulkAction, filters, selectedItemKey, itemsPerPageOptions, setMinWidth, }: DataTableServerProps<T>): import("react/jsx-runtime").JSX.Element;
23
24
  export default DataTableServer;
@@ -21726,7 +21726,8 @@ function DataTableServer({
21726
21726
  bulkAction,
21727
21727
  filters,
21728
21728
  selectedItemKey = "id",
21729
- itemsPerPageOptions = defaultItemsPerPageOptions
21729
+ itemsPerPageOptions = defaultItemsPerPageOptions,
21730
+ setMinWidth = false
21730
21731
  }) {
21731
21732
  var _a, _b;
21732
21733
  const abortControllerRef = useRef(null);
@@ -22218,6 +22219,7 @@ function DataTableServer({
22218
22219
  tableId: id,
22219
22220
  colKey: String(key),
22220
22221
  defaultWidth: width || "auto",
22222
+ setMinWidth,
22221
22223
  children: ({ ref }) => /* @__PURE__ */ jsxs(
22222
22224
  "th",
22223
22225
  {