ia-table 0.15.1 → 0.15.3

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.
package/dist/index.d.ts CHANGED
@@ -916,6 +916,7 @@ export declare interface SmartGridBodyCellProps {
916
916
  isGrandTotalRow?: boolean;
917
917
  isLeftPinnedRowsAvailable?: boolean;
918
918
  style?: CSSProperties | null;
919
+ index: number;
919
920
  }
920
921
 
921
922
  export declare interface SmartGridButtonProps {
@@ -1104,6 +1105,7 @@ export declare interface SmartGridCallbackRefCurrent {
1104
1105
  onSortChange?: ((sortModel: SmartGridSortModel) => void) | null;
1105
1106
  onFilterChange?: ((filterModel: SmartGridFilterModel) => void) | null;
1106
1107
  onSearch?: ((searchTerm: SmartGridSearchFunctionParams) => void) | null;
1108
+ onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
1107
1109
  }
1108
1110
 
1109
1111
  export declare type SmartGridCellRenderer = {
@@ -1175,6 +1177,9 @@ export declare type SmartGridCellRendererParams = {
1175
1177
  splits?: SmartGridColumnDefinition[];
1176
1178
  isEnableResetButton?: boolean;
1177
1179
  placeholder?: string;
1180
+ isOnDemandDropdownOptions?: boolean;
1181
+ isDropdownValueLableSame?: boolean;
1182
+ getDropdownOptions?: (params: SmartGridDropdownOptionsParams) => Promise<SmartGridSelectOption[]>;
1178
1183
  } & Record<string, unknown>;
1179
1184
 
1180
1185
  export declare interface SmartGridCellRendererRendererProps {
@@ -2260,6 +2265,12 @@ export declare interface SmartGridDrawerProps {
2260
2265
 
2261
2266
  export declare type SmartGridDrawerSize = "small" | "medium" | "large";
2262
2267
 
2268
+ export declare interface SmartGridDropdownOptionsParams {
2269
+ value: string | number | (string | number)[] | null;
2270
+ data: SmartGridRowData;
2271
+ colDef: SmartGridColumnDefinition;
2272
+ }
2273
+
2263
2274
  export declare interface SmartGridEditorCommands {
2264
2275
  toggleBold?: () => void;
2265
2276
  toggleItalic?: () => void;
@@ -3124,6 +3135,8 @@ export declare interface SmartGridMenuAlignments {
3124
3135
  AUTO: "auto";
3125
3136
  }
3126
3137
 
3138
+ export declare type SmartGridMenuAnchorOrigin = "start" | "end" | "center";
3139
+
3127
3140
  export declare interface SmartGridMenuOption {
3128
3141
  label: string | number;
3129
3142
  id: string | number;
@@ -3251,6 +3264,7 @@ export declare interface SmartGridMenuProps {
3251
3264
  portalContainer?: HTMLElement;
3252
3265
  additionalButtons?: ReactNode;
3253
3266
  forcePosition?: boolean;
3267
+ anchorOrigin?: SmartGridMenuAnchorOrigin;
3254
3268
  onClick?: (option: SmartGridMenuOption) => void;
3255
3269
  menuContainerClassName?: string;
3256
3270
  primaryButtonProps?: SmartGridMenuPrimaryButtonProps;
@@ -4109,6 +4123,8 @@ export declare type SmartGridRowGroupStatePagination = {
4109
4123
 
4110
4124
  export declare type SmartGridRowHeightMap = Record<string | number, number>;
4111
4125
 
4126
+ declare type SmartGridRowHeightType = "default" | "compact" | "comfortable";
4127
+
4112
4128
  export declare interface SmartGridRowHoverEffectParams {
4113
4129
  scrollContainerRef: RefObject<HTMLElement | null>;
4114
4130
  tableInstance: MutableRefObject<HTMLElement | null>;
@@ -4116,6 +4132,7 @@ export declare interface SmartGridRowHoverEffectParams {
4116
4132
 
4117
4133
  export declare type SmartGridRowInfo = {
4118
4134
  isFirst: boolean;
4135
+ isLast: boolean;
4119
4136
  span: number;
4120
4137
  rowIds?: (string | number)[];
4121
4138
  };
@@ -4187,6 +4204,7 @@ export declare interface SmartGridRowSpanInfo {
4187
4204
  export declare interface SmartGridRowSpanInfoDetails {
4188
4205
  span?: number;
4189
4206
  isFirst?: boolean;
4207
+ isLast?: boolean;
4190
4208
  }
4191
4209
 
4192
4210
  export declare type SmartGridRowStyleParams = {
@@ -4341,6 +4359,10 @@ export declare interface SmartGridSelectProps {
4341
4359
  tableApi?: SmartGridAPI | null;
4342
4360
  lazyLoadCellRenderer?: boolean;
4343
4361
  isEnableResetButton?: boolean;
4362
+ isOnDemandOptions?: boolean;
4363
+ getDropdownOptions?: (params: SmartGridDropdownOptionsParams) => Promise<SmartGridSelectOption[]>;
4364
+ isDropdownValueLableSame?: boolean;
4365
+ dropdownOptionsParams?: SmartGridDropdownOptionsParams;
4344
4366
  }
4345
4367
 
4346
4368
  export declare interface SmartGridSendPayload {
@@ -5086,6 +5108,7 @@ export declare interface SmartGridTableProps extends SmartGridSaveViewCallbackRe
5086
5108
  ChatComponent?: (props: SmartGridTableChatWrapper) => JSX.Element;
5087
5109
  CommentComponent?: FC<SmartGridCommentWrapperProps>;
5088
5110
  commentProps?: SmartGridCommentProps;
5111
+ onContentDensityChange?: ((contentDensity: SmartGridRowHeightType) => void) | null;
5089
5112
  }
5090
5113
 
5091
5114
  export declare interface SmartGridTableRef {