@alfresco/adf-core 8.1.0-16346981764 → 8.1.0-16472253724

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.
Files changed (62) hide show
  1. package/bundles/assets/adf-core/i18n/pl.json +1 -1
  2. package/esm2022/lib/app-config/app-config.module.mjs +1 -1
  3. package/esm2022/lib/app-config/provide-app-config.mjs +44 -0
  4. package/esm2022/lib/app-config/public-api.mjs +2 -1
  5. package/esm2022/lib/auth/basic-auth/basic-alfresco-auth.service.mjs +14 -1
  6. package/esm2022/lib/auth/guard/auth-guard-bpm.service.mjs +2 -2
  7. package/esm2022/lib/auth/interfaces/authentication-service.interface.mjs +1 -1
  8. package/esm2022/lib/auth/oidc/oidc-authentication.service.mjs +16 -14
  9. package/esm2022/lib/auth/services/authentication.service.mjs +17 -17
  10. package/esm2022/lib/auth/services/base-authentication.service.mjs +1 -5
  11. package/esm2022/lib/core.module.mjs +146 -164
  12. package/esm2022/lib/form/components/form-renderer.component.mjs +3 -3
  13. package/esm2022/lib/form/components/widgets/amount/amount.widget.mjs +3 -3
  14. package/esm2022/lib/form/components/widgets/base-viewer/base-viewer.widget.mjs +1 -1
  15. package/esm2022/lib/form/components/widgets/text/text-mask.component.mjs +8 -2
  16. package/esm2022/lib/form/form-base.module.mjs +3 -18
  17. package/esm2022/lib/landing-page/index.mjs +18 -0
  18. package/esm2022/lib/landing-page/provider.mjs +30 -0
  19. package/esm2022/lib/landing-page/public-api.mjs +18 -0
  20. package/esm2022/lib/testing/core.testing.module.mjs +2 -1
  21. package/esm2022/lib/testing/noop-translate.module.mjs +22 -8
  22. package/esm2022/lib/testing/unit-testing-utils.mjs +4 -1
  23. package/esm2022/lib/translation/provide-i18n.mjs +48 -0
  24. package/esm2022/lib/translation/public-api.mjs +2 -1
  25. package/esm2022/lib/translation/translate-loader.service.mjs +7 -2
  26. package/esm2022/lib/viewer/components/viewer.component.mjs +8 -8
  27. package/esm2022/public-api.mjs +2 -1
  28. package/esm2022/shell/index.mjs +2 -1
  29. package/esm2022/shell/lib/shell.module.mjs +8 -12
  30. package/esm2022/shell/lib/shell.routes.mjs +26 -1
  31. package/fesm2022/adf-core.mjs +323 -162
  32. package/fesm2022/adf-core.mjs.map +1 -1
  33. package/fesm2022/alfresco-adf-core-shell.mjs +32 -11
  34. package/fesm2022/alfresco-adf-core-shell.mjs.map +1 -1
  35. package/lib/app-config/app-config.module.d.ts +1 -0
  36. package/lib/app-config/provide-app-config.d.ts +23 -0
  37. package/lib/app-config/public-api.d.ts +1 -0
  38. package/lib/auth/basic-auth/basic-alfresco-auth.service.d.ts +13 -0
  39. package/lib/auth/interfaces/authentication-service.interface.d.ts +9 -4
  40. package/lib/auth/oidc/oidc-authentication.service.d.ts +15 -5
  41. package/lib/auth/services/authentication.service.d.ts +12 -2
  42. package/lib/auth/services/base-authentication.service.d.ts +5 -1
  43. package/lib/core.module.d.ts +124 -128
  44. package/lib/form/components/form-renderer.component.scss +4 -5
  45. package/lib/form/components/widgets/amount/amount.widget.scss +0 -8
  46. package/lib/form/components/widgets/text/text-mask.component.d.ts +1 -0
  47. package/lib/form/form-base.module.d.ts +1 -0
  48. package/lib/landing-page/index.d.ts +17 -0
  49. package/lib/landing-page/provider.d.ts +24 -0
  50. package/lib/landing-page/public-api.d.ts +17 -0
  51. package/lib/testing/core.testing.module.d.ts +1 -0
  52. package/lib/testing/noop-translate.module.d.ts +1 -2
  53. package/lib/testing/unit-testing-utils.d.ts +1 -0
  54. package/lib/translation/provide-i18n.d.ts +39 -0
  55. package/lib/translation/public-api.d.ts +1 -0
  56. package/lib/viewer/components/viewer.component.d.ts +3 -3
  57. package/package.json +3 -3
  58. package/public-api.d.ts +1 -0
  59. package/shell/README.md +10 -6
  60. package/shell/index.d.ts +1 -0
  61. package/shell/lib/shell.module.d.ts +4 -7
  62. package/shell/lib/shell.routes.d.ts +13 -1
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-16346981764",
4
+ "version": "8.1.0-16472253724",
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-16346981764",
79
- "@alfresco/adf-extensions": ">=8.1.0-16346981764",
78
+ "@alfresco/js-api": ">=9.1.0-16472253724",
79
+ "@alfresco/adf-extensions": ">=8.1.0-16472253724",
80
80
  "minimatch": ">=10.0.0",
81
81
  "pdfjs-dist": ">=3.3.122",
82
82
  "ts-morph": ">=20.0.0"
package/public-api.d.ts CHANGED
@@ -23,6 +23,7 @@ export * from './lib/toolbar/index';
23
23
  export * from './lib/header/index';
24
24
  export * from './lib/pagination/index';
25
25
  export * from './lib/login/index';
26
+ export * from './lib/landing-page/index';
26
27
  export * from './lib/language-menu/index';
27
28
  export * from './lib/info-drawer/index';
28
29
  export * from './lib/identity-user-info/index';
package/shell/README.md CHANGED
@@ -1,17 +1,21 @@
1
1
  # @alfresco/adf-core/shell
2
2
 
3
- Secondary entry point of `@alfresco/adf-core`. It can be used by importing from `@alfresco/adf-core/shell`.
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
- [ShellModule](./src/lib/shell.module.ts) is designated as a main layout for the application.
9
+ Passed routes are going to be attached to shell main route.
8
10
 
9
- I order to attach routes to appShell, `withRoutes(routes: Routes | AppShellRoutesConfig)` method should be used.
11
+ ```typescript
12
+ import { provideShellRoutes } from '@alfresco/adf-core/shell';
10
13
 
11
- Passed routes are going to be attached to [shell main route](./src/lib/shell.routes.ts)
14
+ provideShellRoutes([/*Your Routes*/])
15
+ ```
12
16
 
13
- If you would like to provide custom app guard, you can provide your own using [SHELL_AUTH_TOKEN](./src/lib/shell.routes.ts)
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 [SHELL_APP_SERVICE](./src/lib/services/shell-app.service.ts) which provides necessary options for shell component to work.
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
@@ -17,3 +17,4 @@
17
17
  export * from './lib/shell.module';
18
18
  export * from './lib/services/shell-app.service';
19
19
  export * from './lib/components/shell/shell.component';
20
+ export * from './lib/shell.routes';
@@ -15,16 +15,13 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { ModuleWithProviders } from '@angular/core';
18
- import { Routes, Route } from '@angular/router';
18
+ import { Routes } from '@angular/router';
19
+ import { AppShellRoutesConfig } from './shell.routes';
19
20
  import * as i0 from "@angular/core";
20
- import * as i1 from "./components/shell/shell.component";
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, [typeof i1.ShellLayoutComponent], [typeof i1.ShellLayoutComponent]>;
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[];