@teselagen/ui 0.4.14 → 0.4.16
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 +1 -1
- package/AssignDefaultsModeContext.d.ts +1 -1
- package/AsyncValidateFieldSpinner/index.d.ts +1 -1
- package/BlueprintError/index.d.ts +1 -1
- package/BounceLoader/index.d.ts +1 -1
- package/CollapsibleCard/index.d.ts +1 -1
- package/DNALoader/index.d.ts +1 -1
- package/DataTable/CellDragHandle.d.ts +1 -1
- package/DataTable/ColumnFilterMenu.d.ts +14 -0
- package/DataTable/DisabledLoadingComponent.d.ts +1 -1
- package/DataTable/DisplayOptions.d.ts +2 -2
- package/DataTable/DropdownCell.d.ts +8 -0
- package/DataTable/EditabelCell.d.ts +10 -0
- package/DataTable/FilterAndSortMenu.d.ts +2 -2
- package/DataTable/SearchBar.d.ts +1 -1
- package/DataTable/SortableColumns.d.ts +2 -2
- package/DataTable/TableFormTrackerContext.d.ts +1 -1
- package/DataTable/defaultProps.d.ts +1 -1
- package/DataTable/index.d.ts +0 -5
- package/DataTable/utils/computePresets.d.ts +1 -1
- package/DataTable/utils/formatPasteData.d.ts +5 -0
- package/DataTable/utils/getAllRows.d.ts +1 -0
- package/DataTable/utils/getCellCopyText.d.ts +1 -0
- package/DataTable/utils/getCellInfo.d.ts +17 -0
- package/DataTable/utils/getFieldPathToField.d.ts +1 -0
- package/DataTable/utils/getIdOrCodeOrIndex.d.ts +1 -2
- package/DataTable/utils/getLastSelectedEntity.d.ts +1 -0
- package/DataTable/utils/getNewEntToSelect.d.ts +6 -0
- package/DataTable/utils/getRowCopyText.d.ts +3 -0
- package/DataTable/utils/handleCopyColumn.d.ts +1 -0
- package/DataTable/utils/handleCopyHelper.d.ts +1 -0
- package/DataTable/utils/handleCopyRows.d.ts +5 -0
- package/DataTable/utils/index.d.ts +21 -0
- package/DataTable/utils/isBottomRightCornerOfRectangle.d.ts +8 -0
- package/DataTable/utils/isEntityClean.d.ts +1 -0
- package/DataTable/utils/removeCleanRows.d.ts +4 -0
- package/DataTable/utils/rowClick.d.ts +10 -2
- package/DataTable/utils/utils.d.ts +5 -0
- package/DataTable/viewColumn.d.ts +2 -2
- package/DialogFooter/index.d.ts +1 -1
- package/DropdownButton.d.ts +1 -1
- package/FillWindow.d.ts +1 -1
- package/FormComponents/LoadingDots.d.ts +1 -1
- package/FormComponents/Uploader.d.ts +29 -1
- package/FormComponents/index.d.ts +34 -34
- package/FormComponents/itemUpload.d.ts +1 -1
- package/HotkeysDialog/index.d.ts +1 -1
- package/InfoHelper/index.d.ts +1 -1
- package/IntentText/index.d.ts +1 -1
- package/MatchHeaders.d.ts +1 -1
- package/MenuBar/index.d.ts +4 -4
- package/PromptUnsavedChanges/index.d.ts +1 -1
- package/README.md +18 -0
- package/ResizableDraggableDialog/index.d.ts +2 -2
- package/ScrollToTop/index.d.ts +1 -1
- package/SimpleStepViz.d.ts +1 -1
- package/Tag.d.ts +1 -1
- package/TagSelect/index.d.ts +1 -1
- package/TgSelect/index.d.ts +2 -2
- package/TgSuggest/index.d.ts +3 -3
- package/Timeline/TimelineEvent.d.ts +1 -1
- package/Timeline/index.d.ts +2 -2
- package/UploadCsvWizard.d.ts +1 -1
- package/customIcons.d.ts +19 -19
- package/enhancers/withField.d.ts +1 -1
- package/enhancers/withFields.d.ts +1 -1
- package/enhancers/withLocalStorage.d.ts +1 -1
- package/index.cjs.js +14026 -12765
- package/index.d.ts +60 -60
- package/index.es.js +13844 -12583
- package/package.json +7 -4
- package/showConfirmationDialog/index.d.ts +2 -2
- package/src/DataTable/CellDragHandle.js +6 -7
- package/src/DataTable/ColumnFilterMenu.js +60 -0
- package/src/DataTable/DropdownCell.js +61 -0
- package/src/DataTable/EditabelCell.js +55 -0
- package/src/DataTable/PagingTool.js +1 -1
- package/src/DataTable/SortableColumns.js +53 -18
- package/src/DataTable/dataTableEnhancer.js +1 -1
- package/src/DataTable/index.js +385 -759
- package/src/DataTable/utils/formatPasteData.js +16 -0
- package/src/DataTable/utils/getAllRows.js +11 -0
- package/src/DataTable/utils/getCellCopyText.js +7 -0
- package/src/DataTable/utils/getCellInfo.js +36 -0
- package/src/DataTable/utils/getFieldPathToField.js +7 -0
- package/src/DataTable/utils/getIdOrCodeOrIndex.js +1 -1
- package/src/DataTable/utils/getLastSelectedEntity.js +11 -0
- package/src/DataTable/utils/getNewEntToSelect.js +25 -0
- package/src/DataTable/utils/getRowCopyText.js +28 -0
- package/src/DataTable/utils/handleCopyColumn.js +21 -0
- package/src/DataTable/utils/handleCopyHelper.js +15 -0
- package/src/DataTable/utils/handleCopyRows.js +23 -0
- package/src/DataTable/utils/index.js +51 -0
- package/src/DataTable/utils/isBottomRightCornerOfRectangle.js +20 -0
- package/src/DataTable/utils/isEntityClean.js +15 -0
- package/src/DataTable/utils/removeCleanRows.js +22 -0
- package/src/DataTable/utils/rowClick.js +7 -4
- package/src/DataTable/utils/selection.js +1 -1
- package/src/DataTable/utils/utils.js +37 -0
- package/src/DataTable/validateTableWideErrors.js +1 -1
- package/src/FillWindow.js +2 -3
- package/src/FormComponents/Uploader.js +400 -400
- package/src/FormComponents/tryToMatchSchemas.js +0 -6
- package/src/UploadCsvWizard.js +312 -371
- package/src/index.js +3 -3
- package/src/showDialogOnDocBody.js +5 -9
- package/src/useDialog.js +7 -4
- package/src/utils/renderOnDoc.js +8 -5
- package/style.css +7 -7
- package/useDialog.d.ts +2 -2
- package/utils/adHoc.d.ts +1 -1
- package/utils/commandControls.d.ts +5 -5
- package/utils/hotkeyUtils.d.ts +1 -1
- package/utils/menuUtils.d.ts +7 -7
- package/utils/renderOnDoc.d.ts +1 -1
- package/utils/tagUtils.d.ts +1 -1
- package/utils/tgFormValues.d.ts +1 -1
- package/utils/withStore.d.ts +1 -1
- package/wrapDialog.d.ts +1 -1
package/MenuBar/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/react';
|
|
1
2
|
export default MenuBar;
|
|
2
3
|
declare class MenuBar extends React.Component<any, any, any> {
|
|
3
4
|
static defaultProps: {
|
|
@@ -7,7 +8,7 @@ declare class MenuBar extends React.Component<any, any, any> {
|
|
|
7
8
|
constructor(props: any);
|
|
8
9
|
hotkeyEnabler: ({ children }?: {
|
|
9
10
|
children: any;
|
|
10
|
-
}) => import(
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
state: {
|
|
12
13
|
isOpen: boolean;
|
|
13
14
|
openIndex: null;
|
|
@@ -20,10 +21,9 @@ declare class MenuBar extends React.Component<any, any, any> {
|
|
|
20
21
|
isTopLevelSearch: boolean | undefined;
|
|
21
22
|
menuSearchIndex: any;
|
|
22
23
|
searchInput: HTMLInputElement | undefined;
|
|
23
|
-
helpItemRenderer: (i: any, b: any) => import(
|
|
24
|
+
helpItemRenderer: (i: any, b: any) => import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
handleItemClickOrSelect: (__i: any) => (_i: any) => void;
|
|
25
26
|
toggleFocusSearchMenu: () => void;
|
|
26
|
-
render(): import(
|
|
27
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
27
28
|
n: HTMLButtonElement | undefined;
|
|
28
29
|
}
|
|
29
|
-
import React from '../../../../node_modules/react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function PromptUnsavedChanges({ message, when }: {
|
|
2
2
|
message?: string | undefined;
|
|
3
3
|
when?: boolean | undefined;
|
|
4
|
-
}): import(
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
export const defaultMessagge: "Are you sure you want to leave? There are unsaved changes.";
|
|
6
6
|
export default PromptUnsavedChanges;
|
package/README.md
CHANGED
|
@@ -5,3 +5,21 @@ This library was generated with [Nx](https://nx.dev).
|
|
|
5
5
|
## Running unit tests
|
|
6
6
|
|
|
7
7
|
Run `nx test ui` to execute the unit tests via [Vitest](https://vitest.dev/).
|
|
8
|
+
|
|
9
|
+
## Installation (react)
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
yarn add @teselagen/ove react react-dom
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Running locally
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
nx run ui:start
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Publishing
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
nx run ui:publish
|
|
25
|
+
```
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/react';
|
|
1
2
|
export default class ResizableDraggableDialog extends React.Component<any, any, any> {
|
|
2
3
|
constructor(props: any);
|
|
3
4
|
constructor(props: any, context: any);
|
|
@@ -18,7 +19,6 @@ export default class ResizableDraggableDialog extends React.Component<any, any,
|
|
|
18
19
|
windowWidth: number;
|
|
19
20
|
windowHeight: number;
|
|
20
21
|
};
|
|
21
|
-
render(): import(
|
|
22
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
containerEl: HTMLDivElement | undefined;
|
|
23
24
|
}
|
|
24
|
-
import React from '../../../../node_modules/react';
|
package/ScrollToTop/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export default ScrollToTop;
|
|
|
2
2
|
declare function ScrollToTop({ showAt, scrollContainer }: {
|
|
3
3
|
showAt?: number | undefined;
|
|
4
4
|
scrollContainer?: Element | null | undefined;
|
|
5
|
-
}): import(
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
package/SimpleStepViz.d.ts
CHANGED
package/Tag.d.ts
CHANGED
package/TagSelect/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ declare function _default({ value, options, onChange }: {
|
|
|
2
2
|
value?: {} | undefined;
|
|
3
3
|
options?: any[] | undefined;
|
|
4
4
|
onChange: any;
|
|
5
|
-
}): import(
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default _default;
|
package/TgSelect/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export function createNewOption(newValString: any): {
|
|
|
4
4
|
value: any;
|
|
5
5
|
};
|
|
6
6
|
export function simplesearch(needle: any, haystack: any): boolean;
|
|
7
|
-
declare function _default(props: any): import(
|
|
7
|
+
declare function _default(props: any): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default _default;
|
|
9
|
-
export function renderCreateNewOption(query: any, active: any, handleClick: any): import(
|
|
9
|
+
export function renderCreateNewOption(query: any, active: any, handleClick: any): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export function itemListPredicate(_queryString: string | undefined, items: any, isSimpleSearch: any): any;
|
package/TgSuggest/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/react';
|
|
1
2
|
export default TgSuggest;
|
|
2
3
|
declare class TgSuggest extends React.Component<any, any, any> {
|
|
3
4
|
static defaultProps: {
|
|
@@ -11,12 +12,11 @@ declare class TgSuggest extends React.Component<any, any, any> {
|
|
|
11
12
|
index: any;
|
|
12
13
|
handleClick: any;
|
|
13
14
|
modifiers: any;
|
|
14
|
-
}) => import(
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
handleItemSelect: (item: any) => any;
|
|
16
17
|
itemListPredicate: (queryString: any, item: any) => any;
|
|
17
18
|
onQueryChange: (query: any) => void;
|
|
18
19
|
renderInputValue: (item: any) => any;
|
|
19
|
-
render(): import(
|
|
20
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
input: HTMLInputElement | undefined;
|
|
21
22
|
}
|
|
22
|
-
import React from '../../../../node_modules/react';
|
package/Timeline/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as TimelineEvent } from
|
|
1
|
+
export { default as TimelineEvent } from './TimelineEvent';
|
|
2
2
|
export default Timeline;
|
|
3
|
-
declare function Timeline(props: any): import(
|
|
3
|
+
declare function Timeline(props: any): import("react/jsx-runtime").JSX.Element;
|
package/UploadCsvWizard.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export default UploadCsvWizardDialog;
|
|
2
|
-
export function PreviewCsvData(props: any): import(
|
|
2
|
+
export function PreviewCsvData(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export const SimpleInsertDataDialog: any;
|
|
4
4
|
declare const UploadCsvWizardDialog: any;
|
package/customIcons.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export const flaskIcon: import(
|
|
2
|
-
export const tubeIcon: import(
|
|
3
|
-
export const orfIcon: import(
|
|
4
|
-
export const featureIcon: import(
|
|
5
|
-
export const reverseFeatureIcon: import(
|
|
6
|
-
export const bluntFeatureIcon: import(
|
|
7
|
-
export const dnaIcon: import(
|
|
8
|
-
export const workqueueIcon: import(
|
|
9
|
-
export const removeDuplicatesIcon: import(
|
|
10
|
-
export const inventoryIcon: import(
|
|
11
|
-
export const workflowIcon: import(
|
|
12
|
-
export const strainIcon: import(
|
|
13
|
-
export const designIcon: import(
|
|
14
|
-
export const moleculeIcon: import(
|
|
15
|
-
export const keyboardIcon: import(
|
|
16
|
-
export const cardDetailsIcon: import(
|
|
17
|
-
export const driveIcon: import(
|
|
18
|
-
export const sharedDriveIcon: import(
|
|
19
|
-
export const proteinIcon: import(
|
|
1
|
+
export const flaskIcon: import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export const tubeIcon: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export const orfIcon: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export const featureIcon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export const reverseFeatureIcon: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export const bluntFeatureIcon: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export const dnaIcon: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export const workqueueIcon: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export const removeDuplicatesIcon: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export const inventoryIcon: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export const workflowIcon: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export const strainIcon: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export const designIcon: import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export const moleculeIcon: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export const keyboardIcon: import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export const cardDetailsIcon: import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export const driveIcon: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export const sharedDriveIcon: import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export const proteinIcon: import("react/jsx-runtime").JSX.Element;
|
package/enhancers/withField.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function WithFields(fieldsProps: any): (Component: any) => (props: any) => import(
|
|
1
|
+
export default function WithFields(fieldsProps: any): (Component: any) => (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function WithField(fieldProps: any): (Component: any) => (props: any) => import(
|
|
1
|
+
export default function WithField(fieldProps: any): (Component: any) => (props: any) => import("react/jsx-runtime").JSX.Element;
|