@alfresco/adf-core 8.1.0-16167969203 → 8.1.0-16168969238
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/fesm2022/adf-core.mjs +141 -112
- package/fesm2022/adf-core.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-shell.mjs +32 -11
- package/fesm2022/alfresco-adf-core-shell.mjs.map +1 -1
- package/lib/app-config/app-config.module.d.ts +1 -0
- package/lib/app-config/provide-app-config.d.ts +23 -0
- package/lib/app-config/public-api.d.ts +1 -0
- package/lib/core.module.d.ts +124 -128
- package/lib/form/form-base.module.d.ts +1 -0
- package/lib/testing/core.testing.module.d.ts +1 -0
- package/lib/testing/noop-translate.module.d.ts +1 -2
- package/package.json +3 -3
- package/shell/README.md +10 -6
- package/shell/index.d.ts +1 -0
- package/shell/lib/shell.module.d.ts +4 -7
- package/shell/lib/shell.routes.d.ts +13 -1
|
@@ -2,7 +2,6 @@ import { TranslationService } from '../translation/translation.service';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/common/http/testing";
|
|
5
|
-
import * as i2 from "@ngx-translate/core";
|
|
6
5
|
export declare class NoopTranslationService implements TranslationService {
|
|
7
6
|
defaultLang: string;
|
|
8
7
|
userLang: string;
|
|
@@ -19,6 +18,6 @@ export declare class NoopTranslationService implements TranslationService {
|
|
|
19
18
|
}
|
|
20
19
|
export declare class NoopTranslateModule {
|
|
21
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopTranslateModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NoopTranslateModule, never, [typeof i1.HttpClientTestingModule
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NoopTranslateModule, never, [typeof i1.HttpClientTestingModule], never>;
|
|
23
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<NoopTranslateModule>;
|
|
24
23
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-core",
|
|
3
3
|
"description": "Alfresco ADF core",
|
|
4
|
-
"version": "8.1.0-
|
|
4
|
+
"version": "8.1.0-16168969238",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"@angular/router": ">=16.0.0",
|
|
64
64
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
65
65
|
"@ngx-translate/core": ">=16.0.0",
|
|
66
|
-
"@alfresco/js-api": ">=9.1.0-
|
|
67
|
-
"@alfresco/adf-extensions": ">=8.1.0-
|
|
66
|
+
"@alfresco/js-api": ">=9.1.0-16168969238",
|
|
67
|
+
"@alfresco/adf-extensions": ">=8.1.0-16168969238",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
69
|
"pdfjs-dist": ">=3.3.122",
|
|
70
70
|
"ts-morph": ">=20.0.0"
|
package/shell/README.md
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
# @alfresco/adf-core/shell
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Namespace: `@alfresco/adf-core/shell`.
|
|
4
|
+
|
|
5
|
+
This module provides the main layout for the application, allowing you to define routes and guards for your application shell.
|
|
4
6
|
|
|
5
7
|
# Shell
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
Passed routes are going to be attached to shell main route.
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
```typescript
|
|
12
|
+
import { provideShellRoutes } from '@alfresco/adf-core/shell';
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
provideShellRoutes([/*Your Routes*/])
|
|
15
|
+
```
|
|
12
16
|
|
|
13
|
-
If you would like to provide custom app guard, you can provide your own using
|
|
17
|
+
If you would like to provide custom app guard, you can provide your own using `SHELL_AUTH_TOKEN`.
|
|
14
18
|
|
|
15
19
|
## Shell Service
|
|
16
20
|
|
|
17
|
-
In order to use `shell`, you need to provide
|
|
21
|
+
In order to use `shell`, you need to provide `SHELL_APP_SERVICE` which provides necessary options for shell component to work.
|
package/shell/index.d.ts
CHANGED
|
@@ -15,16 +15,13 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { ModuleWithProviders } from '@angular/core';
|
|
18
|
-
import { Routes
|
|
18
|
+
import { Routes } from '@angular/router';
|
|
19
|
+
import { AppShellRoutesConfig } from './shell.routes';
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
|
-
|
|
21
|
-
export interface AppShellRoutesConfig {
|
|
22
|
-
shellParentRoute?: Route;
|
|
23
|
-
shellChildren: Routes;
|
|
24
|
-
}
|
|
21
|
+
/** @deprecated use `provideShellRoutes` instead */
|
|
25
22
|
export declare class ShellModule {
|
|
26
23
|
static withRoutes(routes: Routes | AppShellRoutesConfig): ModuleWithProviders<ShellModule>;
|
|
27
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShellModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ShellModule, never,
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ShellModule, never, never, never>;
|
|
29
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<ShellModule>;
|
|
30
27
|
}
|
|
@@ -14,5 +14,17 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { Route } from '@angular/router';
|
|
17
|
+
import { Route, Routes } from '@angular/router';
|
|
18
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
18
19
|
export declare const SHELL_LAYOUT_ROUTE: Route;
|
|
20
|
+
export interface AppShellRoutesConfig {
|
|
21
|
+
shellParentRoute?: Route;
|
|
22
|
+
shellChildren: Routes;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Provides shell routes for the application.
|
|
26
|
+
*
|
|
27
|
+
* @param routes The routes configuration for the shell.
|
|
28
|
+
* @returns An array of providers for the shell routes.
|
|
29
|
+
*/
|
|
30
|
+
export declare function provideShellRoutes(routes: Routes | AppShellRoutesConfig): EnvironmentProviders[];
|