mig-schema-table 4.0.9 → 4.0.11

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
  import { oas31 } from 'openapi3-ts';
2
- import { default as React, CSSProperties, Dispatch, SetStateAction } from 'react';
3
2
  import { IColumnConfig } from '../../types';
4
3
  import { IThMenuConfig } from '../ThMenu';
5
4
  import { EColumnFilterStatus } from '../../inc/constant.ts';
5
+ import { default as React } from 'react';
6
6
 
7
7
  interface IThProps<T> {
8
8
  columnFilterStatus: EColumnFilterStatus;
@@ -15,11 +15,11 @@ interface IThProps<T> {
15
15
  propIsRequired: boolean;
16
16
  propName: string;
17
17
  schema?: oas31.SchemaObject;
18
- setMenuConfig: Dispatch<SetStateAction<IThMenuConfig<T> | undefined>>;
19
- setSortAsc: Dispatch<SetStateAction<boolean>>;
20
- setSortColumn: Dispatch<SetStateAction<string>>;
18
+ setMenuConfig: React.Dispatch<React.SetStateAction<IThMenuConfig<T> | undefined>>;
19
+ setSortAsc: React.Dispatch<React.SetStateAction<boolean>>;
20
+ setSortColumn: React.Dispatch<React.SetStateAction<string>>;
21
21
  sortAsc?: boolean;
22
- style: CSSProperties;
22
+ style: React.CSSProperties;
23
23
  translate: (key: string, ...args: Array<string | number>) => string;
24
24
  }
25
25
  declare const MemoizedTh: <T>({ columnFilterStatus, isAllChecked, isSortable, numberOfSelectedRows, onColumnPositionChange, onSelectAllIndexesHandler, propConfig, propIsRequired, propName, schema, setMenuConfig, setSortAsc, setSortColumn, sortAsc, style, translate, }: IThProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -3,8 +3,9 @@ import { oas31 } from 'openapi3-ts';
3
3
  import { TColumnFilterValue } from '../index';
4
4
  import { IColumnConfig } from '../../types';
5
5
 
6
+ import * as PopperJS from "@popperjs/core";
6
7
  export interface IThMenuConfig<T> {
7
- referenceElement: HTMLElement;
8
+ referenceElement: HTMLElement | PopperJS.VirtualElement;
8
9
  propName: string;
9
10
  propConfig?: IColumnConfig<T>;
10
11
  propIsRequired: boolean;
@@ -1,4 +1,4 @@
1
- import { c as $t, l as Ve } from "./index-D9lDdiIf.js";
1
+ import { c as $t, l as Ve } from "./index-DzmXPNg6.js";
2
2
  function Fe(ye) {
3
3
  throw new Error('Could not dynamically require "' + ye + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }