@teselagen/ui 0.7.33-beta.2 → 0.7.33-beta.3

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 (115) hide show
  1. package/package.json +1 -1
  2. package/src/style.css +10 -26
  3. package/AdvancedOptions.js +0 -33
  4. package/AssignDefaultsModeContext.js +0 -22
  5. package/CellDragHandle.js +0 -132
  6. package/ColumnFilterMenu.js +0 -62
  7. package/Columns.js +0 -979
  8. package/DisabledLoadingComponent.js +0 -15
  9. package/DisplayOptions.js +0 -199
  10. package/DropdownButton.js +0 -36
  11. package/DropdownCell.js +0 -61
  12. package/EditableCell.js +0 -44
  13. package/FillWindow.css +0 -6
  14. package/FillWindow.js +0 -69
  15. package/FilterAndSortMenu.js +0 -388
  16. package/FormSeparator.js +0 -9
  17. package/LoadingDots.js +0 -14
  18. package/MatchHeaders.js +0 -234
  19. package/PagingTool.js +0 -225
  20. package/RenderCell.js +0 -191
  21. package/SearchBar.js +0 -69
  22. package/SimpleStepViz.js +0 -22
  23. package/SortableColumns.js +0 -100
  24. package/TableFormTrackerContext.js +0 -10
  25. package/Tag.js +0 -112
  26. package/ThComponent.js +0 -44
  27. package/TimelineEvent.js +0 -31
  28. package/UploadCsvWizard.css +0 -4
  29. package/UploadCsvWizard.js +0 -719
  30. package/Uploader.js +0 -1278
  31. package/adHoc.js +0 -10
  32. package/autoTooltip.js +0 -201
  33. package/basicHandleActionsWithFullState.js +0 -14
  34. package/browserUtils.js +0 -3
  35. package/combineReducersWithFullState.js +0 -14
  36. package/commandControls.js +0 -82
  37. package/commandUtils.js +0 -112
  38. package/constants.js +0 -1
  39. package/convertSchema.js +0 -69
  40. package/customIcons.js +0 -361
  41. package/dataTableEnhancer.js +0 -41
  42. package/defaultFormatters.js +0 -32
  43. package/defaultValidators.js +0 -40
  44. package/determineBlackOrWhiteTextColor.js +0 -4
  45. package/editCellHelper.js +0 -44
  46. package/filterLocalEntitiesToHasura.js +0 -216
  47. package/formatPasteData.js +0 -16
  48. package/getAllRows.js +0 -11
  49. package/getCellCopyText.js +0 -7
  50. package/getCellInfo.js +0 -36
  51. package/getCellVal.js +0 -20
  52. package/getDayjsFormatter.js +0 -35
  53. package/getFieldPathToField.js +0 -7
  54. package/getIdOrCodeOrIndex.js +0 -9
  55. package/getLastSelectedEntity.js +0 -11
  56. package/getNewEntToSelect.js +0 -25
  57. package/getNewName.js +0 -31
  58. package/getRowCopyText.js +0 -28
  59. package/getTableConfigFromStorage.js +0 -5
  60. package/getTextFromEl.js +0 -28
  61. package/getVals.js +0 -8
  62. package/handleCopyColumn.js +0 -21
  63. package/handleCopyHelper.js +0 -15
  64. package/handleCopyRows.js +0 -23
  65. package/handleCopyTable.js +0 -16
  66. package/handlerHelpers.js +0 -24
  67. package/hotkeyUtils.js +0 -131
  68. package/index.js +0 -1
  69. package/initializeHasuraWhereAndFilter.js +0 -27
  70. package/isBeingCalledExcessively.js +0 -24
  71. package/isBottomRightCornerOfRectangle.js +0 -20
  72. package/isEntityClean.js +0 -15
  73. package/isTruthy.js +0 -12
  74. package/isValueEmpty.js +0 -3
  75. package/itemUpload.js +0 -84
  76. package/menuUtils.js +0 -433
  77. package/popoverOverflowModifiers.js +0 -11
  78. package/primarySelectedValue.js +0 -1
  79. package/pureNoFunc.js +0 -31
  80. package/queryParams.js +0 -336
  81. package/removeCleanRows.js +0 -22
  82. package/renderOnDoc.js +0 -32
  83. package/rerenderOnWindowResize.js +0 -26
  84. package/rowClick.js +0 -181
  85. package/selection.js +0 -8
  86. package/showAppSpinner.js +0 -12
  87. package/showDialogOnDocBody.js +0 -33
  88. package/showProgressToast.js +0 -22
  89. package/simplifyHasuraWhere.js +0 -80
  90. package/sortify.js +0 -73
  91. package/style.css +0 -29
  92. package/tableQueryParamsToHasuraClauses.js +0 -113
  93. package/tagUtils.js +0 -45
  94. package/tgFormValues.js +0 -35
  95. package/tg_modalState.js +0 -47
  96. package/throwFormError.js +0 -16
  97. package/toastr.js +0 -148
  98. package/tryToMatchSchemas.js +0 -264
  99. package/typeToCommonType.js +0 -6
  100. package/useDeepEqualMemo.js +0 -15
  101. package/useDialog.js +0 -63
  102. package/useStableReference.js +0 -9
  103. package/useTableEntities.js +0 -38
  104. package/useTraceUpdate.js +0 -19
  105. package/utils.js +0 -37
  106. package/validateTableWideErrors.js +0 -160
  107. package/viewColumn.js +0 -97
  108. package/withField.js +0 -20
  109. package/withFields.js +0 -11
  110. package/withLocalStorage.js +0 -11
  111. package/withSelectTableRecords.js +0 -43
  112. package/withSelectedEntities.js +0 -65
  113. package/withStore.js +0 -10
  114. package/withTableParams.js +0 -288
  115. package/wrapDialog.js +0 -116
package/Tag.js DELETED
@@ -1,112 +0,0 @@
1
- /* Copyright (C) 2018 TeselaGen Biotechnology, Inc. */
2
- import React from "react";
3
- import classNames from "classnames";
4
- import "./style.css";
5
- import { Tooltip } from "@blueprintjs/core";
6
- import { getTagColorStyle } from "./utils/tagUtils";
7
- import popoverOverflowModifiers from "./utils/popoverOverflowModifiers";
8
-
9
- function Tag({
10
- name,
11
- color,
12
- tooltip,
13
- selected,
14
- secondarySelected,
15
- hasSelection,
16
- onDelete,
17
- onClick,
18
- clickable,
19
- doNotFillWidth,
20
- style = {}
21
- }) {
22
- const sharedStyles = {
23
- ...getTagColorStyle(color).style,
24
- padding: "2px 5px"
25
- };
26
- const deleteButton = onDelete && (
27
- <span
28
- style={{
29
- ...sharedStyles,
30
- cursor: "pointer",
31
- borderTopRightRadius: 3,
32
- borderBottomRightRadius: 3
33
- }}
34
- className="delete-tag-button"
35
- onClick={onDelete}
36
- >
37
- &#10005;
38
- </span>
39
- );
40
-
41
- let nameToUse = name;
42
- const nameTooLong = name.length > 40;
43
- if (nameTooLong) {
44
- nameToUse = name.slice(0, 40) + "...";
45
- }
46
- if (tooltip || nameTooLong) {
47
- const content = (
48
- <div>
49
- {nameTooLong ? (
50
- <div>
51
- {name}
52
- {tooltip ? ":" : null}
53
- </div>
54
- ) : null}
55
- {tooltip ? <div>{tooltip}</div> : null}
56
- </div>
57
- );
58
- nameToUse = (
59
- <Tooltip content={content} modifiers={popoverOverflowModifiers}>
60
- {nameToUse}
61
- </Tooltip>
62
- );
63
- }
64
-
65
- const tag = (
66
- <React.Fragment>
67
- <span
68
- onClick={onClick}
69
- className="tg-tag"
70
- style={{
71
- ...sharedStyles,
72
- // will stop tags from growing tall
73
- marginBottom: "auto",
74
- borderRadius: 3,
75
- whiteSpace: "nowrap",
76
- wordBreak: "normal",
77
- overflow: "hidden",
78
- textOverflow: "ellipsis",
79
-
80
- ...(onClick && { cursor: "pointer" }),
81
- ...(onDelete && {
82
- borderTopRightRadius: 0,
83
- borderBottomRightRadius: 0
84
- }),
85
- ...(doNotFillWidth && { width: "fit-content" }),
86
- ...(clickable && { cursor: "pointer" }),
87
- ...style
88
- }}
89
- >
90
- {nameToUse}
91
- </span>
92
- {deleteButton}
93
- </React.Fragment>
94
- );
95
-
96
- if (hasSelection) {
97
- return (
98
- <div
99
- className={classNames("tag-selection", {
100
- selected,
101
- "secondary-selected": secondarySelected
102
- })}
103
- >
104
- {tag}
105
- </div>
106
- );
107
- } else {
108
- return tag;
109
- }
110
- }
111
-
112
- export default Tag;
package/ThComponent.js DELETED
@@ -1,44 +0,0 @@
1
- import React from "react";
2
- import { useSortable } from "@dnd-kit/sortable";
3
- import { CSS } from "@dnd-kit/utilities";
4
- import classNames from "classnames";
5
-
6
- export const ThComponent = ({
7
- toggleSort,
8
- immovable,
9
- className,
10
- children,
11
- style,
12
- columnindex,
13
- ...rest
14
- }) => {
15
- const index = columnindex ?? -1;
16
- const { attributes, listeners, setNodeRef, transform, transition } =
17
- useSortable({
18
- id: `${index}`,
19
- disabled: immovable === "true"
20
- });
21
-
22
- const sortStyles = {
23
- transform: CSS.Transform.toString(transform),
24
- transition
25
- };
26
-
27
- return (
28
- <div
29
- style={{ ...sortStyles, ...style }}
30
- ref={setNodeRef}
31
- {...attributes}
32
- {...listeners}
33
- className={classNames("rt-th", className)}
34
- onClick={e => toggleSort && toggleSort(e)}
35
- role="columnheader"
36
- tabIndex="-1" // Resolves eslint issues without implementing keyboard navigation incorrectly
37
- columnindex={columnindex}
38
- index={index}
39
- {...rest}
40
- >
41
- {children}
42
- </div>
43
- );
44
- };
package/TimelineEvent.js DELETED
@@ -1,31 +0,0 @@
1
- import React from "react";
2
- import dayjs from "dayjs";
3
- import { Classes } from "@blueprintjs/core";
4
- import classNames from "classnames";
5
- import relativeTime from "dayjs/plugin/relativeTime";
6
-
7
- dayjs.extend(relativeTime);
8
-
9
- function TimelineEvent({ date, children }) {
10
- return (
11
- <div className="tg-timeline-event">
12
- <div
13
- style={{
14
- display: "flex",
15
- alignItems: "center"
16
- }}
17
- >
18
- <div className="tg-timeline-circle" />
19
- {children}
20
- <div
21
- style={{ marginLeft: 5 }}
22
- className={classNames(Classes.TEXT_SMALL, Classes.TEXT_MUTED)}
23
- >
24
- ({dayjs(date).fromNow()})
25
- </div>
26
- </div>
27
- </div>
28
- );
29
- }
30
-
31
- export default TimelineEvent;
@@ -1,4 +0,0 @@
1
- .rg-celleditor-input,
2
- .rg-celleditor input {
3
- border: none;
4
- }