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.
- package/LICENSE +21 -21
- package/README.md +137 -137
- package/lib/components/ActionList.d.ts +2 -2
- package/lib/components/ActionList.js +166 -87
- package/lib/components/AlertDialog.d.ts +3 -3
- package/lib/components/AlertDialog.js +133 -18
- package/lib/components/AlertWithIcon.js +93 -52
- package/lib/components/ConnectedModal.d.ts +1 -2
- package/lib/components/ConnectedModal.js +43 -37
- package/lib/components/Dropdowns/GroupsDropdown.d.ts +4 -4
- package/lib/components/Dropdowns/GroupsDropdown.js +69 -82
- package/lib/components/Dropdowns/ManagedNavDropdown.d.ts +2 -2
- package/lib/components/Dropdowns/ManagedNavDropdown.js +99 -111
- package/lib/components/Dropdowns/UserDropdown.js +109 -70
- package/lib/components/Dropdowns/index.js +27 -11
- package/lib/components/EntityOwnerList.d.ts +3 -3
- package/lib/components/EntityOwnerList.js +52 -60
- package/lib/components/Error.js +107 -27
- package/lib/components/ErrorBoundary.js +133 -94
- package/lib/components/ErrorMessage.d.ts +2 -2
- package/lib/components/ErrorMessage.js +44 -14
- package/lib/components/Forms/DateField.d.ts +2 -2
- package/lib/components/Forms/DateField.js +63 -95
- package/lib/components/Forms/TimeField.d.ts +2 -2
- package/lib/components/Forms/TimeField.js +84 -108
- package/lib/components/Forms/index.js +27 -13
- package/lib/components/Groups/CreateEditCopySaveButtons.d.ts +2 -2
- package/lib/components/Groups/CreateEditCopySaveButtons.js +102 -14
- package/lib/components/Groups/ExternalGroups/Attach.d.ts +6 -7
- package/lib/components/Groups/ExternalGroups/Attach.js +213 -188
- package/lib/components/Groups/ExternalGroups/Table.js +183 -76
- package/lib/components/Groups/GroupCreateOrEditCommonProps.js +5 -1
- package/lib/components/Groups/RosterSyncInfo.js +140 -49
- package/lib/components/HOC/AccessibleAppComponent.d.ts +2 -2
- package/lib/components/HOC/AccessibleAppComponent.js +101 -124
- package/lib/components/HOC/ActivityRequiredComponent.d.ts +14 -14
- package/lib/components/HOC/ActivityRequiredComponent.js +93 -107
- package/lib/components/HOC/AsyncComponent.d.ts +9 -9
- package/lib/components/HOC/AsyncComponent.js +53 -129
- package/lib/components/HOC/AuthenticatedComponent.d.ts +4 -4
- package/lib/components/HOC/AuthenticatedComponent.js +59 -96
- package/lib/components/HOC/CollectionComponent.d.ts +12 -12
- package/lib/components/HOC/CollectionComponent.js +171 -171
- package/lib/components/HOC/CollectionFirstItemComponent.d.ts +13 -13
- package/lib/components/HOC/CollectionFirstItemComponent.js +52 -94
- package/lib/components/HOC/CollectionItemComponent.d.ts +9 -9
- package/lib/components/HOC/CollectionItemComponent.js +169 -168
- package/lib/components/HOC/ConnectedModalComponent.d.ts +9 -9
- package/lib/components/HOC/ConnectedModalComponent.js +110 -140
- package/lib/components/HOC/DataDependentComponent.d.ts +3 -55
- package/lib/components/HOC/DataDependentComponent.js +30 -79
- package/lib/components/HOC/EntityComponent.d.ts +13 -13
- package/lib/components/HOC/EntityComponent.js +74 -112
- package/lib/components/HOC/FullscreenModalComponent.d.ts +9 -9
- package/lib/components/HOC/FullscreenModalComponent.js +165 -185
- package/lib/components/HOC/GroupActivityRequiredComponent.d.ts +2 -2
- package/lib/components/HOC/GroupActivityRequiredComponent.js +48 -47
- package/lib/components/HOC/GuidComponent.d.ts +1 -1
- package/lib/components/HOC/GuidComponent.js +29 -68
- package/lib/components/HOC/ModelContextDependencyVerifyComponent.d.ts +28 -29
- package/lib/components/HOC/ModelContextDependencyVerifyComponent.js +42 -65
- package/lib/components/HOC/ModelErrorRedirectComponent.d.ts +10 -10
- package/lib/components/HOC/ModelErrorRedirectComponent.js +51 -94
- package/lib/components/HOC/SearchPersistorComponent.d.ts +4 -4
- package/lib/components/HOC/SearchPersistorComponent.js +243 -216
- package/lib/components/HOC/UnauthenticatedComponent.d.ts +12 -12
- package/lib/components/HOC/UnauthenticatedComponent.js +37 -82
- package/lib/components/HOC/UserComponent.d.ts +1 -1
- package/lib/components/HOC/UserComponent.js +12 -11
- package/lib/components/Icons/IconAlphaList.js +34 -20
- package/lib/components/Icons/IconExternalUser.js +34 -20
- package/lib/components/Icons/IconImpersonation.js +34 -20
- package/lib/components/Icons/IconStopImpersonating.js +34 -20
- package/lib/components/Icons/IconTable.js +35 -21
- package/lib/components/Icons/IconTableDeleteCol.js +34 -20
- package/lib/components/Icons/IconTableDeleteRow.js +34 -20
- package/lib/components/Icons/IconTableInsertCol.js +34 -20
- package/lib/components/Icons/IconTableInsertRow.js +34 -20
- package/lib/components/Impersonation/Button.d.ts +2 -2
- package/lib/components/Impersonation/Button.js +76 -56
- package/lib/components/Impersonation/Link.d.ts +2 -2
- package/lib/components/Impersonation/Link.js +76 -53
- package/lib/components/Impersonation/UserDetail.css +22 -22
- package/lib/components/Impersonation/UserDetail.d.ts +2 -2
- package/lib/components/Impersonation/UserDetail.js +66 -17
- package/lib/components/Loading.js +27 -21
- package/lib/components/LockDownBrowser/Check.js +194 -107
- package/lib/components/LockDownBrowser/ExitButton.js +27 -14
- package/lib/components/LockDownBrowser/Launch.js +70 -85
- package/lib/components/Lti/Confirm.js +152 -33
- package/lib/components/Lti/CreateNonLtiGroupAlertDialog.d.ts +4 -2
- package/lib/components/Lti/CreateNonLtiGroupAlertDialog.js +170 -78
- package/lib/components/Lti/Launch.js +105 -49
- package/lib/components/Lti/LaunchGroup.js +85 -39
- package/lib/components/ManageTable.d.ts +1 -2
- package/lib/components/ManageTable.js +309 -104
- package/lib/components/ManageTableNoDataComponent.js +42 -22
- package/lib/components/NewVersionAlert.d.ts +2 -2
- package/lib/components/NewVersionAlert.js +82 -91
- package/lib/components/NotFound.js +87 -28
- package/lib/components/Notifications.d.ts +4 -4
- package/lib/components/Notifications.js +187 -169
- package/lib/components/PaginationNextButton.js +33 -21
- package/lib/components/PaginationPreviousButton.js +33 -21
- package/lib/components/Quill/CustomToolbar.d.ts +2 -2
- package/lib/components/Quill/CustomToolbar.js +432 -257
- package/lib/components/Quill/Formats/Image.d.ts +10 -25
- package/lib/components/Quill/Formats/Image.js +80 -86
- package/lib/components/Quill/Formats/List.d.ts +6 -3
- package/lib/components/Quill/Formats/List.js +52 -74
- package/lib/components/Quill/Formats/Video.d.ts +2 -1
- package/lib/components/Quill/Formats/Video.js +31 -45
- package/lib/components/Quill/ImageDropModule.d.ts +1 -1
- package/lib/components/Quill/ImageDropModule.js +149 -122
- package/lib/components/Quill/ImageWarning.d.ts +2 -2
- package/lib/components/Quill/ImageWarning.js +45 -32
- package/lib/components/Quill/ImageWithAltTextModal.d.ts +0 -1
- package/lib/components/Quill/ImageWithAltTextModal.js +425 -141
- package/lib/components/Quill/Specs/CustomImageSpec.d.ts +1 -1
- package/lib/components/Quill/Specs/CustomImageSpec.js +43 -51
- package/lib/components/Quill/Specs/CustomVideoSpec.d.ts +1 -1
- package/lib/components/Quill/Specs/CustomVideoSpec.js +35 -44
- package/lib/components/Quill/TableModule/Blots/BaseTableBlot.d.ts +2 -1
- package/lib/components/Quill/TableModule/Blots/BaseTableBlot.js +105 -121
- package/lib/components/Quill/TableModule/Blots/TableBlot.js +53 -66
- package/lib/components/Quill/TableModule/Blots/TableBodyBlot.js +54 -67
- package/lib/components/Quill/TableModule/Blots/TableCellBlot.d.ts +1 -1
- package/lib/components/Quill/TableModule/Blots/TableCellBlot.js +225 -241
- package/lib/components/Quill/TableModule/Blots/TableContainer.js +82 -99
- package/lib/components/Quill/TableModule/Blots/TableRowBlot.js +76 -87
- package/lib/components/Quill/TableModule/constants.js +45 -41
- package/lib/components/Quill/TableModule/index.css +171 -171
- package/lib/components/Quill/TableModule/index.d.ts +14 -5
- package/lib/components/Quill/TableModule/index.js +373 -313
- package/lib/components/Quill/TableModule/utils.js +45 -45
- package/lib/components/Quill/accessibilityFix.d.ts +0 -1
- package/lib/components/Quill/accessibilityFix.js +235 -251
- package/lib/components/Quill/index.js +36 -32
- package/lib/components/RefreshIndicator/Bordered.js +48 -32
- package/lib/components/RefreshIndicator/Inline.js +48 -33
- package/lib/components/RefreshIndicator/index.d.ts +2 -2
- package/lib/components/RefreshIndicator/index.js +263 -113
- package/lib/components/SearchControls.js +216 -31
- package/lib/components/SentryRoute.js +10 -23
- package/lib/components/Tables/RoleFilter.d.ts +3 -4
- package/lib/components/Tables/RoleFilter.js +71 -46
- package/lib/components/Tables/TextFilter.d.ts +2 -3
- package/lib/components/Tables/TextFilter.js +62 -20
- package/lib/components/UserRoles/Add.d.ts +3 -3
- package/lib/components/UserRoles/Add.js +199 -161
- package/lib/components/UserRoles/Context.js +11 -9
- package/lib/components/UserRoles/RoleCell.js +180 -100
- package/lib/components/UserRoles/Select.js +157 -51
- package/lib/components/UserRoles/Table.js +221 -102
- package/lib/components/UserRoles/index.d.ts +6 -6
- package/lib/components/UserRoles/index.js +537 -466
- package/lib/config/eslint/index.d.ts +2 -0
- package/lib/config/eslint/index.js +36 -0
- package/lib/config/eslint/lib/order.d.ts +3 -0
- package/lib/config/eslint/lib/order.js +30 -0
- package/lib/config/eslint/lib/prettier.d.ts +3 -0
- package/lib/config/eslint/lib/prettier.js +23 -0
- package/lib/config/eslint/lib/typescript.d.ts +2 -0
- package/lib/config/eslint/lib/typescript.js +98 -0
- package/lib/config/eslint/react.d.ts +2 -0
- package/lib/config/eslint/react.js +30 -0
- package/lib/constants/baseActivity.js +30 -26
- package/lib/constants/baseRole.js +14 -10
- package/lib/constants/configuration.d.ts +1 -1
- package/lib/constants/configuration.js +43 -39
- package/lib/constants/externalProviderType.js +10 -6
- package/lib/constants/fetchErrorData.js +15 -11
- package/lib/constants/index.js +137 -23
- package/lib/constants/lockDownBrowser.js +28 -24
- package/lib/constants/mockData.d.ts +4 -6
- package/lib/constants/mockData.js +385 -326
- package/lib/constants/modelStatus.js +15 -11
- package/lib/constants/notificationType.js +12 -8
- package/lib/constants/operatingSystem.js +12 -8
- package/lib/constants/shard.js +11 -7
- package/lib/constants/table.js +21 -21
- package/lib/constants/tier.js +12 -8
- package/lib/constants/userRole.d.ts +1 -2
- package/lib/constants/userRole.js +15 -17
- 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 +397 -397
- package/lib/css/components/_forms.css +101 -101
- package/lib/css/components/_menu.css +56 -56
- package/lib/css/components/_modals.css +46 -46
- package/lib/css/components/_quill.css +315 -315
- package/lib/css/components/_tables.css +497 -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 -312
- package/lib/css/utils/_general.css +48 -48
- package/lib/css/utils/_icon.css +16 -16
- package/lib/css/utils/_text.css +25 -24
- package/lib/css/utils/_width.css +60 -60
- package/lib/css/variables.css +84 -84
- package/lib/endpointMappings.js +197 -193
- package/lib/hooks/useCollection.js +83 -65
- package/lib/hooks/useCollectionConfiguration.d.ts +0 -1
- package/lib/hooks/useCollectionConfiguration.js +185 -88
- package/lib/hooks/useCollectionItem.js +155 -58
- package/lib/hooks/useEventCalback.d.ts +14 -0
- package/lib/hooks/useEventCalback.js +51 -0
- package/lib/hooks/useGuid.js +21 -10
- package/lib/hooks/usePrevious.d.ts +24 -1
- package/lib/hooks/usePrevious.js +84 -14
- package/lib/index.js +156 -36
- package/lib/redux/actionCreator.d.ts +6 -6
- package/lib/redux/actionCreator.js +51 -40
- package/lib/redux/actions/AuthAction.js +44 -31
- package/lib/redux/actions/ModalAction.d.ts +1 -1
- package/lib/redux/actions/ModalAction.js +10 -6
- package/lib/redux/actions/ModelAction.d.ts +1 -1
- package/lib/redux/actions/ModelAction.js +77 -49
- package/lib/redux/actions/NotificationAction.js +10 -6
- package/lib/redux/actions/SearchAction.js +9 -5
- package/lib/redux/actions/index.js +60 -16
- package/lib/redux/configureReducers.d.ts +2 -5
- package/lib/redux/configureReducers.js +67 -78
- package/lib/redux/configureStore.d.ts +2 -2
- package/lib/redux/configureStore.js +83 -115
- package/lib/redux/helpers.js +7 -2
- package/lib/redux/reducers/authReducer.js +52 -46
- package/lib/redux/reducers/index.js +41 -15
- package/lib/redux/reducers/modalsReducer.js +49 -52
- package/lib/redux/reducers/modelsReducer.d.ts +2 -2
- package/lib/redux/reducers/modelsReducer.js +183 -182
- package/lib/redux/reducers/notificationsReducer.js +26 -21
- package/lib/redux/reducers/searchReducer.js +26 -20
- package/lib/redux/sagas/appInsightsSaga.js +24 -62
- package/lib/redux/sagas/authSaga.js +287 -414
- package/lib/redux/sagas/caliperSaga.js +169 -263
- package/lib/redux/sagas/clockOffsetSaga.js +36 -77
- package/lib/redux/sagas/configurationSaga.js +13 -46
- package/lib/redux/sagas/downtimeApiErrorSaga.d.ts +0 -1
- package/lib/redux/sagas/downtimeApiErrorSaga.js +23 -64
- package/lib/redux/sagas/errorSaga.d.ts +0 -1
- package/lib/redux/sagas/errorSaga.js +29 -63
- package/lib/redux/sagas/googleAnalyticsSaga.js +29 -69
- package/lib/redux/sagas/identityProviderSaga.js +24 -69
- package/lib/redux/sagas/initialDataLoadSaga.js +38 -29
- package/lib/redux/sagas/lockDownBrowserErrorSaga.d.ts +0 -1
- package/lib/redux/sagas/lockDownBrowserErrorSaga.js +32 -81
- package/lib/redux/sagas/modelFetchSaga.js +379 -459
- package/lib/redux/sagas/noStoreSaga.d.ts +1 -1
- package/lib/redux/sagas/noStoreSaga.js +68 -101
- package/lib/redux/sagas/postLoginDataSaga.js +47 -79
- package/lib/redux/sagas/postLoginRedirectSaga.js +30 -71
- package/lib/redux/sagas/rootSaga.js +85 -137
- package/lib/redux/sagas/sentrySaga.js +29 -85
- package/lib/redux/sagas/userIdSaga.js +18 -54
- package/lib/services/codeProviderService.js +25 -29
- package/lib/services/dateService.js +14 -12
- package/lib/services/documentService.js +18 -13
- package/lib/services/fetchService.js +134 -168
- package/lib/services/persistenceService.d.ts +4 -4
- package/lib/services/persistenceService.js +45 -43
- package/lib/services/ticketProviderService.js +29 -33
- package/lib/services/tokenPersistenceService.js +13 -9
- package/lib/services/windowService.js +21 -17
- package/lib/startup.d.ts +1 -1
- package/lib/startup.js +132 -135
- package/lib/types/AppConfiguration.js +5 -1
- package/lib/types/Artifact.js +11 -7
- package/lib/types/BaseReduxState.js +5 -1
- package/lib/types/Client.js +5 -1
- package/lib/types/Collection.d.ts +3 -3
- package/lib/types/Collection.js +5 -1
- package/lib/types/Configuration.js +5 -1
- package/lib/types/DeepLinkingResponseRequest.js +5 -1
- package/lib/types/DeletableModel.js +5 -1
- package/lib/types/Event.js +5 -1
- package/lib/types/ExternalGroup.js +5 -1
- package/lib/types/ExternalProvider.js +5 -1
- package/lib/types/ExternalTerm.js +5 -1
- package/lib/types/Group.js +5 -1
- package/lib/types/IdentityProvider.js +5 -1
- package/lib/types/LtiLaunch.js +5 -1
- package/lib/types/NameOnlyEntity.js +5 -1
- package/lib/types/Notification.d.ts +2 -2
- package/lib/types/Notification.js +5 -1
- package/lib/types/OptionalRecord.d.ts +1 -1
- package/lib/types/OptionalRecord.js +5 -1
- package/lib/types/OwnerSchedule.d.ts +3 -1
- package/lib/types/OwnerSchedule.js +5 -1
- package/lib/types/PropertyOfType.d.ts +3 -3
- package/lib/types/PropertyOfType.js +5 -1
- package/lib/types/Quill.js +5 -1
- package/lib/types/RoleDescription.d.ts +0 -1
- package/lib/types/RoleDescription.js +5 -1
- package/lib/types/Search.js +5 -1
- package/lib/types/SimpleLocation.js +5 -1
- package/lib/types/UniTime.js +5 -1
- package/lib/types/User.js +5 -1
- package/lib/types/UserRole.js +5 -1
- package/lib/types/auth/AuthState.js +5 -1
- package/lib/types/auth/CasV1LoginRequestBody.js +5 -1
- package/lib/types/auth/ClientCredentials.js +5 -1
- package/lib/types/auth/CodeProviderService.js +5 -1
- package/lib/types/auth/LocalLoginRequestBody.js +5 -1
- package/lib/types/auth/TicketProviderService.js +5 -1
- package/lib/types/auth/TokenPersistenceService.js +5 -1
- package/lib/types/auth/index.js +82 -18
- package/lib/types/externals.d.js +2 -0
- package/lib/types/index.js +313 -39
- package/lib/types/net/EndpointConfig.js +5 -1
- package/lib/types/net/EndpointMapping.js +5 -1
- package/lib/types/net/EndpointMappings.js +5 -1
- package/lib/types/net/ErrorHandler.d.ts +1 -1
- package/lib/types/net/ErrorHandler.js +5 -1
- package/lib/types/net/FetchConfig.d.ts +1 -1
- package/lib/types/net/FetchConfig.js +5 -1
- package/lib/types/net/FetchErrorData.js +10 -6
- package/lib/types/net/FetchResult.d.ts +2 -2
- package/lib/types/net/FetchResult.js +5 -1
- package/lib/types/net/HTTPMethod.d.ts +1 -1
- package/lib/types/net/HTTPMethod.js +5 -1
- package/lib/types/net/HTTPStatusCode.js +16 -12
- package/lib/types/net/Metadata.js +5 -1
- package/lib/types/net/Model.js +5 -1
- package/lib/types/net/ModelCollection.js +5 -1
- package/lib/types/net/ModelsState.js +5 -1
- package/lib/types/net/OAuthToken.js +5 -1
- package/lib/types/net/OAuthTokenOrNull.d.ts +1 -1
- package/lib/types/net/OAuthTokenOrNull.js +5 -1
- package/lib/types/net/TokenAccessFunction.d.ts +1 -1
- package/lib/types/net/TokenAccessFunction.js +5 -1
- package/lib/types/net/index.js +181 -27
- package/lib/utils/baseActivity.d.ts +2 -2
- package/lib/utils/baseActivity.js +138 -136
- package/lib/utils/baseRole.js +37 -33
- package/lib/utils/collection.js +432 -310
- package/lib/utils/cookies.js +22 -37
- package/lib/utils/date.js +320 -320
- package/lib/utils/dom.js +186 -174
- package/lib/utils/domainIdentifier.js +9 -9
- package/lib/utils/entityUserRole.js +6 -2
- package/lib/utils/error.d.ts +1 -1
- package/lib/utils/error.js +18 -16
- package/lib/utils/events.js +40 -33
- package/lib/utils/externalGroup.js +25 -21
- package/lib/utils/externalProviders.js +8 -4
- package/lib/utils/externalTerms.js +9 -6
- package/lib/utils/fetch.d.ts +1 -1
- package/lib/utils/fetch.js +188 -185
- package/lib/utils/group.js +17 -9
- package/lib/utils/groupDates.d.ts +1 -1
- package/lib/utils/groupDates.js +43 -39
- package/lib/utils/groupRoles.js +28 -28
- package/lib/utils/lockDownBrowser.js +16 -12
- package/lib/utils/logger.js +30 -25
- package/lib/utils/lti.js +10 -5
- package/lib/utils/model.d.ts +2 -2
- package/lib/utils/model.js +39 -48
- package/lib/utils/number.js +23 -26
- package/lib/utils/promise.d.ts +6 -1
- package/lib/utils/promise.js +34 -15
- package/lib/utils/quill.js +66 -77
- package/lib/utils/route.d.ts +2 -2
- package/lib/utils/route.js +61 -60
- package/lib/utils/search.d.ts +1 -1
- package/lib/utils/search.js +78 -85
- package/lib/utils/shard.js +38 -41
- package/lib/utils/sort.d.ts +3 -3
- package/lib/utils/sort.js +62 -58
- package/lib/utils/string.js +14 -10
- package/lib/utils/table.d.ts +3 -3
- package/lib/utils/table.js +39 -36
- package/lib/utils/timezone.js +12 -26
- package/lib/utils/url.d.ts +2 -1
- package/lib/utils/url.js +146 -200
- package/lib/utils/user.js +59 -61
- package/lib/utils/userAgent.js +11 -11
- package/lib/utils/userRole.d.ts +3 -3
- package/lib/utils/userRole.js +58 -56
- package/package.json +224 -207
- package/lib/config/eslint/index.cjs +0 -21
- package/lib/config/eslint/lib/order.cjs +0 -22
- package/lib/config/eslint/lib/prettier.cjs +0 -18
- package/lib/config/eslint/lib/typescript.cjs +0 -86
- package/lib/config/eslint/react.cjs +0 -9
|
@@ -1,171 +1,171 @@
|
|
|
1
|
-
.ql-snow .ql-editor .table-container {
|
|
2
|
-
margin-bottom: 1rem;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.ql-snow .ql-editor table {
|
|
6
|
-
border-collapse: collapse;
|
|
7
|
-
width: fit-content;
|
|
8
|
-
|
|
9
|
-
& td {
|
|
10
|
-
border: 1px solid black;
|
|
11
|
-
padding: 5px;
|
|
12
|
-
vertical-align: top;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
& img {
|
|
16
|
-
max-width: fit-content;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ql-table.dn {
|
|
21
|
-
display: none !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ql-picker.ql-table {
|
|
25
|
-
font-size: 11px;
|
|
26
|
-
font-weight: normal;
|
|
27
|
-
|
|
28
|
-
& .ql-picker-label {
|
|
29
|
-
display: block;
|
|
30
|
-
width: 28px;
|
|
31
|
-
height: 24px;
|
|
32
|
-
padding: 1px 4px;
|
|
33
|
-
|
|
34
|
-
& svg {
|
|
35
|
-
position: static !important;
|
|
36
|
-
margin: 0 !important;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
& .ql-picker-options {
|
|
41
|
-
width: 178px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
& .ql-picker-item {
|
|
45
|
-
display: block;
|
|
46
|
-
float: left;
|
|
47
|
-
width: 30px;
|
|
48
|
-
height: 30px;
|
|
49
|
-
line-height: 30px;
|
|
50
|
-
text-align: center;
|
|
51
|
-
padding: 0;
|
|
52
|
-
margin: 1px;
|
|
53
|
-
border: 1px solid #444;
|
|
54
|
-
color: #444;
|
|
55
|
-
|
|
56
|
-
&:nth-child(5)::after {
|
|
57
|
-
clear: both;
|
|
58
|
-
display: block;
|
|
59
|
-
content: "";
|
|
60
|
-
width: 100%;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&:hover {
|
|
64
|
-
background-color: var(--color-primary);
|
|
65
|
-
|
|
66
|
-
&::before {
|
|
67
|
-
color: var(--color-white);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.ql-picker-item[data-value=newtable_1_1]::before {
|
|
74
|
-
content: "1x1";
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ql-picker-item[data-value=newtable_1_2]::before {
|
|
78
|
-
content: "1x2";
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.ql-picker-item[data-value=newtable_1_3]::before {
|
|
82
|
-
content: "1x3";
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.ql-picker-item[data-value=newtable_1_4]::before {
|
|
86
|
-
content: "1x4";
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.ql-picker-item[data-value=newtable_1_5]::before {
|
|
90
|
-
content: "1x5";
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ql-picker-item[data-value=newtable_2_1]::before {
|
|
94
|
-
content: "2x1";
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.ql-picker-item[data-value=newtable_2_2]::before {
|
|
98
|
-
content: "2x2";
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.ql-picker-item[data-value=newtable_2_3]::before {
|
|
102
|
-
content: "2x3";
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ql-picker-item[data-value=newtable_2_4]::before {
|
|
106
|
-
content: "2x4";
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.ql-picker-item[data-value=newtable_2_5]::before {
|
|
110
|
-
content: "2x5";
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.ql-picker-item[data-value=newtable_3_1]::before {
|
|
114
|
-
content: "3x1";
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.ql-picker-item[data-value=newtable_3_2]::before {
|
|
118
|
-
content: "3x2";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.ql-picker-item[data-value=newtable_3_3]::before {
|
|
122
|
-
content: "3x3";
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.ql-picker-item[data-value=newtable_3_4]::before {
|
|
126
|
-
content: "3x4";
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.ql-picker-item[data-value=newtable_3_5]::before {
|
|
130
|
-
content: "3x5";
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.ql-picker-item[data-value=newtable_4_1]::before {
|
|
134
|
-
content: "4x1";
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.ql-picker-item[data-value=newtable_4_2]::before {
|
|
138
|
-
content: "4x2";
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.ql-picker-item[data-value=newtable_4_3]::before {
|
|
142
|
-
content: "4x3";
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.ql-picker-item[data-value=newtable_4_4]::before {
|
|
146
|
-
content: "4x4";
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.ql-picker-item[data-value=newtable_4_5]::before {
|
|
150
|
-
content: "4x5";
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.ql-picker-item[data-value=newtable_5_1]::before {
|
|
154
|
-
content: "5x1";
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.ql-picker-item[data-value=newtable_5_2]::before {
|
|
158
|
-
content: "5x2";
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.ql-picker-item[data-value=newtable_5_3]::before {
|
|
162
|
-
content: "5x3";
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.ql-picker-item[data-value=newtable_5_4]::before {
|
|
166
|
-
content: "5x4";
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.ql-picker-item[data-value=newtable_5_5]::before {
|
|
170
|
-
content: "5x5";
|
|
171
|
-
}
|
|
1
|
+
.ql-snow .ql-editor .table-container {
|
|
2
|
+
margin-bottom: 1rem;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.ql-snow .ql-editor table {
|
|
6
|
+
border-collapse: collapse;
|
|
7
|
+
width: fit-content;
|
|
8
|
+
|
|
9
|
+
& td {
|
|
10
|
+
border: 1px solid black;
|
|
11
|
+
padding: 5px;
|
|
12
|
+
vertical-align: top;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
& img {
|
|
16
|
+
max-width: fit-content;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ql-table.dn {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ql-picker.ql-table {
|
|
25
|
+
font-size: 11px;
|
|
26
|
+
font-weight: normal;
|
|
27
|
+
|
|
28
|
+
& .ql-picker-label {
|
|
29
|
+
display: block;
|
|
30
|
+
width: 28px;
|
|
31
|
+
height: 24px;
|
|
32
|
+
padding: 1px 4px;
|
|
33
|
+
|
|
34
|
+
& svg {
|
|
35
|
+
position: static !important;
|
|
36
|
+
margin: 0 !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
& .ql-picker-options {
|
|
41
|
+
width: 178px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
& .ql-picker-item {
|
|
45
|
+
display: block;
|
|
46
|
+
float: left;
|
|
47
|
+
width: 30px;
|
|
48
|
+
height: 30px;
|
|
49
|
+
line-height: 30px;
|
|
50
|
+
text-align: center;
|
|
51
|
+
padding: 0;
|
|
52
|
+
margin: 1px;
|
|
53
|
+
border: 1px solid #444;
|
|
54
|
+
color: #444;
|
|
55
|
+
|
|
56
|
+
&:nth-child(5)::after {
|
|
57
|
+
clear: both;
|
|
58
|
+
display: block;
|
|
59
|
+
content: "";
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: var(--color-primary);
|
|
65
|
+
|
|
66
|
+
&::before {
|
|
67
|
+
color: var(--color-white);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ql-picker-item[data-value="newtable_1_1"]::before {
|
|
74
|
+
content: "1x1";
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ql-picker-item[data-value="newtable_1_2"]::before {
|
|
78
|
+
content: "1x2";
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ql-picker-item[data-value="newtable_1_3"]::before {
|
|
82
|
+
content: "1x3";
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ql-picker-item[data-value="newtable_1_4"]::before {
|
|
86
|
+
content: "1x4";
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ql-picker-item[data-value="newtable_1_5"]::before {
|
|
90
|
+
content: "1x5";
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ql-picker-item[data-value="newtable_2_1"]::before {
|
|
94
|
+
content: "2x1";
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ql-picker-item[data-value="newtable_2_2"]::before {
|
|
98
|
+
content: "2x2";
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ql-picker-item[data-value="newtable_2_3"]::before {
|
|
102
|
+
content: "2x3";
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ql-picker-item[data-value="newtable_2_4"]::before {
|
|
106
|
+
content: "2x4";
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ql-picker-item[data-value="newtable_2_5"]::before {
|
|
110
|
+
content: "2x5";
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ql-picker-item[data-value="newtable_3_1"]::before {
|
|
114
|
+
content: "3x1";
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ql-picker-item[data-value="newtable_3_2"]::before {
|
|
118
|
+
content: "3x2";
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ql-picker-item[data-value="newtable_3_3"]::before {
|
|
122
|
+
content: "3x3";
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ql-picker-item[data-value="newtable_3_4"]::before {
|
|
126
|
+
content: "3x4";
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ql-picker-item[data-value="newtable_3_5"]::before {
|
|
130
|
+
content: "3x5";
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ql-picker-item[data-value="newtable_4_1"]::before {
|
|
134
|
+
content: "4x1";
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ql-picker-item[data-value="newtable_4_2"]::before {
|
|
138
|
+
content: "4x2";
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.ql-picker-item[data-value="newtable_4_3"]::before {
|
|
142
|
+
content: "4x3";
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ql-picker-item[data-value="newtable_4_4"]::before {
|
|
146
|
+
content: "4x4";
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ql-picker-item[data-value="newtable_4_5"]::before {
|
|
150
|
+
content: "4x5";
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ql-picker-item[data-value="newtable_5_1"]::before {
|
|
154
|
+
content: "5x1";
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ql-picker-item[data-value="newtable_5_2"]::before {
|
|
158
|
+
content: "5x2";
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.ql-picker-item[data-value="newtable_5_3"]::before {
|
|
162
|
+
content: "5x3";
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ql-picker-item[data-value="newtable_5_4"]::before {
|
|
166
|
+
content: "5x4";
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ql-picker-item[data-value="newtable_5_5"]::before {
|
|
170
|
+
content: "5x5";
|
|
171
|
+
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { RangeStatic } from 'quill';
|
|
1
|
+
import { RangeStatic, StringMap } from 'quill';
|
|
2
2
|
import { Quill } from 'react-quill';
|
|
3
3
|
import { TableBlot } from './Blots/TableBlot';
|
|
4
4
|
import { TableCellBlot } from './Blots/TableCellBlot';
|
|
5
|
+
interface Context {
|
|
6
|
+
collapsed: boolean;
|
|
7
|
+
empty: boolean;
|
|
8
|
+
format: StringMap;
|
|
9
|
+
offset: number;
|
|
10
|
+
prefix: string;
|
|
11
|
+
suffix: string;
|
|
12
|
+
}
|
|
5
13
|
export declare class TableModule {
|
|
6
14
|
static register(): void;
|
|
7
15
|
quill: Quill;
|
|
@@ -9,15 +17,16 @@ export declare class TableModule {
|
|
|
9
17
|
tableToolbarControls: HTMLElement[];
|
|
10
18
|
constructor(quill: Quill, options: any);
|
|
11
19
|
showOrHideToolbarControls: () => void;
|
|
12
|
-
handleBackspace: (range: RangeStatic, context:
|
|
13
|
-
handleDelete: (range: RangeStatic, context:
|
|
20
|
+
handleBackspace: (range: RangeStatic, context: Context) => boolean;
|
|
21
|
+
handleDelete: (range: RangeStatic, context: Context) => boolean;
|
|
14
22
|
handleDeleteRange: (range: RangeStatic) => boolean;
|
|
15
23
|
getSelectedCell(): TableCellBlot | null;
|
|
16
24
|
getSelectedTable(): TableBlot | undefined;
|
|
17
25
|
tableHandler(action: string): void;
|
|
18
26
|
addNewTable(action: string, range: RangeStatic): void;
|
|
19
|
-
insertCol(selectedCell: TableCellBlot
|
|
20
|
-
insertRow(selectedCell: TableCellBlot
|
|
27
|
+
insertCol(selectedCell: TableCellBlot): void;
|
|
28
|
+
insertRow(selectedCell: TableCellBlot): void;
|
|
21
29
|
deleteCol(selectedCell: TableCellBlot): void;
|
|
22
30
|
deleteRow(selectedCell: TableCellBlot): void;
|
|
23
31
|
}
|
|
32
|
+
export {};
|