studiokit-scaffolding-js 7.0.12 → 7.1.0

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 +166 -87
  5. package/lib/components/AlertDialog.d.ts +3 -3
  6. package/lib/components/AlertDialog.js +133 -18
  7. package/lib/components/AlertWithIcon.js +93 -52
  8. package/lib/components/ConnectedModal.d.ts +1 -2
  9. package/lib/components/ConnectedModal.js +43 -37
  10. package/lib/components/Dropdowns/GroupsDropdown.d.ts +4 -4
  11. package/lib/components/Dropdowns/GroupsDropdown.js +69 -82
  12. package/lib/components/Dropdowns/ManagedNavDropdown.d.ts +2 -2
  13. package/lib/components/Dropdowns/ManagedNavDropdown.js +99 -111
  14. package/lib/components/Dropdowns/UserDropdown.js +109 -70
  15. package/lib/components/Dropdowns/index.js +27 -11
  16. package/lib/components/EntityOwnerList.d.ts +3 -3
  17. package/lib/components/EntityOwnerList.js +52 -60
  18. package/lib/components/Error.js +107 -27
  19. package/lib/components/ErrorBoundary.js +133 -94
  20. package/lib/components/ErrorMessage.d.ts +2 -2
  21. package/lib/components/ErrorMessage.js +44 -14
  22. package/lib/components/Forms/DateField.d.ts +2 -2
  23. package/lib/components/Forms/DateField.js +63 -95
  24. package/lib/components/Forms/TimeField.d.ts +2 -2
  25. package/lib/components/Forms/TimeField.js +84 -108
  26. package/lib/components/Forms/index.js +27 -13
  27. package/lib/components/Groups/CreateEditCopySaveButtons.d.ts +2 -2
  28. package/lib/components/Groups/CreateEditCopySaveButtons.js +102 -14
  29. package/lib/components/Groups/ExternalGroups/Attach.d.ts +6 -7
  30. package/lib/components/Groups/ExternalGroups/Attach.js +213 -188
  31. package/lib/components/Groups/ExternalGroups/Table.js +183 -76
  32. package/lib/components/Groups/GroupCreateOrEditCommonProps.js +5 -1
  33. package/lib/components/Groups/RosterSyncInfo.js +140 -49
  34. package/lib/components/HOC/AccessibleAppComponent.d.ts +2 -2
  35. package/lib/components/HOC/AccessibleAppComponent.js +101 -124
  36. package/lib/components/HOC/ActivityRequiredComponent.d.ts +14 -14
  37. package/lib/components/HOC/ActivityRequiredComponent.js +93 -107
  38. package/lib/components/HOC/AsyncComponent.d.ts +9 -9
  39. package/lib/components/HOC/AsyncComponent.js +53 -129
  40. package/lib/components/HOC/AuthenticatedComponent.d.ts +4 -4
  41. package/lib/components/HOC/AuthenticatedComponent.js +59 -96
  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 +52 -94
  46. package/lib/components/HOC/CollectionItemComponent.d.ts +9 -9
  47. package/lib/components/HOC/CollectionItemComponent.js +169 -168
  48. package/lib/components/HOC/ConnectedModalComponent.d.ts +9 -9
  49. package/lib/components/HOC/ConnectedModalComponent.js +110 -140
  50. package/lib/components/HOC/DataDependentComponent.d.ts +3 -55
  51. package/lib/components/HOC/DataDependentComponent.js +30 -79
  52. package/lib/components/HOC/EntityComponent.d.ts +13 -13
  53. package/lib/components/HOC/EntityComponent.js +74 -112
  54. package/lib/components/HOC/FullscreenModalComponent.d.ts +9 -9
  55. package/lib/components/HOC/FullscreenModalComponent.js +165 -185
  56. package/lib/components/HOC/GroupActivityRequiredComponent.d.ts +2 -2
  57. package/lib/components/HOC/GroupActivityRequiredComponent.js +48 -47
  58. package/lib/components/HOC/GuidComponent.d.ts +1 -1
  59. package/lib/components/HOC/GuidComponent.js +29 -68
  60. package/lib/components/HOC/ModelContextDependencyVerifyComponent.d.ts +28 -29
  61. package/lib/components/HOC/ModelContextDependencyVerifyComponent.js +42 -65
  62. package/lib/components/HOC/ModelErrorRedirectComponent.d.ts +10 -10
  63. package/lib/components/HOC/ModelErrorRedirectComponent.js +51 -94
  64. package/lib/components/HOC/SearchPersistorComponent.d.ts +4 -4
  65. package/lib/components/HOC/SearchPersistorComponent.js +243 -216
  66. package/lib/components/HOC/UnauthenticatedComponent.d.ts +12 -12
  67. package/lib/components/HOC/UnauthenticatedComponent.js +37 -82
  68. package/lib/components/HOC/UserComponent.d.ts +1 -1
  69. package/lib/components/HOC/UserComponent.js +12 -11
  70. package/lib/components/Icons/IconAlphaList.js +34 -20
  71. package/lib/components/Icons/IconExternalUser.js +34 -20
  72. package/lib/components/Icons/IconImpersonation.js +34 -20
  73. package/lib/components/Icons/IconStopImpersonating.js +34 -20
  74. package/lib/components/Icons/IconTable.js +35 -21
  75. package/lib/components/Icons/IconTableDeleteCol.js +34 -20
  76. package/lib/components/Icons/IconTableDeleteRow.js +34 -20
  77. package/lib/components/Icons/IconTableInsertCol.js +34 -20
  78. package/lib/components/Icons/IconTableInsertRow.js +34 -20
  79. package/lib/components/Impersonation/Button.d.ts +2 -2
  80. package/lib/components/Impersonation/Button.js +76 -56
  81. package/lib/components/Impersonation/Link.d.ts +2 -2
  82. package/lib/components/Impersonation/Link.js +76 -53
  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 +66 -17
  86. package/lib/components/Loading.js +27 -21
  87. package/lib/components/LockDownBrowser/Check.js +194 -107
  88. package/lib/components/LockDownBrowser/ExitButton.js +27 -14
  89. package/lib/components/LockDownBrowser/Launch.js +70 -85
  90. package/lib/components/Lti/Confirm.js +152 -33
  91. package/lib/components/Lti/CreateNonLtiGroupAlertDialog.d.ts +4 -2
  92. package/lib/components/Lti/CreateNonLtiGroupAlertDialog.js +170 -78
  93. package/lib/components/Lti/Launch.js +105 -49
  94. package/lib/components/Lti/LaunchGroup.js +85 -39
  95. package/lib/components/ManageTable.d.ts +1 -2
  96. package/lib/components/ManageTable.js +309 -104
  97. package/lib/components/ManageTableNoDataComponent.js +42 -22
  98. package/lib/components/NewVersionAlert.d.ts +2 -2
  99. package/lib/components/NewVersionAlert.js +82 -91
  100. package/lib/components/NotFound.js +87 -28
  101. package/lib/components/Notifications.d.ts +4 -4
  102. package/lib/components/Notifications.js +187 -169
  103. package/lib/components/PaginationNextButton.js +33 -21
  104. package/lib/components/PaginationPreviousButton.js +33 -21
  105. package/lib/components/Quill/CustomToolbar.d.ts +2 -2
  106. package/lib/components/Quill/CustomToolbar.js +432 -257
  107. package/lib/components/Quill/Formats/Image.d.ts +10 -25
  108. package/lib/components/Quill/Formats/Image.js +80 -86
  109. package/lib/components/Quill/Formats/List.d.ts +6 -3
  110. package/lib/components/Quill/Formats/List.js +52 -74
  111. package/lib/components/Quill/Formats/Video.d.ts +2 -1
  112. package/lib/components/Quill/Formats/Video.js +31 -45
  113. package/lib/components/Quill/ImageDropModule.d.ts +1 -1
  114. package/lib/components/Quill/ImageDropModule.js +149 -122
  115. package/lib/components/Quill/ImageWarning.d.ts +2 -2
  116. package/lib/components/Quill/ImageWarning.js +45 -32
  117. package/lib/components/Quill/ImageWithAltTextModal.d.ts +0 -1
  118. package/lib/components/Quill/ImageWithAltTextModal.js +425 -141
  119. package/lib/components/Quill/Specs/CustomImageSpec.d.ts +1 -1
  120. package/lib/components/Quill/Specs/CustomImageSpec.js +43 -51
  121. package/lib/components/Quill/Specs/CustomVideoSpec.d.ts +1 -1
  122. package/lib/components/Quill/Specs/CustomVideoSpec.js +35 -44
  123. package/lib/components/Quill/TableModule/Blots/BaseTableBlot.d.ts +2 -1
  124. package/lib/components/Quill/TableModule/Blots/BaseTableBlot.js +105 -121
  125. package/lib/components/Quill/TableModule/Blots/TableBlot.js +53 -66
  126. package/lib/components/Quill/TableModule/Blots/TableBodyBlot.js +54 -67
  127. package/lib/components/Quill/TableModule/Blots/TableCellBlot.d.ts +1 -1
  128. package/lib/components/Quill/TableModule/Blots/TableCellBlot.js +225 -241
  129. package/lib/components/Quill/TableModule/Blots/TableContainer.js +82 -99
  130. package/lib/components/Quill/TableModule/Blots/TableRowBlot.js +76 -87
  131. package/lib/components/Quill/TableModule/constants.js +45 -41
  132. package/lib/components/Quill/TableModule/index.css +171 -171
  133. package/lib/components/Quill/TableModule/index.d.ts +14 -5
  134. package/lib/components/Quill/TableModule/index.js +373 -313
  135. package/lib/components/Quill/TableModule/utils.js +45 -45
  136. package/lib/components/Quill/accessibilityFix.d.ts +0 -1
  137. package/lib/components/Quill/accessibilityFix.js +235 -251
  138. package/lib/components/Quill/index.js +36 -32
  139. package/lib/components/RefreshIndicator/Bordered.js +48 -32
  140. package/lib/components/RefreshIndicator/Inline.js +48 -33
  141. package/lib/components/RefreshIndicator/index.d.ts +2 -2
  142. package/lib/components/RefreshIndicator/index.js +263 -113
  143. package/lib/components/SearchControls.js +216 -31
  144. package/lib/components/SentryRoute.js +10 -23
  145. package/lib/components/Tables/RoleFilter.d.ts +3 -4
  146. package/lib/components/Tables/RoleFilter.js +71 -46
  147. package/lib/components/Tables/TextFilter.d.ts +2 -3
  148. package/lib/components/Tables/TextFilter.js +62 -20
  149. package/lib/components/UserRoles/Add.d.ts +3 -3
  150. package/lib/components/UserRoles/Add.js +199 -161
  151. package/lib/components/UserRoles/Context.js +11 -9
  152. package/lib/components/UserRoles/RoleCell.js +180 -100
  153. package/lib/components/UserRoles/Select.js +157 -51
  154. package/lib/components/UserRoles/Table.js +221 -102
  155. package/lib/components/UserRoles/index.d.ts +6 -6
  156. package/lib/components/UserRoles/index.js +537 -466
  157. package/lib/config/eslint/index.d.ts +2 -0
  158. package/lib/config/eslint/index.js +36 -0
  159. package/lib/config/eslint/lib/order.d.ts +3 -0
  160. package/lib/config/eslint/lib/order.js +30 -0
  161. package/lib/config/eslint/lib/prettier.d.ts +3 -0
  162. package/lib/config/eslint/lib/prettier.js +23 -0
  163. package/lib/config/eslint/lib/typescript.d.ts +2 -0
  164. package/lib/config/eslint/lib/typescript.js +98 -0
  165. package/lib/config/eslint/react.d.ts +2 -0
  166. package/lib/config/eslint/react.js +30 -0
  167. package/lib/constants/baseActivity.js +30 -26
  168. package/lib/constants/baseRole.js +14 -10
  169. package/lib/constants/configuration.d.ts +1 -1
  170. package/lib/constants/configuration.js +43 -39
  171. package/lib/constants/externalProviderType.js +10 -6
  172. package/lib/constants/fetchErrorData.js +15 -11
  173. package/lib/constants/index.js +137 -23
  174. package/lib/constants/lockDownBrowser.js +28 -24
  175. package/lib/constants/mockData.d.ts +4 -6
  176. package/lib/constants/mockData.js +385 -326
  177. package/lib/constants/modelStatus.js +15 -11
  178. package/lib/constants/notificationType.js +12 -8
  179. package/lib/constants/operatingSystem.js +12 -8
  180. package/lib/constants/shard.js +11 -7
  181. package/lib/constants/table.js +21 -21
  182. package/lib/constants/tier.js +12 -8
  183. package/lib/constants/userRole.d.ts +1 -2
  184. package/lib/constants/userRole.js +15 -17
  185. package/lib/css/base/_base.css +98 -98
  186. package/lib/css/base/_typography.css +130 -130
  187. package/lib/css/components/_alert.css +86 -86
  188. package/lib/css/components/_bootstrap-grid.css +28 -28
  189. package/lib/css/components/_buttons.css +397 -397
  190. package/lib/css/components/_forms.css +101 -101
  191. package/lib/css/components/_menu.css +56 -56
  192. package/lib/css/components/_modals.css +46 -46
  193. package/lib/css/components/_quill.css +315 -315
  194. package/lib/css/components/_tables.css +497 -497
  195. package/lib/css/components/_tags.css +12 -12
  196. package/lib/css/index-with-variables.css +15 -15
  197. package/lib/css/index.css +14 -14
  198. package/lib/css/utils/_border.css +463 -463
  199. package/lib/css/utils/_color.css +317 -317
  200. package/lib/css/utils/_display.css +305 -312
  201. package/lib/css/utils/_general.css +48 -48
  202. package/lib/css/utils/_icon.css +16 -16
  203. package/lib/css/utils/_text.css +25 -24
  204. package/lib/css/utils/_width.css +60 -60
  205. package/lib/css/variables.css +84 -84
  206. package/lib/endpointMappings.js +197 -193
  207. package/lib/hooks/useCollection.js +83 -65
  208. package/lib/hooks/useCollectionConfiguration.d.ts +0 -1
  209. package/lib/hooks/useCollectionConfiguration.js +185 -88
  210. package/lib/hooks/useCollectionItem.js +155 -58
  211. package/lib/hooks/useEventCalback.d.ts +14 -0
  212. package/lib/hooks/useEventCalback.js +51 -0
  213. package/lib/hooks/useGuid.js +21 -10
  214. package/lib/hooks/usePrevious.d.ts +24 -1
  215. package/lib/hooks/usePrevious.js +84 -14
  216. package/lib/index.js +156 -36
  217. package/lib/redux/actionCreator.d.ts +6 -6
  218. package/lib/redux/actionCreator.js +51 -40
  219. package/lib/redux/actions/AuthAction.js +44 -31
  220. package/lib/redux/actions/ModalAction.d.ts +1 -1
  221. package/lib/redux/actions/ModalAction.js +10 -6
  222. package/lib/redux/actions/ModelAction.d.ts +1 -1
  223. package/lib/redux/actions/ModelAction.js +77 -49
  224. package/lib/redux/actions/NotificationAction.js +10 -6
  225. package/lib/redux/actions/SearchAction.js +9 -5
  226. package/lib/redux/actions/index.js +60 -16
  227. package/lib/redux/configureReducers.d.ts +2 -5
  228. package/lib/redux/configureReducers.js +67 -78
  229. package/lib/redux/configureStore.d.ts +2 -2
  230. package/lib/redux/configureStore.js +83 -115
  231. package/lib/redux/helpers.js +7 -2
  232. package/lib/redux/reducers/authReducer.js +52 -46
  233. package/lib/redux/reducers/index.js +41 -15
  234. package/lib/redux/reducers/modalsReducer.js +49 -52
  235. package/lib/redux/reducers/modelsReducer.d.ts +2 -2
  236. package/lib/redux/reducers/modelsReducer.js +183 -182
  237. package/lib/redux/reducers/notificationsReducer.js +26 -21
  238. package/lib/redux/reducers/searchReducer.js +26 -20
  239. package/lib/redux/sagas/appInsightsSaga.js +24 -62
  240. package/lib/redux/sagas/authSaga.js +287 -414
  241. package/lib/redux/sagas/caliperSaga.js +169 -263
  242. package/lib/redux/sagas/clockOffsetSaga.js +36 -77
  243. package/lib/redux/sagas/configurationSaga.js +13 -46
  244. package/lib/redux/sagas/downtimeApiErrorSaga.d.ts +0 -1
  245. package/lib/redux/sagas/downtimeApiErrorSaga.js +23 -64
  246. package/lib/redux/sagas/errorSaga.d.ts +0 -1
  247. package/lib/redux/sagas/errorSaga.js +29 -63
  248. package/lib/redux/sagas/googleAnalyticsSaga.js +29 -69
  249. package/lib/redux/sagas/identityProviderSaga.js +24 -69
  250. package/lib/redux/sagas/initialDataLoadSaga.js +38 -29
  251. package/lib/redux/sagas/lockDownBrowserErrorSaga.d.ts +0 -1
  252. package/lib/redux/sagas/lockDownBrowserErrorSaga.js +32 -81
  253. package/lib/redux/sagas/modelFetchSaga.js +379 -459
  254. package/lib/redux/sagas/noStoreSaga.d.ts +1 -1
  255. package/lib/redux/sagas/noStoreSaga.js +68 -101
  256. package/lib/redux/sagas/postLoginDataSaga.js +47 -79
  257. package/lib/redux/sagas/postLoginRedirectSaga.js +30 -71
  258. package/lib/redux/sagas/rootSaga.js +85 -137
  259. package/lib/redux/sagas/sentrySaga.js +29 -85
  260. package/lib/redux/sagas/userIdSaga.js +18 -54
  261. package/lib/services/codeProviderService.js +25 -29
  262. package/lib/services/dateService.js +14 -12
  263. package/lib/services/documentService.js +18 -13
  264. package/lib/services/fetchService.js +134 -168
  265. package/lib/services/persistenceService.d.ts +4 -4
  266. package/lib/services/persistenceService.js +45 -43
  267. package/lib/services/ticketProviderService.js +29 -33
  268. package/lib/services/tokenPersistenceService.js +13 -9
  269. package/lib/services/windowService.js +21 -17
  270. package/lib/startup.d.ts +1 -1
  271. package/lib/startup.js +132 -135
  272. package/lib/types/AppConfiguration.js +5 -1
  273. package/lib/types/Artifact.js +11 -7
  274. package/lib/types/BaseReduxState.js +5 -1
  275. package/lib/types/Client.js +5 -1
  276. package/lib/types/Collection.d.ts +3 -3
  277. package/lib/types/Collection.js +5 -1
  278. package/lib/types/Configuration.js +5 -1
  279. package/lib/types/DeepLinkingResponseRequest.js +5 -1
  280. package/lib/types/DeletableModel.js +5 -1
  281. package/lib/types/Event.js +5 -1
  282. package/lib/types/ExternalGroup.js +5 -1
  283. package/lib/types/ExternalProvider.js +5 -1
  284. package/lib/types/ExternalTerm.js +5 -1
  285. package/lib/types/Group.js +5 -1
  286. package/lib/types/IdentityProvider.js +5 -1
  287. package/lib/types/LtiLaunch.js +5 -1
  288. package/lib/types/NameOnlyEntity.js +5 -1
  289. package/lib/types/Notification.d.ts +2 -2
  290. package/lib/types/Notification.js +5 -1
  291. package/lib/types/OptionalRecord.d.ts +1 -1
  292. package/lib/types/OptionalRecord.js +5 -1
  293. package/lib/types/OwnerSchedule.d.ts +3 -1
  294. package/lib/types/OwnerSchedule.js +5 -1
  295. package/lib/types/PropertyOfType.d.ts +3 -3
  296. package/lib/types/PropertyOfType.js +5 -1
  297. package/lib/types/Quill.js +5 -1
  298. package/lib/types/RoleDescription.d.ts +0 -1
  299. package/lib/types/RoleDescription.js +5 -1
  300. package/lib/types/Search.js +5 -1
  301. package/lib/types/SimpleLocation.js +5 -1
  302. package/lib/types/UniTime.js +5 -1
  303. package/lib/types/User.js +5 -1
  304. package/lib/types/UserRole.js +5 -1
  305. package/lib/types/auth/AuthState.js +5 -1
  306. package/lib/types/auth/CasV1LoginRequestBody.js +5 -1
  307. package/lib/types/auth/ClientCredentials.js +5 -1
  308. package/lib/types/auth/CodeProviderService.js +5 -1
  309. package/lib/types/auth/LocalLoginRequestBody.js +5 -1
  310. package/lib/types/auth/TicketProviderService.js +5 -1
  311. package/lib/types/auth/TokenPersistenceService.js +5 -1
  312. package/lib/types/auth/index.js +82 -18
  313. package/lib/types/externals.d.js +2 -0
  314. package/lib/types/index.js +313 -39
  315. package/lib/types/net/EndpointConfig.js +5 -1
  316. package/lib/types/net/EndpointMapping.js +5 -1
  317. package/lib/types/net/EndpointMappings.js +5 -1
  318. package/lib/types/net/ErrorHandler.d.ts +1 -1
  319. package/lib/types/net/ErrorHandler.js +5 -1
  320. package/lib/types/net/FetchConfig.d.ts +1 -1
  321. package/lib/types/net/FetchConfig.js +5 -1
  322. package/lib/types/net/FetchErrorData.js +10 -6
  323. package/lib/types/net/FetchResult.d.ts +2 -2
  324. package/lib/types/net/FetchResult.js +5 -1
  325. package/lib/types/net/HTTPMethod.d.ts +1 -1
  326. package/lib/types/net/HTTPMethod.js +5 -1
  327. package/lib/types/net/HTTPStatusCode.js +16 -12
  328. package/lib/types/net/Metadata.js +5 -1
  329. package/lib/types/net/Model.js +5 -1
  330. package/lib/types/net/ModelCollection.js +5 -1
  331. package/lib/types/net/ModelsState.js +5 -1
  332. package/lib/types/net/OAuthToken.js +5 -1
  333. package/lib/types/net/OAuthTokenOrNull.d.ts +1 -1
  334. package/lib/types/net/OAuthTokenOrNull.js +5 -1
  335. package/lib/types/net/TokenAccessFunction.d.ts +1 -1
  336. package/lib/types/net/TokenAccessFunction.js +5 -1
  337. package/lib/types/net/index.js +181 -27
  338. package/lib/utils/baseActivity.d.ts +2 -2
  339. package/lib/utils/baseActivity.js +138 -136
  340. package/lib/utils/baseRole.js +37 -33
  341. package/lib/utils/collection.js +432 -310
  342. package/lib/utils/cookies.js +22 -37
  343. package/lib/utils/date.js +320 -320
  344. package/lib/utils/dom.js +186 -174
  345. package/lib/utils/domainIdentifier.js +9 -9
  346. package/lib/utils/entityUserRole.js +6 -2
  347. package/lib/utils/error.d.ts +1 -1
  348. package/lib/utils/error.js +18 -16
  349. package/lib/utils/events.js +40 -33
  350. package/lib/utils/externalGroup.js +25 -21
  351. package/lib/utils/externalProviders.js +8 -4
  352. package/lib/utils/externalTerms.js +9 -6
  353. package/lib/utils/fetch.d.ts +1 -1
  354. package/lib/utils/fetch.js +188 -185
  355. package/lib/utils/group.js +17 -9
  356. package/lib/utils/groupDates.d.ts +1 -1
  357. package/lib/utils/groupDates.js +43 -39
  358. package/lib/utils/groupRoles.js +28 -28
  359. package/lib/utils/lockDownBrowser.js +16 -12
  360. package/lib/utils/logger.js +30 -25
  361. package/lib/utils/lti.js +10 -5
  362. package/lib/utils/model.d.ts +2 -2
  363. package/lib/utils/model.js +39 -48
  364. package/lib/utils/number.js +23 -26
  365. package/lib/utils/promise.d.ts +6 -1
  366. package/lib/utils/promise.js +34 -15
  367. package/lib/utils/quill.js +66 -77
  368. package/lib/utils/route.d.ts +2 -2
  369. package/lib/utils/route.js +61 -60
  370. package/lib/utils/search.d.ts +1 -1
  371. package/lib/utils/search.js +78 -85
  372. package/lib/utils/shard.js +38 -41
  373. package/lib/utils/sort.d.ts +3 -3
  374. package/lib/utils/sort.js +62 -58
  375. package/lib/utils/string.js +14 -10
  376. package/lib/utils/table.d.ts +3 -3
  377. package/lib/utils/table.js +39 -36
  378. package/lib/utils/timezone.js +12 -26
  379. package/lib/utils/url.d.ts +2 -1
  380. package/lib/utils/url.js +146 -200
  381. package/lib/utils/user.js +59 -61
  382. package/lib/utils/userAgent.js +11 -11
  383. package/lib/utils/userRole.d.ts +3 -3
  384. package/lib/utils/userRole.js +58 -56
  385. package/package.json +224 -207
  386. package/lib/config/eslint/index.cjs +0 -21
  387. package/lib/config/eslint/lib/order.cjs +0 -22
  388. package/lib/config/eslint/lib/prettier.cjs +0 -18
  389. package/lib/config/eslint/lib/typescript.cjs +0 -86
  390. package/lib/config/eslint/react.cjs +0 -9
@@ -1,315 +1,315 @@
1
- @custom-selector :--quill-typography h1, h2, h3, h4, h5, h6, p, ol, ul, pre, blockquote;
2
- @custom-selector :--quill-plaintext p, ol, ul;
3
-
4
- :root {
5
- --quill-min-height: 10rem;
6
- --quill-max-height: 60vh;
7
- --quill-toolbars-height: 111px;
8
- }
9
-
10
- .quill {
11
- margin-bottom: 15px;
12
- border-bottom-color: var(--color-medium-dark-grey);
13
- }
14
-
15
- /* Loader */
16
-
17
- .quill-loader {
18
- min-height: calc(var(--quill-min-height) + var(--quill-toolbars-height));
19
- max-height: calc(var(--quill-max-height) + var(--quill-toolbars-height));
20
- position: relative;
21
- border: 1px solid var(--color-light-grey);
22
- }
23
-
24
- .quill-loader-inner {
25
- position: absolute;
26
- top: calc(50% - 20px - 1.25rem);
27
- left: calc(50% - 20px);
28
- }
29
-
30
- /* Editor */
31
-
32
- .ql-editor {
33
- background-color: var(--color-white);
34
- min-height: var(--quill-min-height);
35
- max-height: var(--quill-max-height);
36
- overflow: auto;
37
-
38
- & :--quill-typography {
39
- margin-bottom: 0.5rem;
40
- }
41
-
42
- & :--quill-plaintext {
43
- font-size: 1rem;
44
- }
45
- }
46
-
47
- /* Expandable toolbar */
48
-
49
- .more-options {
50
- float: right !important;
51
- padding: 0 0 0 2px !important;
52
- height: 30px !important;
53
-
54
- &.expanded {
55
- background: var(--color-light-grey) !important;
56
- }
57
- }
58
-
59
- .more-options-toolbar {
60
- border-top: 0 solid var(--color-light-grey);
61
- margin: 0;
62
- padding: 0;
63
- height: 0;
64
- transition: border-top linear 0.05s, margin linear 0.3s, padding linear 0.3s, height linear 0.3s, visibility linear 0.5s;
65
-
66
- & .ql-formats {
67
- opacity: 0;
68
- transition: opacity linear 0.3s;
69
- }
70
-
71
- &.expanded {
72
- border-top: 1px solid var(--color-light-grey);
73
- margin: 0.6rem -0.6rem 0;
74
- padding: 0.6rem 0.6rem 0;
75
- height: 36px;
76
-
77
- & .ql-formats {
78
- opacity: 1;
79
- }
80
- }
81
- }
82
-
83
- /* Toolbar */
84
-
85
- .ql-toolbar.ql-snow {
86
- padding: 0.6rem;
87
-
88
- &.disabled-invisible {
89
- padding: 0;
90
- height: 0;
91
- border-bottom: none;
92
- }
93
-
94
- &.read-only {
95
- background-color: var(--color-off-white);
96
- padding-top: 1rem;
97
- }
98
-
99
- &.Inline {
100
- background-color: var(--color-white);
101
- border-style: none;
102
- padding-left: 2px;
103
- padding-top: 1.2rem;
104
- border-top-right-radius: 0.5rem;
105
- border-bottom-right-radius: 0.5rem;
106
-
107
- &.read-only {
108
- background-color: var(--color-off-white);
109
- }
110
- }
111
- }
112
-
113
- .ql-container.ql-snow {
114
- border-top: none;
115
- overflow: visible;
116
- }
117
-
118
- .ql-toolbar.ql-snow .ql-formats {
119
- margin-right: 10px;
120
-
121
- &:last-child {
122
- margin-right: 0;
123
- }
124
- }
125
-
126
- /* Align */
127
-
128
- .ql-align svg {
129
- float: left;
130
- }
131
-
132
- /* Alpha Ordered List */
133
-
134
- .ql-editor ol[data-value="alpha"] > li {
135
- &::before {
136
- content: counter(list-0, lower-alpha) '. ';
137
- }
138
-
139
- &.ql-indent-1::before {
140
- content: counter(list-1, lower-roman) '. ';
141
- }
142
-
143
- &.ql-indent-2::before {
144
- content: counter(list-2, decimal) '. ';
145
- }
146
-
147
- &.ql-indent-3::before {
148
- content: counter(list-3, lower-alpha) '. ';
149
- }
150
-
151
- &.ql-indent-4::before {
152
- content: counter(list-4, lower-roman) '. ';
153
- }
154
-
155
- &.ql-indent-5::before {
156
- content: counter(list-5, decimal) '. ';
157
- }
158
-
159
- &.ql-indent-6::before {
160
- content: counter(list-6, lower-alpha) '. ';
161
- }
162
-
163
- &.ql-indent-7::before {
164
- content: counter(list-7, lower-roman) '. ';
165
- }
166
-
167
- &.ql-indent-8::before {
168
- content: counter(list-8, decimal) '. ';
169
- }
170
- }
171
-
172
- /* Images */
173
-
174
- .ql-snow .ql-editor img {
175
- max-width: 100%;
176
- object-fit: contain;
177
- }
178
-
179
- /* Disabled and Read Only */
180
-
181
- .ql-disabled {
182
- & .ql-editor {
183
- background-color: var(--color-off-white);
184
- }
185
- }
186
-
187
- .blurred-editor {
188
- overflow-y: auto;
189
-
190
- & .ql-editor {
191
- min-height: auto;
192
- max-height: none;
193
- padding: 0;
194
- background-color: var(--color-white);
195
- }
196
-
197
- & .ql-toolbar {
198
- display: none;
199
- }
200
-
201
- & .ql-container.ql-snow {
202
- border: none;
203
- }
204
- }
205
-
206
- /* stylelint-disable no-descending-specificity */
207
- .ql-snow.ql-toolbar,
208
- .ql-snow .ql-toolbar {
209
- /* Hover/Focus/Active overrides */
210
- & button:hover,
211
- & button:focus,
212
- & button.ql-active,
213
- & .ql-picker-label:hover,
214
- & .ql-picker-label:focus,
215
- & .ql-picker-label.ql-active,
216
- & .ql-picker-item:hover,
217
- & .ql-picker-item:focus,
218
- & .ql-picker-item.ql-selected {
219
- color: var(--color-primary) !important;
220
-
221
- & .ql-fill,
222
- & .ql-stroke.ql-fill {
223
- fill: var(--color-primary) !important;
224
- }
225
-
226
- & .ql-stroke {
227
- stroke: var(--color-primary) !important;
228
- }
229
- }
230
-
231
- /* Focus overrides */
232
- & button:focus,
233
- & button.ql-active,
234
- & .ql-picker-label:focus,
235
- & .ql-picker-label.ql-active,
236
- & .ql-picker-item:focus,
237
- & .ql-picker-item.ql-selected {
238
- outline: 2px solid var(--color-primary) !important;
239
- }
240
-
241
- /* Disabled overrides */
242
- & .ql-formula:disabled,
243
- & button:disabled,
244
- & button:hover:disabled,
245
- & button:focus:disabled,
246
- & button.ql-active:disabled {
247
- color: #777 !important;
248
- cursor: default;
249
-
250
- & svg {
251
- cursor: default;
252
- }
253
-
254
- & .ql-fill,
255
- & .ql-stroke.ql-fill {
256
- fill: #777 !important;
257
- cursor: default;
258
- }
259
-
260
- & .ql-stroke {
261
- stroke: #777 !important;
262
- }
263
- }
264
- }
265
-
266
- /* Inline - display with no background */
267
-
268
- .quill.inline {
269
- margin-bottom: 0;
270
-
271
- & .ql-container {
272
- background-color: transparent;
273
- }
274
-
275
- & .ql-editor {
276
- background-color: transparent;
277
- padding: 0.5rem 0;
278
- }
279
-
280
- & p:last-of-type {
281
- margin-bottom: 0;
282
- }
283
- }
284
-
285
- /* Hide line break in otherwise empty paragraph immediately preceded by a list */
286
- .quill.blurred-editor {
287
- & ol ~ p br:only-child,
288
- & ul ~ p br:only-child {
289
- display: none;
290
- }
291
- }
292
-
293
- .quill:focus-within {
294
- border-color: #80bdff;
295
- box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
296
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
297
- position: relative;
298
- z-index: 1;
299
-
300
- & .ql-container.ql-snow {
301
- border-color: #80bdff;
302
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
303
- }
304
- }
305
-
306
- .error {
307
- & .quill:focus-within {
308
- border-color: var(--color-red);
309
- box-shadow: 0 0 0 0.2rem rgb(220 53 69 / 25%);
310
-
311
- & .ql-container.ql-snow {
312
- border-color: var(--color-red);
313
- }
314
- }
315
- }
1
+ @custom-selector :--quill-typography h1, h2, h3, h4, h5, h6, p, ol, ul, pre, blockquote;
2
+ @custom-selector :--quill-plaintext p, ol, ul;
3
+
4
+ :root {
5
+ --quill-min-height: 10rem;
6
+ --quill-max-height: 60vh;
7
+ --quill-toolbars-height: 111px;
8
+ }
9
+
10
+ .quill {
11
+ margin-bottom: 15px;
12
+ border-bottom-color: var(--color-medium-dark-grey);
13
+ }
14
+
15
+ /* Loader */
16
+
17
+ .quill-loader {
18
+ min-height: calc(var(--quill-min-height) + var(--quill-toolbars-height));
19
+ max-height: calc(var(--quill-max-height) + var(--quill-toolbars-height));
20
+ position: relative;
21
+ border: 1px solid var(--color-light-grey);
22
+ }
23
+
24
+ .quill-loader-inner {
25
+ position: absolute;
26
+ top: calc(50% - 20px - 1.25rem);
27
+ left: calc(50% - 20px);
28
+ }
29
+
30
+ /* Editor */
31
+
32
+ .ql-editor {
33
+ background-color: var(--color-white);
34
+ min-height: var(--quill-min-height);
35
+ max-height: var(--quill-max-height);
36
+ overflow: auto;
37
+
38
+ & :--quill-typography {
39
+ margin-bottom: 0.5rem;
40
+ }
41
+
42
+ & :--quill-plaintext {
43
+ font-size: 1rem;
44
+ }
45
+ }
46
+
47
+ /* Expandable toolbar */
48
+
49
+ .more-options {
50
+ float: right !important;
51
+ padding: 0 0 0 2px !important;
52
+ height: 30px !important;
53
+
54
+ &.expanded {
55
+ background: var(--color-light-grey) !important;
56
+ }
57
+ }
58
+
59
+ .more-options-toolbar {
60
+ border-top: 0 solid var(--color-light-grey);
61
+ margin: 0;
62
+ padding: 0;
63
+ height: 0;
64
+ transition: border-top linear 0.05s, margin linear 0.3s, padding linear 0.3s, height linear 0.3s, visibility linear 0.5s;
65
+
66
+ & .ql-formats {
67
+ opacity: 0;
68
+ transition: opacity linear 0.3s;
69
+ }
70
+
71
+ &.expanded {
72
+ border-top: 1px solid var(--color-light-grey);
73
+ margin: 0.6rem -0.6rem 0;
74
+ padding: 0.6rem 0.6rem 0;
75
+ height: 36px;
76
+
77
+ & .ql-formats {
78
+ opacity: 1;
79
+ }
80
+ }
81
+ }
82
+
83
+ /* Toolbar */
84
+
85
+ .ql-toolbar.ql-snow {
86
+ padding: 0.6rem;
87
+
88
+ &.disabled-invisible {
89
+ padding: 0;
90
+ height: 0;
91
+ border-bottom: none;
92
+ }
93
+
94
+ &.read-only {
95
+ background-color: var(--color-off-white);
96
+ padding-top: 1rem;
97
+ }
98
+
99
+ &.Inline {
100
+ background-color: var(--color-white);
101
+ border-style: none;
102
+ padding-left: 2px;
103
+ padding-top: 1.2rem;
104
+ border-top-right-radius: 0.5rem;
105
+ border-bottom-right-radius: 0.5rem;
106
+
107
+ &.read-only {
108
+ background-color: var(--color-off-white);
109
+ }
110
+ }
111
+ }
112
+
113
+ .ql-container.ql-snow {
114
+ border-top: none;
115
+ overflow: visible;
116
+ }
117
+
118
+ .ql-toolbar.ql-snow .ql-formats {
119
+ margin-right: 10px;
120
+
121
+ &:last-child {
122
+ margin-right: 0;
123
+ }
124
+ }
125
+
126
+ /* Align */
127
+
128
+ .ql-align svg {
129
+ float: left;
130
+ }
131
+
132
+ /* Alpha Ordered List */
133
+
134
+ .ql-editor ol[data-value="alpha"] > li {
135
+ &::before {
136
+ content: counter(list-0, lower-alpha) '. ';
137
+ }
138
+
139
+ &.ql-indent-1::before {
140
+ content: counter(list-1, lower-roman) '. ';
141
+ }
142
+
143
+ &.ql-indent-2::before {
144
+ content: counter(list-2, decimal) '. ';
145
+ }
146
+
147
+ &.ql-indent-3::before {
148
+ content: counter(list-3, lower-alpha) '. ';
149
+ }
150
+
151
+ &.ql-indent-4::before {
152
+ content: counter(list-4, lower-roman) '. ';
153
+ }
154
+
155
+ &.ql-indent-5::before {
156
+ content: counter(list-5, decimal) '. ';
157
+ }
158
+
159
+ &.ql-indent-6::before {
160
+ content: counter(list-6, lower-alpha) '. ';
161
+ }
162
+
163
+ &.ql-indent-7::before {
164
+ content: counter(list-7, lower-roman) '. ';
165
+ }
166
+
167
+ &.ql-indent-8::before {
168
+ content: counter(list-8, decimal) '. ';
169
+ }
170
+ }
171
+
172
+ /* Images */
173
+
174
+ .ql-snow .ql-editor img {
175
+ max-width: 100%;
176
+ object-fit: contain;
177
+ }
178
+
179
+ /* Disabled and Read Only */
180
+
181
+ .ql-disabled {
182
+ & .ql-editor {
183
+ background-color: var(--color-off-white);
184
+ }
185
+ }
186
+
187
+ .blurred-editor {
188
+ overflow-y: auto;
189
+
190
+ & .ql-editor {
191
+ min-height: auto;
192
+ max-height: none;
193
+ padding: 0;
194
+ background-color: var(--color-white);
195
+ }
196
+
197
+ & .ql-toolbar {
198
+ display: none;
199
+ }
200
+
201
+ & .ql-container.ql-snow {
202
+ border: none;
203
+ }
204
+ }
205
+
206
+ /* stylelint-disable no-descending-specificity */
207
+ .ql-snow.ql-toolbar,
208
+ .ql-snow .ql-toolbar {
209
+ /* Hover/Focus/Active overrides */
210
+ & button:hover,
211
+ & button:focus,
212
+ & button.ql-active,
213
+ & .ql-picker-label:hover,
214
+ & .ql-picker-label:focus,
215
+ & .ql-picker-label.ql-active,
216
+ & .ql-picker-item:hover,
217
+ & .ql-picker-item:focus,
218
+ & .ql-picker-item.ql-selected {
219
+ color: var(--color-primary) !important;
220
+
221
+ & .ql-fill,
222
+ & .ql-stroke.ql-fill {
223
+ fill: var(--color-primary) !important;
224
+ }
225
+
226
+ & .ql-stroke {
227
+ stroke: var(--color-primary) !important;
228
+ }
229
+ }
230
+
231
+ /* Focus overrides */
232
+ & button:focus,
233
+ & button.ql-active,
234
+ & .ql-picker-label:focus,
235
+ & .ql-picker-label.ql-active,
236
+ & .ql-picker-item:focus,
237
+ & .ql-picker-item.ql-selected {
238
+ outline: 2px solid var(--color-primary) !important;
239
+ }
240
+
241
+ /* Disabled overrides */
242
+ & .ql-formula:disabled,
243
+ & button:disabled,
244
+ & button:hover:disabled,
245
+ & button:focus:disabled,
246
+ & button.ql-active:disabled {
247
+ color: #777 !important;
248
+ cursor: default;
249
+
250
+ & svg {
251
+ cursor: default;
252
+ }
253
+
254
+ & .ql-fill,
255
+ & .ql-stroke.ql-fill {
256
+ fill: #777 !important;
257
+ cursor: default;
258
+ }
259
+
260
+ & .ql-stroke {
261
+ stroke: #777 !important;
262
+ }
263
+ }
264
+ }
265
+
266
+ /* Inline - display with no background */
267
+
268
+ .quill.inline {
269
+ margin-bottom: 0;
270
+
271
+ & .ql-container {
272
+ background-color: transparent;
273
+ }
274
+
275
+ & .ql-editor {
276
+ background-color: transparent;
277
+ padding: 0.5rem 0;
278
+ }
279
+
280
+ & p:last-of-type {
281
+ margin-bottom: 0;
282
+ }
283
+ }
284
+
285
+ /* Hide line break in otherwise empty paragraph immediately preceded by a list */
286
+ .quill.blurred-editor {
287
+ & ol ~ p br:only-child,
288
+ & ul ~ p br:only-child {
289
+ display: none;
290
+ }
291
+ }
292
+
293
+ .quill:focus-within {
294
+ border-color: #80bdff;
295
+ box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
296
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
297
+ position: relative;
298
+ z-index: 1;
299
+
300
+ & .ql-container.ql-snow {
301
+ border-color: #80bdff;
302
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
303
+ }
304
+ }
305
+
306
+ .error {
307
+ & .quill:focus-within {
308
+ border-color: var(--color-red);
309
+ box-shadow: 0 0 0 0.2rem rgb(220 53 69 / 25%);
310
+
311
+ & .ql-container.ql-snow {
312
+ border-color: var(--color-red);
313
+ }
314
+ }
315
+ }