@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,275 +0,0 @@
1
- .tg-flex-form-content .bp3-form-content {
2
- display: flex;
3
- }
4
-
5
- .error-popover {
6
- margin: 5px;
7
- color: red;
8
- }
9
-
10
- .te-file-upload-input {
11
- min-width: 140px;
12
- }
13
-
14
- .ant-upload.ant-upload-drag {
15
- border-width: 2px;
16
- }
17
-
18
- .tg-upload-inner {
19
- margin: 10px;
20
- display: flex;
21
- flex-direction: column;
22
- align-items: center;
23
- font-size: 16px;
24
- }
25
- .tg-dropzone.tg-dropzone-minimal {
26
- height: 30px !important;
27
- width: fit-content !important;
28
- }
29
- .tg-dropzone-minimal .tg-upload-inner {
30
- flex-direction: row;
31
- margin: 4px;
32
- }
33
- .tg-dropzone-minimal .bp3-icon {
34
- flex-direction: row;
35
- margin-right: 5px;
36
- }
37
-
38
- .tg-hide-drop-target .ant-upload.ant-upload-drag {
39
- display: none;
40
- }
41
-
42
- .tg-dropzone {
43
- width: 100% !important;
44
- height: 100% !important;
45
- border-width: 2px;
46
- border-color: #d9d9d9;
47
- border-style: dashed;
48
- border-radius: 5px;
49
- cursor: pointer;
50
- transition: all 1s;
51
- }
52
- .tg-dropzone:hover {
53
- border-color: rgb(91, 157, 211);
54
- }
55
- .tg-dropzone-active {
56
- border-color: rgb(91, 157, 211);
57
- }
58
- .tg-dropzone-accept {
59
- border-color: rgb(123, 214, 150);
60
- }
61
- .tg-dropzone-reject {
62
- border-color: rgb(91, 157, 211);
63
- }
64
- .tg-dropzone-disabled {
65
- cursor: not-allowed;
66
- border-color: rgb(136, 133, 132) !important;
67
- opacity: 0.8;
68
- }
69
- .tg-upload-file-list-item {
70
- display: flex;
71
- justify-content: space-between;
72
- margin: 2px;
73
- border-radius: 3px;
74
- padding: 2px;
75
- }
76
- .tg-upload-file-list-item:hover {
77
- background: rgb(215, 238, 255);
78
- }
79
- .clickableIcon {
80
- cursor: pointer;
81
- }
82
- .clickableIcon:hover {
83
- opacity: 0.7;
84
- }
85
-
86
- .tg-upload-file-list-item a {
87
- display: block;
88
- white-space: nowrap;
89
- overflow: hidden;
90
- text-overflow: ellipsis;
91
- }
92
-
93
- .tg-upload-file-list-item-overflow {
94
- overflow: auto;
95
- height: 150px;
96
- }
97
-
98
- .tg-upload-file-list-counter {
99
- position: absolute;
100
- padding: 5px;
101
- }
102
-
103
- .tg-spin {
104
- animation-name: spin;
105
- animation-duration: 1500ms;
106
- animation-iteration-count: infinite;
107
- animation-timing-function: linear;
108
- }
109
- @keyframes spin {
110
- from {
111
- transform: rotate(0deg);
112
- }
113
- to {
114
- transform: rotate(360deg);
115
- }
116
- }
117
-
118
- /* .Select-multi-value-wrapper {
119
- max-height: 100px;
120
- overflow: scroll;
121
- } */
122
-
123
- /* dark styles */
124
- .bp3-dark .Select.is-open > .Select-control,
125
- .bp3-dark .Select-control,
126
- .bp3-dark .Select.is-disabled > .Select-control {
127
- background: rgba(16, 22, 26, 0.3);
128
- box-shadow:
129
- 0 0 0 0 rgba(19, 124, 189, 0),
130
- 0 0 0 0 rgba(19, 124, 189, 0),
131
- 0 0 0 0 rgba(19, 124, 189, 0),
132
- inset 0 0 0 1px rgba(16, 22, 26, 0.3),
133
- inset 0 1px 1px rgba(16, 22, 26, 0.4);
134
- background: rgba(16, 22, 26, 0.3);
135
- color: #f5f8fa;
136
- }
137
-
138
- .bp3-dark .Select.is-focused:not(.is-open) > .Select-control {
139
- background: rgba(16, 22, 26, 0.3);
140
- color: #f5f8fa;
141
- }
142
-
143
- .bp3-dark .Select-placeholder,
144
- .bp3-dark .Select--single > .Select-control .Select-value {
145
- color: rgb(191, 204, 214, 0.5); /*#bfccd6*/
146
- }
147
-
148
- .bp3-dark .Select-control {
149
- border: none !important;
150
- }
151
-
152
- .bp3-dark
153
- .Select.has-value.Select--single
154
- > .Select-control
155
- .Select-value
156
- .Select-value-label,
157
- .bp3-dark
158
- .Select.has-value.is-pseudo-focused.Select--single
159
- > .Select-control
160
- .Select-value
161
- .Select-value-label,
162
- .bp3-dark .Select-option.is-selected {
163
- color: #f5f8fa;
164
- }
165
-
166
- .bp3-dark .Select-option {
167
- background: #30404d;
168
- color: #f5f8fa;
169
- }
170
-
171
- .bp3-dark .Select-menu-outer {
172
- border: 1px solid #26738cb0;
173
- background: #202b33;
174
- }
175
-
176
- .bp3-dark .Select-option.is-focused {
177
- background: rgba(0, 126, 255, 0.08);
178
- color: #f5f8fa;
179
- }
180
-
181
- .bp3-dark .tg-upload-file-list-item:hover {
182
- background: #26738cb0;
183
- }
184
-
185
- .tg-tooltipError .bp3-popover-wrapper {
186
- width: 100%;
187
- }
188
-
189
- .tg-no-fill-field {
190
- display: table !important;
191
- }
192
-
193
- .item-upload-container {
194
- padding: 5px;
195
- width: 290px;
196
- }
197
-
198
- .item-upload {
199
- display: flex;
200
- justify-content: space-between;
201
- align-items: center;
202
- }
203
-
204
- /* .bp3-control {
205
- display: flex;
206
- align-items: center;
207
- } */
208
-
209
- .bp3-form-group.bp3-inline .bp3-form-content {
210
- flex: 1;
211
- }
212
-
213
- .bp3-dark input {
214
- color: #f5f8fa;
215
- }
216
-
217
- .tg-no-fill-field .bp3-checkbox {
218
- display: flex;
219
- align-items: center;
220
- }
221
-
222
- .bp3-form-group .info-helper-wrapper:not(.info-helper-wrapper-noMarginTop) {
223
- margin-top: -9px !important;
224
- }
225
-
226
- .generateDefaultDot {
227
- cursor: pointer;
228
- border-radius: 50%;
229
- background: #ffca00;
230
- box-shadow: 0px 0px 2px black;
231
- height: 8px;
232
- width: 8px;
233
- }
234
- .bp3-dark .generateDefaultDot {
235
- background: yellow;
236
- }
237
-
238
- .bp3-label {
239
- font-size: 13px;
240
- font-weight: 600;
241
- }
242
-
243
- :not(.no-inline-label-margins).bp3-inline .bp3-label {
244
- /* text-align: right; */
245
- padding-right: 20px;
246
- min-width: 100px;
247
- }
248
-
249
- .bp3-dark .tg-color-picker-selector input {
250
- color: #222222;
251
- }
252
-
253
- .form-separator {
254
- p {
255
- display: flex;
256
- align-items: center;
257
- width: 100%;
258
- }
259
- p::before {
260
- content: "";
261
- display: block;
262
- width: 100%;
263
- height: 1px;
264
- background-color: #e1e4e8;
265
- margin-right: 16px;
266
- }
267
- p::after {
268
- content: "";
269
- display: block;
270
- width: 100%;
271
- height: 1px;
272
- background-color: #e1e4e8;
273
- margin-left: 16px;
274
- }
275
- }
@@ -1,6 +0,0 @@
1
- export const REQUIRED_ERROR = "This field is required.";
2
-
3
- export const fieldRequired = value =>
4
- !value || (Array.isArray(value) && !value.length)
5
- ? REQUIRED_ERROR
6
- : undefined;
@@ -1,79 +0,0 @@
1
- import React from "react";
2
- import {
3
- Dialog,
4
- Tab,
5
- Tabs,
6
- KeyCombo,
7
- Classes /*, Tooltip*/
8
- } from "@blueprintjs/core";
9
- // import { startCase } from "lodash-es";
10
- import classNames from "classnames";
11
- import {
12
- getHotkeyProps /*, hotkeysById, comboToLabel*/
13
- } from "../utils/hotkeyUtils";
14
-
15
- import "./style.css";
16
-
17
- export default function HotkeysDialog(props) {
18
- if (!props.hotkeySets) {
19
- console.error("Missing hotkeySets in HotkeysDialog");
20
- return null;
21
- }
22
- const sections = Object.keys(props.hotkeySets);
23
- return (
24
- <Dialog
25
- isOpen={props.isOpen}
26
- onClose={props.onClose}
27
- title={props.dialogTitle || "Keyboard Shortcuts"}
28
- >
29
- <Tabs className="tg-hotkeys-dialog">
30
- {sections.map(name => (
31
- <Tab
32
- key={name}
33
- id={name}
34
- title={sections.length === 1 ? undefined : name}
35
- panel={
36
- <div className="tg-table-wrapper">
37
- <table
38
- className={classNames(
39
- Classes.HTML_TABLE,
40
- Classes.HTML_TABLE_STRIPED,
41
- Classes.HTML_TABLE_BORDERED
42
- )}
43
- >
44
- <thead>
45
- <tr>
46
- <th>Action</th>
47
- <th>Shortcut</th>
48
- </tr>
49
- </thead>
50
- <tbody>
51
- {Object.keys(props.hotkeySets[name]).map(id => {
52
- const def = getHotkeyProps(
53
- props.hotkeySets[name][id],
54
- id
55
- );
56
- return (
57
- <tr key={id}>
58
- <td>{def.label}</td>
59
- <td>
60
- <KeyCombo combo={def.combo} />
61
- {/* <Tooltip
62
- content={comboToLabel(def.combo, false)}
63
- >
64
- {comboToLabel(def.combo)}
65
- </Tooltip> */}
66
- </td>
67
- </tr>
68
- );
69
- })}
70
- </tbody>
71
- </table>
72
- </div>
73
- }
74
- />
75
- ))}
76
- </Tabs>
77
- </Dialog>
78
- );
79
- }
@@ -1,54 +0,0 @@
1
- .tg-hotkeys-dialog .bp3-tab-list {
2
- /* border-top: 1px solid #ddd; */
3
- display: flex;
4
- justify-content: center;
5
- padding-left: 10px;
6
- margin-top: 5px;
7
- }
8
-
9
- .tg-hotkeys-dialog table {
10
- table-layout: fixed;
11
- margin: 0 5px 5px;
12
- width: calc(100% - 10px);
13
- border-spacing: 0;
14
- }
15
-
16
- .tg-hotkeys-dialog .bp3-tab-panel {
17
- margin-top: 5px;
18
- padding: 10px;
19
- }
20
- .tg-hotkeys-dialog thead,
21
- .tg-hotkeys-dialog tbody tr {
22
- display: table;
23
- width: 100%;
24
- table-layout: fixed; /* even columns width , fix width of table too*/
25
- }
26
-
27
- .tg-hotkeys-dialog .tg-table-wrapper tbody {
28
- display: block;
29
- max-height: 55vh;
30
- overflow-y: auto;
31
- }
32
-
33
- .tg-hotkeys-dialog th {
34
- width: 50%;
35
- font-weight: bold;
36
- color: black;
37
- border-bottom: 3px solid #ddd;
38
- }
39
-
40
- .tg-hotkeys-dialog tr:nth-child(2n) td {
41
- background-color: #f8f8f8;
42
- }
43
- .bp3-dark .tg-hotkeys-dialog tr:nth-child(2n) td {
44
- background-color: #3e4b6d;
45
- }
46
-
47
- .tg-hotkeys-dialog td,
48
- .tg-hotkeys-dialog th {
49
- padding: 8px 12px;
50
- }
51
-
52
- .tg-hotkeys-dialog td:first-child {
53
- border-right: 1px solid lightgrey;
54
- }
@@ -1,78 +0,0 @@
1
- import React from "react";
2
- import { Popover, Button, Tooltip, Icon } from "@blueprintjs/core";
3
- import classnames from "classnames";
4
- import "./style.css";
5
- import { popoverOverflowModifiers } from "..";
6
-
7
- export default ({
8
- className,
9
- content,
10
- children,
11
- icon = "info-sign",
12
- isPopover,
13
- isButton,
14
- size,
15
- isInline,
16
- clickable,
17
- color,
18
- noMarginTop,
19
- popoverProps = {},
20
- disabled,
21
- displayToSide,
22
- style,
23
- ...rest
24
- }) => {
25
- const IconToUse = isButton ? Button : Icon;
26
- const iconProps = {
27
- icon,
28
- color,
29
- disabled
30
- };
31
- if (!isButton) iconProps.iconSize = size;
32
-
33
- const IconInner = <IconToUse {...iconProps} {...rest} />;
34
- let toReturn;
35
- const toolTipOrPopoverProps = {
36
- disabled:
37
- disabled ||
38
- (!isPopover && window.Cypress && !window.Cypress.allowInfoHelperTooltips),
39
- popoverClassName: "tg-info-helper-popover bp3-tooltip",
40
- content: content || children,
41
- modifiers: popoverOverflowModifiers,
42
- ...popoverProps
43
- };
44
- if (displayToSide) {
45
- toReturn = (
46
- <React.Fragment>
47
- {IconInner}
48
- <span style={{ paddingLeft: 5, fontStyle: "italic" }}>
49
- {content || children}
50
- </span>
51
- </React.Fragment>
52
- );
53
- } else if (isPopover) {
54
- toReturn = <Popover {...toolTipOrPopoverProps} target={IconInner} />;
55
- } else {
56
- toReturn = <Tooltip {...toolTipOrPopoverProps} target={IconInner} />;
57
- }
58
- const El = isInline ? "span" : "div";
59
- return (
60
- <El
61
- style={{
62
- ...(clickable ? { cursor: "pointer" } : {}),
63
- ...(isInline ? {} : { display: "flex" }),
64
- ...style
65
- }}
66
- className={classnames(
67
- "info-helper-wrapper",
68
- {
69
- "info-helper-wrapper-noMarginTop": noMarginTop,
70
- "info-helper-clickable": isPopover
71
- },
72
- className
73
- )}
74
- >
75
- {toReturn}
76
- </El>
77
- );
78
- };
@@ -1,7 +0,0 @@
1
- .bp3-popover.tg-info-helper-popover .bp3-popover-content {
2
- max-width: 340px;
3
- }
4
-
5
- .info-helper-clickable .bp3-popover-target {
6
- cursor: pointer;
7
- }
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- import { Classes } from "@blueprintjs/core";
3
- import classNames from "classnames";
4
-
5
- const intentToClass = {
6
- danger: Classes.INTENT_DANGER,
7
- warning: Classes.INTENT_WARNING,
8
- success: Classes.INTENT_SUCCESS,
9
- primary: Classes.INTENT_PRIMARY
10
- };
11
-
12
- export default function IntentText({ intent, text, children }) {
13
- return (
14
- <div className={classNames(Classes.FORM_GROUP, intentToClass[intent])}>
15
- <div className={Classes.FORM_HELPER_TEXT}>{text || children}</div>
16
- </div>
17
- );
18
- }
@@ -1,70 +0,0 @@
1
- import React, { useState, useEffect } from "react";
2
- import DNALoader from "../DNALoader";
3
- import "./style.css";
4
- import { BounceLoader } from "../BounceLoader";
5
-
6
- const Loading = ({
7
- loading,
8
- style: userStyle,
9
- className,
10
- containerStyle = {},
11
- children,
12
- displayInstantly = false,
13
- bounce = false,
14
- withTimeout,
15
- inDialog,
16
- centeredInPage
17
- }) => {
18
- const [longerThan200MS, setLongerThan200MS] = useState(false);
19
-
20
- useEffect(() => {
21
- const timeoutId = setTimeout(() => {
22
- setLongerThan200MS(true);
23
- }, 200);
24
-
25
- return () => {
26
- clearTimeout(timeoutId);
27
- };
28
- }, []);
29
-
30
- const style = {
31
- ...userStyle,
32
- ...(inDialog && { minHeight: 120 })
33
- };
34
-
35
- const LoaderComp = bounce || inDialog ? BounceLoader : DNALoader;
36
-
37
- if (loading || !children) {
38
- if (
39
- !displayInstantly &&
40
- !longerThan200MS &&
41
- ((!bounce && !inDialog) || withTimeout)
42
- ) {
43
- return <div />;
44
- }
45
- return (
46
- <div
47
- className="tg-loader-container tg-flex justify-center align-center"
48
- style={{
49
- width: "100%",
50
- ...containerStyle,
51
- ...(centeredInPage && {
52
- width: undefined,
53
- zIndex: 20,
54
- height: 10,
55
- position: "fixed",
56
- top: "50%",
57
- left: "50%",
58
- transform: "translate(-50%, 0)"
59
- })
60
- }}
61
- >
62
- <LoaderComp style={style} className={className} />
63
- </div>
64
- );
65
- } else {
66
- return children || null;
67
- }
68
- };
69
-
70
- export default Loading;
@@ -1,4 +0,0 @@
1
- .tg-loader-container {
2
- height: 100%;
3
- align-self: center;
4
- }