* [ci:force] migrate from QueryBody to SearchQuery * [ci:force] migrate from QueryBody to SearchQuery * [ci:force] migrate from QueryBody to SearchQuery * [ci:force] update docs and variables as per code review
8.9 KiB
Title
| Title |
|---|
| Breaking changes, 2.6.0 -> 3.0.0 |
Breaking changes, 2.6.0 -> 3.0.0
This document lists all the deprecated ADF v2.x components that were removed for v3.0.0:
-
PR ADF-3354: The
adf-accordioncomponent has been removed.<adf-accordion> <adf-accordion-group> ...Use the Angular Material Expansion Panel as an alternative.
-
PR ADF-3746: In order to prevent our ADF style classes interfering with other projects, a new set of style lint rules has been added. These rules enforce the use of the adf- prefix in all our classes. Please refer to the PR to see the list of the all styles that were changed. If you have been rewriting any ADF classes without the adf- prefix, you will now need to update them. For example,
.card-viewis now.adf-card-view. -
PR ADF-1443:
DownloadZipDialogComponentandNodeDownloadDirectivehave been moved from the Content Services module to the Core module. This modification has enabled us to remove some code duplication between the two modules. -
adf-search-control: TheSearchRequest, andcustomQueryBodyinputs of theSearchControlComponenthave been removed in favor of the custom search configuration interface. The inputs were deprecated in v2.1.0.<adf-viewer>: ThefileNodeIdinput that supplies theNodeId of the file to load has been renamed asnodeId.<adf-viewer>: TheallowShareinput has been removed. Inject the Share Directive in a custom toolbar to recreate the behavior of the Share button.<adf-viewer>: TheallowSidebarinput has now been split intoallowLeftSidebarandallowRightSidebar.<adf-viewer>: TheshowSidebarinput has now been split intoshowLeftSidebarandshowRightSidebar.<adf-viewer>: ThesidebarTemplateinput has now been split intosidebarLeftTemplateandsidebarRightTemplate.<adf-viewer>: ThesidebarPositioninput has been removed since it is not needed anymore (you can now have two sidebars on the left and right at the same time).analytics-report-listis nowadf-analytics-report-list.analytics-report-parametersis nowadf-analytics-report-parameters.CommentProcessModelwas moved into the Core library with the nameCommentModelin v2.3.0. Now you can only import it fromCoreModule.CommentsModule,CommentListComponent, andCommentsComponentare no longer exported fromProcessModulebut now fromCoreModule. The old usage was deprecated in v2.3.0.<adf-upload-drag-area>: TheparentIdinput has been renamed asrootFolderId. The old name was deprecated in v2.4.0.- The
createFolderevent of theUploadBaseclass (emitted when a folder was created) was deprecated in v2.4.0 and is no longer used by the framework Use thesuccessevent instead. <adf-filters>is now<adf-task-filters>. The old usage was deprecated in v2.4.0.adf-restore, which was deprecated in v2.4.0, has been removed because it was not working properly. A new feature to implement this functionality correctly has been created. See ADF-3901 for more information.<adf-form>: TheonErrorevent (emitted when any error occurs) was deprecated in v2.4.0. It has now been renamed aserror.context-menu-holderis nowadf-context-menu-holder.- The
file-draggableevent (emitted when one or more files are dragged and dropped onto the draggable element) was deprecated in v2.4.0 and has now been removed. UsefilesDroppedinstead to get the same effect. - The
DocumentListService.hasPermissionmethod was redundant and has now been removed. UseContentService.hasAllowableOperationsinstead. - The
diagram-sequence-flowtag has now been renamed asadf-diagram-sequence-flow. The old name was deprecated in v2.3.0. - The
diagram-alfresco-publish-tasktag has now been renamed asadf-diagram-publish-task. The old name was deprecated in v2.3.0. <adf-login>: ThedisableCsrfinput has been removed. Use thedisableCsrfproperty inapp.config.jsoninstead.<adf-login>: Theprovidersinput has been removed. Use theprovidersproperty inapp.config.jsoninstead.<adf-document-list>: TheskipCountinput has been removed. You can define the same value in pagination using thepageSizeproperty.<adf-document-list>: TheenableInfiniteScrollinginput has been removed since it is not used anymore. To choose the pagination strategy, add either the Infinite Pagination Component or the normal Pagination Component and assign your document list as thetarget.<adf-document-list>: ThefolderNodeinput has been removed. Use thecurrentFolderIdandnodeinputs instead.SettingsServicehas been removed. This was deprecated in v1.7.0.FormService: theaddFieldsToAFormmethod has been removed.<file-uploading-dialog>has been renamed to<adf-file-uploading-dialog>.
-
-
The name package of the JS-API has been modified to use the namespace and all alfresco-js-api imports need to be modified to @alfresco/js-api. See the official JS-API documentation for more details on how to use the new v3.0.0 Legacy Endpoint porting.
-
The JS-API
callApimethod signature has been modified. TheauthNamesparameter has now been removed because the type of authentication is configured when the JS-API is constructed.v2.6.1 and before:
callApi( path: string, httpMethod: string, pathParams?: any, queryParams?: any, headerParams?: any, formParams?: any, bodyParam?: any, authNames?: string[], contentTypes?: string[], accepts?: string[], returnType?: any, contextRoot?: string, responseType?: string ): Promise<any>;After v3.0.0:
callApi( path: string, httpMethod: string, pathParams?: any, queryParams?: any, headerParams?: any, formParams?: any, bodyParam?: any, contentTypes?: string[], accepts?: string[], returnType?: any, contextRoot?: string, responseType?: string ): Promise<any>;
-
-
adf-node-permissionhas been renamedadf-check-allowable-operation.ContentService.hasPermissionwas actually checking theallowableOperationvalue and has been renamed asContentService.hasAllowableOperations.ContentService.hasPermissionsis a new method which actually does check the permissions.