@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.
- package/AdvancedOptions.d.ts +7 -0
- package/AssignDefaultsModeContext.d.ts +25 -0
- package/AsyncValidateFieldSpinner/index.d.ts +3 -0
- package/BlueprintError/index.d.ts +3 -0
- package/BounceLoader/index.d.ts +4 -0
- package/CollapsibleCard/index.d.ts +11 -0
- package/DNALoader/index.d.ts +4 -0
- package/DataTable/CellDragHandle.d.ts +6 -0
- package/DataTable/DisabledLoadingComponent.d.ts +6 -0
- package/DataTable/DisplayOptions.d.ts +14 -0
- package/DataTable/FilterAndSortMenu.d.ts +9 -0
- package/DataTable/PagingTool.d.ts +2 -0
- package/DataTable/SearchBar.d.ts +9 -0
- package/DataTable/SortableColumns.d.ts +10 -0
- package/DataTable/TableFormTrackerContext.d.ts +7 -0
- package/DataTable/dataTableEnhancer.d.ts +12 -0
- package/DataTable/defaultFormatters.d.ts +6 -0
- package/DataTable/defaultProps.d.ts +43 -0
- package/DataTable/defaultValidators.d.ts +6 -0
- package/DataTable/editCellHelper.d.ts +10 -0
- package/DataTable/getCellVal.d.ts +1 -0
- package/DataTable/getVals.d.ts +1 -0
- package/DataTable/index.d.ts +8 -0
- package/DataTable/isTruthy.d.ts +1 -0
- package/DataTable/isValueEmpty.d.ts +1 -0
- package/DataTable/utils/computePresets.d.ts +1 -0
- package/DataTable/utils/convertSchema.d.ts +3 -0
- package/DataTable/utils/getIdOrCodeOrIndex.d.ts +2 -0
- package/DataTable/utils/getTableConfigFromStorage.d.ts +1 -0
- package/DataTable/utils/queryParams.d.ts +54 -0
- package/DataTable/utils/rowClick.d.ts +11 -0
- package/DataTable/utils/selection.d.ts +1 -0
- package/DataTable/utils/withSelectedEntities.d.ts +11 -0
- package/DataTable/utils/withTableParams.d.ts +49 -0
- package/DataTable/validateTableWideErrors.d.ts +6 -0
- package/DataTable/viewColumn.d.ts +12 -0
- package/DialogFooter/index.d.ts +23 -0
- package/DropdownButton.d.ts +9 -0
- package/FillWindow.d.ts +5 -0
- package/FormComponents/LoadingDots.d.ts +1 -0
- package/FormComponents/Uploader.d.ts +2 -0
- package/FormComponents/getNewName.d.ts +1 -0
- package/FormComponents/index.d.ts +152 -0
- package/FormComponents/itemUpload.d.ts +2 -0
- package/FormComponents/sortify.d.ts +2 -0
- package/FormComponents/tryToMatchSchemas.d.ts +17 -0
- package/FormComponents/utils.d.ts +2 -0
- package/HotkeysDialog/index.d.ts +1 -0
- package/InfoHelper/index.d.ts +6 -0
- package/IntentText/index.d.ts +5 -0
- package/Loading/index.d.ts +12 -0
- package/MatchHeaders.d.ts +16 -0
- package/MenuBar/index.d.ts +29 -0
- package/PromptUnsavedChanges/index.d.ts +6 -0
- package/ResizableDraggableDialog/index.d.ts +24 -0
- package/ScrollToTop/index.d.ts +5 -0
- package/SimpleStepViz.d.ts +4 -0
- package/TgSelect/index.d.ts +10 -0
- package/TgSuggest/index.d.ts +22 -0
- package/Timeline/TimelineEvent.d.ts +5 -0
- package/Timeline/index.d.ts +12 -0
- package/UploadCsvWizard.d.ts +4 -0
- package/autoTooltip.d.ts +1 -0
- package/constants.d.ts +1 -0
- package/customIcons.d.ts +19 -0
- package/enhancers/withDialog/index.d.ts +23 -0
- package/enhancers/withDialog/tg_modalState.d.ts +6 -0
- package/enhancers/withField.d.ts +4 -0
- package/enhancers/withFields.d.ts +1 -0
- package/enhancers/withLocalStorage.d.ts +1 -0
- package/index.cjs.js +186 -88
- package/index.d.ts +61 -0
- package/index.es.js +186 -88
- package/package.json +1 -1
- package/rerenderOnWindowResize.d.ts +1 -0
- package/showAppSpinner.d.ts +1 -0
- package/showConfirmationDialog/index.d.ts +10 -0
- package/showDialogOnDocBody.d.ts +1 -0
- package/src/TgSelect/index.js +37 -4
- package/src/TgSelect/style.css +20 -0
- package/src/style.css +12 -4
- package/style.css +33 -4
- package/throwFormError.d.ts +1 -0
- package/toastr.d.ts +1 -0
- package/typeToCommonType.d.ts +6 -0
- package/useDialog.d.ts +10 -0
- package/utils/adHoc.d.ts +2 -0
- package/utils/basicHandleActionsWithFullState.d.ts +1 -0
- package/utils/browserUtils.d.ts +1 -0
- package/utils/combineReducersWithFullState.d.ts +1 -0
- package/utils/commandControls.d.ts +25 -0
- package/utils/commandUtils.d.ts +4 -0
- package/utils/determineBlackOrWhiteTextColor.d.ts +2 -0
- package/utils/getDayjsFormatter.d.ts +5 -0
- package/utils/getTextFromEl.d.ts +1 -0
- package/utils/handlerHelpers.d.ts +10 -0
- package/utils/hotkeyUtils.d.ts +6 -0
- package/utils/menuUtils.d.ts +23 -0
- package/utils/popoverOverflowModifiers.d.ts +13 -0
- package/utils/pureNoFunc.d.ts +2 -0
- package/utils/renderOnDoc.d.ts +2 -0
- package/utils/showProgressToast.d.ts +2 -0
- package/utils/tagUtils.d.ts +20 -0
- package/utils/tgFormValues.d.ts +3 -0
- package/utils/withSelectTableRecords.d.ts +1 -0
- package/utils/withStore.d.ts +2 -0
- 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 @@
|
|
|
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,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,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,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";
|
package/autoTooltip.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/constants.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const SAFE_UPSERT_PAGE_SIZE: 50;
|
package/customIcons.d.ts
ADDED
|
@@ -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 @@
|
|
|
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;
|