onekijs-ui 0.19.18 → 0.19.19

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,4 @@
1
1
  import React from 'react';
2
- import { FormTableValueDisplayerProps } from '../typings';
3
- declare const _default: import("styled-components").StyledComponent<React.FC<FormTableValueDisplayerProps>, import("styled-components").DefaultTheme, {}, never>;
2
+ import { TableValueDisplayerProps } from '../typings';
3
+ declare const _default: import("styled-components").StyledComponent<React.FC<TableValueDisplayerProps>, import("styled-components").DefaultTheme, {}, never>;
4
4
  export default _default;
@@ -35,6 +35,7 @@ export type FormTableProps<T = any, I extends TableItem<T> = TableItem<T>, S ext
35
35
  status?: ValidationStatus;
36
36
  size?: TshirtSize;
37
37
  showAddButton?: boolean;
38
+ ValueDisplayer?: React.FC<TableValueDisplayerProps<T>>;
38
39
  };
39
40
  export type FormTableContext<T = any> = {
40
41
  tableName: string;
@@ -56,7 +57,7 @@ export type FormTableItemDisplayerProps<T = any> = {
56
57
  name: string;
57
58
  index: number;
58
59
  };
59
- export type FormTableValueDisplayerProps<T = any> = {
60
+ export type TableValueDisplayerProps<T = any> = {
60
61
  columns: TableColumn<T>[];
61
62
  value: T[];
62
63
  format: FormDisplayerProps['format'];
package/dist/index.d.ts CHANGED
@@ -160,7 +160,7 @@ export { default as useTextColumn } from './components/table/hooks/useTextColumn
160
160
  export { default as useTextareaColumn } from './components/table/hooks/useTextareaColumn';
161
161
  export { default as FormCardDisplayer } from './components/card/FormCardDisplayer';
162
162
  export { filterListStyle, tableStyle } from './components/table/style';
163
- export { ArrayTableProps, Cell, CheckboxColumn, CheckboxColumnOptions, ControllerTableProps, EnumColumnOptions, FormCellDisplayerProps, FormTableContext, FormTableItemDisplayerProps, FormTableProps, FormTableValueDisplayerProps, InputColumn, InputColumnOptions, LinkColumnOptions, SelectCell, SelectColumn, SelectColumnOptions, TableBodyCellProps, TableBodyProps, TableBodyRowProps, TableCellDisplayerProps, TableColumn, TableColumnComputedWidth, TableColumnOptions, TableColumnSpec, TableColumnWidth, TableColumnsState, TableConfig, TableController, TableExpandedProps, TableFilterOperator, TableFilterOperatorProps, TableFooterCellProps, TableFooterProps, TableHeaderCellProps, TableHeaderProps, TableItem, TableItemAdaptee, TableItemAdapter, TableItems, TableNotFoundProps, TableProps, TableRowHandler, TableSortProps, TableState, TextareaColumn, TextareaColumnOptions, UseTableController, UseTableOptions, } from './components/table/typings';
163
+ export { ArrayTableProps, Cell, CheckboxColumn, CheckboxColumnOptions, ControllerTableProps, EnumColumnOptions, FormCellDisplayerProps, FormTableContext, FormTableItemDisplayerProps, FormTableProps, TableValueDisplayerProps, InputColumn, InputColumnOptions, LinkColumnOptions, SelectCell, SelectColumn, SelectColumnOptions, TableBodyCellProps, TableBodyProps, TableBodyRowProps, TableCellDisplayerProps, TableColumn, TableColumnComputedWidth, TableColumnOptions, TableColumnSpec, TableColumnWidth, TableColumnsState, TableConfig, TableController, TableExpandedProps, TableFilterOperator, TableFilterOperatorProps, TableFooterCellProps, TableFooterProps, TableHeaderCellProps, TableHeaderProps, TableItem, TableItemAdaptee, TableItemAdapter, TableItems, TableNotFoundProps, TableProps, TableRowHandler, TableSortProps, TableState, TextareaColumn, TextareaColumnOptions, UseTableController, UseTableOptions, } from './components/table/typings';
164
164
  export { default as Tag } from './components/tag';
165
165
  export { default as TagComponent } from './components/tag/components/TagComponent';
166
166
  export { tagStyle } from './components/tag/style';
package/dist/index.js CHANGED
@@ -4201,7 +4201,7 @@ const FormInput = React.memo((props) => {
4201
4201
  }));
4202
4202
  const Component = props.FieldComponent || Input;
4203
4203
  return (React.createElement(FieldLayout, { ...fieldLayoutProps, required: props.required },
4204
- React.createElement(Component, { ...fieldComponentProps, value: !fieldComponentProps.value ? '' : fieldComponentProps.value })));
4204
+ React.createElement(Component, { ...fieldComponentProps, value: onekijsFramework.isNull(fieldComponentProps.value) ? '' : fieldComponentProps.value })));
4205
4205
  });
4206
4206
  FormInput.displayName = 'FormInput';
4207
4207