@acvl/frontend-components 0.0.42 → 0.0.44

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,5 +1,5 @@
1
1
  import { GridPaginationModel, GridSortModel } from "@mui/x-data-grid";
2
2
  import { MyGridFilterModel } from "./types";
3
- export declare function setWithExpiry(key: string, value: any, ttl: number): void;
4
- export declare function getWithExpiry(key: string): any;
3
+ export declare function saveGridState(key: string, value: any): void;
4
+ export declare function loadGridState(key: string): any;
5
5
  export declare const getQueryArgs: (paginationModel: GridPaginationModel, sortModel: GridSortModel, filterModel: MyGridFilterModel, extraArgs: any | undefined) => any;
@@ -3,7 +3,7 @@ import { BaseControlledFieldProps } from "../types";
3
3
  export interface ControlledDateProps extends BaseControlledFieldProps {
4
4
  fieldProps?: any;
5
5
  extraProps: {
6
- type: 'date' | 'datetime' | 'range';
6
+ type: "date" | "datetime" | "range";
7
7
  disableHT?: boolean;
8
8
  };
9
9
  }
@@ -10,6 +10,7 @@ export interface MyTab {
10
10
  export interface MyTabProps {
11
11
  tabs: MyTab[];
12
12
  initialValue?: string;
13
+ storageKey?: string;
13
14
  type?: PageType;
14
15
  slotProps?: {
15
16
  mainContainer?: BoxProps;
package/dist/index.d.ts CHANGED
@@ -381,7 +381,7 @@ interface BaseControlledFieldProps {
381
381
  interface ControlledDateProps extends BaseControlledFieldProps {
382
382
  fieldProps?: any;
383
383
  extraProps: {
384
- type: 'date' | 'datetime' | 'range';
384
+ type: "date" | "datetime" | "range";
385
385
  disableHT?: boolean;
386
386
  };
387
387
  }
@@ -719,6 +719,7 @@ interface MyTab {
719
719
  interface MyTabProps {
720
720
  tabs: MyTab[];
721
721
  initialValue?: string;
722
+ storageKey?: string;
722
723
  type?: PageType;
723
724
  slotProps?: {
724
725
  mainContainer?: BoxProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acvl/frontend-components",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "Component library for ACV frontend projects.",
5
5
  "homepage": "https://github.com/ACV-Logistics/acv-frontend-components#readme",
6
6
  "access": "public",