@linzjs/step-ag-grid 1.5.2 → 1.5.4

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.
@@ -15,7 +15,7 @@ export interface GridProps {
15
15
  externalSelectedItems?: any[];
16
16
  setExternalSelectedItems?: (items: any[]) => void;
17
17
  onGridReady?: GridOptions["onGridReady"];
18
- defaultColDef: GridOptions["defaultColDef"];
18
+ defaultColDef?: GridOptions["defaultColDef"];
19
19
  columnDefs: GridOptions["columnDefs"];
20
20
  rowData: GridOptions["rowData"];
21
21
  noRowsOverlayText?: string;
@@ -2,16 +2,12 @@
2
2
  import "../../react-menu3/styles/index.scss";
3
3
  import { GridBaseRow } from "../Grid";
4
4
  import { GenericCellEditorParams, GridFormProps } from "../GridCell";
5
- interface FinalSelectOption<ValueType> {
5
+ interface MultiFinalSelectOption<ValueType> {
6
6
  value: ValueType;
7
7
  label?: JSX.Element | string;
8
8
  subComponent?: (props: any, ref: any) => any;
9
9
  }
10
- export declare const MenuSeparatorString = "_____MENU_SEPARATOR_____";
11
- export declare const MenuSeparator: Readonly<{
12
- value: "_____MENU_SEPARATOR_____";
13
- }>;
14
- export declare type SelectOption<ValueType> = ValueType | FinalSelectOption<ValueType>;
10
+ export declare type MultiSelectOption<ValueType> = ValueType | MultiFinalSelectOption<ValueType>;
15
11
  export interface MultiSelectResult<RowType> {
16
12
  selectedRows: RowType[];
17
13
  values: Record<string, any>;
@@ -20,7 +16,7 @@ export interface GridFormMultiSelectProps<RowType extends GridBaseRow, ValueType
20
16
  filtered?: boolean;
21
17
  filterPlaceholder?: string;
22
18
  onSave?: (props: MultiSelectResult<RowType>) => Promise<boolean>;
23
- options: SelectOption<ValueType>[] | ((selectedRows: RowType[]) => Promise<SelectOption<ValueType>[]> | SelectOption<ValueType>[]);
19
+ options: MultiSelectOption<ValueType>[] | ((selectedRows: RowType[]) => Promise<MultiSelectOption<ValueType>[]> | MultiSelectOption<ValueType>[]);
24
20
  initialSelectedValues?: (selectedRows: RowType[]) => any[];
25
21
  }
26
22
  export declare const GridFormMultiSelect: <RowType extends GridBaseRow, ValueType>(props: GridFormProps<RowType>) => JSX.Element;
@@ -5,7 +5,7 @@ export interface GridFormPopoutMenuProps<RowType extends GridBaseRow> extends Ge
5
5
  options: (selectedRows: RowType[]) => Promise<MenuOption<RowType>[]>;
6
6
  }
7
7
  /** Menu configuration types **/
8
- export declare const MenuSeparator: Readonly<{
8
+ export declare const PopoutMenuSeparator: Readonly<{
9
9
  __isMenuSeparator__: true;
10
10
  }>;
11
11
  interface MenuSeparatorType {
@@ -3,10 +3,11 @@ import { GenericCellEditorParams, GridFormProps } from "../GridCell";
3
3
  import { GridBaseRow } from "../Grid";
4
4
  export interface GridFormTextInputProps<RowType extends GridBaseRow> extends GenericCellEditorParams<RowType> {
5
5
  placeholder?: string;
6
+ units?: string;
6
7
  required?: boolean;
7
8
  maxlength?: number;
8
9
  width?: string | number;
9
- validate?: (value: string) => string | null;
10
+ validate?: (value: string, data: RowType) => string | null;
10
11
  onSave?: (selectedRows: RowType[], value: string) => Promise<boolean>;
11
12
  }
12
13
  export declare const GridFormTextInput: <RowType extends GridBaseRow>(props: GridFormProps<RowType>) => JSX.Element;
@@ -16,6 +16,7 @@ export interface GridContextType {
16
16
  flashRowsDiff: (updateFn: () => Promise<any>) => Promise<void>;
17
17
  ensureRowVisible: (id: number) => void;
18
18
  ensureSelectedRowIsVisible: () => void;
19
+ sizeColumnsToFit: () => void;
19
20
  stopEditing: () => void;
20
21
  updatingCells: (props: {
21
22
  selectedRows: GridBaseRow[];
@@ -7,8 +7,7 @@ export interface LuiTextInputProps {
7
7
  warning?: string | boolean | null;
8
8
  className?: string;
9
9
  value: string;
10
- icon?: JSX.Element;
11
10
  placeholder?: string;
12
- formatted: string;
11
+ formatted?: string;
13
12
  }
14
13
  export declare const TextInputFormatted: (props: LuiTextInputProps) => JSX.Element;
@@ -8,5 +8,6 @@ export interface IFormTestRow {
8
8
  nameType: string;
9
9
  numba: string;
10
10
  plan: string;
11
+ distance: number | null;
11
12
  }
12
13
  export declare const FormTest: <RowType extends GridBaseRow>(props: GridFormProps<RowType>) => JSX.Element;