@teselagen/ui 0.7.32 → 0.7.33-beta.2

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 (254) hide show
  1. package/AdvancedOptions.js +33 -0
  2. package/AssignDefaultsModeContext.js +22 -0
  3. package/DataTable/utils/filterLocalEntitiesToHasura.d.ts +5 -0
  4. package/DataTable/utils/initializeHasuraWhereAndFilter.d.ts +2 -0
  5. package/DataTable/utils/queryParams.d.ts +8 -12
  6. package/DataTable/utils/simplifyHasuraWhere.d.ts +1 -0
  7. package/DataTable/utils/tableQueryParamsToHasuraClauses.d.ts +14 -0
  8. package/DropdownButton.js +36 -0
  9. package/FillWindow.css +6 -0
  10. package/FillWindow.js +69 -0
  11. package/{src/DataTable/FilterAndSortMenu.js → FilterAndSortMenu.js} +27 -30
  12. package/MatchHeaders.js +234 -0
  13. package/SimpleStepViz.js +22 -0
  14. package/Tag.js +112 -0
  15. package/UploadCsvWizard.css +4 -0
  16. package/UploadCsvWizard.js +719 -0
  17. package/autoTooltip.js +201 -0
  18. package/constants.js +1 -0
  19. package/customIcons.js +361 -0
  20. package/filterLocalEntitiesToHasura.js +216 -0
  21. package/index.cjs.js +695 -967
  22. package/index.d.ts +1 -0
  23. package/index.es.js +695 -967
  24. package/initializeHasuraWhereAndFilter.js +27 -0
  25. package/{src/utils/isBeingCalledExcessively.js → isBeingCalledExcessively.js} +0 -1
  26. package/package.json +1 -1
  27. package/queryParams.js +336 -0
  28. package/rerenderOnWindowResize.js +26 -0
  29. package/showAppSpinner.js +12 -0
  30. package/showDialogOnDocBody.js +33 -0
  31. package/simplifyHasuraWhere.js +80 -0
  32. package/src/CellDragHandle.js +132 -0
  33. package/src/ColumnFilterMenu.js +62 -0
  34. package/src/Columns.js +979 -0
  35. package/src/DisabledLoadingComponent.js +15 -0
  36. package/src/DisplayOptions.js +199 -0
  37. package/src/DropdownCell.js +61 -0
  38. package/src/EditableCell.js +44 -0
  39. package/src/FilterAndSortMenu.js +388 -0
  40. package/src/FormSeparator.js +9 -0
  41. package/src/LoadingDots.js +14 -0
  42. package/src/PagingTool.js +225 -0
  43. package/src/RenderCell.js +191 -0
  44. package/src/SearchBar.js +69 -0
  45. package/src/SortableColumns.js +100 -0
  46. package/src/TableFormTrackerContext.js +10 -0
  47. package/src/ThComponent.js +44 -0
  48. package/src/TimelineEvent.js +31 -0
  49. package/src/Uploader.js +1278 -0
  50. package/src/adHoc.js +10 -0
  51. package/src/basicHandleActionsWithFullState.js +14 -0
  52. package/src/browserUtils.js +3 -0
  53. package/src/combineReducersWithFullState.js +14 -0
  54. package/src/commandControls.js +82 -0
  55. package/src/commandUtils.js +112 -0
  56. package/src/convertSchema.js +69 -0
  57. package/src/dataTableEnhancer.js +41 -0
  58. package/src/defaultFormatters.js +32 -0
  59. package/src/defaultValidators.js +40 -0
  60. package/src/determineBlackOrWhiteTextColor.js +4 -0
  61. package/src/editCellHelper.js +44 -0
  62. package/src/filterLocalEntitiesToHasura.js +216 -0
  63. package/src/formatPasteData.js +16 -0
  64. package/src/getAllRows.js +11 -0
  65. package/src/getCellCopyText.js +7 -0
  66. package/src/getCellInfo.js +36 -0
  67. package/src/getCellVal.js +20 -0
  68. package/src/getDayjsFormatter.js +35 -0
  69. package/src/getFieldPathToField.js +7 -0
  70. package/src/getIdOrCodeOrIndex.js +9 -0
  71. package/src/getLastSelectedEntity.js +11 -0
  72. package/src/getNewEntToSelect.js +25 -0
  73. package/src/getNewName.js +31 -0
  74. package/src/getRowCopyText.js +28 -0
  75. package/src/getTableConfigFromStorage.js +5 -0
  76. package/src/getTextFromEl.js +28 -0
  77. package/src/getVals.js +8 -0
  78. package/src/handleCopyColumn.js +21 -0
  79. package/src/handleCopyHelper.js +15 -0
  80. package/src/handleCopyRows.js +23 -0
  81. package/src/handleCopyTable.js +16 -0
  82. package/src/handlerHelpers.js +24 -0
  83. package/src/hotkeyUtils.js +131 -0
  84. package/src/index.js +1 -87
  85. package/src/initializeHasuraWhereAndFilter.js +27 -0
  86. package/src/isBeingCalledExcessively.js +24 -0
  87. package/src/isBottomRightCornerOfRectangle.js +20 -0
  88. package/src/isEntityClean.js +15 -0
  89. package/src/isTruthy.js +12 -0
  90. package/src/isValueEmpty.js +3 -0
  91. package/src/itemUpload.js +84 -0
  92. package/src/menuUtils.js +433 -0
  93. package/src/popoverOverflowModifiers.js +11 -0
  94. package/src/primarySelectedValue.js +1 -0
  95. package/src/pureNoFunc.js +31 -0
  96. package/src/queryParams.js +336 -0
  97. package/src/removeCleanRows.js +22 -0
  98. package/src/renderOnDoc.js +32 -0
  99. package/src/rowClick.js +181 -0
  100. package/src/selection.js +8 -0
  101. package/src/showProgressToast.js +22 -0
  102. package/src/simplifyHasuraWhere.js +80 -0
  103. package/src/sortify.js +73 -0
  104. package/src/style.css +24 -260
  105. package/src/tableQueryParamsToHasuraClauses.js +113 -0
  106. package/src/{DataTable/utils/withTableParams.js → withTableParams.js} +1 -14
  107. package/tableQueryParamsToHasuraClauses.js +113 -0
  108. package/tagUtils.js +45 -0
  109. package/tgFormValues.js +35 -0
  110. package/tg_modalState.js +47 -0
  111. package/throwFormError.js +16 -0
  112. package/toastr.js +148 -0
  113. package/tryToMatchSchemas.js +264 -0
  114. package/typeToCommonType.js +6 -0
  115. package/useDeepEqualMemo.js +15 -0
  116. package/useDialog.js +63 -0
  117. package/useStableReference.js +9 -0
  118. package/useTableEntities.js +38 -0
  119. package/useTraceUpdate.js +19 -0
  120. package/utils.js +37 -0
  121. package/validateTableWideErrors.js +160 -0
  122. package/viewColumn.js +97 -0
  123. package/withField.js +20 -0
  124. package/withFields.js +11 -0
  125. package/withLocalStorage.js +11 -0
  126. package/withSelectTableRecords.js +43 -0
  127. package/withSelectedEntities.js +65 -0
  128. package/withStore.js +10 -0
  129. package/withTableParams.js +288 -0
  130. package/wrapDialog.js +116 -0
  131. package/src/AdvancedOptions.spec.js +0 -26
  132. package/src/AsyncValidateFieldSpinner/index.js +0 -12
  133. package/src/BlueprintError/index.js +0 -14
  134. package/src/BounceLoader/index.js +0 -16
  135. package/src/BounceLoader/style.css +0 -45
  136. package/src/CollapsibleCard/index.js +0 -68
  137. package/src/CollapsibleCard/style.css +0 -23
  138. package/src/DNALoader/index.js +0 -20
  139. package/src/DNALoader/style.css +0 -251
  140. package/src/DataTable/index.js +0 -3213
  141. package/src/DataTable/style.css +0 -608
  142. package/src/DataTable/utils/index.js +0 -55
  143. package/src/DataTable/utils/queryParams.js +0 -1058
  144. package/src/DialogFooter/index.js +0 -86
  145. package/src/DialogFooter/style.css +0 -9
  146. package/src/FormComponents/index.js +0 -1266
  147. package/src/FormComponents/style.css +0 -275
  148. package/src/FormComponents/utils.js +0 -6
  149. package/src/HotkeysDialog/index.js +0 -79
  150. package/src/HotkeysDialog/style.css +0 -54
  151. package/src/InfoHelper/index.js +0 -78
  152. package/src/InfoHelper/style.css +0 -7
  153. package/src/IntentText/index.js +0 -18
  154. package/src/Loading/index.js +0 -70
  155. package/src/Loading/style.css +0 -4
  156. package/src/MenuBar/index.js +0 -423
  157. package/src/MenuBar/style.css +0 -45
  158. package/src/PromptUnsavedChanges/index.js +0 -38
  159. package/src/ResizableDraggableDialog/index.js +0 -141
  160. package/src/ResizableDraggableDialog/style.css +0 -42
  161. package/src/ScrollToTop/index.js +0 -72
  162. package/src/TagSelect/index.js +0 -69
  163. package/src/TagSelect/style.css +0 -13
  164. package/src/TgHtmlSelect/index.js +0 -20
  165. package/src/TgSelect/index.js +0 -537
  166. package/src/TgSelect/style.css +0 -61
  167. package/src/TgSuggest/index.js +0 -124
  168. package/src/Timeline/index.js +0 -15
  169. package/src/enhancers/withDialog/index.js +0 -196
  170. package/src/showConfirmationDialog/index.js +0 -148
  171. /package/{src/DataTable/CellDragHandle.js → CellDragHandle.js} +0 -0
  172. /package/{src/DataTable/ColumnFilterMenu.js → ColumnFilterMenu.js} +0 -0
  173. /package/{src/DataTable/Columns.js → Columns.js} +0 -0
  174. /package/{src/DataTable/DisabledLoadingComponent.js → DisabledLoadingComponent.js} +0 -0
  175. /package/{src/DataTable/DisplayOptions.js → DisplayOptions.js} +0 -0
  176. /package/{src/DataTable/DropdownCell.js → DropdownCell.js} +0 -0
  177. /package/{src/DataTable/EditableCell.js → EditableCell.js} +0 -0
  178. /package/{src/FormComponents/FormSeparator.js → FormSeparator.js} +0 -0
  179. /package/{src/FormComponents/LoadingDots.js → LoadingDots.js} +0 -0
  180. /package/{src/DataTable/PagingTool.js → PagingTool.js} +0 -0
  181. /package/{src/DataTable/RenderCell.js → RenderCell.js} +0 -0
  182. /package/{src/DataTable/SearchBar.js → SearchBar.js} +0 -0
  183. /package/{src/DataTable/SortableColumns.js → SortableColumns.js} +0 -0
  184. /package/{src/DataTable/TableFormTrackerContext.js → TableFormTrackerContext.js} +0 -0
  185. /package/{src/DataTable/ThComponent.js → ThComponent.js} +0 -0
  186. /package/{src/Timeline/TimelineEvent.js → TimelineEvent.js} +0 -0
  187. /package/{src/FormComponents/Uploader.js → Uploader.js} +0 -0
  188. /package/{src/utils/adHoc.js → adHoc.js} +0 -0
  189. /package/{src/utils/basicHandleActionsWithFullState.js → basicHandleActionsWithFullState.js} +0 -0
  190. /package/{src/utils/browserUtils.js → browserUtils.js} +0 -0
  191. /package/{src/utils/combineReducersWithFullState.js → combineReducersWithFullState.js} +0 -0
  192. /package/{src/utils/commandControls.js → commandControls.js} +0 -0
  193. /package/{src/utils/commandUtils.js → commandUtils.js} +0 -0
  194. /package/{src/DataTable/utils/convertSchema.js → convertSchema.js} +0 -0
  195. /package/{src/DataTable/dataTableEnhancer.js → dataTableEnhancer.js} +0 -0
  196. /package/{src/DataTable/defaultFormatters.js → defaultFormatters.js} +0 -0
  197. /package/{src/DataTable/defaultValidators.js → defaultValidators.js} +0 -0
  198. /package/{src/utils/determineBlackOrWhiteTextColor.js → determineBlackOrWhiteTextColor.js} +0 -0
  199. /package/{src/DataTable/editCellHelper.js → editCellHelper.js} +0 -0
  200. /package/{src/DataTable/utils/formatPasteData.js → formatPasteData.js} +0 -0
  201. /package/{src/DataTable/utils/getAllRows.js → getAllRows.js} +0 -0
  202. /package/{src/DataTable/utils/getCellCopyText.js → getCellCopyText.js} +0 -0
  203. /package/{src/DataTable/utils/getCellInfo.js → getCellInfo.js} +0 -0
  204. /package/{src/DataTable/getCellVal.js → getCellVal.js} +0 -0
  205. /package/{src/utils/getDayjsFormatter.js → getDayjsFormatter.js} +0 -0
  206. /package/{src/DataTable/utils/getFieldPathToField.js → getFieldPathToField.js} +0 -0
  207. /package/{src/DataTable/utils/getIdOrCodeOrIndex.js → getIdOrCodeOrIndex.js} +0 -0
  208. /package/{src/DataTable/utils/getLastSelectedEntity.js → getLastSelectedEntity.js} +0 -0
  209. /package/{src/DataTable/utils/getNewEntToSelect.js → getNewEntToSelect.js} +0 -0
  210. /package/{src/FormComponents/getNewName.js → getNewName.js} +0 -0
  211. /package/{src/DataTable/utils/getRowCopyText.js → getRowCopyText.js} +0 -0
  212. /package/{src/DataTable/utils/getTableConfigFromStorage.js → getTableConfigFromStorage.js} +0 -0
  213. /package/{src/utils/getTextFromEl.js → getTextFromEl.js} +0 -0
  214. /package/{src/DataTable/getVals.js → getVals.js} +0 -0
  215. /package/{src/DataTable/utils/handleCopyColumn.js → handleCopyColumn.js} +0 -0
  216. /package/{src/DataTable/utils/handleCopyHelper.js → handleCopyHelper.js} +0 -0
  217. /package/{src/DataTable/utils/handleCopyRows.js → handleCopyRows.js} +0 -0
  218. /package/{src/DataTable/utils/handleCopyTable.js → handleCopyTable.js} +0 -0
  219. /package/{src/utils/handlerHelpers.js → handlerHelpers.js} +0 -0
  220. /package/{src/utils/hotkeyUtils.js → hotkeyUtils.js} +0 -0
  221. /package/{src/utils/hooks/index.js → index.js} +0 -0
  222. /package/{src/DataTable/utils/isBottomRightCornerOfRectangle.js → isBottomRightCornerOfRectangle.js} +0 -0
  223. /package/{src/DataTable/utils/isEntityClean.js → isEntityClean.js} +0 -0
  224. /package/{src/DataTable/isTruthy.js → isTruthy.js} +0 -0
  225. /package/{src/DataTable/isValueEmpty.js → isValueEmpty.js} +0 -0
  226. /package/{src/FormComponents/itemUpload.js → itemUpload.js} +0 -0
  227. /package/{src/utils/menuUtils.js → menuUtils.js} +0 -0
  228. /package/{src/utils/popoverOverflowModifiers.js → popoverOverflowModifiers.js} +0 -0
  229. /package/{src/DataTable/utils/primarySelectedValue.js → primarySelectedValue.js} +0 -0
  230. /package/{src/utils/pureNoFunc.js → pureNoFunc.js} +0 -0
  231. /package/{src/DataTable/utils/removeCleanRows.js → removeCleanRows.js} +0 -0
  232. /package/{src/utils/renderOnDoc.js → renderOnDoc.js} +0 -0
  233. /package/{src/DataTable/utils/rowClick.js → rowClick.js} +0 -0
  234. /package/{src/DataTable/utils/selection.js → selection.js} +0 -0
  235. /package/{src/utils/showProgressToast.js → showProgressToast.js} +0 -0
  236. /package/{src/FormComponents/sortify.js → sortify.js} +0 -0
  237. /package/src/{utils/tagUtils.js → tagUtils.js} +0 -0
  238. /package/src/{utils/tgFormValues.js → tgFormValues.js} +0 -0
  239. /package/src/{enhancers/withDialog/tg_modalState.js → tg_modalState.js} +0 -0
  240. /package/src/{FormComponents/tryToMatchSchemas.js → tryToMatchSchemas.js} +0 -0
  241. /package/src/{utils/hooks/useDeepEqualMemo.js → useDeepEqualMemo.js} +0 -0
  242. /package/src/{utils/hooks/useStableReference.js → useStableReference.js} +0 -0
  243. /package/src/{DataTable/utils/useTableEntities.js → useTableEntities.js} +0 -0
  244. /package/src/{utils/useTraceUpdate.js → useTraceUpdate.js} +0 -0
  245. /package/src/{DataTable/utils/utils.js → utils.js} +0 -0
  246. /package/src/{DataTable/validateTableWideErrors.js → validateTableWideErrors.js} +0 -0
  247. /package/src/{DataTable/viewColumn.js → viewColumn.js} +0 -0
  248. /package/src/{enhancers/withField.js → withField.js} +0 -0
  249. /package/src/{enhancers/withFields.js → withFields.js} +0 -0
  250. /package/src/{enhancers/withLocalStorage.js → withLocalStorage.js} +0 -0
  251. /package/src/{utils/withSelectTableRecords.js → withSelectTableRecords.js} +0 -0
  252. /package/src/{DataTable/utils/withSelectedEntities.js → withSelectedEntities.js} +0 -0
  253. /package/src/{utils/withStore.js → withStore.js} +0 -0
  254. /package/{src/Timeline/style.css → style.css} +0 -0
@@ -1,608 +0,0 @@
1
- /* DataTable style.css */
2
- .custom-menu-item {
3
- text-overflow: ellipsis;
4
- white-space: nowrap;
5
- word-wrap: normal;
6
- display: block;
7
- border-radius: 2px;
8
- padding: 7px;
9
- line-height: 16px;
10
- color: inherit;
11
- user-select: none;
12
- }
13
-
14
- .menu-buttons {
15
- display: flex;
16
- justify-content: space-between;
17
- }
18
-
19
- .data-table-header-menu {
20
- min-width: 210px;
21
- }
22
-
23
- .data-table-search-and-filter {
24
- display: flex;
25
- }
26
-
27
- .datatable-search-input.bp3-form-group {
28
- margin-bottom: 0;
29
- }
30
-
31
- .data-table-header {
32
- display: flex;
33
- flex-wrap: wrap;
34
- margin-bottom: 10px;
35
- justify-content: space-between;
36
- align-items: center;
37
- }
38
-
39
- .data-table-header-and-buttons .bp3-button-group {
40
- overflow: auto;
41
- }
42
-
43
- .data-table-title {
44
- font-size: 1.8em;
45
- font-weight: 300;
46
- margin-right: 10px;
47
- }
48
- .data-table-header {
49
- min-height: 30px;
50
- flex-shrink: 0;
51
- }
52
- .data-table-footer {
53
- min-height: 18px;
54
- }
55
-
56
- .data-table-container {
57
- padding: 20px;
58
- position: relative;
59
- height: 100%;
60
- width: 100%;
61
- display: flex;
62
- flex-direction: column;
63
- }
64
- @media only screen and (max-width: 600px) {
65
- .data-table-container {
66
- padding: 0px;
67
- }
68
- }
69
-
70
- .data-table-container.fullscreen {
71
- background: white;
72
- position: fixed;
73
- z-index: 5000;
74
- padding: 20px !important;
75
- left: 0;
76
- top: 0;
77
- width: 100vw;
78
- height: 100vh;
79
- }
80
-
81
- .data-table-container.fullscreen .ReactTable {
82
- max-height: 100% !important;
83
- }
84
-
85
- .data-table-container.no-padding {
86
- padding: 0;
87
- }
88
-
89
- .data-table-container.hide-column-header .rt-thead.-header {
90
- display: none;
91
- }
92
-
93
- .data-table-title-and-buttons {
94
- display: flex;
95
- align-items: center;
96
- }
97
-
98
- .datatable-search-input {
99
- width: 200px;
100
- }
101
-
102
- .clickable-cell {
103
- height: 100%;
104
- width: 100%;
105
- display: flex;
106
- align-items: center;
107
- }
108
-
109
- .paging-toolbar-container {
110
- margin-left: 5px;
111
- display: flex;
112
- justify-content: flex-end;
113
- align-items: center;
114
- }
115
-
116
- .paging-page-size {
117
- width: 62px;
118
- }
119
-
120
- .ReactTable.ReactTable .rt-tbody .rt-tr-group {
121
- border-bottom: 1px solid rgb(233, 233, 233);
122
- }
123
- .ReactTable.ReactTable.isCellEditable .rt-tbody .rt-tr-group {
124
- border-right: 4px solid #d4d4d433;
125
- border-bottom: none;
126
- }
127
- .ReactTable.ReactTable.isCellEditable .rt-thead .rt-tr {
128
- border-right: 4px solid #d4d4d433;
129
- }
130
- .ReactTable.ReactTable.isCellEditable .rt-thead .rt-th {
131
- border: var(--cell-border-width) solid rgba(212, 212, 212, 0);
132
- }
133
-
134
- /* tgreen: we don't want the border for rows that don't have any data */
135
- .ReactTable.ReactTable .rt-tbody .rt-tr-group.no-row-data {
136
- min-height: 0px;
137
- border-bottom: none;
138
- }
139
-
140
- .ReactTable.ReactTable .rt-tbody .rt-tr {
141
- border: none;
142
- }
143
-
144
- .bp3-dark .ReactTable.ReactTable .rt-tbody .rt-tr-group {
145
- border-bottom-color: rgba(16, 22, 26, 0.15);
146
- }
147
-
148
- .ReactTable.ReactTable .rt-tbody .rt-tr-group .-padRow {
149
- display: none;
150
- }
151
-
152
- /* Prevent rows from expanding vertically to fill available space */
153
- .ReactTable.ReactTable .rt-tbody .rt-tr-group,
154
- .ReactTable.ReactTable .rt-tbody .rt-tr-group .rt-tr {
155
- min-height: 28px;
156
- flex: 0 0 auto;
157
- }
158
-
159
- /* add margin bottom to last row so it does not get covered by scrollbar */
160
- /* .ReactTable .rt-tr-group:last-child {
161
- margin-bottom: 20px;
162
- } */
163
-
164
- .bp3-icon-standard.bp3-disabled {
165
- cursor: not-allowed;
166
- opacity: 0.7;
167
- }
168
-
169
- .data-table-search-and-clear-filter-container {
170
- display: flex;
171
- align-items: center;
172
- }
173
-
174
- .data-table-clear-filters {
175
- margin-right: 10px;
176
- }
177
-
178
- .tg-react-table-column-header {
179
- display: flex;
180
- align-items: center;
181
- justify-content: flex-start;
182
- }
183
-
184
- .tg-react-table-name {
185
- white-space: nowrap;
186
- overflow: hidden;
187
- min-width: 0px;
188
- padding: 6px;
189
- text-overflow: ellipsis;
190
- font-size: 13px;
191
- font-weight: 400;
192
- color: rgba(0, 0, 0, 0.65);
193
- }
194
-
195
- .tg-sort-arrow-container {
196
- margin-left: 4px;
197
- display: flex;
198
- flex-direction: column;
199
- }
200
-
201
- .tg-sort-arrow-container .bp3-icon {
202
- display: none;
203
- }
204
-
205
- .tg-sort-arrow-container > *:hover {
206
- background: rgba(167, 182, 194, 0.3);
207
- }
208
-
209
- .tg-filter-menu-button {
210
- cursor: pointer;
211
- display: none;
212
- color: darkgrey;
213
- margin-right: 4px;
214
- }
215
-
216
- .tg-filter-menu-button:hover {
217
- color: #5c7080;
218
- }
219
-
220
- .tg-filter-menu-button.tg-active-filter {
221
- color: #106ba3;
222
- }
223
-
224
- /* this keeps the buttons from jumping around on hover */
225
- .tg-react-table-column-header.sort-active .tg-filter-menu-button {
226
- display: block !important;
227
- opacity: 0;
228
- }
229
-
230
- .tg-filter-menu-button.tg-active-filter,
231
- .tg-sort-arrow-container .bp3-icon.active,
232
- body:not(.drag-active)
233
- .tg-react-table-column-header:hover
234
- .tg-sort-arrow-container
235
- .bp3-icon,
236
- body:not(.drag-active)
237
- .tg-react-table-column-header:hover
238
- .tg-filter-menu-button,
239
- .tg-filter-menu-button.tg-active-filter,
240
- .tg-react-table-column-header .bp3-popover-open .tg-filter-menu-button {
241
- display: block !important;
242
- opacity: 1 !important;
243
- }
244
-
245
- .data-table-footer {
246
- display: flex;
247
- flex-wrap: wrap;
248
- align-items: center;
249
- margin-top: 20px;
250
- }
251
-
252
- .ReactTable {
253
- user-select: none;
254
- background: #f7f7f7;
255
- }
256
-
257
- .ReactTable .rt-thead {
258
- box-shadow: none;
259
- border-bottom: 1px solid rgba(0, 0, 0, 0.05);
260
- position: sticky;
261
- top: 0px;
262
- background: #ebf1f5;
263
- z-index: 2;
264
- }
265
- /* tnr: this is a hack to make cypress be able to correctly click the table without the sticky header getting in the way. remove me once https://github.com/cypress-io/cypress/issues/871 is fixed */
266
- .in_cypress_test .ReactTable .rt-thead {
267
- position: unset;
268
- }
269
-
270
- .bp3-dark .ReactTable .rt-thead {
271
- background: #202b33;
272
- }
273
-
274
- .ReactTable .rt-tbody {
275
- background: white;
276
- overflow: visible !important;
277
- }
278
-
279
- .ReactTable .rt-tbody .rt-td {
280
- cursor: pointer;
281
- border-right: none;
282
- color: rgba(0, 0, 0, 0.65);
283
- font-size: 12px;
284
- display: flex;
285
- align-items: center;
286
- padding: 12px 12px;
287
- }
288
- /* .ReactTable .rt-tbody .rt-td.isCleanRow {
289
- opacity: 0.5;
290
- } */
291
-
292
- /* fix padding in custom row expander cell */
293
- .ReactTable .rt-tbody .rt-expandable {
294
- padding: 3px 5px;
295
- }
296
-
297
- .ReactTable .rt-tbody .rt-tr-group {
298
- border-bottom-color: rgb(233, 233, 233);
299
- }
300
-
301
- .ReactTable .rt-tr-group.selected {
302
- background: #e4f3f8 !important;
303
- }
304
-
305
- .ReactTable .rt-tr-group.disabled {
306
- opacity: 0.6;
307
- }
308
-
309
- .ReactTable .rt-tr-group.disabled .rt-td {
310
- cursor: not-allowed;
311
- }
312
-
313
- .dt-isViewable .ReactTable .rt-tr-group.selected .dt-eyeIcon {
314
- color: #137cbd;
315
- transform: scale(1.2);
316
- }
317
-
318
- .ReactTable .rt-tbody .rt-td {
319
- padding: 8px 8px;
320
- }
321
- :root {
322
- --cell-border-width: 1px;
323
- --cell-no-border: var(--cell-border-width) solid rgba(212, 212, 212, 0.07);
324
- --cell-border-color: rgb(75, 137, 255);
325
- }
326
-
327
- .ReactTable.isCellEditable .rt-td {
328
- border: var(--cell-border-width) solid rgba(212, 212, 212, 0.2);
329
- }
330
-
331
- .ReactTable .rt-tbody .rt-td.isSelectedCell {
332
- overflow: visible;
333
- z-index: 1;
334
- background: #005eff1e;
335
- }
336
-
337
- .ReactTable .rt-tbody .rt-td.isSelectedCell.isPrimarySelected {
338
- border: var(--cell-border-width) solid var(--cell-border-color);
339
- box-shadow: 0 0 0 1px rgb(75 137 255);
340
- }
341
-
342
- .ReactTable .rt-tbody .rt-td.isSelectedCell.isSecondarySelected {
343
- border: var(--cell-border-width) solid var(--cell-border-color);
344
- }
345
-
346
- .ReactTable
347
- .rt-tbody
348
- .rt-td.isSelectedCell.isSecondarySelected.noSelectedTopBorder {
349
- border-top: var(--cell-no-border);
350
- }
351
- .ReactTable
352
- .rt-tbody
353
- .rt-td.isSelectedCell.isSecondarySelected.noSelectedRightBorder {
354
- border-right: var(--cell-no-border);
355
- }
356
- .ReactTable
357
- .rt-tbody
358
- .rt-td.isSelectedCell.isSecondarySelected.noSelectedBottomBorder {
359
- border-bottom: var(--cell-no-border);
360
- }
361
- .ReactTable
362
- .rt-tbody
363
- .rt-td.isSelectedCell.isSecondarySelected.noSelectedLeftBorder {
364
- border-left: var(--cell-no-border);
365
- }
366
-
367
- .ReactTable .rt-tbody .rt-td.isSelectedCell.isDropdownCell {
368
- padding-top: 0px;
369
- padding-bottom: 0px;
370
- }
371
- .ReactTable .rt-tbody .rt-td.hasCellError {
372
- background-color: rgba(226, 50, 50, 0.61);
373
- }
374
- .ReactTable .rt-tbody .rt-td.isBooleanCell {
375
- overflow: visible;
376
- }
377
- .ReactTable .rt-tbody .rt-td.selectedForUpdate {
378
- border: var(--cell-border-width) dashed var(--cell-border-color);
379
- }
380
-
381
- .tg-compact-table .rt-tbody .rt-td {
382
- padding: 4px 4px;
383
- display: flex;
384
- align-items: center;
385
- }
386
-
387
- .tg-extra-compact-table .rt-tbody .rt-td {
388
- padding: 0px 0px;
389
- display: flex;
390
- align-items: center;
391
- }
392
-
393
- .ReactTable .rt-thead .rt-th.tg-react-table-checkbox-header-container,
394
- .ReactTable .rt-tbody .rt-td.tg-react-table-checkbox-cell-container {
395
- display: flex;
396
- align-items: center;
397
- justify-content: center;
398
- padding: 0;
399
- }
400
-
401
- .tg-react-table-checkbox-header-container .bp3-control,
402
- .tg-react-table-checkbox-cell-container .bp3-control {
403
- margin-bottom: 0;
404
- margin-top: 0;
405
- /* there is a weird padding on the blueprint checkbox, so this centers it some */
406
- padding-left: 18px;
407
- }
408
-
409
- .tg-react-table-checkbox-header-container .bp3-control-indicator,
410
- .tg-react-table-checkbox-cell-container .bp3-control-indicator {
411
- margin-left: -10px !important;
412
- }
413
-
414
- .tg-compact-table .tg-react-table-name {
415
- padding: 6px;
416
- padding-left: 4px;
417
- }
418
-
419
- .tg-extra-compact-table .tg-react-table-name {
420
- padding: 4px;
421
- padding-left: 2px;
422
- }
423
-
424
- .ReactTable .-loading.disabled {
425
- cursor: not-allowed;
426
- }
427
-
428
- /* to get the height to resize based on its container: */
429
- .ReactTable {
430
- height: 100%;
431
- display: flex;
432
- flex-direction: column;
433
- }
434
-
435
- .ReactTable .rt-table {
436
- /* flex: 100000 0 auto; */
437
- overflow: auto !important;
438
- }
439
-
440
- .-pagination,
441
- .rt-body {
442
- flex: 1 0 auto;
443
- }
444
-
445
- .tg-dropdown-cell-edit-container {
446
- width: 100%;
447
- }
448
-
449
- .rt-td.isDropdownCell {
450
- transition: 0s;
451
- }
452
- .rt-td.isEditingCell.isDropdownCell {
453
- padding: 0;
454
- /* max-height: 24px; */
455
- }
456
-
457
- .tg-dropdown-cell-edit-container .bp3-tag-input .bp3-button {
458
- margin: 0;
459
- }
460
- /* .tg-dropdown-cell-edit-container .bp3-tag-input .bp3-tag-input-values > * {
461
- margin-bottom: 0;
462
- } */
463
- .tg-dropdown-cell-edit-container:not(.tg-dropdown-cell-edit-container-multi)
464
- .bp3-tag-input {
465
- min-height: 0;
466
- max-height: 22px;
467
- }
468
-
469
- .tg-dropdown-cell-edit-container .bp3-tag-input-values {
470
- margin-top: 0;
471
- margin-right: 0;
472
- }
473
-
474
- .tg-dropdown-cell-edit-container .bp3-input {
475
- background: #f7f7f7 !important;
476
- box-shadow: none !important;
477
- }
478
-
479
- .ReactTable .rt-thead .rt-th {
480
- transition-property: unset;
481
- padding: 0;
482
- }
483
-
484
- .ReactTable .rt-thead .rt-th,
485
- .ReactTable .rt-thead .rt-td {
486
- border-right: none;
487
- }
488
-
489
- .ReactTable .rt-thead .rt-resizable-header {
490
- border-right: 1px solid #e1e8ed;
491
- }
492
-
493
- .bp3-dark .ReactTable .rt-thead .rt-resizable-header {
494
- border-right: 1px solid #202b33;
495
- }
496
-
497
- .ReactTable .rt-thead .rt-resizable-header:hover {
498
- border-right: 1px solid #ced9e0;
499
- }
500
-
501
- .show-on-hover {
502
- color: #fff;
503
- font-size: 13px !important;
504
- }
505
-
506
- .hoverable:hover .show-on-hover {
507
- display: inline !important;
508
- color: #ccc;
509
- }
510
-
511
- .ReactTable .rt-noData {
512
- z-index: unset;
513
- margin-top: 5px;
514
- }
515
-
516
- /* dark styles */
517
- .bp3-dark .ReactTable {
518
- background: #182026 !important;
519
- color: #f5f8fa !important;
520
- border-color: #293742;
521
- }
522
- /* dark styles */
523
- .bp3-dark .ReactTable .rt-tbody {
524
- background: #30404d !important;
525
- }
526
- .ReactTable .rt-thead.-header {
527
- box-shadow: none;
528
- }
529
- .bp3-dark .ReactTable .rt-thead.-header {
530
- color: #f5f8fa !important;
531
- }
532
-
533
- .bp3-dark .ReactTable .rt-tbody .rt-td,
534
- .bp3-dark .tg-react-table-name {
535
- color: #f5f8fa !important;
536
- }
537
-
538
- .bp3-dark .ReactTable .rt-noData {
539
- background: #202b33 !important;
540
- color: inherit !important;
541
- }
542
-
543
- .bp3-dark .ReactTable .-loading {
544
- background: #30404d !important;
545
- }
546
-
547
- .bp3-dark .ReactTable .-loading > div {
548
- color: #f5f8fa !important;
549
- }
550
-
551
- .bp3-dark .ReactTable .rt-tr-group.selected {
552
- background: #26738cb0 !important;
553
- }
554
-
555
- .dt-isViewable .ReactTable .rt-tr-group.selected {
556
- background: inherit !important;
557
- }
558
-
559
- .bp3-dark .ReactTable .rt-thead .rt-resizable-header:hover {
560
- border-right-color: #738694;
561
- }
562
-
563
- .bp3-dark .data-table-container.fullscreen {
564
- background: #293742;
565
- }
566
-
567
- .data-table-container .ReactTable .rt-resizer {
568
- width: 10px;
569
- right: -5px;
570
- }
571
-
572
- .bp3-dark .dt-minimalStyle .ReactTable {
573
- background: transparent !important;
574
- }
575
- .bp3-dark .dt-minimalStyle .ReactTable {
576
- border-color: transparent !important;
577
- }
578
- .bp3-dark .dt-minimalStyle .ReactTable * {
579
- border-color: transparent !important ;
580
- }
581
- .dt-minimalStyle .ReactTable {
582
- background: transparent !important;
583
- }
584
- .dt-minimalStyle .ReactTable {
585
- border-color: transparent !important;
586
- }
587
- .dt-minimalStyle .ReactTable * {
588
- border-color: transparent !important ;
589
- }
590
-
591
- .bp3-dark .tg-dropdown-cell-edit-container .bp3-input {
592
- background: rgb(48, 64, 77) !important;
593
- }
594
-
595
- .cell-edit-dropdown:hover {
596
- color: var(--cell-border-color);
597
- }
598
- .tgBorderBlue {
599
- outline: 1px solid rgb(75, 149, 210);
600
- }
601
- .data-table-container-inner {
602
- min-height: 150px;
603
- position: relative;
604
- height: 100%;
605
- width: 100%;
606
- display: flex;
607
- flex-direction: column;
608
- }
@@ -1,55 +0,0 @@
1
- import { isEntityClean } from "./isEntityClean";
2
- import { getSelectedRowsFromEntities } from "./selection";
3
- import { removeCleanRows } from "./removeCleanRows";
4
- import { getIdOrCodeOrIndex } from "./getIdOrCodeOrIndex";
5
- import { getRecordsFromIdMap } from "./withSelectedEntities";
6
- import { formatPasteData } from "./formatPasteData";
7
- import { getFieldPathToField } from "./getFieldPathToField";
8
- import {
9
- defaultParsePaste,
10
- getEntityIdToEntity,
11
- getFieldPathToIndex,
12
- getNumberStrAtEnd,
13
- stripNumberAtEnd
14
- } from "./utils";
15
- import { getAllRows } from "./getAllRows";
16
- import { getNewEntToSelect } from "./getNewEntToSelect";
17
- import { getLastSelectedEntity } from "./getLastSelectedEntity";
18
- import { getCellInfo } from "./getCellInfo";
19
- import { getCellCopyText } from "./getCellCopyText";
20
- import { getRowCopyText } from "./getRowCopyText";
21
- import { handleCopyHelper } from "./handleCopyHelper";
22
- import { handleCopyRows } from "./handleCopyRows";
23
- import { handleCopyColumn } from "./handleCopyColumn";
24
- import { isBottomRightCornerOfRectangle } from "./isBottomRightCornerOfRectangle";
25
- import { handleCopyTable } from "./handleCopyTable";
26
- import { PRIMARY_SELECTED_VAL } from "./primarySelectedValue";
27
- import { useTableEntities } from "./useTableEntities";
28
-
29
- export {
30
- defaultParsePaste,
31
- formatPasteData,
32
- getAllRows,
33
- getCellCopyText,
34
- getCellInfo,
35
- getEntityIdToEntity,
36
- getFieldPathToIndex,
37
- getFieldPathToField,
38
- getIdOrCodeOrIndex,
39
- getLastSelectedEntity,
40
- getNewEntToSelect,
41
- getNumberStrAtEnd,
42
- getRecordsFromIdMap,
43
- getRowCopyText,
44
- getSelectedRowsFromEntities,
45
- handleCopyColumn,
46
- handleCopyHelper,
47
- handleCopyRows,
48
- handleCopyTable,
49
- isBottomRightCornerOfRectangle,
50
- isEntityClean,
51
- PRIMARY_SELECTED_VAL,
52
- removeCleanRows,
53
- stripNumberAtEnd,
54
- useTableEntities
55
- };