@teselagen/ui 0.5.23-beta.2 → 0.5.23-beta.20

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 +1,51 @@
1
- export function RenderColumns(props: any): any;
1
+ export function useColumns({ addFilters, cellRenderer, columns, currentParams, compact, editingCell, editingCellSelectAll, entities, expandedEntityIdMap, extraCompact, filters, formName, getCellHoverText, isCellEditable, isEntityDisabled, isLocalCall, isSimple, isSingleSelect, isSelectionARectangle, noDeselectAll, noSelect, noUserSelect, onDeselect, onMultiRowSelect, onRowClick, onRowSelect, onSingleRowSelect, order, primarySelectedCellId, reduxFormCellValidation, reduxFormSelectedEntityIdMap, refocusTable, removeSingleFilter, schema, selectedCells, setExpandedEntityIdMap, setNewParams, setOrder, setSelectedCells, shouldShowSubComponent, startCellEdit, SubComponent, tableRef, updateEntitiesHelper, updateValidation, withCheckboxes, withExpandAndCollapseAllButton, withFilter: _withFilter, withSort }: {
2
+ addFilters: any;
3
+ cellRenderer: any;
4
+ columns: any;
5
+ currentParams: any;
6
+ compact: any;
7
+ editingCell: any;
8
+ editingCellSelectAll: any;
9
+ entities: any;
10
+ expandedEntityIdMap: any;
11
+ extraCompact: any;
12
+ filters: any;
13
+ formName: any;
14
+ getCellHoverText: any;
15
+ isCellEditable: any;
16
+ isEntityDisabled: any;
17
+ isLocalCall: any;
18
+ isSimple: any;
19
+ isSingleSelect: any;
20
+ isSelectionARectangle: any;
21
+ noDeselectAll: any;
22
+ noSelect: any;
23
+ noUserSelect: any;
24
+ onDeselect: any;
25
+ onMultiRowSelect: any;
26
+ onRowClick: any;
27
+ onRowSelect: any;
28
+ onSingleRowSelect: any;
29
+ order: any;
30
+ primarySelectedCellId: any;
31
+ reduxFormCellValidation: any;
32
+ reduxFormSelectedEntityIdMap: any;
33
+ refocusTable: any;
34
+ removeSingleFilter?: ((...args: any[]) => void) | undefined;
35
+ schema: any;
36
+ selectedCells: any;
37
+ setExpandedEntityIdMap: any;
38
+ setNewParams: any;
39
+ setOrder?: ((...args: any[]) => void) | undefined;
40
+ setSelectedCells: any;
41
+ shouldShowSubComponent: any;
42
+ startCellEdit: any;
43
+ SubComponent: any;
44
+ tableRef: any;
45
+ updateEntitiesHelper: any;
46
+ updateValidation: any;
47
+ withCheckboxes: any;
48
+ withExpandAndCollapseAllButton: any;
49
+ withFilter: any;
50
+ withSort?: boolean | undefined;
51
+ }): any;
@@ -1,8 +1,7 @@
1
- export function EditableCell({ value, setValue, cancelEdit, dataTest, finishEdit, isNumeric }: {
2
- value: any;
3
- setValue: any;
1
+ export function EditableCell({ cancelEdit, dataTest, finishEdit, isNumeric, initialValue }: {
4
2
  cancelEdit: any;
5
3
  dataTest: any;
6
4
  finishEdit: any;
7
5
  isNumeric: any;
6
+ initialValue: any;
8
7
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ export function RenderCell({ oldFunc, getCopyTextForCell, column, isCellEditable, isEntityDisabled, finishCellEdit, formName, noEllipsis, cancelCellEdit, getCellHoverText, selectedCells, isSelectionARectangle, startCellEdit, tableRef, onDragEnd, args }: {
2
+ oldFunc: any;
3
+ getCopyTextForCell: any;
4
+ column: any;
5
+ isCellEditable: any;
6
+ isEntityDisabled: any;
7
+ finishCellEdit: any;
8
+ formName: any;
9
+ noEllipsis: any;
10
+ cancelCellEdit: any;
11
+ getCellHoverText: any;
12
+ selectedCells: any;
13
+ isSelectionARectangle: any;
14
+ startCellEdit: any;
15
+ tableRef: any;
16
+ onDragEnd: any;
17
+ args: any;
18
+ }): import("react/jsx-runtime").JSX.Element;
@@ -19,5 +19,6 @@ import { isEntityClean } from './isEntityClean';
19
19
  import { PRIMARY_SELECTED_VAL } from './primarySelectedValue';
20
20
  import { removeCleanRows } from './removeCleanRows';
21
21
  import { useDeepEqualMemo } from './useDeepEqualMemo';
22
+ import { useTableEntities } from './useTableEntities';
22
23
 
23
- export { defaultParsePaste, formatPasteData, getAllRows, getCellCopyText, getCellInfo, getEntityIdToEntity, getFieldPathToIndex, getFieldPathToField, getIdOrCodeOrIndex, getLastSelectedEntity, getNewEntToSelect, getNumberStrAtEnd, getRecordsFromIdMap, getRowCopyText, getSelectedRowsFromEntities, handleCopyColumn, handleCopyHelper, handleCopyRows, handleCopyTable, isBottomRightCornerOfRectangle, isEntityClean, PRIMARY_SELECTED_VAL, removeCleanRows, stripNumberAtEnd, useDeepEqualMemo };
24
+ export { defaultParsePaste, formatPasteData, getAllRows, getCellCopyText, getCellInfo, getEntityIdToEntity, getFieldPathToIndex, getFieldPathToField, getIdOrCodeOrIndex, getLastSelectedEntity, getNewEntToSelect, getNumberStrAtEnd, getRecordsFromIdMap, getRowCopyText, getSelectedRowsFromEntities, handleCopyColumn, handleCopyHelper, handleCopyRows, handleCopyTable, isBottomRightCornerOfRectangle, isEntityClean, PRIMARY_SELECTED_VAL, removeCleanRows, stripNumberAtEnd, useDeepEqualMemo, useTableEntities };
@@ -0,0 +1,5 @@
1
+ export function useTableEntities(tableFormName: any): {
2
+ selectTableEntities: (entities?: any[]) => void;
3
+ allOrderedEntities: any;
4
+ selectedEntities: any;
5
+ };
@@ -1,19 +1,5 @@
1
- /**
2
- * Note all these options can be passed at Design Time or at Runtime (like reduxForm())
3
- *
4
- * @export
5
- *
6
- * @param {compOrOpts} compOrOpts
7
- * @typedef {object} compOrOpts
8
- * @property {*string} formName - required unique identifier for the table
9
- * @property {Object | Function} schema - The data table schema or a function returning it. The function wll be called with props as the argument.
10
- * @property {boolean} urlConnected - whether the table should connect to/update the URL
11
- * @property {boolean} withSelectedEntities - whether or not to pass the selected entities
12
- * @property {boolean} isCodeModel - whether the model is keyed by code instead of id in the db
13
- * @property {object} defaults - tableParam defaults such as pageSize, filter, etc
14
- * @property {boolean} noOrderError - won't console an error if an order is not found on schema
15
- */
16
- export default function withTableParams(compOrOpts: compOrOpts, pTopLevelOpts: any): any;
1
+ export function useTableParams(props: any): any;
2
+ export default withTableParams;
17
3
  /**
18
4
  * Note all these options can be passed at Design Time or at Runtime (like reduxForm())
19
5
  */
@@ -47,3 +33,4 @@ export type compOrOpts = {
47
33
  */
48
34
  noOrderError: boolean;
49
35
  };
36
+ declare function withTableParams(topLevelOptions: any): any;
@@ -6,7 +6,14 @@ export namespace viewColumn {
6
6
  let type: string;
7
7
  function render(): import("react/jsx-runtime").JSX.Element;
8
8
  }
9
- export namespace openColumn {
10
- export function render_1(val: any, record: any, rowInfo: any, props: any): import("react/jsx-runtime").JSX.Element;
11
- export { render_1 as render };
12
- }
9
+ export function openColumn({ onDoubleClick, history }: {
10
+ onDoubleClick: any;
11
+ history: any;
12
+ }): {
13
+ render: (val: any, record: any, rowInfo: any) => import("react/jsx-runtime").JSX.Element;
14
+ width: number;
15
+ noEllipsis: boolean;
16
+ hideInMenu: boolean;
17
+ immovable: boolean;
18
+ type: string;
19
+ };