@teselagen/ui 0.8.6-beta.2 → 0.8.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.
- package/DataTable/EditabelCell.d.ts +10 -0
- package/DataTable/defaultProps.d.ts +43 -0
- package/DataTable/utils/computePresets.d.ts +1 -0
- package/DataTable/utils/getRowCopyText.d.ts +3 -1
- package/DataTable/utils/handleCopyRows.d.ts +5 -1
- package/DataTable/utils/index.d.ts +1 -0
- package/DataTable/utils/queryParams.d.ts +14 -7
- package/DataTable/utils/rowClick.d.ts +1 -1
- package/FormComponents/Uploader.d.ts +3 -1
- package/FormComponents/tryToMatchSchemas.d.ts +1 -1
- package/MenuBar/index.d.ts +3 -1
- package/ResizableDraggableDialog/index.d.ts +3 -1
- package/TagSelect/index.d.ts +1 -1
- package/index.cjs.js +34520 -37504
- package/index.d.ts +0 -1
- package/index.es.js +33521 -36505
- package/package.json +1 -1
- package/src/DataTable/Columns.js +1 -1
- package/src/DataTable/DisplayOptions.js +1 -1
- package/src/DataTable/EditabelCell.js +55 -0
- package/src/DataTable/FilterAndSortMenu.js +30 -27
- package/src/DataTable/defaultProps.js +45 -0
- package/src/DataTable/index.js +14 -3
- package/src/DataTable/style.css +1 -1
- package/src/DataTable/utils/computePresets.js +42 -0
- package/src/DataTable/utils/queryParams.js +772 -64
- package/src/DataTable/utils/withTableParams.js +16 -3
- package/src/ExcelCell.js +38 -0
- package/src/FormComponents/index.js +2 -2
- package/src/index.js +0 -1
- package/{ui.css → style.css} +1 -1
- package/utils/hotkeyUtils.d.ts +3 -1
- package/DataTable/utils/filterLocalEntitiesToHasura.d.ts +0 -5
- package/DataTable/utils/initializeHasuraWhereAndFilter.d.ts +0 -2
- package/DataTable/utils/tableQueryParamsToHasuraClauses.d.ts +0 -26
- package/src/DataTable/utils/filterLocalEntitiesToHasura.js +0 -236
- package/src/DataTable/utils/filterLocalEntitiesToHasura.test.js +0 -587
- package/src/DataTable/utils/initializeHasuraWhereAndFilter.js +0 -26
- package/src/DataTable/utils/tableQueryParamsToHasuraClauses.js +0 -260
- package/src/DataTable/utils/tableQueryParamsToHasuraClauses.test.js +0 -206
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function EditableCell({ cancelEdit, dataTest, finishEdit, initialValue, isEditableCellInitialValue, isNumeric, shouldSelectAll, stopSelectAll }: {
|
|
2
|
+
cancelEdit: any;
|
|
3
|
+
dataTest: any;
|
|
4
|
+
finishEdit: any;
|
|
5
|
+
initialValue: any;
|
|
6
|
+
isEditableCellInitialValue: any;
|
|
7
|
+
isNumeric: any;
|
|
8
|
+
shouldSelectAll: any;
|
|
9
|
+
stopSelectAll: any;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { noop } from 'lodash-es';
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export { noop as addFilters };
|
|
4
|
+
export let className: string;
|
|
5
|
+
export { noop as clearFilters };
|
|
6
|
+
export { noop as contextMenu };
|
|
7
|
+
export let disabled: boolean;
|
|
8
|
+
export let entities: never[];
|
|
9
|
+
export let extraClasses: string;
|
|
10
|
+
export let filters: never[];
|
|
11
|
+
export let isCopyable: boolean;
|
|
12
|
+
export { noop as isEntityDisabled };
|
|
13
|
+
export let isLoading: boolean;
|
|
14
|
+
export let isSimple: boolean;
|
|
15
|
+
export let isSingleSelect: boolean;
|
|
16
|
+
export let maxHeight: number;
|
|
17
|
+
export let noHeader: boolean;
|
|
18
|
+
export let noSelect: boolean;
|
|
19
|
+
export let noUserSelect: boolean;
|
|
20
|
+
export { noop as onDeselect };
|
|
21
|
+
export { noop as onMultiRowSelect };
|
|
22
|
+
export { noop as onRowClick };
|
|
23
|
+
export { noop as onRowSelect };
|
|
24
|
+
export { noop as onSingleRowSelect };
|
|
25
|
+
export let page: number;
|
|
26
|
+
export let pageSize: number;
|
|
27
|
+
export let reduxFormExpandedEntityIdMap: {};
|
|
28
|
+
export let reduxFormSearchInput: string;
|
|
29
|
+
export let reduxFormSelectedEntityIdMap: {};
|
|
30
|
+
export { noop as removeSingleFilter };
|
|
31
|
+
export let resized: never[];
|
|
32
|
+
export { noop as resizePersist };
|
|
33
|
+
export { noop as setFilter };
|
|
34
|
+
export { noop as setOrder };
|
|
35
|
+
export { noop as setPage };
|
|
36
|
+
export { noop as setPageSize };
|
|
37
|
+
export { noop as setSearchTerm };
|
|
38
|
+
export let showCount: boolean;
|
|
39
|
+
export let style: {};
|
|
40
|
+
export let withCheckboxes: boolean;
|
|
41
|
+
export let withSort: boolean;
|
|
42
|
+
}
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function computePresets(props?: {}): import('lodash').Dictionary<any>;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export function handleCopyRows(rowElsToCopy: any, { specificColumn, onFinishMsg, isDownload }?: {
|
|
1
|
+
export function handleCopyRows(rowElsToCopy: any, { specificColumn, onFinishMsg, isDownload }?: {
|
|
2
|
+
specificColumn: any;
|
|
3
|
+
onFinishMsg: any;
|
|
4
|
+
isDownload: any;
|
|
5
|
+
}): any;
|
|
@@ -19,4 +19,5 @@ import { isEntityClean } from './isEntityClean';
|
|
|
19
19
|
import { PRIMARY_SELECTED_VAL } from './primarySelectedValue';
|
|
20
20
|
import { removeCleanRows } from './removeCleanRows';
|
|
21
21
|
import { useTableEntities } from './useTableEntities';
|
|
22
|
+
|
|
22
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, useTableEntities };
|
|
@@ -3,6 +3,12 @@ export function getMergedOpts(topLevel?: {}, instanceLevel?: {}): {
|
|
|
3
3
|
defaults: any;
|
|
4
4
|
formName: string;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param {object} field
|
|
9
|
+
* @returns the camelCase display name of the field, to be used for filters, sorting, etc
|
|
10
|
+
*/
|
|
11
|
+
export function getCCDisplayName(field: object): string;
|
|
6
12
|
export function getCurrentParamsFromUrl(location: any, isSimple: any): any;
|
|
7
13
|
export function setCurrentParamsOnUrl(newParams: any, replace: any, isSimple: any): void;
|
|
8
14
|
export function makeDataTableHandlers({ setNewParams, defaults, onlyOneFilter }: {
|
|
@@ -19,33 +25,34 @@ export function makeDataTableHandlers({ setNewParams, defaults, onlyOneFilter }:
|
|
|
19
25
|
setOrder: (order: any, isRemove: any, shiftHeld: any) => any;
|
|
20
26
|
setNewParams: any;
|
|
21
27
|
};
|
|
22
|
-
export function getQueryParams({ currentParams, defaults, schema, isInfinite, entities, isLocalCall, additionalFilter, doNotCoercePageSize, noOrderError, ownProps }: {
|
|
28
|
+
export function getQueryParams({ currentParams, urlConnected, defaults, schema, isInfinite, entities, isLocalCall, additionalFilter, additionalOrFilter, doNotCoercePageSize, noOrderError, isCodeModel, ownProps }: {
|
|
23
29
|
currentParams: any;
|
|
30
|
+
urlConnected: any;
|
|
24
31
|
defaults: any;
|
|
25
32
|
schema: any;
|
|
26
33
|
isInfinite: any;
|
|
27
34
|
entities: any;
|
|
28
35
|
isLocalCall: any;
|
|
29
36
|
additionalFilter: any;
|
|
37
|
+
additionalOrFilter: any;
|
|
30
38
|
doNotCoercePageSize: any;
|
|
31
39
|
noOrderError: any;
|
|
40
|
+
isCodeModel: any;
|
|
32
41
|
ownProps: any;
|
|
33
42
|
}): {
|
|
34
43
|
page: any;
|
|
35
44
|
pageSize: any;
|
|
36
|
-
order: any
|
|
45
|
+
order: any;
|
|
37
46
|
filters: any;
|
|
38
47
|
searchTerm: any;
|
|
39
48
|
} | {
|
|
40
49
|
variables: {
|
|
41
|
-
|
|
42
|
-
order_by: {};
|
|
43
|
-
limit: any;
|
|
44
|
-
offset: number;
|
|
50
|
+
sort: never[];
|
|
45
51
|
};
|
|
52
|
+
errorParsingUrlString: unknown;
|
|
46
53
|
page: any;
|
|
47
54
|
pageSize: any;
|
|
48
|
-
order: any
|
|
55
|
+
order: any;
|
|
49
56
|
filters: any;
|
|
50
57
|
searchTerm: any;
|
|
51
58
|
};
|
|
@@ -14,7 +14,7 @@ export default function rowClick(e: any, rowInfo: any, entities: any, { reduxFor
|
|
|
14
14
|
}): void;
|
|
15
15
|
export function changeSelectedEntities({ idMap, entities, change }: {
|
|
16
16
|
idMap: any;
|
|
17
|
-
entities?:
|
|
17
|
+
entities?: any[] | undefined;
|
|
18
18
|
change: any;
|
|
19
19
|
}): void;
|
|
20
20
|
export function finalizeSelection({ idMap, entities, props: { onDeselect, onSingleRowSelect, onMultiRowSelect, noDeselectAll, onRowSelect, noSelect, change } }: {
|
|
@@ -13,7 +13,9 @@ declare function Uploader({ accept: __accept, action, autoUnzip, beforeUpload, c
|
|
|
13
13
|
fileList: any;
|
|
14
14
|
innerIcon: any;
|
|
15
15
|
innerText: any;
|
|
16
|
-
meta?: {
|
|
16
|
+
meta?: {
|
|
17
|
+
form: any;
|
|
18
|
+
} | undefined;
|
|
17
19
|
minimal: any;
|
|
18
20
|
name: any;
|
|
19
21
|
noBuildCsvOption: any;
|
package/MenuBar/index.d.ts
CHANGED
|
@@ -6,7 +6,9 @@ declare class MenuBar extends React.Component<any, any, any> {
|
|
|
6
6
|
style: {};
|
|
7
7
|
};
|
|
8
8
|
constructor(props: any);
|
|
9
|
-
hotkeyEnabler: ({ children }?: {
|
|
9
|
+
hotkeyEnabler: ({ children }?: {
|
|
10
|
+
children: any;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
state: {
|
|
11
13
|
isOpen: boolean;
|
|
12
14
|
openIndex: null;
|
|
@@ -10,7 +10,9 @@ export default class ResizableDraggableDialog extends React.Component<any, any,
|
|
|
10
10
|
width: number;
|
|
11
11
|
height: number;
|
|
12
12
|
};
|
|
13
|
-
setDefaults: ({ doNotSetXOrWidth }?: {
|
|
13
|
+
setDefaults: ({ doNotSetXOrWidth }?: {
|
|
14
|
+
doNotSetXOrWidth: any;
|
|
15
|
+
}) => void;
|
|
14
16
|
onWindowResize: () => void;
|
|
15
17
|
componentWillUnmount(): void;
|
|
16
18
|
getWindowWidthAndHeight: () => {
|
package/TagSelect/index.d.ts
CHANGED