@acvl/frontend-components 0.0.6 → 0.0.8

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,4 +1,5 @@
1
1
  import { JSX } from "react";
2
+ import { JSONParserProps } from "../../forms";
2
3
  import { GridColDefPropsOverrides } from "../types";
3
4
  import { BaseGridProps } from "../Base";
4
5
  import { EditGridColumnsProps } from "../columns";
@@ -9,14 +10,7 @@ export interface EditGridAPIProps {
9
10
  options?: {
10
11
  [key: string]: unknown[] | undefined;
11
12
  };
12
- parser?: {
13
- [key: string]: {
14
- ignore?: boolean;
15
- format?: string;
16
- extra_validation?: (value: string) => boolean;
17
- alter_key?: (key: string) => string;
18
- };
19
- };
13
+ parser?: JSONParserProps;
20
14
  dnd?: {
21
15
  field: string;
22
16
  args?: {
@@ -4,6 +4,7 @@ export interface JSONParserProps {
4
4
  format?: string;
5
5
  extra_validation?: (value: any) => boolean;
6
6
  alter_key?: (key: string) => string;
7
+ alter_value?: (value: any, row: any) => string;
7
8
  };
8
9
  }
9
10
  export interface JSONFormProps {
@@ -0,0 +1,11 @@
1
+ interface Props {
2
+ name: string;
3
+ label?: string;
4
+ control: any;
5
+ fieldProps?: any;
6
+ extraProps?: {
7
+ disableHT?: boolean;
8
+ };
9
+ }
10
+ declare const ControlledTimePicker: (props: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export default ControlledTimePicker;
@@ -0,0 +1,2 @@
1
+ export declare const convertValueToDayjs: (value: any, type: "datetime" | "date" | "time") => {} | null;
2
+ export declare const handleChange: (value: any, type: "datetime" | "date" | "time", onChange: (newVal: any) => void) => void;
@@ -8,3 +8,4 @@ export { default as ControlledSlider } from './ControlledSlider';
8
8
  export { default as ControlledSwitch } from './ControlledSwitch';
9
9
  export { default as ControlledText } from './ControlledText';
10
10
  export { default as ControlledToggleButtons } from './ControlledToggleButtons';
11
+ export { default as ControlledTimePicker } from './ControlledTimePicker';
@@ -12,7 +12,7 @@ export interface SectionProps {
12
12
  description?: string;
13
13
  fields?: FieldProps[];
14
14
  arrayFields?: ArrayFieldProps[];
15
- content?: ReactNode;
15
+ content?: (data: any) => ReactNode;
16
16
  pageType?: PageType;
17
17
  edit?: {
18
18
  readOnlyFields?: EditReadOnlyFields;