studiokit-scaffolding-js 7.0.12-next.2.9 → 7.0.13-alpha.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.
Files changed (390) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +137 -137
  3. package/lib/components/ActionList.d.ts +2 -2
  4. package/lib/components/ActionList.js +87 -166
  5. package/lib/components/AlertDialog.d.ts +3 -3
  6. package/lib/components/AlertDialog.js +18 -133
  7. package/lib/components/AlertWithIcon.js +52 -93
  8. package/lib/components/ConnectedModal.d.ts +2 -1
  9. package/lib/components/ConnectedModal.js +37 -43
  10. package/lib/components/Dropdowns/GroupsDropdown.d.ts +4 -4
  11. package/lib/components/Dropdowns/GroupsDropdown.js +82 -69
  12. package/lib/components/Dropdowns/ManagedNavDropdown.d.ts +2 -2
  13. package/lib/components/Dropdowns/ManagedNavDropdown.js +111 -99
  14. package/lib/components/Dropdowns/UserDropdown.js +70 -109
  15. package/lib/components/Dropdowns/index.js +11 -27
  16. package/lib/components/EntityOwnerList.d.ts +3 -3
  17. package/lib/components/EntityOwnerList.js +60 -52
  18. package/lib/components/Error.js +27 -107
  19. package/lib/components/ErrorBoundary.js +94 -133
  20. package/lib/components/ErrorMessage.d.ts +2 -2
  21. package/lib/components/ErrorMessage.js +14 -44
  22. package/lib/components/Forms/DateField.d.ts +2 -2
  23. package/lib/components/Forms/DateField.js +95 -63
  24. package/lib/components/Forms/TimeField.d.ts +2 -2
  25. package/lib/components/Forms/TimeField.js +108 -84
  26. package/lib/components/Forms/index.js +13 -27
  27. package/lib/components/Groups/CreateEditCopySaveButtons.d.ts +2 -2
  28. package/lib/components/Groups/CreateEditCopySaveButtons.js +14 -102
  29. package/lib/components/Groups/ExternalGroups/Attach.d.ts +7 -6
  30. package/lib/components/Groups/ExternalGroups/Attach.js +188 -213
  31. package/lib/components/Groups/ExternalGroups/Table.js +76 -183
  32. package/lib/components/Groups/GroupCreateOrEditCommonProps.js +1 -5
  33. package/lib/components/Groups/RosterSyncInfo.js +49 -140
  34. package/lib/components/HOC/AccessibleAppComponent.d.ts +2 -2
  35. package/lib/components/HOC/AccessibleAppComponent.js +124 -101
  36. package/lib/components/HOC/ActivityRequiredComponent.d.ts +14 -14
  37. package/lib/components/HOC/ActivityRequiredComponent.js +107 -93
  38. package/lib/components/HOC/AsyncComponent.d.ts +9 -9
  39. package/lib/components/HOC/AsyncComponent.js +129 -53
  40. package/lib/components/HOC/AuthenticatedComponent.d.ts +4 -4
  41. package/lib/components/HOC/AuthenticatedComponent.js +96 -59
  42. package/lib/components/HOC/CollectionComponent.d.ts +12 -12
  43. package/lib/components/HOC/CollectionComponent.js +171 -171
  44. package/lib/components/HOC/CollectionFirstItemComponent.d.ts +13 -13
  45. package/lib/components/HOC/CollectionFirstItemComponent.js +94 -52
  46. package/lib/components/HOC/CollectionItemComponent.d.ts +9 -9
  47. package/lib/components/HOC/CollectionItemComponent.js +168 -169
  48. package/lib/components/HOC/ConnectedModalComponent.d.ts +9 -9
  49. package/lib/components/HOC/ConnectedModalComponent.js +140 -110
  50. package/lib/components/HOC/DataDependentComponent.d.ts +55 -3
  51. package/lib/components/HOC/DataDependentComponent.js +79 -30
  52. package/lib/components/HOC/EntityComponent.d.ts +13 -13
  53. package/lib/components/HOC/EntityComponent.js +112 -74
  54. package/lib/components/HOC/FullscreenModalComponent.d.ts +9 -9
  55. package/lib/components/HOC/FullscreenModalComponent.js +185 -165
  56. package/lib/components/HOC/GroupActivityRequiredComponent.d.ts +2 -2
  57. package/lib/components/HOC/GroupActivityRequiredComponent.js +47 -48
  58. package/lib/components/HOC/GuidComponent.d.ts +1 -1
  59. package/lib/components/HOC/GuidComponent.js +68 -29
  60. package/lib/components/HOC/ModelContextDependencyVerifyComponent.d.ts +29 -28
  61. package/lib/components/HOC/ModelContextDependencyVerifyComponent.js +65 -42
  62. package/lib/components/HOC/ModelErrorRedirectComponent.d.ts +10 -10
  63. package/lib/components/HOC/ModelErrorRedirectComponent.js +94 -51
  64. package/lib/components/HOC/SearchPersistorComponent.d.ts +4 -4
  65. package/lib/components/HOC/SearchPersistorComponent.js +216 -243
  66. package/lib/components/HOC/UnauthenticatedComponent.d.ts +12 -12
  67. package/lib/components/HOC/UnauthenticatedComponent.js +82 -37
  68. package/lib/components/HOC/UserComponent.d.ts +1 -1
  69. package/lib/components/HOC/UserComponent.js +11 -12
  70. package/lib/components/Icons/IconAlphaList.js +20 -34
  71. package/lib/components/Icons/IconExternalUser.js +20 -34
  72. package/lib/components/Icons/IconImpersonation.js +20 -34
  73. package/lib/components/Icons/IconStopImpersonating.js +20 -34
  74. package/lib/components/Icons/IconTable.js +21 -35
  75. package/lib/components/Icons/IconTableDeleteCol.js +20 -34
  76. package/lib/components/Icons/IconTableDeleteRow.js +20 -34
  77. package/lib/components/Icons/IconTableInsertCol.js +20 -34
  78. package/lib/components/Icons/IconTableInsertRow.js +20 -34
  79. package/lib/components/Impersonation/Button.d.ts +2 -2
  80. package/lib/components/Impersonation/Button.js +56 -76
  81. package/lib/components/Impersonation/Link.d.ts +2 -2
  82. package/lib/components/Impersonation/Link.js +53 -76
  83. package/lib/components/Impersonation/UserDetail.css +22 -22
  84. package/lib/components/Impersonation/UserDetail.d.ts +2 -2
  85. package/lib/components/Impersonation/UserDetail.js +17 -66
  86. package/lib/components/Loading.js +21 -27
  87. package/lib/components/LockDownBrowser/Check.js +107 -194
  88. package/lib/components/LockDownBrowser/ExitButton.js +14 -27
  89. package/lib/components/LockDownBrowser/Launch.js +85 -70
  90. package/lib/components/Lti/Confirm.js +33 -152
  91. package/lib/components/Lti/CreateNonLtiGroupAlertDialog.d.ts +2 -4
  92. package/lib/components/Lti/CreateNonLtiGroupAlertDialog.js +78 -170
  93. package/lib/components/Lti/Launch.js +49 -105
  94. package/lib/components/Lti/LaunchGroup.js +39 -85
  95. package/lib/components/ManageTable.d.ts +2 -1
  96. package/lib/components/ManageTable.js +104 -309
  97. package/lib/components/ManageTableNoDataComponent.js +22 -42
  98. package/lib/components/NewVersionAlert.d.ts +2 -2
  99. package/lib/components/NewVersionAlert.js +91 -82
  100. package/lib/components/NotFound.js +28 -87
  101. package/lib/components/Notifications.d.ts +4 -4
  102. package/lib/components/Notifications.js +169 -187
  103. package/lib/components/PaginationNextButton.js +21 -33
  104. package/lib/components/PaginationPreviousButton.js +21 -33
  105. package/lib/components/Quill/CustomToolbar.d.ts +2 -2
  106. package/lib/components/Quill/CustomToolbar.js +257 -432
  107. package/lib/components/Quill/Formats/Image.d.ts +25 -10
  108. package/lib/components/Quill/Formats/Image.js +86 -80
  109. package/lib/components/Quill/Formats/List.d.ts +3 -6
  110. package/lib/components/Quill/Formats/List.js +74 -52
  111. package/lib/components/Quill/Formats/Video.d.ts +1 -2
  112. package/lib/components/Quill/Formats/Video.js +45 -31
  113. package/lib/components/Quill/ImageDropModule.d.ts +1 -1
  114. package/lib/components/Quill/ImageDropModule.js +122 -149
  115. package/lib/components/Quill/ImageWarning.d.ts +2 -2
  116. package/lib/components/Quill/ImageWarning.js +32 -45
  117. package/lib/components/Quill/ImageWithAltTextModal.d.ts +1 -0
  118. package/lib/components/Quill/ImageWithAltTextModal.js +141 -425
  119. package/lib/components/Quill/Specs/CustomImageSpec.d.ts +1 -1
  120. package/lib/components/Quill/Specs/CustomImageSpec.js +51 -43
  121. package/lib/components/Quill/Specs/CustomVideoSpec.d.ts +1 -1
  122. package/lib/components/Quill/Specs/CustomVideoSpec.js +44 -35
  123. package/lib/components/Quill/TableModule/Blots/BaseTableBlot.d.ts +1 -2
  124. package/lib/components/Quill/TableModule/Blots/BaseTableBlot.js +121 -105
  125. package/lib/components/Quill/TableModule/Blots/TableBlot.js +66 -53
  126. package/lib/components/Quill/TableModule/Blots/TableBodyBlot.js +67 -54
  127. package/lib/components/Quill/TableModule/Blots/TableCellBlot.d.ts +1 -1
  128. package/lib/components/Quill/TableModule/Blots/TableCellBlot.js +241 -225
  129. package/lib/components/Quill/TableModule/Blots/TableContainer.js +99 -82
  130. package/lib/components/Quill/TableModule/Blots/TableRowBlot.js +87 -76
  131. package/lib/components/Quill/TableModule/constants.js +41 -45
  132. package/lib/components/Quill/TableModule/index.css +171 -171
  133. package/lib/components/Quill/TableModule/index.d.ts +5 -14
  134. package/lib/components/Quill/TableModule/index.js +313 -373
  135. package/lib/components/Quill/TableModule/utils.js +45 -45
  136. package/lib/components/Quill/accessibilityFix.d.ts +1 -0
  137. package/lib/components/Quill/accessibilityFix.js +251 -235
  138. package/lib/components/Quill/index.js +32 -36
  139. package/lib/components/RefreshIndicator/Bordered.js +32 -48
  140. package/lib/components/RefreshIndicator/Inline.js +33 -48
  141. package/lib/components/RefreshIndicator/index.d.ts +2 -2
  142. package/lib/components/RefreshIndicator/index.js +113 -263
  143. package/lib/components/SearchControls.js +31 -216
  144. package/lib/components/SentryRoute.js +23 -10
  145. package/lib/components/Tables/RoleFilter.d.ts +4 -3
  146. package/lib/components/Tables/RoleFilter.js +46 -71
  147. package/lib/components/Tables/TextFilter.d.ts +3 -2
  148. package/lib/components/Tables/TextFilter.js +20 -62
  149. package/lib/components/UserRoles/Add.d.ts +3 -3
  150. package/lib/components/UserRoles/Add.js +161 -199
  151. package/lib/components/UserRoles/Context.js +9 -11
  152. package/lib/components/UserRoles/RoleCell.js +100 -180
  153. package/lib/components/UserRoles/Select.js +54 -157
  154. package/lib/components/UserRoles/Table.js +102 -221
  155. package/lib/components/UserRoles/index.d.ts +6 -6
  156. package/lib/components/UserRoles/index.js +466 -537
  157. package/lib/config/eslint/index.cjs +21 -0
  158. package/lib/config/eslint/lib/order.cjs +22 -0
  159. package/lib/config/eslint/lib/prettier.cjs +18 -0
  160. package/lib/config/eslint/lib/typescript.cjs +86 -0
  161. package/lib/config/eslint/react.cjs +9 -0
  162. package/lib/constants/baseActivity.js +26 -30
  163. package/lib/constants/baseRole.js +10 -14
  164. package/lib/constants/configuration.d.ts +1 -1
  165. package/lib/constants/configuration.js +39 -43
  166. package/lib/constants/externalProviderType.js +6 -10
  167. package/lib/constants/fetchErrorData.js +11 -15
  168. package/lib/constants/index.js +23 -137
  169. package/lib/constants/lockDownBrowser.js +24 -28
  170. package/lib/constants/mockData.d.ts +6 -4
  171. package/lib/constants/mockData.js +326 -385
  172. package/lib/constants/modelStatus.js +11 -15
  173. package/lib/constants/notificationType.js +8 -12
  174. package/lib/constants/operatingSystem.js +8 -12
  175. package/lib/constants/shard.js +7 -11
  176. package/lib/constants/table.js +21 -21
  177. package/lib/constants/tier.js +8 -12
  178. package/lib/constants/userRole.d.ts +2 -1
  179. package/lib/constants/userRole.js +17 -15
  180. package/lib/css/base/_base.css +98 -98
  181. package/lib/css/base/_typography.css +130 -130
  182. package/lib/css/components/_alert.css +86 -86
  183. package/lib/css/components/_bootstrap-grid.css +28 -28
  184. package/lib/css/components/_buttons.css +397 -397
  185. package/lib/css/components/_forms.css +101 -101
  186. package/lib/css/components/_menu.css +56 -56
  187. package/lib/css/components/_modals.css +46 -46
  188. package/lib/css/components/_quill.css +315 -315
  189. package/lib/css/components/_tables.css +497 -497
  190. package/lib/css/components/_tags.css +12 -12
  191. package/lib/css/index-with-variables.css +15 -15
  192. package/lib/css/index.css +14 -14
  193. package/lib/css/utils/_border.css +463 -463
  194. package/lib/css/utils/_color.css +317 -317
  195. package/lib/css/utils/_display.css +312 -305
  196. package/lib/css/utils/_general.css +48 -48
  197. package/lib/css/utils/_icon.css +16 -16
  198. package/lib/css/utils/_text.css +24 -25
  199. package/lib/css/utils/_width.css +60 -60
  200. package/lib/css/variables.css +84 -84
  201. package/lib/endpointMappings.js +193 -197
  202. package/lib/hooks/useCollection.js +65 -83
  203. package/lib/hooks/useCollectionConfiguration.d.ts +1 -0
  204. package/lib/hooks/useCollectionConfiguration.js +88 -185
  205. package/lib/hooks/useCollectionItem.js +58 -155
  206. package/lib/hooks/useGuid.js +10 -21
  207. package/lib/hooks/usePrevious.d.ts +1 -24
  208. package/lib/hooks/usePrevious.js +14 -84
  209. package/lib/index.js +36 -156
  210. package/lib/redux/actionCreator.d.ts +6 -6
  211. package/lib/redux/actionCreator.js +40 -51
  212. package/lib/redux/actions/AuthAction.js +31 -44
  213. package/lib/redux/actions/ModalAction.d.ts +1 -1
  214. package/lib/redux/actions/ModalAction.js +6 -10
  215. package/lib/redux/actions/ModelAction.d.ts +1 -1
  216. package/lib/redux/actions/ModelAction.js +49 -77
  217. package/lib/redux/actions/NotificationAction.js +6 -10
  218. package/lib/redux/actions/SearchAction.js +5 -9
  219. package/lib/redux/actions/index.js +16 -60
  220. package/lib/redux/configureReducers.d.ts +5 -2
  221. package/lib/redux/configureReducers.js +78 -67
  222. package/lib/redux/configureStore.d.ts +2 -2
  223. package/lib/redux/configureStore.js +115 -83
  224. package/lib/redux/helpers.js +2 -7
  225. package/lib/redux/reducers/authReducer.js +46 -52
  226. package/lib/redux/reducers/index.js +15 -41
  227. package/lib/redux/reducers/modalsReducer.js +52 -49
  228. package/lib/redux/reducers/modelsReducer.d.ts +2 -2
  229. package/lib/redux/reducers/modelsReducer.js +182 -183
  230. package/lib/redux/reducers/notificationsReducer.js +21 -26
  231. package/lib/redux/reducers/searchReducer.js +20 -26
  232. package/lib/redux/sagas/appInsightsSaga.js +62 -24
  233. package/lib/redux/sagas/authSaga.js +414 -287
  234. package/lib/redux/sagas/caliperSaga.js +263 -169
  235. package/lib/redux/sagas/clockOffsetSaga.js +77 -36
  236. package/lib/redux/sagas/configurationSaga.js +46 -13
  237. package/lib/redux/sagas/downtimeApiErrorSaga.d.ts +1 -0
  238. package/lib/redux/sagas/downtimeApiErrorSaga.js +64 -23
  239. package/lib/redux/sagas/errorSaga.d.ts +1 -0
  240. package/lib/redux/sagas/errorSaga.js +63 -29
  241. package/lib/redux/sagas/googleAnalyticsSaga.js +69 -29
  242. package/lib/redux/sagas/identityProviderSaga.js +69 -24
  243. package/lib/redux/sagas/initialDataLoadSaga.js +29 -38
  244. package/lib/redux/sagas/lockDownBrowserErrorSaga.d.ts +1 -0
  245. package/lib/redux/sagas/lockDownBrowserErrorSaga.js +81 -32
  246. package/lib/redux/sagas/modelFetchSaga.js +459 -379
  247. package/lib/redux/sagas/noStoreSaga.d.ts +1 -1
  248. package/lib/redux/sagas/noStoreSaga.js +101 -68
  249. package/lib/redux/sagas/postLoginDataSaga.js +79 -47
  250. package/lib/redux/sagas/postLoginRedirectSaga.js +71 -30
  251. package/lib/redux/sagas/rootSaga.js +137 -85
  252. package/lib/redux/sagas/sentrySaga.js +85 -29
  253. package/lib/redux/sagas/userIdSaga.js +54 -18
  254. package/lib/services/codeProviderService.js +29 -25
  255. package/lib/services/dateService.js +12 -14
  256. package/lib/services/documentService.js +13 -18
  257. package/lib/services/fetchService.js +168 -134
  258. package/lib/services/persistenceService.d.ts +4 -4
  259. package/lib/services/persistenceService.js +43 -45
  260. package/lib/services/ticketProviderService.js +33 -29
  261. package/lib/services/tokenPersistenceService.js +9 -13
  262. package/lib/services/windowService.js +17 -21
  263. package/lib/startup.d.ts +1 -1
  264. package/lib/startup.js +135 -132
  265. package/lib/types/AppConfiguration.js +1 -5
  266. package/lib/types/Artifact.js +7 -11
  267. package/lib/types/BaseReduxState.js +1 -5
  268. package/lib/types/Client.js +1 -5
  269. package/lib/types/Collection.d.ts +3 -3
  270. package/lib/types/Collection.js +1 -5
  271. package/lib/types/Configuration.js +1 -5
  272. package/lib/types/DeepLinkingResponseRequest.js +1 -5
  273. package/lib/types/DeletableModel.js +1 -5
  274. package/lib/types/Event.js +1 -5
  275. package/lib/types/ExternalGroup.js +1 -5
  276. package/lib/types/ExternalProvider.js +1 -5
  277. package/lib/types/ExternalTerm.js +1 -5
  278. package/lib/types/Group.js +1 -5
  279. package/lib/types/IdentityProvider.js +1 -5
  280. package/lib/types/LtiLaunch.js +1 -5
  281. package/lib/types/NameOnlyEntity.js +1 -5
  282. package/lib/types/Notification.d.ts +2 -2
  283. package/lib/types/Notification.js +1 -5
  284. package/lib/types/OptionalRecord.d.ts +1 -1
  285. package/lib/types/OptionalRecord.js +1 -5
  286. package/lib/types/OwnerSchedule.d.ts +1 -3
  287. package/lib/types/OwnerSchedule.js +1 -5
  288. package/lib/types/PropertyOfType.d.ts +3 -3
  289. package/lib/types/PropertyOfType.js +1 -5
  290. package/lib/types/Quill.js +1 -5
  291. package/lib/types/RoleDescription.d.ts +1 -0
  292. package/lib/types/RoleDescription.js +1 -5
  293. package/lib/types/Search.js +1 -5
  294. package/lib/types/SimpleLocation.js +1 -5
  295. package/lib/types/UniTime.js +1 -5
  296. package/lib/types/User.js +1 -5
  297. package/lib/types/UserRole.js +1 -5
  298. package/lib/types/auth/AuthState.js +1 -5
  299. package/lib/types/auth/CasV1LoginRequestBody.js +1 -5
  300. package/lib/types/auth/ClientCredentials.js +1 -5
  301. package/lib/types/auth/CodeProviderService.js +1 -5
  302. package/lib/types/auth/LocalLoginRequestBody.js +1 -5
  303. package/lib/types/auth/TicketProviderService.js +1 -5
  304. package/lib/types/auth/TokenPersistenceService.js +1 -5
  305. package/lib/types/auth/index.js +18 -82
  306. package/lib/types/index.js +39 -313
  307. package/lib/types/net/EndpointConfig.js +1 -5
  308. package/lib/types/net/EndpointMapping.js +1 -5
  309. package/lib/types/net/EndpointMappings.js +1 -5
  310. package/lib/types/net/ErrorHandler.d.ts +1 -1
  311. package/lib/types/net/ErrorHandler.js +1 -5
  312. package/lib/types/net/FetchConfig.d.ts +1 -1
  313. package/lib/types/net/FetchConfig.js +1 -5
  314. package/lib/types/net/FetchErrorData.js +6 -10
  315. package/lib/types/net/FetchResult.d.ts +2 -2
  316. package/lib/types/net/FetchResult.js +1 -5
  317. package/lib/types/net/HTTPMethod.d.ts +1 -1
  318. package/lib/types/net/HTTPMethod.js +1 -5
  319. package/lib/types/net/HTTPStatusCode.js +12 -16
  320. package/lib/types/net/Metadata.js +1 -5
  321. package/lib/types/net/Model.js +1 -5
  322. package/lib/types/net/ModelCollection.js +1 -5
  323. package/lib/types/net/ModelsState.js +1 -5
  324. package/lib/types/net/OAuthToken.js +1 -5
  325. package/lib/types/net/OAuthTokenOrNull.d.ts +1 -1
  326. package/lib/types/net/OAuthTokenOrNull.js +1 -5
  327. package/lib/types/net/TokenAccessFunction.d.ts +1 -1
  328. package/lib/types/net/TokenAccessFunction.js +1 -5
  329. package/lib/types/net/index.js +27 -181
  330. package/lib/utils/baseActivity.d.ts +2 -2
  331. package/lib/utils/baseActivity.js +136 -138
  332. package/lib/utils/baseRole.js +33 -37
  333. package/lib/utils/collection.js +310 -432
  334. package/lib/utils/cookies.js +37 -22
  335. package/lib/utils/date.js +320 -320
  336. package/lib/utils/dom.js +174 -186
  337. package/lib/utils/domainIdentifier.js +9 -9
  338. package/lib/utils/entityUserRole.js +2 -6
  339. package/lib/utils/error.d.ts +1 -1
  340. package/lib/utils/error.js +16 -18
  341. package/lib/utils/events.js +33 -40
  342. package/lib/utils/externalGroup.js +21 -25
  343. package/lib/utils/externalProviders.js +4 -8
  344. package/lib/utils/externalTerms.js +6 -9
  345. package/lib/utils/fetch.d.ts +1 -1
  346. package/lib/utils/fetch.js +185 -188
  347. package/lib/utils/group.js +9 -17
  348. package/lib/utils/groupDates.d.ts +1 -1
  349. package/lib/utils/groupDates.js +39 -43
  350. package/lib/utils/groupRoles.js +28 -28
  351. package/lib/utils/lockDownBrowser.js +12 -16
  352. package/lib/utils/logger.js +25 -30
  353. package/lib/utils/lti.js +5 -10
  354. package/lib/utils/model.d.ts +2 -2
  355. package/lib/utils/model.js +48 -39
  356. package/lib/utils/number.js +26 -23
  357. package/lib/utils/promise.d.ts +1 -6
  358. package/lib/utils/promise.js +15 -34
  359. package/lib/utils/quill.js +77 -66
  360. package/lib/utils/route.d.ts +2 -2
  361. package/lib/utils/route.js +60 -61
  362. package/lib/utils/search.d.ts +1 -1
  363. package/lib/utils/search.js +85 -78
  364. package/lib/utils/shard.js +41 -38
  365. package/lib/utils/sort.d.ts +3 -3
  366. package/lib/utils/sort.js +58 -62
  367. package/lib/utils/string.js +10 -14
  368. package/lib/utils/table.d.ts +3 -3
  369. package/lib/utils/table.js +36 -39
  370. package/lib/utils/timezone.js +26 -12
  371. package/lib/utils/url.d.ts +1 -2
  372. package/lib/utils/url.js +201 -146
  373. package/lib/utils/user.js +61 -59
  374. package/lib/utils/userAgent.js +11 -11
  375. package/lib/utils/userRole.d.ts +3 -3
  376. package/lib/utils/userRole.js +56 -58
  377. package/package.json +207 -226
  378. package/lib/config/eslint/index.d.ts +0 -2
  379. package/lib/config/eslint/index.js +0 -36
  380. package/lib/config/eslint/lib/order.d.ts +0 -3
  381. package/lib/config/eslint/lib/order.js +0 -30
  382. package/lib/config/eslint/lib/prettier.d.ts +0 -3
  383. package/lib/config/eslint/lib/prettier.js +0 -23
  384. package/lib/config/eslint/lib/typescript.d.ts +0 -2
  385. package/lib/config/eslint/lib/typescript.js +0 -98
  386. package/lib/config/eslint/react.d.ts +0 -2
  387. package/lib/config/eslint/react.js +0 -30
  388. package/lib/hooks/useEventCalback.d.ts +0 -14
  389. package/lib/hooks/useEventCalback.js +0 -51
  390. package/lib/types/externals.d.js +0 -2
@@ -1,497 +1,497 @@
1
- :root {
2
- --cell-padding-horiz: 1rem;
3
- }
4
-
5
- /* table style overrides */
6
-
7
- td,
8
- .MuiTableCell-body {
9
- padding: 0.9rem var(--cell-padding-horiz);
10
- font-size: 1rem;
11
- border-bottom: 2px solid var(--color-light-grey);
12
- width: 130px;
13
-
14
- & button {
15
- overflow: hidden;
16
- }
17
- }
18
-
19
- th,
20
- .MuiTableCell-head {
21
- background-color: var(--color-off-white);
22
- border-bottom: 1px solid var(--color-light-grey);
23
- color: var(--color-dark-grey);
24
- font-size: 0.9rem;
25
- padding: 0.75rem var(--cell-padding-horiz);
26
- text-transform: uppercase;
27
- font-weight: var(--font-weight-bold);
28
- height: auto;
29
- width: 130px;
30
-
31
- &.header-sort {
32
- padding: 0;
33
- white-space: pre-wrap;
34
-
35
- & button {
36
- display: block;
37
- padding: 0.75rem 18px;
38
- height: auto;
39
- width: 100%;
40
- margin: 0;
41
- line-height: 1.4rem;
42
-
43
- & span {
44
- text-transform: uppercase;
45
- padding: 0 8px 0 0;
46
- font-size: 0.9rem;
47
- }
48
-
49
- & svg {
50
- margin: -4px 0 0;
51
- vertical-align: middle;
52
- }
53
- }
54
- }
55
- }
56
-
57
- .MuiTableCell-footer {
58
- font-size: 1rem;
59
- }
60
-
61
- /**
62
- * react table
63
- */
64
-
65
- .table-container {
66
- width: 100%;
67
- overflow-x: auto;
68
- }
69
-
70
- .table-search-container {
71
- padding: 0 !important;
72
- text-align: left;
73
- background: white;
74
- border: 1px solid rgb(0 0 0 / 10%);
75
- border-radius: 3px;
76
- width: 100%;
77
-
78
- & .MuiSvgIcon-root {
79
- margin-top: 0.55rem;
80
- }
81
-
82
- & .table-search-input {
83
- text-align: left;
84
- outline: none !important;
85
- border: none !important;
86
- width: 100%;
87
- }
88
-
89
- & input[type="search"] {
90
- -webkit-appearance: none;
91
- }
92
-
93
- & input[type="search"]::-webkit-search-cancel-button {
94
- -webkit-appearance: searchfield-cancel-button;
95
- }
96
- }
97
-
98
- .ReactTable {
99
- & .rt-thead .rt-tr {
100
- background-color: var(--color-off-white);
101
- border-bottom: 1px solid var(--color-light-grey);
102
- }
103
-
104
- & .rt-th {
105
- font-weight: var(--font-weight-bold);
106
- color: var(--color-dark-grey);
107
- font-size: 0.9rem;
108
- text-transform: uppercase;
109
- }
110
-
111
- & .rt-th > div {
112
- padding: 0.75rem var(--cell-padding-horiz);
113
- }
114
-
115
- & .rt-td {
116
- padding: var(--cell-padding-horiz);
117
- font-size: 1rem;
118
- }
119
-
120
- & .rt-td.overflow-visible {
121
- overflow: visible;
122
- }
123
-
124
- & .pagination-top,
125
- & .pagination-bottom {
126
- background-color: var(--color-off-white);
127
-
128
- & .-pagination {
129
- padding: 0.5rem 0.6rem;
130
- border-top: none;
131
- }
132
- }
133
-
134
- & .pagination-top .-pagination {
135
- border-bottom: 1px solid var(--color-light-grey);
136
- }
137
-
138
- & .pagination-bottom .-pagination {
139
- border-top: 1px solid var(--color-light-grey);
140
- }
141
-
142
- & .-pagination .-previous,
143
- & .-pagination .-next {
144
- & .MuiButton-text {
145
- background-color: var(--color-white);
146
- border: 1px solid var(--color-light-grey);
147
-
148
- &[disabled] {
149
- background-color: var(--color-light-grey);
150
- }
151
-
152
- & .MuiButton-label .MuiSvgIcon-root {
153
- margin: 0;
154
- }
155
- }
156
- }
157
-
158
- /* duplicate .form-control styles */
159
- & .-pagination input,
160
- .-pagination select {
161
- display: block;
162
- width: 100%;
163
- height: calc(1.5em + 0.75rem + 2px);
164
- font-size: 1rem;
165
- font-weight: 400;
166
- line-height: 1.5;
167
- color: #495057;
168
- background-color: #fff;
169
- background-clip: padding-box;
170
- border: 1px solid #ced4da;
171
- border-radius: 0.25rem;
172
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
173
- font-family: var(--text-font-stack);
174
- padding: 0.5rem;
175
- border-color: var(--color-light-grey);
176
- box-shadow: none;
177
-
178
- &:focus {
179
- border-color: #80bdff;
180
- outline: 0;
181
- -webkit-box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
182
- box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
183
- }
184
-
185
- &::placeholder {
186
- color: #6c757d;
187
- opacity: 1;
188
- }
189
- }
190
-
191
- & .-pagination .-pageSizeOptions.select {
192
- padding: 0.375rem 0.75rem;
193
- }
194
-
195
- &.single-row-action-button {
196
- & .rt-tbody {
197
- padding-bottom: 108px;
198
- }
199
- }
200
-
201
- & .rt-noData {
202
- top: 128px;
203
- color: var(--color-dark-grey);
204
- font-weight: bold;
205
- border-width: 0.1rem;
206
- border-style: solid;
207
- border-radius: 0.25rem;
208
- background-color: color-mod(var(--color-accent-blue) lightness(98%)) !important;
209
- border-color: color-mod(var(--color-accent-blue) lightness(69%)) !important;
210
- padding: 1rem;
211
- width: 100%;
212
- text-align: center;
213
- }
214
-
215
- & .dropdown {
216
- position: static;
217
- }
218
- }
219
-
220
- .striped-table tr:nth-child(even) {
221
- background-color: var(--color-light-blue) !important;
222
- }
223
-
224
- .ReactTable.-striped {
225
- & .rt-tr.-odd {
226
- background: var(--color-off-white) !important;
227
- }
228
- }
229
-
230
- /**
231
- * react-super-responsive-table
232
- */
233
-
234
- /* RESET STYLES at the package's breakpoint */
235
-
236
- @media screen and (max-width: 40em) {
237
- .responsiveTable table {
238
- display: table;
239
- }
240
-
241
- .responsiveTable thead {
242
- display: table-header-group;
243
- }
244
-
245
- .responsiveTable tbody {
246
- display: table-row-group;
247
- }
248
-
249
- .responsiveTable th,
250
- .responsiveTable td {
251
- display: table-cell;
252
- }
253
-
254
- .responsiveTable tr {
255
- display: table-row;
256
- }
257
-
258
- .responsiveTable thead tr {
259
- position: static;
260
- top: auto;
261
- left: auto;
262
- border-bottom: inherit;
263
- }
264
-
265
- .responsiveTable tbody tr {
266
- border: inherit;
267
- padding: 0;
268
- }
269
-
270
- .responsiveTable td.pivoted {
271
- border: inherit !important;
272
- position: static;
273
- padding-left: var(--cell-padding-horiz) !important;
274
- text-align: inherit !important;
275
- white-space: normal;
276
- overflow-wrap: normal;
277
- }
278
-
279
- .responsiveTable td .tdBefore {
280
- display: none;
281
- }
282
- }
283
-
284
- /**
285
- * SET STYLES to use our "lt-sm" breakpoint
286
- * COPIED DIRECTLY from /node_modules/react-super-responsive-table/dist/SuperResponsiveTableStyle.css
287
- */
288
- @media (--lt-sm) {
289
- .responsiveTable table,
290
- .responsiveTable thead,
291
- .responsiveTable tbody,
292
- .responsiveTable th,
293
- .responsiveTable td,
294
- .responsiveTable tr {
295
- display: block;
296
- }
297
-
298
- .responsiveTable thead tr {
299
- position: absolute;
300
- top: -9999px;
301
- left: -9999px;
302
- border-bottom: 2px solid #333;
303
- }
304
-
305
- .responsiveTable tbody tr {
306
- border: 1px solid #000;
307
- padding: 0.25em;
308
- }
309
-
310
- .responsiveTable td.pivoted {
311
- /* Behave like a "row" */
312
- border: none !important;
313
- position: relative;
314
- padding-left: calc(50% + 10px) !important;
315
- text-align: left !important;
316
- white-space: pre-wrap;
317
- overflow-wrap: break-word;
318
- }
319
-
320
- .responsiveTable td .tdBefore {
321
- /* Now like a table header */
322
- position: absolute;
323
- display: block;
324
-
325
- /* Top/left values mimic padding */
326
- left: 1rem;
327
- width: calc(50% - 20px);
328
- white-space: pre-wrap;
329
- overflow-wrap: break-word;
330
- text-align: left !important;
331
- font-weight: 600;
332
- }
333
- }
334
-
335
- /**
336
- * SET STYLES to use our "lt-md" breakpoint
337
- * COPIED DIRECTLY from /node_modules/react-super-responsive-table/dist/SuperResponsiveTableStyle.css
338
- */
339
- @media (--lt-md) {
340
- .responsiveTable-lt-md table,
341
- .responsiveTable-lt-md thead,
342
- .responsiveTable-lt-md tbody,
343
- .responsiveTable-lt-md th,
344
- .responsiveTable-lt-md td,
345
- .responsiveTable-lt-md tr {
346
- display: block;
347
- }
348
-
349
- .responsiveTable-lt-md thead tr {
350
- position: absolute;
351
- top: -9999px;
352
- left: -9999px;
353
- border-bottom: 2px solid #333;
354
- }
355
-
356
- .responsiveTable-lt-md tbody tr {
357
- border: 1px solid #000;
358
- padding: 0.25em;
359
- }
360
-
361
- .responsiveTable-lt-md td.pivoted {
362
- /* Behave like a "row" */
363
- border: none !important;
364
- position: relative;
365
- padding-left: calc(50% + 10px) !important;
366
- text-align: left !important;
367
- white-space: pre-wrap;
368
- overflow-wrap: break-word;
369
- }
370
-
371
- .responsiveTable-lt-md td .tdBefore {
372
- /* Now like a table header */
373
- position: absolute;
374
- display: block;
375
-
376
- /* Top/left values mimic padding */
377
- left: 1rem;
378
- width: calc(50% - 20px);
379
- white-space: pre-wrap;
380
- overflow-wrap: break-word;
381
- text-align: left !important;
382
- font-weight: 600;
383
- }
384
- }
385
-
386
- /* CUSTOM OVERRIDES for react-super-responsive-table */
387
-
388
- .responsiveTable {
389
- margin-top: 1.2rem;
390
-
391
- & th {
392
- font-size: 0.94rem;
393
- text-transform: uppercase;
394
- border: none;
395
- }
396
-
397
- & td.pivoted {
398
- font-size: 0.96rem;
399
- width: auto;
400
- border-bottom: 1px solid var(--color-light-grey) !important;
401
- }
402
-
403
- /* at normal widths, show the icon button and hide the text button */
404
- & .action-list-icon-button {
405
- display: inherit;
406
- }
407
-
408
- & .action-list-text-button {
409
- display: none;
410
- }
411
- }
412
-
413
- /* default: table is responsive at xs widths and below */
414
- @media (--lt-sm) {
415
- .responsiveTable {
416
- & td {
417
- width: 100%;
418
-
419
- & .tdBefore {
420
- width: 100%;
421
- position: static !important;
422
- }
423
- }
424
-
425
- & tbody > tr {
426
- background-color: color-mod(var(--color-off-white) l(99%));
427
- border-color: var(--color-light-grey) !important;
428
- margin-bottom: 1.5rem;
429
- border-width: 0.15rem;
430
-
431
- & > td.pivoted {
432
- padding-left: var(--cell-padding-horiz) !important;
433
-
434
- &:last-child {
435
- border-bottom: none !important;
436
- }
437
- }
438
-
439
- &:last-child {
440
- margin-bottom: 0;
441
- }
442
- }
443
-
444
- /* hide the icon button and show the text button if there is no default action displayed */
445
- & .action-list-icon-button:not(.with-default-action) {
446
- display: none;
447
- }
448
-
449
- & .action-list-text-button:not(.with-default-action) {
450
- display: inherit;
451
- }
452
- }
453
- }
454
-
455
- /*
456
- * table is responsive at small widths and below
457
- */
458
- @media (--lt-md) {
459
- .responsiveTable-lt-md {
460
- & td {
461
- width: 100%;
462
-
463
- & .tdBefore {
464
- width: 100%;
465
- position: static !important;
466
- }
467
- }
468
-
469
- & tbody > tr {
470
- background-color: color-mod(var(--color-off-white) l(99%));
471
- border-color: var(--color-light-grey) !important;
472
- margin-bottom: 1.5rem;
473
- border-width: 0.15rem;
474
-
475
- & > td.pivoted {
476
- padding-left: var(--cell-padding-horiz) !important;
477
-
478
- &:last-child {
479
- border-bottom: none !important;
480
- }
481
- }
482
-
483
- &:last-child {
484
- margin-bottom: 0;
485
- }
486
- }
487
-
488
- /* hide the icon button and show the text button if there is no default action displayed */
489
- & .action-list-icon-button:not(.with-default-action) {
490
- display: none;
491
- }
492
-
493
- & .action-list-text-button:not(.with-default-action) {
494
- display: inherit;
495
- }
496
- }
497
- }
1
+ :root {
2
+ --cell-padding-horiz: 1rem;
3
+ }
4
+
5
+ /* table style overrides */
6
+
7
+ td,
8
+ .MuiTableCell-body {
9
+ padding: 0.9rem var(--cell-padding-horiz);
10
+ font-size: 1rem;
11
+ border-bottom: 2px solid var(--color-light-grey);
12
+ width: 130px;
13
+
14
+ & button {
15
+ overflow: hidden;
16
+ }
17
+ }
18
+
19
+ th,
20
+ .MuiTableCell-head {
21
+ background-color: var(--color-off-white);
22
+ border-bottom: 1px solid var(--color-light-grey);
23
+ color: var(--color-dark-grey);
24
+ font-size: 0.9rem;
25
+ padding: 0.75rem var(--cell-padding-horiz);
26
+ text-transform: uppercase;
27
+ font-weight: var(--font-weight-bold);
28
+ height: auto;
29
+ width: 130px;
30
+
31
+ &.header-sort {
32
+ padding: 0;
33
+ white-space: pre-wrap;
34
+
35
+ & button {
36
+ display: block;
37
+ padding: 0.75rem 18px;
38
+ height: auto;
39
+ width: 100%;
40
+ margin: 0;
41
+ line-height: 1.4rem;
42
+
43
+ & span {
44
+ text-transform: uppercase;
45
+ padding: 0 8px 0 0;
46
+ font-size: 0.9rem;
47
+ }
48
+
49
+ & svg {
50
+ margin: -4px 0 0;
51
+ vertical-align: middle;
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ .MuiTableCell-footer {
58
+ font-size: 1rem;
59
+ }
60
+
61
+ /**
62
+ * react table
63
+ */
64
+
65
+ .table-container {
66
+ width: 100%;
67
+ overflow-x: auto;
68
+ }
69
+
70
+ .table-search-container {
71
+ padding: 0 !important;
72
+ text-align: left;
73
+ background: white;
74
+ border: 1px solid rgba(0, 0, 0, 0.1);
75
+ border-radius: 3px;
76
+ width: 100%;
77
+
78
+ & .MuiSvgIcon-root {
79
+ margin-top: 0.55rem;
80
+ }
81
+
82
+ & .table-search-input {
83
+ text-align: left;
84
+ outline: none !important;
85
+ border: none !important;
86
+ width: 100%;
87
+ }
88
+
89
+ & input[type=search] {
90
+ -webkit-appearance: none;
91
+ }
92
+
93
+ & input[type=search]::-webkit-search-cancel-button {
94
+ -webkit-appearance: searchfield-cancel-button;
95
+ }
96
+ }
97
+
98
+ .ReactTable {
99
+ & .rt-thead .rt-tr {
100
+ background-color: var(--color-off-white);
101
+ border-bottom: 1px solid var(--color-light-grey);
102
+ }
103
+
104
+ & .rt-th {
105
+ font-weight: var(--font-weight-bold);
106
+ color: var(--color-dark-grey);
107
+ font-size: 0.9rem;
108
+ text-transform: uppercase;
109
+ }
110
+
111
+ & .rt-th > div {
112
+ padding: 0.75rem var(--cell-padding-horiz);
113
+ }
114
+
115
+ & .rt-td {
116
+ padding: var(--cell-padding-horiz);
117
+ font-size: 1rem;
118
+ }
119
+
120
+ & .rt-td.overflow-visible {
121
+ overflow: visible;
122
+ }
123
+
124
+ & .pagination-top,
125
+ & .pagination-bottom {
126
+ background-color: var(--color-off-white);
127
+
128
+ & .-pagination {
129
+ padding: 0.5rem 0.6rem;
130
+ border-top: none;
131
+ }
132
+ }
133
+
134
+ & .pagination-top .-pagination {
135
+ border-bottom: 1px solid var(--color-light-grey);
136
+ }
137
+
138
+ & .pagination-bottom .-pagination {
139
+ border-top: 1px solid var(--color-light-grey);
140
+ }
141
+
142
+ & .-pagination .-previous,
143
+ & .-pagination .-next {
144
+ & .MuiButton-text {
145
+ background-color: var(--color-white);
146
+ border: 1px solid var(--color-light-grey);
147
+
148
+ &[disabled] {
149
+ background-color: var(--color-light-grey);
150
+ }
151
+
152
+ & .MuiButton-label .MuiSvgIcon-root {
153
+ margin: 0;
154
+ }
155
+ }
156
+ }
157
+
158
+ /* duplicate .form-control styles */
159
+ & .-pagination input,
160
+ .-pagination select {
161
+ display: block;
162
+ width: 100%;
163
+ height: calc(1.5em + 0.75rem + 2px);
164
+ font-size: 1rem;
165
+ font-weight: 400;
166
+ line-height: 1.5;
167
+ color: #495057;
168
+ background-color: #fff;
169
+ background-clip: padding-box;
170
+ border: 1px solid #ced4da;
171
+ border-radius: 0.25rem;
172
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
173
+ font-family: var(--text-font-stack);
174
+ padding: 0.5rem;
175
+ border-color: var(--color-light-grey);
176
+ box-shadow: none;
177
+
178
+ &:focus {
179
+ border-color: #80bdff;
180
+ outline: 0;
181
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
182
+ box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
183
+ }
184
+
185
+ &::placeholder {
186
+ color: #6c757d;
187
+ opacity: 1;
188
+ }
189
+ }
190
+
191
+ & .-pagination .-pageSizeOptions.select {
192
+ padding: 0.375rem 0.75rem;
193
+ }
194
+
195
+ &.single-row-action-button {
196
+ & .rt-tbody {
197
+ padding-bottom: 108px;
198
+ }
199
+ }
200
+
201
+ & .rt-noData {
202
+ top: 128px;
203
+ color: var(--color-dark-grey);
204
+ font-weight: bold;
205
+ border-width: 0.1rem;
206
+ border-style: solid;
207
+ border-radius: 0.25rem;
208
+ background-color: color-mod(var(--color-accent-blue) lightness(98%)) !important;
209
+ border-color: color-mod(var(--color-accent-blue) lightness(69%)) !important;
210
+ padding: 1rem;
211
+ width: 100%;
212
+ text-align: center;
213
+ }
214
+
215
+ & .dropdown {
216
+ position: static;
217
+ }
218
+ }
219
+
220
+ .striped-table tr:nth-child(even) {
221
+ background-color: var(--color-light-blue) !important;
222
+ }
223
+
224
+ .ReactTable.-striped {
225
+ & .rt-tr.-odd {
226
+ background: var(--color-off-white) !important;
227
+ }
228
+ }
229
+
230
+ /**
231
+ * react-super-responsive-table
232
+ */
233
+
234
+ /* RESET STYLES at the package's breakpoint */
235
+
236
+ @media screen and (max-width: 40em) {
237
+ .responsiveTable table {
238
+ display: table;
239
+ }
240
+
241
+ .responsiveTable thead {
242
+ display: table-header-group;
243
+ }
244
+
245
+ .responsiveTable tbody {
246
+ display: table-row-group;
247
+ }
248
+
249
+ .responsiveTable th,
250
+ .responsiveTable td {
251
+ display: table-cell;
252
+ }
253
+
254
+ .responsiveTable tr {
255
+ display: table-row;
256
+ }
257
+
258
+ .responsiveTable thead tr {
259
+ position: static;
260
+ top: auto;
261
+ left: auto;
262
+ border-bottom: inherit;
263
+ }
264
+
265
+ .responsiveTable tbody tr {
266
+ border: inherit;
267
+ padding: 0;
268
+ }
269
+
270
+ .responsiveTable td.pivoted {
271
+ border: inherit !important;
272
+ position: static;
273
+ padding-left: var(--cell-padding-horiz) !important;
274
+ text-align: inherit !important;
275
+ white-space: normal;
276
+ overflow-wrap: normal;
277
+ }
278
+
279
+ .responsiveTable td .tdBefore {
280
+ display: none;
281
+ }
282
+ }
283
+
284
+ /**
285
+ * SET STYLES to use our "lt-sm" breakpoint
286
+ * COPIED DIRECTLY from /node_modules/react-super-responsive-table/dist/SuperResponsiveTableStyle.css
287
+ */
288
+ @media (--lt-sm) {
289
+ .responsiveTable table,
290
+ .responsiveTable thead,
291
+ .responsiveTable tbody,
292
+ .responsiveTable th,
293
+ .responsiveTable td,
294
+ .responsiveTable tr {
295
+ display: block;
296
+ }
297
+
298
+ .responsiveTable thead tr {
299
+ position: absolute;
300
+ top: -9999px;
301
+ left: -9999px;
302
+ border-bottom: 2px solid #333;
303
+ }
304
+
305
+ .responsiveTable tbody tr {
306
+ border: 1px solid #000;
307
+ padding: 0.25em;
308
+ }
309
+
310
+ .responsiveTable td.pivoted {
311
+ /* Behave like a "row" */
312
+ border: none !important;
313
+ position: relative;
314
+ padding-left: calc(50% + 10px) !important;
315
+ text-align: left !important;
316
+ white-space: pre-wrap;
317
+ overflow-wrap: break-word;
318
+ }
319
+
320
+ .responsiveTable td .tdBefore {
321
+ /* Now like a table header */
322
+ position: absolute;
323
+ display: block;
324
+
325
+ /* Top/left values mimic padding */
326
+ left: 1rem;
327
+ width: calc(50% - 20px);
328
+ white-space: pre-wrap;
329
+ overflow-wrap: break-word;
330
+ text-align: left !important;
331
+ font-weight: 600;
332
+ }
333
+ }
334
+
335
+ /**
336
+ * SET STYLES to use our "lt-md" breakpoint
337
+ * COPIED DIRECTLY from /node_modules/react-super-responsive-table/dist/SuperResponsiveTableStyle.css
338
+ */
339
+ @media (--lt-md) {
340
+ .responsiveTable-lt-md table,
341
+ .responsiveTable-lt-md thead,
342
+ .responsiveTable-lt-md tbody,
343
+ .responsiveTable-lt-md th,
344
+ .responsiveTable-lt-md td,
345
+ .responsiveTable-lt-md tr {
346
+ display: block;
347
+ }
348
+
349
+ .responsiveTable-lt-md thead tr {
350
+ position: absolute;
351
+ top: -9999px;
352
+ left: -9999px;
353
+ border-bottom: 2px solid #333;
354
+ }
355
+
356
+ .responsiveTable-lt-md tbody tr {
357
+ border: 1px solid #000;
358
+ padding: 0.25em;
359
+ }
360
+
361
+ .responsiveTable-lt-md td.pivoted {
362
+ /* Behave like a "row" */
363
+ border: none !important;
364
+ position: relative;
365
+ padding-left: calc(50% + 10px) !important;
366
+ text-align: left !important;
367
+ white-space: pre-wrap;
368
+ overflow-wrap: break-word;
369
+ }
370
+
371
+ .responsiveTable-lt-md td .tdBefore {
372
+ /* Now like a table header */
373
+ position: absolute;
374
+ display: block;
375
+
376
+ /* Top/left values mimic padding */
377
+ left: 1rem;
378
+ width: calc(50% - 20px);
379
+ white-space: pre-wrap;
380
+ overflow-wrap: break-word;
381
+ text-align: left !important;
382
+ font-weight: 600;
383
+ }
384
+ }
385
+
386
+ /* CUSTOM OVERRIDES for react-super-responsive-table */
387
+
388
+ .responsiveTable {
389
+ margin-top: 1.2rem;
390
+
391
+ & th {
392
+ font-size: 0.94rem;
393
+ text-transform: uppercase;
394
+ border: none;
395
+ }
396
+
397
+ & td.pivoted {
398
+ font-size: 0.96rem;
399
+ width: auto;
400
+ border-bottom: 1px solid var(--color-light-grey) !important;
401
+ }
402
+
403
+ /* at normal widths, show the icon button and hide the text button */
404
+ & .action-list-icon-button {
405
+ display: inherit;
406
+ }
407
+
408
+ & .action-list-text-button {
409
+ display: none;
410
+ }
411
+ }
412
+
413
+ /* default: table is responsive at xs widths and below */
414
+ @media (--lt-sm) {
415
+ .responsiveTable {
416
+ & td {
417
+ width: 100%;
418
+
419
+ & .tdBefore {
420
+ width: 100%;
421
+ position: static !important;
422
+ }
423
+ }
424
+
425
+ & tbody > tr {
426
+ background-color: color-mod(var(--color-off-white) l(99%));
427
+ border-color: var(--color-light-grey) !important;
428
+ margin-bottom: 1.5rem;
429
+ border-width: 0.15rem;
430
+
431
+ & > td.pivoted {
432
+ padding-left: var(--cell-padding-horiz) !important;
433
+
434
+ &:last-child {
435
+ border-bottom: none !important;
436
+ }
437
+ }
438
+
439
+ &:last-child {
440
+ margin-bottom: 0;
441
+ }
442
+ }
443
+
444
+ /* hide the icon button and show the text button if there is no default action displayed */
445
+ & .action-list-icon-button:not(.with-default-action) {
446
+ display: none;
447
+ }
448
+
449
+ & .action-list-text-button:not(.with-default-action) {
450
+ display: inherit;
451
+ }
452
+ }
453
+ }
454
+
455
+ /*
456
+ * table is responsive at small widths and below
457
+ */
458
+ @media (--lt-md) {
459
+ .responsiveTable-lt-md {
460
+ & td {
461
+ width: 100%;
462
+
463
+ & .tdBefore {
464
+ width: 100%;
465
+ position: static !important;
466
+ }
467
+ }
468
+
469
+ & tbody > tr {
470
+ background-color: color-mod(var(--color-off-white) l(99%));
471
+ border-color: var(--color-light-grey) !important;
472
+ margin-bottom: 1.5rem;
473
+ border-width: 0.15rem;
474
+
475
+ & > td.pivoted {
476
+ padding-left: var(--cell-padding-horiz) !important;
477
+
478
+ &:last-child {
479
+ border-bottom: none !important;
480
+ }
481
+ }
482
+
483
+ &:last-child {
484
+ margin-bottom: 0;
485
+ }
486
+ }
487
+
488
+ /* hide the icon button and show the text button if there is no default action displayed */
489
+ & .action-list-icon-button:not(.with-default-action) {
490
+ display: none;
491
+ }
492
+
493
+ & .action-list-text-button:not(.with-default-action) {
494
+ display: inherit;
495
+ }
496
+ }
497
+ }