@teselagen/ui 0.7.32 → 0.7.33-beta.1
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/DataTable/utils/filterLocalEntitiesToHasura.d.ts +5 -0
- package/DataTable/utils/initializeHasuraWhereAndFilter.d.ts +2 -0
- package/DataTable/utils/queryParams.d.ts +8 -12
- package/DataTable/utils/simplifyHasuraWhere.d.ts +1 -0
- package/DataTable/utils/tableQueryParamsToHasuraClauses.d.ts +14 -0
- package/{src/DataTable/FilterAndSortMenu.js → FilterAndSortMenu.js} +27 -30
- package/filterLocalEntitiesToHasura.js +216 -0
- package/index.cjs.js +695 -967
- package/index.d.ts +1 -0
- package/index.es.js +695 -967
- package/initializeHasuraWhereAndFilter.js +27 -0
- package/{src/utils/isBeingCalledExcessively.js → isBeingCalledExcessively.js} +0 -1
- package/package.json +1 -1
- package/queryParams.js +336 -0
- package/simplifyHasuraWhere.js +80 -0
- package/tableQueryParamsToHasuraClauses.js +113 -0
- package/{src/DataTable/utils/withTableParams.js → withTableParams.js} +1 -14
- package/src/AdvancedOptions.spec.js +0 -26
- package/src/AsyncValidateFieldSpinner/index.js +0 -12
- package/src/BlueprintError/index.js +0 -14
- package/src/BounceLoader/index.js +0 -16
- package/src/BounceLoader/style.css +0 -45
- package/src/CollapsibleCard/index.js +0 -68
- package/src/CollapsibleCard/style.css +0 -23
- package/src/DNALoader/index.js +0 -20
- package/src/DNALoader/style.css +0 -251
- package/src/DataTable/index.js +0 -3213
- package/src/DataTable/style.css +0 -608
- package/src/DataTable/utils/index.js +0 -55
- package/src/DataTable/utils/queryParams.js +0 -1058
- package/src/DialogFooter/index.js +0 -86
- package/src/DialogFooter/style.css +0 -9
- package/src/FormComponents/index.js +0 -1266
- package/src/FormComponents/style.css +0 -275
- package/src/FormComponents/utils.js +0 -6
- package/src/HotkeysDialog/index.js +0 -79
- package/src/HotkeysDialog/style.css +0 -54
- package/src/InfoHelper/index.js +0 -78
- package/src/InfoHelper/style.css +0 -7
- package/src/IntentText/index.js +0 -18
- package/src/Loading/index.js +0 -70
- package/src/Loading/style.css +0 -4
- package/src/MenuBar/index.js +0 -423
- package/src/MenuBar/style.css +0 -45
- package/src/PromptUnsavedChanges/index.js +0 -38
- package/src/ResizableDraggableDialog/index.js +0 -141
- package/src/ResizableDraggableDialog/style.css +0 -42
- package/src/ScrollToTop/index.js +0 -72
- package/src/TagSelect/index.js +0 -69
- package/src/TagSelect/style.css +0 -13
- package/src/TgHtmlSelect/index.js +0 -20
- package/src/TgSelect/index.js +0 -537
- package/src/TgSelect/style.css +0 -61
- package/src/TgSuggest/index.js +0 -124
- package/src/Timeline/index.js +0 -15
- package/src/enhancers/withDialog/index.js +0 -196
- package/src/index.js +0 -87
- package/src/showConfirmationDialog/index.js +0 -148
- package/src/style.css +0 -265
- /package/{src/AdvancedOptions.js → AdvancedOptions.js} +0 -0
- /package/{src/AssignDefaultsModeContext.js → AssignDefaultsModeContext.js} +0 -0
- /package/{src/DataTable/CellDragHandle.js → CellDragHandle.js} +0 -0
- /package/{src/DataTable/ColumnFilterMenu.js → ColumnFilterMenu.js} +0 -0
- /package/{src/DataTable/Columns.js → Columns.js} +0 -0
- /package/{src/DataTable/DisabledLoadingComponent.js → DisabledLoadingComponent.js} +0 -0
- /package/{src/DataTable/DisplayOptions.js → DisplayOptions.js} +0 -0
- /package/{src/DropdownButton.js → DropdownButton.js} +0 -0
- /package/{src/DataTable/DropdownCell.js → DropdownCell.js} +0 -0
- /package/{src/DataTable/EditableCell.js → EditableCell.js} +0 -0
- /package/{src/FillWindow.css → FillWindow.css} +0 -0
- /package/{src/FillWindow.js → FillWindow.js} +0 -0
- /package/{src/FormComponents/FormSeparator.js → FormSeparator.js} +0 -0
- /package/{src/FormComponents/LoadingDots.js → LoadingDots.js} +0 -0
- /package/{src/MatchHeaders.js → MatchHeaders.js} +0 -0
- /package/{src/DataTable/PagingTool.js → PagingTool.js} +0 -0
- /package/{src/DataTable/RenderCell.js → RenderCell.js} +0 -0
- /package/{src/DataTable/SearchBar.js → SearchBar.js} +0 -0
- /package/{src/SimpleStepViz.js → SimpleStepViz.js} +0 -0
- /package/{src/DataTable/SortableColumns.js → SortableColumns.js} +0 -0
- /package/{src/DataTable/TableFormTrackerContext.js → TableFormTrackerContext.js} +0 -0
- /package/{src/Tag.js → Tag.js} +0 -0
- /package/{src/DataTable/ThComponent.js → ThComponent.js} +0 -0
- /package/{src/Timeline/TimelineEvent.js → TimelineEvent.js} +0 -0
- /package/{src/UploadCsvWizard.css → UploadCsvWizard.css} +0 -0
- /package/{src/UploadCsvWizard.js → UploadCsvWizard.js} +0 -0
- /package/{src/FormComponents/Uploader.js → Uploader.js} +0 -0
- /package/{src/utils/adHoc.js → adHoc.js} +0 -0
- /package/{src/autoTooltip.js → autoTooltip.js} +0 -0
- /package/{src/utils/basicHandleActionsWithFullState.js → basicHandleActionsWithFullState.js} +0 -0
- /package/{src/utils/browserUtils.js → browserUtils.js} +0 -0
- /package/{src/utils/combineReducersWithFullState.js → combineReducersWithFullState.js} +0 -0
- /package/{src/utils/commandControls.js → commandControls.js} +0 -0
- /package/{src/utils/commandUtils.js → commandUtils.js} +0 -0
- /package/{src/constants.js → constants.js} +0 -0
- /package/{src/DataTable/utils/convertSchema.js → convertSchema.js} +0 -0
- /package/{src/customIcons.js → customIcons.js} +0 -0
- /package/{src/DataTable/dataTableEnhancer.js → dataTableEnhancer.js} +0 -0
- /package/{src/DataTable/defaultFormatters.js → defaultFormatters.js} +0 -0
- /package/{src/DataTable/defaultValidators.js → defaultValidators.js} +0 -0
- /package/{src/utils/determineBlackOrWhiteTextColor.js → determineBlackOrWhiteTextColor.js} +0 -0
- /package/{src/DataTable/editCellHelper.js → editCellHelper.js} +0 -0
- /package/{src/DataTable/utils/formatPasteData.js → formatPasteData.js} +0 -0
- /package/{src/DataTable/utils/getAllRows.js → getAllRows.js} +0 -0
- /package/{src/DataTable/utils/getCellCopyText.js → getCellCopyText.js} +0 -0
- /package/{src/DataTable/utils/getCellInfo.js → getCellInfo.js} +0 -0
- /package/{src/DataTable/getCellVal.js → getCellVal.js} +0 -0
- /package/{src/utils/getDayjsFormatter.js → getDayjsFormatter.js} +0 -0
- /package/{src/DataTable/utils/getFieldPathToField.js → getFieldPathToField.js} +0 -0
- /package/{src/DataTable/utils/getIdOrCodeOrIndex.js → getIdOrCodeOrIndex.js} +0 -0
- /package/{src/DataTable/utils/getLastSelectedEntity.js → getLastSelectedEntity.js} +0 -0
- /package/{src/DataTable/utils/getNewEntToSelect.js → getNewEntToSelect.js} +0 -0
- /package/{src/FormComponents/getNewName.js → getNewName.js} +0 -0
- /package/{src/DataTable/utils/getRowCopyText.js → getRowCopyText.js} +0 -0
- /package/{src/DataTable/utils/getTableConfigFromStorage.js → getTableConfigFromStorage.js} +0 -0
- /package/{src/utils/getTextFromEl.js → getTextFromEl.js} +0 -0
- /package/{src/DataTable/getVals.js → getVals.js} +0 -0
- /package/{src/DataTable/utils/handleCopyColumn.js → handleCopyColumn.js} +0 -0
- /package/{src/DataTable/utils/handleCopyHelper.js → handleCopyHelper.js} +0 -0
- /package/{src/DataTable/utils/handleCopyRows.js → handleCopyRows.js} +0 -0
- /package/{src/DataTable/utils/handleCopyTable.js → handleCopyTable.js} +0 -0
- /package/{src/utils/handlerHelpers.js → handlerHelpers.js} +0 -0
- /package/{src/utils/hotkeyUtils.js → hotkeyUtils.js} +0 -0
- /package/{src/utils/hooks/index.js → index.js} +0 -0
- /package/{src/DataTable/utils/isBottomRightCornerOfRectangle.js → isBottomRightCornerOfRectangle.js} +0 -0
- /package/{src/DataTable/utils/isEntityClean.js → isEntityClean.js} +0 -0
- /package/{src/DataTable/isTruthy.js → isTruthy.js} +0 -0
- /package/{src/DataTable/isValueEmpty.js → isValueEmpty.js} +0 -0
- /package/{src/FormComponents/itemUpload.js → itemUpload.js} +0 -0
- /package/{src/utils/menuUtils.js → menuUtils.js} +0 -0
- /package/{src/utils/popoverOverflowModifiers.js → popoverOverflowModifiers.js} +0 -0
- /package/{src/DataTable/utils/primarySelectedValue.js → primarySelectedValue.js} +0 -0
- /package/{src/utils/pureNoFunc.js → pureNoFunc.js} +0 -0
- /package/{src/DataTable/utils/removeCleanRows.js → removeCleanRows.js} +0 -0
- /package/{src/utils/renderOnDoc.js → renderOnDoc.js} +0 -0
- /package/{src/rerenderOnWindowResize.js → rerenderOnWindowResize.js} +0 -0
- /package/{src/DataTable/utils/rowClick.js → rowClick.js} +0 -0
- /package/{src/DataTable/utils/selection.js → selection.js} +0 -0
- /package/{src/showAppSpinner.js → showAppSpinner.js} +0 -0
- /package/{src/showDialogOnDocBody.js → showDialogOnDocBody.js} +0 -0
- /package/{src/utils/showProgressToast.js → showProgressToast.js} +0 -0
- /package/{src/FormComponents/sortify.js → sortify.js} +0 -0
- /package/{src/Timeline/style.css → style.css} +0 -0
- /package/{src/utils/tagUtils.js → tagUtils.js} +0 -0
- /package/{src/utils/tgFormValues.js → tgFormValues.js} +0 -0
- /package/{src/enhancers/withDialog/tg_modalState.js → tg_modalState.js} +0 -0
- /package/{src/throwFormError.js → throwFormError.js} +0 -0
- /package/{src/toastr.js → toastr.js} +0 -0
- /package/{src/FormComponents/tryToMatchSchemas.js → tryToMatchSchemas.js} +0 -0
- /package/{src/typeToCommonType.js → typeToCommonType.js} +0 -0
- /package/{src/utils/hooks/useDeepEqualMemo.js → useDeepEqualMemo.js} +0 -0
- /package/{src/useDialog.js → useDialog.js} +0 -0
- /package/{src/utils/hooks/useStableReference.js → useStableReference.js} +0 -0
- /package/{src/DataTable/utils/useTableEntities.js → useTableEntities.js} +0 -0
- /package/{src/utils/useTraceUpdate.js → useTraceUpdate.js} +0 -0
- /package/{src/DataTable/utils/utils.js → utils.js} +0 -0
- /package/{src/DataTable/validateTableWideErrors.js → validateTableWideErrors.js} +0 -0
- /package/{src/DataTable/viewColumn.js → viewColumn.js} +0 -0
- /package/{src/enhancers/withField.js → withField.js} +0 -0
- /package/{src/enhancers/withFields.js → withFields.js} +0 -0
- /package/{src/enhancers/withLocalStorage.js → withLocalStorage.js} +0 -0
- /package/{src/utils/withSelectTableRecords.js → withSelectTableRecords.js} +0 -0
- /package/{src/DataTable/utils/withSelectedEntities.js → withSelectedEntities.js} +0 -0
- /package/{src/utils/withStore.js → withStore.js} +0 -0
- /package/{src/wrapDialog.js → wrapDialog.js} +0 -0
package/src/DataTable/style.css
DELETED
|
@@ -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
|
-
};
|