@teselagen/ui 0.8.6 → 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.
Files changed (31) hide show
  1. package/DataTable/EditabelCell.d.ts +10 -0
  2. package/DataTable/defaultProps.d.ts +43 -0
  3. package/DataTable/utils/computePresets.d.ts +1 -0
  4. package/DataTable/utils/getRowCopyText.d.ts +3 -1
  5. package/DataTable/utils/handleCopyRows.d.ts +5 -1
  6. package/DataTable/utils/index.d.ts +1 -0
  7. package/DataTable/utils/rowClick.d.ts +1 -1
  8. package/FormComponents/Uploader.d.ts +3 -1
  9. package/FormComponents/tryToMatchSchemas.d.ts +1 -1
  10. package/MenuBar/index.d.ts +3 -1
  11. package/ResizableDraggableDialog/index.d.ts +3 -1
  12. package/TagSelect/index.d.ts +1 -1
  13. package/index.cjs.js +31604 -34714
  14. package/index.es.js +30599 -33709
  15. package/package.json +1 -1
  16. package/src/DataTable/EditabelCell.js +55 -0
  17. package/src/DataTable/defaultProps.js +45 -0
  18. package/src/DataTable/utils/computePresets.js +42 -0
  19. package/src/ExcelCell.js +38 -0
  20. package/src/FormComponents/Uploader.js +5 -1
  21. package/src/autoTooltip.js +1 -0
  22. package/utils/hotkeyUtils.d.ts +3 -1
  23. package/DataTable/utils/filterLocalEntitiesToHasura.d.ts +0 -5
  24. package/DataTable/utils/initializeHasuraWhereAndFilter.d.ts +0 -2
  25. package/DataTable/utils/tableQueryParamsToHasuraClauses.d.ts +0 -26
  26. package/src/DataTable/utils/filterLocalEntitiesToHasura.js +0 -236
  27. package/src/DataTable/utils/filterLocalEntitiesToHasura.test.js +0 -587
  28. package/src/DataTable/utils/initializeHasuraWhereAndFilter.js +0 -26
  29. package/src/DataTable/utils/tableQueryParamsToHasuraClauses.js +0 -260
  30. package/src/DataTable/utils/tableQueryParamsToHasuraClauses.test.js +0 -206
  31. /package/{ui.css → style.css} +0 -0
@@ -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,3 @@
1
- export function getRowCopyText(rowEl: any, { specificColumn }?: {}): (string | any[])[];
1
+ export function getRowCopyText(rowEl: any, { specificColumn }?: {
2
+ specificColumn: any;
3
+ }): (string | any[])[];
@@ -1 +1,5 @@
1
- export function handleCopyRows(rowElsToCopy: any, { specificColumn, onFinishMsg, isDownload }?: {}): any;
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 };
@@ -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?: never[] | undefined;
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?: {} | undefined;
16
+ meta?: {
17
+ form: any;
18
+ } | undefined;
17
19
  minimal: any;
18
20
  name: any;
19
21
  noBuildCsvOption: any;
@@ -7,7 +7,7 @@ export default function tryToMatchSchemas({ incomingData, validateAgainstSchema
7
7
  matchedHeaders: {};
8
8
  userSchema: {
9
9
  fields: {
10
- path: never;
10
+ path: string;
11
11
  type: string;
12
12
  }[];
13
13
  userData: any;
@@ -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 }?: {}) => import("react/jsx-runtime").JSX.Element;
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 }?: {}) => void;
13
+ setDefaults: ({ doNotSetXOrWidth }?: {
14
+ doNotSetXOrWidth: any;
15
+ }) => void;
14
16
  onWindowResize: () => void;
15
17
  componentWillUnmount(): void;
16
18
  getWindowWidthAndHeight: () => {
@@ -1,6 +1,6 @@
1
1
  declare function _default({ value, options, onChange }: {
2
2
  value?: {} | undefined;
3
- options?: never[] | undefined;
3
+ options?: any[] | undefined;
4
4
  onChange: any;
5
5
  }): import("react/jsx-runtime").JSX.Element;
6
6
  export default _default;