@teselagen/ui 0.5.21 → 0.5.23-beta.1

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 (76) hide show
  1. package/DataTable/Columns.d.ts +1 -0
  2. package/DataTable/DisplayOptions.d.ts +14 -14
  3. package/DataTable/EditabelCell.d.ts +3 -5
  4. package/DataTable/FilterAndSortMenu.d.ts +9 -9
  5. package/DataTable/PagingTool.d.ts +25 -2
  6. package/DataTable/SearchBar.d.ts +2 -2
  7. package/DataTable/SortableColumns.d.ts +6 -9
  8. package/DataTable/ThComponent.d.ts +9 -0
  9. package/DataTable/index.d.ts +0 -5
  10. package/DataTable/utils/getIdOrCodeOrIndex.d.ts +1 -2
  11. package/DataTable/utils/handleCopyTable.d.ts +1 -0
  12. package/DataTable/utils/index.d.ts +4 -2
  13. package/DataTable/utils/primarySelectedValue.d.ts +1 -0
  14. package/DataTable/utils/queryParams.d.ts +6 -0
  15. package/DataTable/utils/removeCleanRows.d.ts +1 -1
  16. package/DataTable/utils/rowClick.d.ts +24 -3
  17. package/DataTable/utils/useDeepEqualMemo.d.ts +1 -0
  18. package/DataTable/utils/useTableParams.d.ts +49 -0
  19. package/FormComponents/Uploader.d.ts +34 -1
  20. package/FormComponents/index.d.ts +111 -45
  21. package/MatchHeaders.d.ts +9 -10
  22. package/SimpleStepViz.d.ts +2 -1
  23. package/TgSuggest/index.d.ts +1 -21
  24. package/UploadCsvWizard.d.ts +1 -1
  25. package/index.cjs.js +41038 -45265
  26. package/index.d.ts +3 -2
  27. package/index.es.js +44524 -48751
  28. package/package.json +2 -8
  29. package/src/DataTable/CellDragHandle.js +70 -69
  30. package/src/DataTable/ColumnFilterMenu.js +18 -18
  31. package/src/DataTable/Columns.js +1066 -0
  32. package/src/DataTable/DisplayOptions.js +173 -192
  33. package/src/DataTable/EditabelCell.js +6 -16
  34. package/src/DataTable/FilterAndSortMenu.js +213 -234
  35. package/src/DataTable/PagingTool.js +47 -56
  36. package/src/DataTable/SearchBar.js +3 -3
  37. package/src/DataTable/SortableColumns.js +44 -39
  38. package/src/DataTable/ThComponent.js +44 -0
  39. package/src/DataTable/dataTableEnhancer.js +35 -294
  40. package/src/DataTable/index.js +2933 -3601
  41. package/src/DataTable/utils/getIdOrCodeOrIndex.js +1 -1
  42. package/src/DataTable/utils/handleCopyTable.js +16 -0
  43. package/src/DataTable/utils/index.js +7 -3
  44. package/src/DataTable/utils/primarySelectedValue.js +1 -0
  45. package/src/DataTable/utils/queryParams.js +42 -13
  46. package/src/DataTable/utils/removeCleanRows.js +3 -3
  47. package/src/DataTable/utils/rowClick.js +34 -9
  48. package/src/DataTable/utils/selection.js +1 -1
  49. package/src/DataTable/utils/useDeepEqualMemo.js +10 -0
  50. package/src/DataTable/utils/useTableParams.js +361 -0
  51. package/src/DataTable/utils/withTableParams.js +30 -87
  52. package/src/DataTable/validateTableWideErrors.js +1 -1
  53. package/src/DialogFooter/index.js +3 -3
  54. package/src/FillWindow.js +2 -3
  55. package/src/FormComponents/Uploader.js +825 -784
  56. package/src/FormComponents/index.js +441 -603
  57. package/src/FormComponents/tryToMatchSchemas.js +1 -6
  58. package/src/MatchHeaders.js +27 -22
  59. package/src/SimpleStepViz.js +19 -23
  60. package/src/TgSuggest/index.js +94 -106
  61. package/src/UploadCsvWizard.js +570 -577
  62. package/src/index.js +4 -3
  63. package/src/showDialogOnDocBody.js +5 -9
  64. package/src/useDialog.js +25 -26
  65. package/src/utils/commandControls.js +2 -2
  66. package/src/utils/handlerHelpers.js +19 -25
  67. package/src/utils/popoverOverflowModifiers.js +1 -1
  68. package/src/utils/renderOnDoc.js +8 -5
  69. package/src/utils/tagUtils.js +3 -3
  70. package/src/utils/useTraceUpdate.js +19 -0
  71. package/src/wrapDialog.js +0 -2
  72. package/style.css +251 -251
  73. package/useDialog.d.ts +2 -6
  74. package/utils/renderOnDoc.d.ts +1 -1
  75. package/utils/tagUtils.d.ts +5 -1
  76. package/utils/useTraceUpdate.d.ts +1 -0
@@ -0,0 +1 @@
1
+ export function RenderColumns(props: any): any;
@@ -1,14 +1,14 @@
1
- import { default as React } from '../../../../node_modules/react';
2
- export default class DisplayOptions extends React.Component<any, any, any> {
3
- constructor(props: any);
4
- constructor(props: any, context: any);
5
- state: {
6
- isOpen: boolean;
7
- searchTerms: {};
8
- };
9
- openPopover: () => void;
10
- closePopover: () => void;
11
- changeTableDensity: (e: any) => void;
12
- toggleForcedHidden: (e: any) => any;
13
- render(): import("react/jsx-runtime").JSX.Element | null;
14
- }
1
+ export default DisplayOptions;
2
+ declare function DisplayOptions({ compact, extraCompact, disabled, hideDisplayOptionsIcon, resetDefaultVisibility, updateColumnVisibility, updateTableDisplayDensity, showForcedHiddenColumns, setShowForcedHidden, hasOptionForForcedHidden, schema }: {
3
+ compact: any;
4
+ extraCompact: any;
5
+ disabled: any;
6
+ hideDisplayOptionsIcon: any;
7
+ resetDefaultVisibility?: ((...args: any[]) => void) | undefined;
8
+ updateColumnVisibility?: ((...args: any[]) => void) | undefined;
9
+ updateTableDisplayDensity: any;
10
+ showForcedHiddenColumns: any;
11
+ setShowForcedHidden: any;
12
+ hasOptionForForcedHidden: any;
13
+ schema: any;
14
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +1,8 @@
1
- export function EditableCell({ cancelEdit, dataTest, finishEdit, initialValue, isEditableCellInitialValue, isNumeric, shouldSelectAll, stopSelectAll }: {
1
+ export function EditableCell({ value, setValue, cancelEdit, dataTest, finishEdit, isNumeric }: {
2
+ value: any;
3
+ setValue: any;
2
4
  cancelEdit: any;
3
5
  dataTest: any;
4
6
  finishEdit: any;
5
- initialValue: any;
6
- isEditableCellInitialValue: any;
7
7
  isNumeric: any;
8
- shouldSelectAll: any;
9
- stopSelectAll: any;
10
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
- import { default as React } from '../../../../node_modules/react';
2
- export default class FilterAndSortMenu extends React.Component<any, any, any> {
3
- constructor(props: any);
4
- state: any;
5
- handleFilterChange: (selectedFilter: any) => void;
6
- handleFilterValueChange: (filterValue: any) => void;
7
- handleFilterSubmit: () => any;
8
- render(): import("react/jsx-runtime").JSX.Element;
9
- }
1
+ export default FilterAndSortMenu;
2
+ declare function FilterAndSortMenu({ dataType, togglePopover, filterOn, addFilters, removeSingleFilter, currentFilter }: {
3
+ dataType: any;
4
+ togglePopover: any;
5
+ filterOn: any;
6
+ addFilters: any;
7
+ removeSingleFilter: any;
8
+ currentFilter: any;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,25 @@
1
- declare const _default: any;
2
- export default _default;
1
+ export default PagingTool;
2
+ declare function PagingTool({ controlled_hasNextPage, controlled_onRefresh, controlled_page, controlled_setPage, controlled_setPageSize, controlled_total, disabled: _disabled, disableSetPageSize, entities, entityCount, hideSetPageSize, hideTotalPages, keepSelectionOnPageChange, onRefresh: _onRefresh, page: _page, pageSize, pagingDisabled, persistPageSize, scrollToTop, setPage: _setPage, setPageSize: _setPageSize, setSelectedEntityIdMap }: {
3
+ controlled_hasNextPage: any;
4
+ controlled_onRefresh: any;
5
+ controlled_page: any;
6
+ controlled_setPage: any;
7
+ controlled_setPageSize: any;
8
+ controlled_total: any;
9
+ disabled: any;
10
+ disableSetPageSize: any;
11
+ entities: any;
12
+ entityCount: any;
13
+ hideSetPageSize: any;
14
+ hideTotalPages: any;
15
+ keepSelectionOnPageChange: any;
16
+ onRefresh: any;
17
+ page: any;
18
+ pageSize: any;
19
+ pagingDisabled: any;
20
+ persistPageSize?: ((...args: any[]) => void) | undefined;
21
+ scrollToTop: any;
22
+ setPage: any;
23
+ setPageSize: any;
24
+ setSelectedEntityIdMap: any;
25
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  export default SearchBar;
2
- declare function SearchBar({ reduxFormSearchInput, setSearchTerm, loading, searchMenuButton, disabled, autoFocusSearch }: {
3
- reduxFormSearchInput: any;
2
+ declare function SearchBar({ searchInput, setSearchTerm, loading, searchMenuButton, disabled, autoFocusSearch }: {
3
+ searchInput: any;
4
4
  setSearchTerm: any;
5
5
  loading: any;
6
6
  searchMenuButton: any;
@@ -1,10 +1,7 @@
1
- import { default as React } from '../../../../node_modules/react';
2
1
  export default SortableColumns;
3
- declare class SortableColumns extends React.Component<any, any, any> {
4
- constructor(props: any);
5
- constructor(props: any, context: any);
6
- shouldCancelStart: (e: any) => boolean;
7
- onSortEnd: (...args: any[]) => void;
8
- onSortStart: () => void;
9
- render(): import("react/jsx-runtime").JSX.Element;
10
- }
2
+ declare function SortableColumns({ className, style, children, moveColumn }: {
3
+ className: any;
4
+ style: any;
5
+ children: any;
6
+ moveColumn: any;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export function ThComponent({ toggleSort, immovable, className, children, style, columnindex, ...rest }: {
2
+ [x: string]: any;
3
+ toggleSort: any;
4
+ immovable: any;
5
+ className: any;
6
+ children: any;
7
+ style: any;
8
+ columnindex: any;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,3 @@
1
- export function isEntityClean(e: any): boolean;
2
- export function removeCleanRows(reduxFormEntities: any, reduxFormCellValidation: any): {
3
- entsToUse: any;
4
- validationToUse: {};
5
- };
6
1
  export default WrappedDT;
7
2
  declare const WrappedDT: any;
8
3
  export const ConnectedPagingTool: any;
@@ -1,2 +1 @@
1
- declare function _default(record: any, rowIndex: any): any;
2
- export default _default;
1
+ export function getIdOrCodeOrIndex(record: any, rowIndex: any): any;
@@ -0,0 +1 @@
1
+ export function handleCopyTable(e: any, opts: any): void;
@@ -1,4 +1,3 @@
1
- import { default as computePresets } from './computePresets';
2
1
  import { defaultParsePaste, getEntityIdToEntity, getFieldPathToIndex, getNumberStrAtEnd, stripNumberAtEnd } from './utils';
3
2
  import { formatPasteData } from './formatPasteData';
4
3
  import { getAllRows } from './getAllRows';
@@ -14,8 +13,11 @@ import { getSelectedRowsFromEntities } from './selection';
14
13
  import { handleCopyColumn } from './handleCopyColumn';
15
14
  import { handleCopyHelper } from './handleCopyHelper';
16
15
  import { handleCopyRows } from './handleCopyRows';
16
+ import { handleCopyTable } from './handleCopyTable';
17
17
  import { isBottomRightCornerOfRectangle } from './isBottomRightCornerOfRectangle';
18
18
  import { isEntityClean } from './isEntityClean';
19
+ import { PRIMARY_SELECTED_VAL } from './primarySelectedValue';
19
20
  import { removeCleanRows } from './removeCleanRows';
21
+ import { useDeepEqualMemo } from './useDeepEqualMemo';
20
22
 
21
- export { computePresets, defaultParsePaste, formatPasteData, getAllRows, getCellCopyText, getCellInfo, getEntityIdToEntity, getFieldPathToIndex, getFieldPathToField, getIdOrCodeOrIndex, getLastSelectedEntity, getNewEntToSelect, getNumberStrAtEnd, getRecordsFromIdMap, getRowCopyText, getSelectedRowsFromEntities, handleCopyColumn, handleCopyHelper, handleCopyRows, isBottomRightCornerOfRectangle, isEntityClean, removeCleanRows, stripNumberAtEnd };
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 };
@@ -0,0 +1 @@
1
+ export const PRIMARY_SELECTED_VAL: "main_cell";
@@ -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, updateSearch, defaults, onlyOneFilter }: {
@@ -1,4 +1,4 @@
1
- export function removeCleanRows(reduxFormEntities: any, reduxFormCellValidation: any): {
1
+ export function removeCleanRows(entities: any, cellValidation: any): {
2
2
  entsToUse: any;
3
3
  validationToUse: {};
4
4
  };
@@ -1,11 +1,32 @@
1
- export default function rowClick(e: any, rowInfo: any, entities: any, props: any): void;
1
+ export default function rowClick(e: any, rowInfo: any, entities: any, { reduxFormSelectedEntityIdMap, isSingleSelect, noSelect, onRowClick, isEntityDisabled, withCheckboxes, onDeselect, onSingleRowSelect, onMultiRowSelect, noDeselectAll, onRowSelect, change }: {
2
+ reduxFormSelectedEntityIdMap: any;
3
+ isSingleSelect: any;
4
+ noSelect: any;
5
+ onRowClick: any;
6
+ isEntityDisabled: any;
7
+ withCheckboxes: any;
8
+ onDeselect: any;
9
+ onSingleRowSelect: any;
10
+ onMultiRowSelect: any;
11
+ noDeselectAll: any;
12
+ onRowSelect: any;
13
+ change: any;
14
+ }): void;
2
15
  export function changeSelectedEntities({ idMap, entities, change }: {
3
16
  idMap: any;
4
17
  entities?: any[] | undefined;
5
18
  change: any;
6
19
  }): void;
7
- export function finalizeSelection({ idMap, entities, props }: {
20
+ export function finalizeSelection({ idMap, entities, props: { onDeselect, onSingleRowSelect, onMultiRowSelect, noDeselectAll, onRowSelect, noSelect, change } }: {
8
21
  idMap: any;
9
22
  entities: any;
10
- props: any;
23
+ props: {
24
+ onDeselect: any;
25
+ onSingleRowSelect: any;
26
+ onMultiRowSelect: any;
27
+ noDeselectAll: any;
28
+ onRowSelect: any;
29
+ noSelect: any;
30
+ change: any;
31
+ };
11
32
  }): void;
@@ -0,0 +1 @@
1
+ export function useDeepEqualMemo(value: any): undefined;
@@ -0,0 +1,49 @@
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 useTableParams(props: any): any;
17
+ /**
18
+ * Note all these options can be passed at Design Time or at Runtime (like reduxForm())
19
+ */
20
+ export type compOrOpts = {
21
+ /**
22
+ * } formName - required unique identifier for the table
23
+ */
24
+ string: any;
25
+ /**
26
+ * - The data table schema or a function returning it. The function wll be called with props as the argument.
27
+ */
28
+ schema: Object | Function;
29
+ /**
30
+ * - whether the table should connect to/update the URL
31
+ */
32
+ urlConnected: boolean;
33
+ /**
34
+ * - whether or not to pass the selected entities
35
+ */
36
+ withSelectedEntities: boolean;
37
+ /**
38
+ * - whether the model is keyed by code instead of id in the db
39
+ */
40
+ isCodeModel: boolean;
41
+ /**
42
+ * - tableParam defaults such as pageSize, filter, etc
43
+ */
44
+ defaults: object;
45
+ /**
46
+ * - won't console an error if an order is not found on schema
47
+ */
48
+ noOrderError: boolean;
49
+ };
@@ -1,2 +1,35 @@
1
1
  export default Uploader;
2
- declare const Uploader: any;
2
+ declare function Uploader({ accept: __accept, action, autoUnzip, beforeUpload, callout: _callout, className, contentOverride: maybeContentOverride, disabled: _disabled, dropzoneProps, fileLimit, fileList, innerIcon, innerText, meta: { form: formName }, minimal, name, noBuildCsvOption, noRedux, onChange: _onChange, onFieldSubmit, onFileClick, onFileSuccess, onPreviewClick, onRemove, overflowList, readBeforeUpload, showFilesCount, showUploadList, threeDotMenuItems, validateAgainstSchema: _validateAgainstSchema }: {
3
+ accept: any;
4
+ action: any;
5
+ autoUnzip: any;
6
+ beforeUpload: any;
7
+ callout: any;
8
+ className?: string | undefined;
9
+ contentOverride: any;
10
+ disabled: any;
11
+ dropzoneProps?: {} | undefined;
12
+ fileLimit: any;
13
+ fileList: any;
14
+ innerIcon: any;
15
+ innerText: any;
16
+ meta?: {
17
+ form: any;
18
+ } | undefined;
19
+ minimal: any;
20
+ name: any;
21
+ noBuildCsvOption: any;
22
+ noRedux?: boolean | undefined;
23
+ onChange?: ((...args: any[]) => void) | undefined;
24
+ onFieldSubmit?: ((...args: any[]) => void) | undefined;
25
+ onFileClick: any;
26
+ onFileSuccess?: (() => Promise<void>) | undefined;
27
+ onPreviewClick: any;
28
+ onRemove?: ((...args: any[]) => void) | undefined;
29
+ overflowList: any;
30
+ readBeforeUpload: any;
31
+ showFilesCount: any;
32
+ showUploadList?: boolean | undefined;
33
+ threeDotMenuItems: any;
34
+ validateAgainstSchema: any;
35
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,152 +1,218 @@
1
1
  import { fieldRequired } from './utils';
2
- import { default as React } from '../../../../node_modules/react';
3
2
  export function generateField(component: any, opts: any): ({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
4
3
  [x: string]: any;
5
4
  name: any;
6
5
  isRequired: any;
7
6
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
8
- noRedux: any;
7
+ noRedux?: boolean | undefined;
9
8
  }) => import("react/jsx-runtime").JSX.Element;
10
9
  export { fieldRequired };
11
- export function renderBlueprintDateInput(props: any): import("react/jsx-runtime").JSX.Element;
12
- export function renderBlueprintDateRangeInput(props: any): import("react/jsx-runtime").JSX.Element;
13
- export function RenderBlueprintInput(props: any): import("react/jsx-runtime").JSX.Element;
14
- export function renderBlueprintCheckbox(props: any): import("react/jsx-runtime").JSX.Element;
15
- export function renderBlueprintSwitch(props: any): import("react/jsx-runtime").JSX.Element;
16
- export function renderFileUpload(props: any): import("react/jsx-runtime").JSX.Element;
17
- export class renderBlueprintTextarea extends React.Component<any, any, any> {
18
- constructor(props: any);
19
- constructor(props: any, context: any);
20
- state: {
21
- value: null;
22
- isOpen: boolean;
23
- };
24
- allowEdit: () => void;
25
- stopEdit: () => void;
26
- updateVal: (e: any) => void;
27
- handleValSubmit: () => void;
28
- onKeyDown: (...args: any[]) => void;
29
- render(): import("react/jsx-runtime").JSX.Element;
30
- }
10
+ export function renderBlueprintDateInput({ input, intent, onFieldSubmit, inputProps, ...rest }: {
11
+ [x: string]: any;
12
+ input: any;
13
+ intent: any;
14
+ onFieldSubmit: any;
15
+ inputProps: any;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ export function renderBlueprintDateRangeInput({ input, intent, onFieldSubmit, inputProps, ...rest }: {
18
+ [x: string]: any;
19
+ input: any;
20
+ intent: any;
21
+ onFieldSubmit: any;
22
+ inputProps: any;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ export function RenderBlueprintInput({ input, intent, onFieldSubmit, onKeyDown, asyncValidating, rightElement, clickToEdit, ...rest }: {
25
+ [x: string]: any;
26
+ input: any;
27
+ intent: any;
28
+ onFieldSubmit: any;
29
+ onKeyDown?: ((...args: any[]) => void) | undefined;
30
+ asyncValidating: any;
31
+ rightElement: any;
32
+ clickToEdit: any;
33
+ }): import("react/jsx-runtime").JSX.Element;
34
+ export function renderBlueprintCheckbox({ input, label, tooltipInfo, beforeOnChange, onFieldSubmit, ...rest }: {
35
+ [x: string]: any;
36
+ input: any;
37
+ label: any;
38
+ tooltipInfo: any;
39
+ beforeOnChange: any;
40
+ onFieldSubmit: any;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ export function renderBlueprintSwitch({ input, label, tooltipInfo, onFieldSubmit, beforeOnChange, ...rest }: {
43
+ [x: string]: any;
44
+ input: any;
45
+ label: any;
46
+ tooltipInfo: any;
47
+ onFieldSubmit: any;
48
+ beforeOnChange: any;
49
+ }): import("react/jsx-runtime").JSX.Element;
50
+ export function renderFileUpload({ input, onFieldSubmit, ...rest }: {
51
+ [x: string]: any;
52
+ input: any;
53
+ onFieldSubmit: any;
54
+ }): import("react/jsx-runtime").JSX.Element;
55
+ export function RenderBlueprintTextarea({ input, onFieldSubmit, onKeyDown, intentClass, inputClassName, clickToEdit, disabled, ...rest }: {
56
+ [x: string]: any;
57
+ input: any;
58
+ onFieldSubmit: any;
59
+ onKeyDown: any;
60
+ intentClass: any;
61
+ inputClassName: any;
62
+ clickToEdit: any;
63
+ disabled: any;
64
+ }): import("react/jsx-runtime").JSX.Element;
31
65
  export function renderBlueprintEditableText(props: any): import("react/jsx-runtime").JSX.Element;
32
66
  export function renderReactSelect(props: any): import("react/jsx-runtime").JSX.Element;
33
67
  export function renderSuggest_old(props: any): import("react/jsx-runtime").JSX.Element;
34
- export function renderSuggest(props: any): import("react/jsx-runtime").JSX.Element;
68
+ export function renderSuggest({ async, input: { value, onChange }, hideValue, intent, options, onFieldSubmit, ...rest }: {
69
+ [x: string]: any;
70
+ async: any;
71
+ input: {
72
+ value: any;
73
+ onChange: any;
74
+ };
75
+ hideValue: any;
76
+ intent: any;
77
+ options: any;
78
+ onFieldSubmit: any;
79
+ }): import("react/jsx-runtime").JSX.Element;
35
80
  export function BPSelect({ value, onChange, ...rest }: {
36
81
  [x: string]: any;
37
82
  value: any;
38
83
  onChange: any;
39
84
  }): import("react/jsx-runtime").JSX.Element;
40
- export function renderSelect(props: any): import("react/jsx-runtime").JSX.Element;
41
- export function renderBlueprintNumericInput(props: any): import("react/jsx-runtime").JSX.Element;
85
+ export function renderSelect({ input: { value, onChange }, hideValue, className, placeholder, onFieldSubmit, options, hidePlaceHolder, minimal, disabled, ...rest }: {
86
+ [x: string]: any;
87
+ input: {
88
+ value: any;
89
+ onChange: any;
90
+ };
91
+ hideValue: any;
92
+ className: any;
93
+ placeholder: any;
94
+ onFieldSubmit: any;
95
+ options: any;
96
+ hidePlaceHolder: any;
97
+ minimal: any;
98
+ disabled: any;
99
+ }): import("react/jsx-runtime").JSX.Element;
100
+ export function renderBlueprintNumericInput({ input, hideValue, intent, inputClassName, onFieldSubmit, onAnyNumberChange, ...rest }: {
101
+ [x: string]: any;
102
+ input: any;
103
+ hideValue: any;
104
+ intent: any;
105
+ inputClassName: any;
106
+ onFieldSubmit: any;
107
+ onAnyNumberChange: any;
108
+ }): import("react/jsx-runtime").JSX.Element;
42
109
  export function renderBlueprintRadioGroup({ input, options, onFieldSubmit, ...rest }: {
43
110
  [x: string]: any;
44
111
  input: any;
45
112
  options: any;
46
113
  onFieldSubmit: any;
47
114
  }): import("react/jsx-runtime").JSX.Element;
48
- export class RenderReactColorPicker extends React.Component<any, any, any> {
49
- constructor(props: any);
50
- constructor(props: any, context: any);
51
- handleChange: (color: any) => void;
52
- render(): import("react/jsx-runtime").JSX.Element;
53
- }
115
+ export function RenderReactColorPicker({ input, onFieldSubmit, ...rest }: {
116
+ [x: string]: any;
117
+ input: any;
118
+ onFieldSubmit: any;
119
+ }): import("react/jsx-runtime").JSX.Element;
54
120
  export function withAbstractWrapper(ComponentToWrap: any, opts?: {}): (props: any) => import("react/jsx-runtime").JSX.Element;
55
121
  export function InputField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
56
122
  [x: string]: any;
57
123
  name: any;
58
124
  isRequired: any;
59
125
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
60
- noRedux: any;
126
+ noRedux?: boolean | undefined;
61
127
  }): import("react/jsx-runtime").JSX.Element;
62
128
  export function FileUploadField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
63
129
  [x: string]: any;
64
130
  name: any;
65
131
  isRequired: any;
66
132
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
67
- noRedux: any;
133
+ noRedux?: boolean | undefined;
68
134
  }): import("react/jsx-runtime").JSX.Element;
69
135
  export function DateInputField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
70
136
  [x: string]: any;
71
137
  name: any;
72
138
  isRequired: any;
73
139
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
74
- noRedux: any;
140
+ noRedux?: boolean | undefined;
75
141
  }): import("react/jsx-runtime").JSX.Element;
76
142
  export function DateRangeInputField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
77
143
  [x: string]: any;
78
144
  name: any;
79
145
  isRequired: any;
80
146
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
81
- noRedux: any;
147
+ noRedux?: boolean | undefined;
82
148
  }): import("react/jsx-runtime").JSX.Element;
83
149
  export function CheckboxField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
84
150
  [x: string]: any;
85
151
  name: any;
86
152
  isRequired: any;
87
153
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
88
- noRedux: any;
154
+ noRedux?: boolean | undefined;
89
155
  }): import("react/jsx-runtime").JSX.Element;
90
156
  export function SwitchField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
91
157
  [x: string]: any;
92
158
  name: any;
93
159
  isRequired: any;
94
160
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
95
- noRedux: any;
161
+ noRedux?: boolean | undefined;
96
162
  }): import("react/jsx-runtime").JSX.Element;
97
163
  export function TextareaField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
98
164
  [x: string]: any;
99
165
  name: any;
100
166
  isRequired: any;
101
167
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
102
- noRedux: any;
168
+ noRedux?: boolean | undefined;
103
169
  }): import("react/jsx-runtime").JSX.Element;
104
170
  export function SuggestField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
105
171
  [x: string]: any;
106
172
  name: any;
107
173
  isRequired: any;
108
174
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
109
- noRedux: any;
175
+ noRedux?: boolean | undefined;
110
176
  }): import("react/jsx-runtime").JSX.Element;
111
177
  export function EditableTextField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
112
178
  [x: string]: any;
113
179
  name: any;
114
180
  isRequired: any;
115
181
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
116
- noRedux: any;
182
+ noRedux?: boolean | undefined;
117
183
  }): import("react/jsx-runtime").JSX.Element;
118
184
  export function NumericInputField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
119
185
  [x: string]: any;
120
186
  name: any;
121
187
  isRequired: any;
122
188
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
123
- noRedux: any;
189
+ noRedux?: boolean | undefined;
124
190
  }): import("react/jsx-runtime").JSX.Element;
125
191
  export function RadioGroupField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
126
192
  [x: string]: any;
127
193
  name: any;
128
194
  isRequired: any;
129
195
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
130
- noRedux: any;
196
+ noRedux?: boolean | undefined;
131
197
  }): import("react/jsx-runtime").JSX.Element;
132
198
  export function ReactSelectField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
133
199
  [x: string]: any;
134
200
  name: any;
135
201
  isRequired: any;
136
202
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
137
- noRedux: any;
203
+ noRedux?: boolean | undefined;
138
204
  }): import("react/jsx-runtime").JSX.Element;
139
205
  export function SelectField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
140
206
  [x: string]: any;
141
207
  name: any;
142
208
  isRequired: any;
143
209
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
144
- noRedux: any;
210
+ noRedux?: boolean | undefined;
145
211
  }): import("react/jsx-runtime").JSX.Element;
146
212
  export function ReactColorField({ name, isRequired, onFieldSubmit, noRedux, ...rest }: {
147
213
  [x: string]: any;
148
214
  name: any;
149
215
  isRequired: any;
150
216
  onFieldSubmit?: ((...args: any[]) => void) | undefined;
151
- noRedux: any;
217
+ noRedux?: boolean | undefined;
152
218
  }): import("react/jsx-runtime").JSX.Element;
package/MatchHeaders.d.ts CHANGED
@@ -1,16 +1,15 @@
1
- export function MatchHeaders({ onMultiFileUploadSubmit, doAllFilesHaveSameHeaders, csvValidationIssue, ignoredHeadersMsg, searchResults, matchedHeaders, userSchema, reduxFormEntitiesArray, changeForm, datatableFormName, datatableFormNames: _datatableFormNames, setFilesWIssues, filesWIssues, fileIndex }: {
2
- onMultiFileUploadSubmit: any;
3
- doAllFilesHaveSameHeaders: any;
1
+ export function MatchHeaders({ csvValidationIssue, datatableFormName, datatableFormNames: _datatableFormNames, doAllFilesHaveSameHeaders, fileIndex, filesWIssues, ignoredHeadersMsg, matchedHeaders, onMultiFileUploadSubmit, reduxFormEntitiesArray, searchResults, setFilesWIssues, userSchema }: {
4
2
  csvValidationIssue: any;
3
+ datatableFormName: any;
4
+ datatableFormNames: any;
5
+ doAllFilesHaveSameHeaders: any;
6
+ fileIndex: any;
7
+ filesWIssues: any;
5
8
  ignoredHeadersMsg: any;
6
- searchResults: any;
7
9
  matchedHeaders: any;
8
- userSchema: any;
10
+ onMultiFileUploadSubmit: any;
9
11
  reduxFormEntitiesArray: any;
10
- changeForm: any;
11
- datatableFormName: any;
12
- datatableFormNames: any;
12
+ searchResults: any;
13
13
  setFilesWIssues: any;
14
- filesWIssues: any;
15
- fileIndex: any;
14
+ userSchema: any;
16
15
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- export default function SimpleStepViz({ steps, ...rest }: {
1
+ declare function _default({ steps, ...rest }: {
2
2
  [x: string]: any;
3
3
  steps: any;
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
+ export default _default;
@@ -1,22 +1,2 @@
1
- import { default as React } from '../../../../node_modules/react';
2
1
  export default TgSuggest;
3
- declare class TgSuggest extends React.Component<any, any, any> {
4
- static defaultProps: {
5
- onChange: () => void;
6
- options: never[];
7
- value: undefined;
8
- };
9
- constructor(props: any);
10
- constructor(props: any, context: any);
11
- itemRenderer: (i: string | undefined, { index, handleClick, modifiers }: {
12
- index: any;
13
- handleClick: any;
14
- modifiers: any;
15
- }) => import("react/jsx-runtime").JSX.Element;
16
- handleItemSelect: (item: any) => any;
17
- itemListPredicate: (queryString: any, item: any) => any;
18
- onQueryChange: (query: any) => void;
19
- renderInputValue: (item: any) => any;
20
- render(): import("react/jsx-runtime").JSX.Element;
21
- input: HTMLInputElement | undefined;
22
- }
2
+ declare function TgSuggest(props: any): import("react/jsx-runtime").JSX.Element;