@teselagen/ui 0.4.7 → 0.4.9

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 (107) hide show
  1. package/AdvancedOptions.d.ts +7 -0
  2. package/AssignDefaultsModeContext.d.ts +25 -0
  3. package/AsyncValidateFieldSpinner/index.d.ts +3 -0
  4. package/BlueprintError/index.d.ts +3 -0
  5. package/BounceLoader/index.d.ts +4 -0
  6. package/CollapsibleCard/index.d.ts +11 -0
  7. package/DNALoader/index.d.ts +4 -0
  8. package/DataTable/CellDragHandle.d.ts +6 -0
  9. package/DataTable/DisabledLoadingComponent.d.ts +6 -0
  10. package/DataTable/DisplayOptions.d.ts +14 -0
  11. package/DataTable/FilterAndSortMenu.d.ts +9 -0
  12. package/DataTable/PagingTool.d.ts +2 -0
  13. package/DataTable/SearchBar.d.ts +9 -0
  14. package/DataTable/SortableColumns.d.ts +10 -0
  15. package/DataTable/TableFormTrackerContext.d.ts +7 -0
  16. package/DataTable/dataTableEnhancer.d.ts +12 -0
  17. package/DataTable/defaultFormatters.d.ts +6 -0
  18. package/DataTable/defaultProps.d.ts +43 -0
  19. package/DataTable/defaultValidators.d.ts +6 -0
  20. package/DataTable/editCellHelper.d.ts +10 -0
  21. package/DataTable/getCellVal.d.ts +1 -0
  22. package/DataTable/getVals.d.ts +1 -0
  23. package/DataTable/index.d.ts +8 -0
  24. package/DataTable/isTruthy.d.ts +1 -0
  25. package/DataTable/isValueEmpty.d.ts +1 -0
  26. package/DataTable/utils/computePresets.d.ts +1 -0
  27. package/DataTable/utils/convertSchema.d.ts +3 -0
  28. package/DataTable/utils/getIdOrCodeOrIndex.d.ts +2 -0
  29. package/DataTable/utils/getTableConfigFromStorage.d.ts +1 -0
  30. package/DataTable/utils/queryParams.d.ts +54 -0
  31. package/DataTable/utils/rowClick.d.ts +11 -0
  32. package/DataTable/utils/selection.d.ts +1 -0
  33. package/DataTable/utils/withSelectedEntities.d.ts +11 -0
  34. package/DataTable/utils/withTableParams.d.ts +49 -0
  35. package/DataTable/validateTableWideErrors.d.ts +6 -0
  36. package/DataTable/viewColumn.d.ts +12 -0
  37. package/DialogFooter/index.d.ts +23 -0
  38. package/DropdownButton.d.ts +9 -0
  39. package/FillWindow.d.ts +5 -0
  40. package/FormComponents/LoadingDots.d.ts +1 -0
  41. package/FormComponents/Uploader.d.ts +2 -0
  42. package/FormComponents/getNewName.d.ts +1 -0
  43. package/FormComponents/index.d.ts +152 -0
  44. package/FormComponents/itemUpload.d.ts +2 -0
  45. package/FormComponents/sortify.d.ts +2 -0
  46. package/FormComponents/tryToMatchSchemas.d.ts +17 -0
  47. package/FormComponents/utils.d.ts +2 -0
  48. package/HotkeysDialog/index.d.ts +1 -0
  49. package/InfoHelper/index.d.ts +6 -0
  50. package/IntentText/index.d.ts +5 -0
  51. package/Loading/index.d.ts +12 -0
  52. package/MatchHeaders.d.ts +16 -0
  53. package/MenuBar/index.d.ts +29 -0
  54. package/PromptUnsavedChanges/index.d.ts +6 -0
  55. package/ResizableDraggableDialog/index.d.ts +24 -0
  56. package/ScrollToTop/index.d.ts +5 -0
  57. package/SimpleStepViz.d.ts +4 -0
  58. package/TgSelect/index.d.ts +10 -0
  59. package/TgSuggest/index.d.ts +22 -0
  60. package/Timeline/TimelineEvent.d.ts +5 -0
  61. package/Timeline/index.d.ts +12 -0
  62. package/UploadCsvWizard.d.ts +4 -0
  63. package/autoTooltip.d.ts +1 -0
  64. package/constants.d.ts +1 -0
  65. package/customIcons.d.ts +19 -0
  66. package/enhancers/withDialog/index.d.ts +23 -0
  67. package/enhancers/withDialog/tg_modalState.d.ts +6 -0
  68. package/enhancers/withField.d.ts +4 -0
  69. package/enhancers/withFields.d.ts +1 -0
  70. package/enhancers/withLocalStorage.d.ts +1 -0
  71. package/index.cjs.js +186 -88
  72. package/index.d.ts +61 -0
  73. package/index.es.js +186 -88
  74. package/package.json +1 -1
  75. package/rerenderOnWindowResize.d.ts +1 -0
  76. package/showAppSpinner.d.ts +1 -0
  77. package/showConfirmationDialog/index.d.ts +10 -0
  78. package/showDialogOnDocBody.d.ts +1 -0
  79. package/src/TgSelect/index.js +37 -4
  80. package/src/TgSelect/style.css +20 -0
  81. package/src/style.css +12 -4
  82. package/style.css +33 -4
  83. package/throwFormError.d.ts +1 -0
  84. package/toastr.d.ts +1 -0
  85. package/typeToCommonType.d.ts +6 -0
  86. package/useDialog.d.ts +10 -0
  87. package/utils/adHoc.d.ts +2 -0
  88. package/utils/basicHandleActionsWithFullState.d.ts +1 -0
  89. package/utils/browserUtils.d.ts +1 -0
  90. package/utils/combineReducersWithFullState.d.ts +1 -0
  91. package/utils/commandControls.d.ts +25 -0
  92. package/utils/commandUtils.d.ts +4 -0
  93. package/utils/determineBlackOrWhiteTextColor.d.ts +2 -0
  94. package/utils/getDayjsFormatter.d.ts +5 -0
  95. package/utils/getTextFromEl.d.ts +1 -0
  96. package/utils/handlerHelpers.d.ts +10 -0
  97. package/utils/hotkeyUtils.d.ts +6 -0
  98. package/utils/menuUtils.d.ts +23 -0
  99. package/utils/popoverOverflowModifiers.d.ts +13 -0
  100. package/utils/pureNoFunc.d.ts +2 -0
  101. package/utils/renderOnDoc.d.ts +2 -0
  102. package/utils/showProgressToast.d.ts +2 -0
  103. package/utils/tagUtils.d.ts +20 -0
  104. package/utils/tgFormValues.d.ts +3 -0
  105. package/utils/withSelectTableRecords.d.ts +1 -0
  106. package/utils/withStore.d.ts +2 -0
  107. package/wrapDialog.d.ts +2 -0
@@ -0,0 +1,17 @@
1
+ export default function tryToMatchSchemas({ incomingData, validateAgainstSchema }: {
2
+ incomingData: any;
3
+ validateAgainstSchema: any;
4
+ }): Promise<{
5
+ ignoredHeadersMsg: string | undefined;
6
+ csvValidationIssue: boolean;
7
+ matchedHeaders: {};
8
+ userSchema: {
9
+ fields: {
10
+ path: string;
11
+ type: string;
12
+ }[];
13
+ userData: any;
14
+ };
15
+ searchResults: any;
16
+ }>;
17
+ export function addSpecialPropToAsyncErrs(res: any): any;
@@ -0,0 +1,2 @@
1
+ export const REQUIRED_ERROR: "This field is required.";
2
+ export function fieldRequired(value: any): "This field is required." | undefined;
@@ -0,0 +1 @@
1
+ export default function HotkeysDialog(props: any): import('../../../../node_modules/react/jsx-runtime').JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ export default class InfoHelper extends React.Component<any, any, any> {
2
+ constructor(props: any);
3
+ constructor(props: any, context: any);
4
+ render(): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
5
+ }
6
+ import React from '../../../../node_modules/react';
@@ -0,0 +1,5 @@
1
+ export default function IntentText({ intent, text, children }: {
2
+ intent: any;
3
+ text: any;
4
+ children: any;
5
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1,12 @@
1
+ export default class Loading extends React.Component<any, any, any> {
2
+ constructor(props: any);
3
+ constructor(props: any, context: any);
4
+ state: {
5
+ longerThan200MS: boolean;
6
+ };
7
+ componentDidMount(): void;
8
+ timeoutId: NodeJS.Timeout | undefined;
9
+ componentWillUnmount(): void;
10
+ render(): any;
11
+ }
12
+ import React from '../../../../node_modules/react';
@@ -0,0 +1,16 @@
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;
4
+ csvValidationIssue: any;
5
+ ignoredHeadersMsg: any;
6
+ searchResults: any;
7
+ matchedHeaders: any;
8
+ userSchema: any;
9
+ reduxFormEntitiesArray: any;
10
+ changeForm: any;
11
+ datatableFormName: any;
12
+ datatableFormNames: any;
13
+ setFilesWIssues: any;
14
+ filesWIssues: any;
15
+ fileIndex: any;
16
+ }): import('../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1,29 @@
1
+ export default MenuBar;
2
+ declare class MenuBar extends React.Component<any, any, any> {
3
+ static defaultProps: {
4
+ className: string;
5
+ style: {};
6
+ };
7
+ constructor(props: any);
8
+ hotkeyEnabler: ({ children }?: {
9
+ children: any;
10
+ }) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;
11
+ state: {
12
+ isOpen: boolean;
13
+ openIndex: null;
14
+ helpItemQueryStringTracker: string;
15
+ };
16
+ handleInteraction: (index: any) => (newOpenState: any) => void;
17
+ handleMouseOver: (index: any) => () => void;
18
+ getAllMenuItems: () => any;
19
+ addHelpItemIfNecessary: (menu: any, i: any) => any;
20
+ isTopLevelSearch: boolean | undefined;
21
+ menuSearchIndex: any;
22
+ searchInput: HTMLInputElement | undefined;
23
+ helpItemRenderer: (i: any, b: any) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;
24
+ handleItemClickOrSelect: (__i: any) => (_i: any) => void;
25
+ toggleFocusSearchMenu: () => void;
26
+ render(): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
27
+ n: HTMLButtonElement | undefined;
28
+ }
29
+ import React from '../../../../node_modules/react';
@@ -0,0 +1,6 @@
1
+ export function PromptUnsavedChanges({ message, when }: {
2
+ message?: string | undefined;
3
+ when?: boolean | undefined;
4
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element | null;
5
+ export const defaultMessagge: "Are you sure you want to leave? There are unsaved changes.";
6
+ export default PromptUnsavedChanges;
@@ -0,0 +1,24 @@
1
+ export default class ResizableDraggableDialog extends React.Component<any, any, any> {
2
+ constructor(props: any);
3
+ constructor(props: any, context: any);
4
+ componentDidMount(): void;
5
+ resizeObs: ResizeObserver | undefined;
6
+ state: {
7
+ x: number;
8
+ y: number;
9
+ width: number;
10
+ height: number;
11
+ };
12
+ setDefaults: ({ doNotSetXOrWidth }?: {
13
+ doNotSetXOrWidth: any;
14
+ }) => void;
15
+ onWindowResize: () => void;
16
+ componentWillUnmount(): void;
17
+ getWindowWidthAndHeight: () => {
18
+ windowWidth: number;
19
+ windowHeight: number;
20
+ };
21
+ render(): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
22
+ containerEl: HTMLDivElement | undefined;
23
+ }
24
+ import React from '../../../../node_modules/react';
@@ -0,0 +1,5 @@
1
+ export default ScrollToTop;
2
+ declare function ScrollToTop({ showAt, scrollContainer }: {
3
+ showAt?: number | undefined;
4
+ scrollContainer?: Element | null | undefined;
5
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default function SimpleStepViz({ steps, ...rest }: {
2
+ [x: string]: any;
3
+ steps: any;
4
+ }): import('../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1,10 @@
1
+ export function createNewOption(newValString: any): {
2
+ userCreated: boolean;
3
+ label: any;
4
+ value: any;
5
+ };
6
+ export function simplesearch(needle: any, haystack: any): boolean;
7
+ declare function _default(props: any): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
8
+ export default _default;
9
+ export function renderCreateNewOption(query: any, active: any, handleClick: any): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
10
+ export function itemListPredicate(_queryString: string | undefined, items: any, isSimpleSearch: any): any;
@@ -0,0 +1,22 @@
1
+ export default TgSuggest;
2
+ declare class TgSuggest extends React.Component<any, any, any> {
3
+ static defaultProps: {
4
+ onChange: () => void;
5
+ options: never[];
6
+ value: undefined;
7
+ };
8
+ constructor(props: any);
9
+ constructor(props: any, context: any);
10
+ itemRenderer: (i: string | undefined, { index, handleClick, modifiers }: {
11
+ index: any;
12
+ handleClick: any;
13
+ modifiers: any;
14
+ }) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;
15
+ handleItemSelect: (item: any) => any;
16
+ itemListPredicate: (queryString: any, item: any) => any;
17
+ onQueryChange: (query: any) => void;
18
+ renderInputValue: (item: any) => any;
19
+ render(): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
20
+ input: HTMLInputElement | undefined;
21
+ }
22
+ import React from '../../../../node_modules/react';
@@ -0,0 +1,5 @@
1
+ export default TimelineEvent;
2
+ declare function TimelineEvent({ date, children }: {
3
+ date: any;
4
+ children: any;
5
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1,12 @@
1
+ export { default as TimelineEvent } from "./TimelineEvent";
2
+ export default Timeline;
3
+ declare class Timeline extends React.Component<any, any, any> {
4
+ static propTypes: {
5
+ children: PropTypes.Requireable<(PropTypes.ReactElementLike | null | undefined)[]>;
6
+ };
7
+ constructor(props: any);
8
+ constructor(props: any, context: any);
9
+ render(): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
10
+ }
11
+ import React from '../../../../node_modules/react';
12
+ import PropTypes from "prop-types";
@@ -0,0 +1,4 @@
1
+ export default UploadCsvWizardDialog;
2
+ export function PreviewCsvData(props: any): import('../../../node_modules/react/jsx-runtime').JSX.Element;
3
+ export const SimpleInsertDataDialog: any;
4
+ declare const UploadCsvWizardDialog: any;
@@ -0,0 +1 @@
1
+ export {};
package/constants.d.ts ADDED
@@ -0,0 +1 @@
1
+ export const SAFE_UPSERT_PAGE_SIZE: 50;
@@ -0,0 +1,19 @@
1
+ export const flaskIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
2
+ export const tubeIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
3
+ export const orfIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
4
+ export const featureIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
5
+ export const reverseFeatureIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
6
+ export const bluntFeatureIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
7
+ export const dnaIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
8
+ export const workqueueIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
9
+ export const removeDuplicatesIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
10
+ export const inventoryIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
11
+ export const workflowIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
12
+ export const strainIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
13
+ export const designIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
14
+ export const moleculeIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
15
+ export const keyboardIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
16
+ export const cardDetailsIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
17
+ export const driveIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
18
+ export const sharedDriveIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
19
+ export const proteinIcon: import('../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * usage:
3
+ * in container:
4
+ * compose(
5
+ * withDialog({ title: "Select Aliquot(s) From", other bp dialog props here })
6
+ * )
7
+ *
8
+ *
9
+ * in react component
10
+ * import MyDialogEnhancedComponent from "./MyDialogEnhancedComponent"
11
+ *
12
+ * render() {
13
+ * return <div>
14
+ * <MyDialogEnhancedComponent
15
+ * dialogProps={} //bp dialog overrides can go here
16
+ * target={<button>Open Dialog</button> } //target can also be passed as a child component
17
+ * myRandomProp={'yuppp'} //pass any other props like normal to the component
18
+ *
19
+ * />
20
+ * </div>
21
+ * }
22
+ */
23
+ export default function withDialog(topLevelDialogProps: any): any;
@@ -0,0 +1,6 @@
1
+ export default function tg_modalState(state: {} | undefined, { type, name, uniqueName, props }: {
2
+ type: any;
3
+ name: any;
4
+ uniqueName: any;
5
+ props?: {} | undefined;
6
+ }): {};
@@ -0,0 +1,4 @@
1
+ export default function WithField(fieldProps: any): (Component: any) => ({ isRequired, ...rest }: {
2
+ [x: string]: any;
3
+ isRequired: any;
4
+ }) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1 @@
1
+ export default function WithFields(fieldsProps: any): (Component: any) => (props: any) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1 @@
1
+ export default function WithField(fieldProps: any): (Component: any) => (props: any) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;