@stenajs-webui/grid 21.9.0 → 21.10.0

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,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  export declare const TrWithHoverBackground: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
5
4
  } & {
6
- borderLeft?: string | undefined;
7
- height?: string | undefined;
8
- focusBackground?: string | undefined;
9
- hoverBackground?: string | undefined;
10
- background?: string | undefined;
5
+ borderLeft?: string;
6
+ height?: string;
7
+ focusBackground?: string;
8
+ hoverBackground?: string;
9
+ background?: string;
11
10
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GroupConfigAndId } from "../features/column-groups/ColumnGroupFactory";
3
2
  export declare const GroupConfigsAndIdsForRowsContext: import("react").Context<GroupConfigAndId<any>[]>;
4
3
  export declare const useGroupConfigsAndIdsForRows: <TColumnKey extends string>() => Array<GroupConfigAndId<TColumnKey>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StandardTableOnKeyDown } from "../types/StandardTableEvents";
3
2
  export declare const OnKeyDownContext: import("react").Context<StandardTableOnKeyDown<any, any> | undefined>;
4
3
  export declare const useOnKeyDownContext: <TItem, TColumnKey extends string>() => StandardTableOnKeyDown<TItem, TColumnKey> | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StandardTableOnSortOrderChange } from "../types/StandardTableEvents";
3
2
  export declare const OnSortOrderChangeContext: import("react").Context<StandardTableOnSortOrderChange<any> | undefined>;
4
3
  export declare const useOnSortOrderChangeContext: <TColumnKey extends string>() => StandardTableOnSortOrderChange<TColumnKey> | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const StandardTableColumnGroupOrderContext: import("react").Context<string[] | undefined>;
3
2
  export declare const StandardTableUsingColumnGroupsContext: import("react").Context<boolean>;
4
- export declare const useColumnGroupOrderContext: <TColumnGroupKey extends string>() => TColumnGroupKey[];
3
+ export declare const useColumnGroupOrderContext: <TColumnGroupKey extends string>() => Array<TColumnGroupKey>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StandardTableVariant } from "../components/StandardTable";
3
2
  export declare const StandardTableVariantContext: import("react").Context<StandardTableVariant>;
4
3
  export declare const useStandardTableVariant: () => StandardTableVariant;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StickyPropsPerColumn } from "../features/sticky-columns/types";
3
2
  export declare const StickyPropsPerColumnContext: import("react").Context<StickyPropsPerColumn<string>>;
4
3
  export declare const useStickyPropsPerColumnContext: () => StickyPropsPerColumn<string>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const TotalNumColumnsContext: import("react").Context<number>;
3
2
  export declare const useTotalNumColumns: () => number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColumnIndexPerColumnIdCalculationResult } from "./ColumnIndexCalculator";
3
2
  export declare const ColumnIndexPerColumnIdContext: import("react").Context<ColumnIndexPerColumnIdCalculationResult<string>>;
4
3
  export declare const useColumnIndexPerColumnIdContext: <TColumnKey extends string>() => ColumnIndexPerColumnIdCalculationResult<TColumnKey>;
package/dist/index.es.js CHANGED
@@ -2600,11 +2600,9 @@ function Xo(e, t) {
2600
2600
  function Uo(e) {
2601
2601
  return (t, n = {}) => {
2602
2602
  const r = t.match(e.matchPattern);
2603
- if (!r)
2604
- return null;
2603
+ if (!r) return null;
2605
2604
  const o = r[0], s = t.match(e.parsePattern);
2606
- if (!s)
2607
- return null;
2605
+ if (!s) return null;
2608
2606
  let i = e.valueCallback ? e.valueCallback(s[0]) : s[0];
2609
2607
  i = n.valueCallback ? n.valueCallback(i) : i;
2610
2608
  const c = t.slice(o.length);
@@ -3376,8 +3374,7 @@ function xs(e) {
3376
3374
  }
3377
3375
  function ks(e, t, n) {
3378
3376
  const r = Ss(e, t, n);
3379
- if (console.warn(r), vs.includes(e))
3380
- throw new RangeError(r);
3377
+ if (console.warn(r), vs.includes(e)) throw new RangeError(r);
3381
3378
  }
3382
3379
  function Ss(e, t, n) {
3383
3380
  const r = e[0] === "Y" ? "years" : "days of the month";
@@ -3417,8 +3414,7 @@ function Es(e, t, n) {
3417
3414
  locale: o
3418
3415
  };
3419
3416
  return l.map((w) => {
3420
- if (!w.isToken)
3421
- return w.value;
3417
+ if (!w.isToken) return w.value;
3422
3418
  const h = w.value;
3423
3419
  (xs(h) || Cs(h)) && ks(h, t, String(e));
3424
3420
  const g = it[h[0]];