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