@alfresco/adf-core 8.1.0-16320806191 → 8.1.0-16342534841
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/esm2022/lib/app-config/app-config.module.mjs +1 -1
- package/esm2022/lib/app-config/provide-app-config.mjs +44 -0
- package/esm2022/lib/app-config/public-api.mjs +2 -1
- package/esm2022/lib/core.module.mjs +146 -164
- package/esm2022/lib/form/components/form-renderer.component.mjs +3 -3
- package/esm2022/lib/form/form-base.module.mjs +3 -18
- package/esm2022/lib/testing/core.testing.module.mjs +2 -1
- package/esm2022/lib/testing/noop-translate.module.mjs +22 -8
- package/esm2022/lib/translation/translate-loader.service.mjs +7 -2
- package/esm2022/shell/index.mjs +2 -1
- package/esm2022/shell/lib/shell.module.mjs +8 -12
- package/esm2022/shell/lib/shell.routes.mjs +26 -1
- package/fesm2022/adf-core.mjs +151 -117
- 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/components/form-renderer.component.scss +4 -5
- 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
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
|
|
27
27
|
#{ms.$mat-tab-body} {
|
|
28
28
|
margin-bottom: 8em;
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
@include flex.layout-bp(lt-md) {
|
|
31
|
-
margin-bottom:
|
|
31
|
+
margin-bottom: 0;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
|
|
70
70
|
&-item {
|
|
71
71
|
width: 100%;
|
|
72
|
-
flex-grow: 1;
|
|
73
72
|
box-sizing: border-box;
|
|
74
73
|
}
|
|
75
74
|
}
|
|
@@ -78,8 +77,8 @@
|
|
|
78
77
|
display: flex;
|
|
79
78
|
flex-direction: column;
|
|
80
79
|
flex: 1 1 auto;
|
|
81
|
-
padding-
|
|
82
|
-
padding-
|
|
80
|
+
padding-left: 5px;
|
|
81
|
+
padding-right: 5px;
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
&-item {
|
|
@@ -19,6 +19,7 @@ import * as i17 from "./components/widgets/date-time/date-time.widget";
|
|
|
19
19
|
import * as i18 from "./components/widgets/json/json.widget";
|
|
20
20
|
import * as i19 from "./components/widgets/base-viewer/base-viewer.widget";
|
|
21
21
|
import * as i20 from "./components/widgets/text/text-mask.component";
|
|
22
|
+
/** @deprecated This module is deprecated and will be removed in a future release. Use standalone components instead. */
|
|
22
23
|
export declare class FormBaseModule {
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormBaseModule, never>;
|
|
24
25
|
static ɵmod: i0.ɵɵNgModuleDeclaration<FormBaseModule, never, [typeof i1.FormFieldComponent, typeof i2.FormRendererComponent, typeof i3.WidgetComponent, typeof i4.StartFormCustomButtonDirective, typeof i5.InplaceFormInputComponent, typeof i6.UnknownWidgetComponent, typeof i7.TextWidgetComponent, typeof i8.NumberWidgetComponent, typeof i9.DecimalWidgetComponent, typeof i10.CheckboxWidgetComponent, typeof i11.MultilineTextWidgetComponentComponent, typeof i12.HyperlinkWidgetComponent, typeof i13.DisplayTextWidgetComponent, typeof i14.DateWidgetComponent, typeof i15.AmountWidgetComponent, typeof i16.ErrorWidgetComponent, typeof i17.DateTimeWidgetComponent, typeof i18.JsonWidgetComponent, typeof i19.BaseViewerWidgetComponent, typeof i20.InputMaskDirective], [typeof i1.FormFieldComponent, typeof i2.FormRendererComponent, typeof i4.StartFormCustomButtonDirective, typeof i6.UnknownWidgetComponent, typeof i7.TextWidgetComponent, typeof i8.NumberWidgetComponent, typeof i9.DecimalWidgetComponent, typeof i10.CheckboxWidgetComponent, typeof i11.MultilineTextWidgetComponentComponent, typeof i12.HyperlinkWidgetComponent, typeof i13.DisplayTextWidgetComponent, typeof i14.DateWidgetComponent, typeof i15.AmountWidgetComponent, typeof i16.ErrorWidgetComponent, typeof i17.DateTimeWidgetComponent, typeof i18.JsonWidgetComponent, typeof i19.BaseViewerWidgetComponent, typeof i5.InplaceFormInputComponent, typeof i3.WidgetComponent]>;
|
|
@@ -3,6 +3,7 @@ import * as i1 from "@angular/platform-browser/animations";
|
|
|
3
3
|
import * as i2 from "../core.module";
|
|
4
4
|
import * as i3 from "./noop-translate.module";
|
|
5
5
|
import * as i4 from "./noop-auth.module";
|
|
6
|
+
/** @deprecated this module is deprecated and will be removed in the future */
|
|
6
7
|
export declare class CoreTestingModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreTestingModule, never>;
|
|
8
9
|
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreTestingModule, never, [typeof i1.NoopAnimationsModule, typeof i2.CoreModule, typeof i3.NoopTranslateModule, typeof i4.NoopAuthModule], never>;
|
|
@@ -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-16342534841",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@angular/router": ">=16.0.0",
|
|
76
76
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
77
77
|
"@ngx-translate/core": ">=16.0.0",
|
|
78
|
-
"@alfresco/js-api": ">=9.1.0-
|
|
79
|
-
"@alfresco/adf-extensions": ">=8.1.0-
|
|
78
|
+
"@alfresco/js-api": ">=9.1.0-16342534841",
|
|
79
|
+
"@alfresco/adf-extensions": ">=8.1.0-16342534841",
|
|
80
80
|
"minimatch": ">=10.0.0",
|
|
81
81
|
"pdfjs-dist": ">=3.3.122",
|
|
82
82
|
"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[];
|