schummar-table 0.46.3 → 0.46.5

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/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { ComponentType, ReactNode, HTMLProps, ForwardedRef } from 'react';
4
- import { T as TableTheme, C as CommonFilterProps, a as TableProps, b as TableRef, F as FilterImplementation, M as MemoizedTableTheme, I as Id, c as TableItem, d as InternalTableState, P as PartialTableTheme } from './types-CJnecNQy.cjs';
5
- export { f as Column, g as FunctionWithDeps, h as InternalColumn, S as Sort, i as SortDirection, e as TableStateStorage } from './types-CJnecNQy.cjs';
4
+ import { T as TableTheme, C as CommonFilterProps, a as TableProps, b as TableRef, F as FilterImplementation, M as MemoizedTableTheme, I as Id, c as TableItem, d as InternalTableState, P as PartialTableTheme } from './types-CNiUxMEp.cjs';
5
+ export { f as Column, g as FunctionWithDeps, h as InternalColumn, S as Sort, i as SortDirection, e as TableStateStorage } from './types-CNiUxMEp.cjs';
6
6
  import { Store } from 'schummar-state/react';
7
7
  import { E as ExporterEntry } from './exporter-u6SatTo6.cjs';
8
8
  import '@emotion/react';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { ComponentType, ReactNode, HTMLProps, ForwardedRef } from 'react';
4
- import { T as TableTheme, C as CommonFilterProps, a as TableProps, b as TableRef, F as FilterImplementation, M as MemoizedTableTheme, I as Id, c as TableItem, d as InternalTableState, P as PartialTableTheme } from './types-CIq7O-SN.js';
5
- export { f as Column, g as FunctionWithDeps, h as InternalColumn, S as Sort, i as SortDirection, e as TableStateStorage } from './types-CIq7O-SN.js';
4
+ import { T as TableTheme, C as CommonFilterProps, a as TableProps, b as TableRef, F as FilterImplementation, M as MemoizedTableTheme, I as Id, c as TableItem, d as InternalTableState, P as PartialTableTheme } from './types-BM1Cjg67.js';
5
+ export { f as Column, g as FunctionWithDeps, h as InternalColumn, S as Sort, i as SortDirection, e as TableStateStorage } from './types-BM1Cjg67.js';
6
6
  import { Store } from 'schummar-state/react';
7
7
  import { E as ExporterEntry } from './exporter-u6SatTo6.js';
8
8
  import '@emotion/react';
package/dist/index.js CHANGED
@@ -2915,7 +2915,7 @@ function calc(props, cache) {
2915
2915
  width,
2916
2916
  displaySize
2917
2917
  }, index) => {
2918
- var _a2, _b, _c, _d, _e, _f;
2918
+ var _a2, _b, _c, _d, _e, _f, _g;
2919
2919
  const id2 = _id != null ? _id : index;
2920
2920
  const cacheKey = typeof id2 === "string" ? `s${id2}` : `n${id2}`;
2921
2921
  const defaults2 = __spreadValues(__spreadValues({}, globalDefaults), columnProps == null ? void 0 : columnProps(id2));
@@ -2933,16 +2933,16 @@ function calc(props, cache) {
2933
2933
  sortBy: ((_f = sortBy != null ? sortBy : defaults2 == null ? void 0 : defaults2.sortBy) != null ? _f : [
2934
2934
  (v) => typeof v === "number" || v instanceof Date ? v : v === null || v === void 0 ? "" : String(v)
2935
2935
  ]).map((function_, i) => cache(`columns.${cacheKey}.sortBy.${i}`, function_)),
2936
- disableSort,
2936
+ disableSort: (_g = disableSort != null ? disableSort : defaults2 == null ? void 0 : defaults2.disableSort) != null ? _g : false,
2937
2937
  hidden: hidden != null ? hidden : defaults2 == null ? void 0 : defaults2.hidden,
2938
2938
  classes: classes != null ? classes : defaults2 == null ? void 0 : defaults2.classes,
2939
2939
  styles: styles != null ? styles : defaults2 == null ? void 0 : defaults2.styles,
2940
2940
  filter: filter != null ? filter : defaults2 == null ? void 0 : defaults2.filter,
2941
2941
  width: width != null ? width : defaults2 == null ? void 0 : defaults2.width,
2942
- displaySize: Array.isArray(displaySize) ? displaySize : displaySize ? [displaySize] : void 0
2942
+ displaySize: (displaySize != null ? displaySize : defaults2.displaySize) !== void 0 ? castArray(displaySize != null ? displaySize : defaults2.displaySize) : void 0
2943
2943
  };
2944
2944
  };
2945
- const columns = inputColumns == null ? void 0 : inputColumns.map(mapColumn);
2945
+ const columns = inputColumns == null ? void 0 : inputColumns.filter((x) => !!x).map(mapColumn);
2946
2946
  const wrapRow = props.wrapRow && cache("wrapRow", props.wrapRow);
2947
2947
  const wrapCell = props.wrapCell && cache("wrapCell", props.wrapCell);
2948
2948
  const rowAction = props.rowAction instanceof Function || Array.isArray(props.rowAction) ? cache("rowAction", props.rowAction) : props.rowAction;