mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ACS-6630] Moved ExtensionComposition and ExtensionCompositionEntry components from js-api to core.
This commit is contained in:
22
lib/core/src/lib/models/app-config-plugin-ref.ts
Normal file
22
lib/core/src/lib/models/app-config-plugin-ref.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export class AppConfigPluginRef {
|
||||
plugins: {
|
||||
[key: string]: boolean;
|
||||
} = {};
|
||||
}
|
22
lib/core/src/lib/models/extension-composition-entry.ts
Normal file
22
lib/core/src/lib/models/extension-composition-entry.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ExtensionComposition } from './extension-composition';
|
||||
|
||||
export class ExtensionCompositionEntry {
|
||||
entry: ExtensionComposition;
|
||||
}
|
29
lib/core/src/lib/models/extension-composition.ts
Normal file
29
lib/core/src/lib/models/extension-composition.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AppConfigPluginRef } from './app-config-plugin-ref';
|
||||
import { RouteRef, RuleRef, ActionRef } from '@alfresco/adf-extensions';
|
||||
|
||||
export class ExtensionComposition {
|
||||
appConfig: AppConfigPluginRef = new AppConfigPluginRef();
|
||||
rules?: Array<RuleRef> = [];
|
||||
routes?: Array<RouteRef> = [];
|
||||
actions?: Array<ActionRef> = [];
|
||||
features?: {
|
||||
[key: string]: any;
|
||||
} = {};
|
||||
}
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ActionRef, RouteRef, RuleRef } from '@alfresco/js-api';
|
||||
import { ActionRef, RouteRef, RuleRef } from '@alfresco/adf-extensions';
|
||||
|
||||
export class ExtensionInfoModel {
|
||||
$id: string;
|
||||
|
@@ -18,9 +18,12 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { AlfrescoApiService } from './alfresco-api.service';
|
||||
import { from, Observable } from 'rxjs';
|
||||
import { AppConfigPluginRef, SettingsApi, ExtensionCompositionEntry, ExtensionComposition } from '@alfresco/js-api';
|
||||
import { SettingsApi } from '@alfresco/js-api';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { ExtensionInfoModel } from '../models';
|
||||
import { ExtensionCompositionEntry } from '../models/extension-composition-entry';
|
||||
import { AppConfigPluginRef } from '../models/app-config-plugin-ref';
|
||||
import { ExtensionComposition } from '../models/extension-composition';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
|
Reference in New Issue
Block a user