@alfresco/adf-core 8.1.0-16877609768 → 8.2.0-17208777081

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 (58) hide show
  1. package/bundles/assets/adf-core/i18n/de.json +13 -1
  2. package/bundles/assets/adf-core/i18n/en.json +13 -1
  3. package/bundles/assets/adf-core/i18n/es.json +13 -1
  4. package/bundles/assets/adf-core/i18n/fr.json +13 -1
  5. package/bundles/assets/adf-core/i18n/it.json +13 -1
  6. package/bundles/assets/adf-core/i18n/pl.json +14 -2
  7. package/bundles/assets/adf-core/i18n/pt.json +13 -1
  8. package/feature-flags/lib/components/flags/flags.component.d.ts +2 -2
  9. package/fesm2022/adf-core.mjs +667 -1927
  10. package/fesm2022/adf-core.mjs.map +1 -1
  11. package/fesm2022/alfresco-adf-core-api.mjs +1 -1
  12. package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
  13. package/fesm2022/alfresco-adf-core-auth.mjs.map +1 -1
  14. package/fesm2022/alfresco-adf-core-breadcrumbs.mjs.map +1 -1
  15. package/fesm2022/alfresco-adf-core-feature-flags.mjs.map +1 -1
  16. package/fesm2022/alfresco-adf-core-shell.mjs.map +1 -1
  17. package/lib/app-config/public-api.d.ts +0 -2
  18. package/lib/auth/basic-auth/basic-alfresco-auth.service.d.ts +13 -0
  19. package/lib/auth/interfaces/authentication-service.interface.d.ts +9 -4
  20. package/lib/auth/oidc/auth.module.d.ts +10 -13
  21. package/lib/{mock/form/form-definition-visibility.mock.d.ts → auth/oidc/auth.routes.d.ts} +2 -2
  22. package/lib/auth/oidc/oidc-authentication.service.d.ts +15 -5
  23. package/lib/auth/oidc/public-api.d.ts +0 -1
  24. package/lib/auth/services/authentication.service.d.ts +12 -2
  25. package/lib/auth/services/base-authentication.service.d.ts +5 -1
  26. package/lib/card-view/components/card-view-textitem/card-view-textitem.component.scss +4 -0
  27. package/lib/core.module.d.ts +11 -0
  28. package/lib/datatable/components/datatable/datatable.component.scss +2 -1
  29. package/lib/form/components/form-base.component.d.ts +19 -7
  30. package/lib/form/components/form-renderer.component.scss +27 -9
  31. package/lib/form/components/form-section/form-section.component.scss +23 -1
  32. package/lib/form/components/widgets/amount/amount.widget.scss +1 -10
  33. package/lib/form/components/widgets/core/form-outcome.model.d.ts +3 -3
  34. package/lib/form/components/widgets/core/form.model.d.ts +4 -4
  35. package/lib/form/components/widgets/date-time/date-time.widget.scss +1 -2
  36. package/lib/form/components/widgets/display-text/display-text.widget.scss +2 -0
  37. package/lib/form/components/widgets/text/text-mask.component.d.ts +1 -0
  38. package/lib/{mock/form/form.component.mock.d.ts → landing-page/index.d.ts} +1 -1
  39. package/lib/landing-page/provider.d.ts +24 -0
  40. package/lib/{mock/form/form-definition-readonly.mock.d.ts → landing-page/public-api.d.ts} +1 -1
  41. package/lib/mock/data-column.mock.d.ts +0 -2
  42. package/lib/mock/form/widget-visibility.service.mock.d.ts +0 -5
  43. package/lib/mock/public-api.d.ts +0 -4
  44. package/lib/{mock/form/form-definition.mock.d.ts → testing/app-config-testing.d.ts} +8 -3
  45. package/lib/testing/index.d.ts +1 -1
  46. package/lib/testing/noop-auth.module.d.ts +31 -4
  47. package/lib/testing/unit-testing-utils.d.ts +1 -10
  48. package/lib/translation/provide-i18n.d.ts +1 -1
  49. package/lib/viewer/components/img-viewer/img-viewer.component.d.ts +2 -2
  50. package/lib/viewer/components/viewer.component.d.ts +6 -3
  51. package/lib/viewer/components/viewer.component.scss +12 -0
  52. package/lib/viewer/services/rendering-queue.services.d.ts +2 -2
  53. package/package.json +7 -7
  54. package/public-api.d.ts +1 -0
  55. package/lib/app-config/app-config.module.d.ts +0 -8
  56. package/lib/app-config/debug-app-config.service.d.ts +0 -10
  57. package/lib/auth/oidc/auth-routing.module.d.ts +0 -6
  58. package/lib/testing/core.testing.module.d.ts +0 -11
@@ -23,13 +23,19 @@ export declare class OidcAuthenticationService extends BaseAuthenticationService
23
23
  * and the discovery document is loaded, otherwise it emits `false`.
24
24
  */
25
25
  shouldPerformSsoLogin$: Observable<boolean>;
26
+ /**
27
+ * @deprecated use `isLoggedIn` instead
28
+ * @returns true if the ECM provider is logged in
29
+ */
26
30
  isEcmLoggedIn(): boolean;
31
+ /**
32
+ * @deprecated use `isLoggedIn` instead
33
+ * @returns true if the BPM provider is logged in
34
+ */
27
35
  isBpmLoggedIn(): boolean;
28
36
  isLoggedIn(): boolean;
29
37
  hasValidAccessToken(): boolean;
30
38
  hasValidIdToken(): boolean;
31
- isImplicitFlow(): boolean;
32
- isAuthCodeFlow(): boolean;
33
39
  login(username: string, password: string): Observable<{
34
40
  type: string;
35
41
  ticket: any;
@@ -38,19 +44,23 @@ export declare class OidcAuthenticationService extends BaseAuthenticationService
38
44
  type: string;
39
45
  ticket: any;
40
46
  }>;
47
+ /**
48
+ * Gets the username of the authenticated user.
49
+ *
50
+ * @returns the logged username
51
+ */
41
52
  getUsername(): string;
42
53
  /**
43
- * @deprecated
54
+ * @deprecated use `getUsername` instead
44
55
  * @returns the logged username
45
56
  */
46
57
  getEcmUsername(): string;
47
58
  /**
48
- * @deprecated
59
+ * @deprecated use `getUsername` instead
49
60
  * @returns the logged username
50
61
  */
51
62
  getBpmUsername(): string;
52
63
  ssoLogin(redirectUrl?: string): void;
53
- ssoCodeFlowLogin(): void;
54
64
  isRememberMeSet(): boolean;
55
65
  logout(): Observable<never>;
56
66
  getToken(): string;
@@ -14,7 +14,6 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export * from './auth-routing.module';
18
17
  export * from './auth.module';
19
18
  export * from './auth.service';
20
19
  export * from './oidc-auth.guard';
@@ -42,7 +42,15 @@ export declare class AuthenticationService implements AuthenticationServiceInter
42
42
  getToken(): string;
43
43
  isLoggedIn(): boolean;
44
44
  logout(): Observable<any>;
45
+ /**
46
+ * @deprecated use `isLoggedIn` instead
47
+ * @returns true if the ECM provider is logged in
48
+ */
45
49
  isEcmLoggedIn(): boolean;
50
+ /**
51
+ * @deprecated use `isLoggedIn` instead
52
+ * @returns true if the BPM provider is logged in
53
+ */
46
54
  isBpmLoggedIn(): boolean;
47
55
  reset(): void;
48
56
  login(username: string, password: string, rememberMe?: boolean): Observable<{
@@ -50,16 +58,18 @@ export declare class AuthenticationService implements AuthenticationServiceInter
50
58
  ticket: any;
51
59
  }>;
52
60
  /**
61
+ * Gets the username of the authenticated user.
62
+ *
53
63
  * @returns the username of the authenticated user
54
64
  */
55
65
  getUsername(): string;
56
66
  /**
57
- * @deprecated
67
+ * @deprecated use `getUsername` instead
58
68
  * @returns the logged username
59
69
  */
60
70
  getEcmUsername(): string;
61
71
  /**
62
- * @deprecated
72
+ * @deprecated use `getUsername` instead
63
73
  * @returns the logged username
64
74
  */
65
75
  getBpmUsername(): string;
@@ -37,10 +37,15 @@ export declare abstract class BaseAuthenticationService implements Authenticatio
37
37
  abstract getToken(): string;
38
38
  abstract isLoggedIn(): boolean;
39
39
  abstract logout(): any;
40
+ /** @deprecated use `isLoggedIn` instead */
40
41
  abstract isEcmLoggedIn(): boolean;
42
+ /** @deprecated use `isLoggedIn` instead */
41
43
  abstract isBpmLoggedIn(): boolean;
42
44
  abstract reset(): void;
45
+ abstract getUsername(): string;
46
+ /** @deprecated use `getUsername` instead */
43
47
  abstract getEcmUsername(): string;
48
+ /** @deprecated use `getUsername` instead */
44
49
  abstract getBpmUsername(): string;
45
50
  /**
46
51
  * Adds the auth token to an HTTP header using the 'bearer' scheme.
@@ -63,7 +68,6 @@ export declare abstract class BaseAuthenticationService implements Authenticatio
63
68
  * @returns True if both are supported, false otherwise
64
69
  */
65
70
  isALLProvider(): boolean;
66
- isOauthConfiguration(): boolean;
67
71
  /**
68
72
  * Prints an error message in the console browser
69
73
  *
@@ -5,6 +5,10 @@
5
5
  font-size: var(--theme-caption-font-size);
6
6
  padding-top: 6px;
7
7
 
8
+ &::before {
9
+ display: none;
10
+ }
11
+
8
12
  ul {
9
13
  margin: 0;
10
14
  padding: 0;
@@ -139,6 +139,17 @@ import * as i120 from "./blank-page/blank-page.component";
139
139
  import * as i121 from "./dialogs/unsaved-changes-dialog/unsaved-changes-dialog.component";
140
140
  import * as i122 from "./dynamic-chip-list/dynamic-chip-list.component";
141
141
  import * as i123 from "./material.module";
142
+ /**
143
+ * @deprecated this module is deprecated and will be removed
144
+ * Use the following combination instead:
145
+ * ```typescript
146
+ * providers: [
147
+ * provideI18N(...),
148
+ * provideAppConfig(),
149
+ * provideCoreAuth(...)
150
+ * ]
151
+ * ```
152
+ */
142
153
  export declare class CoreModule {
143
154
  static forRoot(): ModuleWithProviders<CoreModule>;
144
155
  /**
@@ -19,6 +19,7 @@ $data-table-cell-min-width-file-size: $data-table-cell-min-width-1 !default;
19
19
  .adf-datatable {
20
20
  overflow-y: scroll;
21
21
  height: 100%;
22
+ display: block;
22
23
 
23
24
  .adf-full-width {
24
25
  width: 100%;
@@ -671,7 +672,7 @@ $data-table-cell-min-width-file-size: $data-table-cell-min-width-1 !default;
671
672
  .adf-datatable-body {
672
673
  display: block;
673
674
  flex: 1;
674
- overflow-y: scroll;
675
+ overflow: hidden auto;
675
676
  margin-top: -1px;
676
677
  }
677
678
  }
@@ -20,12 +20,24 @@ import { FormFieldModel, FormFieldValidator, FormModel, FormOutcomeEvent, FormOu
20
20
  import * as i0 from "@angular/core";
21
21
  export declare abstract class FormBaseComponent {
22
22
  protected _form: FormModel;
23
- static SAVE_OUTCOME_ID: string;
24
- static COMPLETE_OUTCOME_ID: string;
25
- static START_PROCESS_OUTCOME_ID: string;
26
- static CUSTOM_OUTCOME_ID: string;
27
- static COMPLETE_BUTTON_COLOR: ThemePalette;
28
- static COMPLETE_OUTCOME_NAME: string;
23
+ /**
24
+ * @deprecated Use {@link FormModel.SAVE_OUTCOME} instead.
25
+ */
26
+ static readonly SAVE_OUTCOME_ID: string;
27
+ /**
28
+ * @deprecated Use {@link FormModel.COMPLETE_OUTCOME} instead.
29
+ */
30
+ static readonly COMPLETE_OUTCOME_ID: string;
31
+ /**
32
+ * @deprecated Use {@link FormModel.START_PROCESS_OUTCOME} instead.
33
+ */
34
+ static readonly START_PROCESS_OUTCOME_ID: string;
35
+ static readonly CUSTOM_OUTCOME_ID: string;
36
+ static readonly COMPLETE_BUTTON_COLOR: ThemePalette;
37
+ /**
38
+ * @deprecated Use {@link FormOutcomeModel.COMPLETE_ACTION} instead.
39
+ */
40
+ static readonly COMPLETE_OUTCOME_NAME: string;
29
41
  /** Path of the folder where the metadata will be stored. */
30
42
  path: string;
31
43
  /** Name to assign to the new node where the metadata are stored. */
@@ -34,7 +46,7 @@ export declare abstract class FormBaseComponent {
34
46
  showTitle: boolean;
35
47
  /** Toggle rendering of the `Complete` outcome button. */
36
48
  showCompleteButton: boolean;
37
- /** If true then the `Complete` outcome button is shown but it will be disabled. */
49
+ /** If true then the `Complete` outcome button is shown, but it will be disabled. */
38
50
  disableCompleteButton: boolean;
39
51
  /** If true then the `Save` outcome button is shown but will be disabled. */
40
52
  disableSaveButton: boolean;
@@ -13,6 +13,14 @@
13
13
  height: 100%;
14
14
  }
15
15
 
16
+ .adf-form-renderer {
17
+ // override Material styles, otherwise fields collapse on some screen widths
18
+ // related issue: https://hyland.atlassian.net/browse/AAE-36582
19
+ .mat-mdc-form-field-infix {
20
+ width: auto;
21
+ }
22
+ }
23
+
16
24
  .alfresco-tabs-widget {
17
25
  width: 100%;
18
26
 
@@ -26,9 +34,9 @@
26
34
 
27
35
  #{ms.$mat-tab-body} {
28
36
  margin-bottom: 8em;
29
-
37
+
30
38
  @include flex.layout-bp(lt-md) {
31
- margin-bottom: 0em;
39
+ margin-bottom: 0;
32
40
  }
33
41
  }
34
42
 
@@ -66,20 +74,22 @@
66
74
  display: flex;
67
75
  margin-right: -1%;
68
76
  width: 100%;
77
+ gap: 8px;
69
78
 
70
79
  &-item {
71
80
  width: 100%;
72
- flex-grow: 1;
73
81
  box-sizing: border-box;
74
82
  }
83
+
84
+ .adf-radio-buttons-widget {
85
+ padding-left: 12px;
86
+ }
75
87
  }
76
88
 
77
89
  &-single-column {
78
90
  display: flex;
79
91
  flex-direction: column;
80
92
  flex: 1 1 auto;
81
- padding-right: 1%;
82
- padding-left: 1%;
83
93
  }
84
94
 
85
95
  &-item {
@@ -254,6 +264,18 @@
254
264
  line-height: 64px;
255
265
  margin-right: 15px;
256
266
  }
267
+
268
+ &-error-messages-container {
269
+ min-height: 35px;
270
+ }
271
+
272
+ &-error-messages-container-visible {
273
+ visibility: visible;
274
+ }
275
+
276
+ &-error-messages-container-hidden {
277
+ visibility: hidden;
278
+ }
257
279
  }
258
280
 
259
281
  form-field {
@@ -265,7 +287,3 @@ form-field {
265
287
  line-height: normal;
266
288
  }
267
289
  }
268
-
269
- .adf-error-messages-container {
270
- min-height: 35px;
271
- }
@@ -1,10 +1,32 @@
1
+ @use '../../../../../src/lib/styles/flex' as flex;
2
+
1
3
  .adf-grid-list {
2
4
  &-section {
3
5
  &-single-column {
4
6
  display: flex;
5
7
  flex-wrap: inherit;
6
- align-items: baseline;
8
+ align-items: center;
7
9
  gap: 1%;
10
+
11
+ @include flex.layout-bp(lt-md) {
12
+ /* stylelint-disable-next-line declaration-no-important */
13
+ flex: 1 1 100% !important;
14
+ flex-direction: column;
15
+ }
16
+
17
+ .adf-section-widget {
18
+ @include flex.layout-bp(lt-md) {
19
+ /* stylelint-disable-next-line declaration-no-important */
20
+ width: 100% !important;
21
+ }
22
+ }
23
+
24
+ > div {
25
+ @include flex.layout-bp(lt-md) {
26
+ /* stylelint-disable-next-line declaration-no-important */
27
+ width: 100% !important;
28
+ }
29
+ }
8
30
  }
9
31
 
10
32
  &-column-view-item {
@@ -10,25 +10,16 @@
10
10
  }
11
11
 
12
12
  &-container {
13
- display: flex;
13
+ display: grid;
14
14
  align-items: flex-start;
15
- flex-direction: column;
16
15
  }
17
16
  }
18
17
 
19
18
  &-amount-widget__input {
20
- margin-top: -15px;
21
-
22
19
  #{ms.$mat-focused} {
23
20
  transition: none;
24
21
  }
25
22
 
26
- #{ms.$mat-form-field-prefix} {
27
- padding-top: 16px;
28
- padding-bottom: 16px;
29
- align-self: flex-end;
30
- }
31
-
32
23
  .adf-input {
33
24
  margin-top: 3px;
34
25
  }
@@ -17,9 +17,9 @@
17
17
  import { FormWidgetModel } from './form-widget.model';
18
18
  import { WidgetVisibilityModel } from '../../../models/widget-visibility.model';
19
19
  export declare class FormOutcomeModel extends FormWidgetModel {
20
- static SAVE_ACTION: string;
21
- static COMPLETE_ACTION: string;
22
- static START_PROCESS_ACTION: string;
20
+ static readonly SAVE_ACTION: string;
21
+ static readonly COMPLETE_ACTION: string;
22
+ static readonly START_PROCESS_ACTION: string;
23
23
  isSystem: boolean;
24
24
  isSelected: boolean;
25
25
  isVisible: boolean;
@@ -54,10 +54,10 @@ export interface FormRepresentationModel {
54
54
  }
55
55
  export declare class FormModel implements ProcessFormModel {
56
56
  protected formService?: FormValidationService;
57
- static UNSET_TASK_NAME: string;
58
- static SAVE_OUTCOME: string;
59
- static COMPLETE_OUTCOME: string;
60
- static START_PROCESS_OUTCOME: string;
57
+ static readonly UNSET_TASK_NAME: string;
58
+ static readonly SAVE_OUTCOME: string;
59
+ static readonly COMPLETE_OUTCOME: string;
60
+ static readonly START_PROCESS_OUTCOME: string;
61
61
  readonly id: string | number;
62
62
  readonly name: string;
63
63
  readonly taskId: string;
@@ -4,9 +4,8 @@
4
4
  .adf {
5
5
  &-date-time-widget {
6
6
  &-container {
7
- display: flex;
7
+ display: grid;
8
8
  align-items: flex-start;
9
- flex-direction: column;
10
9
  }
11
10
 
12
11
  #{ms.$mat-form-field-suffix} {
@@ -5,4 +5,6 @@
5
5
  color: var(--adf-readonly-text-color, var(--adf-form-label-color, var(--theme-text-color)));
6
6
  line-height: normal;
7
7
  word-break: break-word;
8
+ position: relative;
9
+ top: 3px;
8
10
  }
@@ -37,6 +37,7 @@ export declare class InputMaskDirective implements OnChanges, ControlValueAccess
37
37
  _onChange: (_: any) => void;
38
38
  _onTouched: () => void;
39
39
  onTextInput(event: KeyboardEvent): void;
40
+ onBlur(): void;
40
41
  ngOnChanges(changes: SimpleChanges): void;
41
42
  writeValue(value: any): void;
42
43
  registerOnChange(fn: any): void;
@@ -14,4 +14,4 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare const fakeForm: any;
17
+ export * from './public-api';
@@ -0,0 +1,24 @@
1
+ /*!
2
+ * @license
3
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { InjectionToken, Provider, Type } from '@angular/core';
18
+ export declare const LANDING_PAGE_TOKEN: InjectionToken<Type<any>>;
19
+ /**
20
+ *
21
+ * @param componentClass The component class to be registered as the landing page.
22
+ * @returns A provider that registers the landing page component class.
23
+ */
24
+ export declare function provideLandingPage(componentClass: Type<any>): Provider;
@@ -14,4 +14,4 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare const formReadonlyTwoTextFields: any;
17
+ export * from './provider';
@@ -14,8 +14,6 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { DataColumn } from '../datatable/data/data-column.model';
18
- export declare const getDataColumnMock: <T = unknown>(column?: Partial<DataColumn<T>>) => DataColumn<T>;
19
17
  export declare const textColumnRows: {
20
18
  firstname: string;
21
19
  }[];
@@ -16,11 +16,6 @@
16
16
  */
17
17
  import { FormModel, FormValues } from '../../form/components/widgets/core';
18
18
  export declare const formTest: FormModel;
19
- export declare const fakeTaskProcessVariableModels: {
20
- id: string;
21
- type: string;
22
- value: string;
23
- }[];
24
19
  export declare const formValues: FormValues;
25
20
  export declare const fakeFormJson: any;
26
21
  export declare const fakeFormCheckBoxVisibilityJson: any;
@@ -17,10 +17,6 @@
17
17
  export * from './cookie.service.mock';
18
18
  export * from './event.mock';
19
19
  export * from './translation.service.mock';
20
- export * from './form/form.component.mock';
21
- export * from './form/form-definition.mock';
22
- export * from './form/form-definition-readonly.mock';
23
- export * from './form/form-definition-visibility.mock';
24
20
  export * from './form/form.service.mock';
25
21
  export * from './form/widget-visibility.service.mock';
26
22
  export * from './data-column.mock';
@@ -14,6 +14,11 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare const formDefinitionTwoTextFields: any;
18
- export declare const formDefinitionDropdownField: any;
19
- export declare const formDefinitionRequiredField: any;
17
+ import { EnvironmentProviders, Provider } from '@angular/core';
18
+ /**
19
+ * Provides testing api for application config.
20
+ *
21
+ * @param config Custom application configuration data
22
+ * @returns Angular providers
23
+ */
24
+ export declare function provideAppConfigTesting(config?: any): (Provider | EnvironmentProviders)[];
@@ -14,8 +14,8 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export * from './core.testing.module';
18
17
  export * from './core.story.module';
19
18
  export * from './noop-translate.module';
20
19
  export * from './noop-auth.module';
21
20
  export * from './unit-testing-utils';
21
+ export * from './app-config-testing';
@@ -1,8 +1,22 @@
1
+ /*!
2
+ * @license
3
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { EnvironmentProviders, Provider } from '@angular/core';
1
18
  import { RedirectAuthService } from '../auth/oidc/redirect-auth.service';
2
19
  import * as i0 from "@angular/core";
3
- import * as i1 from "../auth/oidc/auth.module";
4
- import * as i2 from "@angular/common/http/testing";
5
- import * as i3 from "@angular/router/testing";
6
20
  export declare class NoopRedirectAuthService extends RedirectAuthService {
7
21
  onLogin: import("rxjs").Observable<never>;
8
22
  onTokenReceived: import("rxjs").Observable<never>;
@@ -10,8 +24,21 @@ export declare class NoopRedirectAuthService extends RedirectAuthService {
10
24
  static ɵfac: i0.ɵɵFactoryDeclaration<NoopRedirectAuthService, never>;
11
25
  static ɵprov: i0.ɵɵInjectableDeclaration<NoopRedirectAuthService>;
12
26
  }
27
+ /**
28
+ * Provides testing api for Core Auth layer
29
+ *
30
+ * Example:
31
+ * ```typescript
32
+ * TestBed.configureTestingModule({
33
+ * providers: [provideCoreAuthTesting()]
34
+ * });
35
+ * ```
36
+ *
37
+ * @returns list of Angular providers
38
+ */
39
+ export declare function provideCoreAuthTesting(): (Provider | EnvironmentProviders)[];
13
40
  export declare class NoopAuthModule {
14
41
  static ɵfac: i0.ɵɵFactoryDeclaration<NoopAuthModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<NoopAuthModule, never, [typeof i1.AuthModule, typeof i2.HttpClientTestingModule, typeof i3.RouterTestingModule], never>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NoopAuthModule, never, never, never>;
16
43
  static ɵinj: i0.ɵɵInjectorDeclaration<NoopAuthModule>;
17
44
  }
@@ -21,7 +21,7 @@ import { MatChipHarness, MatChipListboxHarness } from '@angular/material/chips/t
21
21
  import { MatButtonHarness } from '@angular/material/button/testing';
22
22
  import { MatIconHarness } from '@angular/material/icon/testing';
23
23
  import { MatCheckboxHarness } from '@angular/material/checkbox/testing';
24
- import { MatErrorHarness, MatFormFieldHarness } from '@angular/material/form-field/testing';
24
+ import { MatFormFieldHarness } from '@angular/material/form-field/testing';
25
25
  import { MatInputHarness } from '@angular/material/input/testing';
26
26
  import { ComponentFixture } from '@angular/core/testing';
27
27
  import { MatTabHarness } from '@angular/material/tabs/testing';
@@ -76,7 +76,6 @@ export declare class UnitTestingUtils {
76
76
  getMatIconOrNull(): Promise<MatIconHarness>;
77
77
  getMatIconWithAncestorByDataAutomationId(dataAutomationId: string): Promise<MatIconHarness>;
78
78
  getMatIconWithAncestorByCSS(selector: string): Promise<MatIconHarness>;
79
- getMatIconWithAncestorByCSSAndName(selector: string, name: string): Promise<MatIconHarness>;
80
79
  checkIfMatIconExistsWithAncestorByDataAutomationId(dataAutomationId: string): Promise<boolean>;
81
80
  checkIfMatIconExistsWithAncestorByCSSAndName(selector: string, name: string): Promise<boolean>;
82
81
  clickMatIconWithAncestorByDataAutomationId(dataAutomationId: string): Promise<void>;
@@ -100,28 +99,20 @@ export declare class UnitTestingUtils {
100
99
  getMatFormFieldByCSS(selector: string): Promise<MatFormFieldHarness>;
101
100
  /** MatInput related methods */
102
101
  getMatInput(): Promise<MatInputHarness>;
103
- getMatInputByCSS(selector: string): Promise<MatInputHarness>;
104
102
  getMatInputByDataAutomationId(dataAutomationId: string): Promise<MatInputHarness>;
105
103
  getMatInputByPlaceholder(placeholder: string): Promise<MatInputHarness>;
106
104
  getMatInputHost(): Promise<TestElement>;
107
105
  checkIfMatInputExists(): Promise<boolean>;
108
- checkIfMatInputExistsWithCSS(selector: string): Promise<boolean>;
109
- checkIfMatInputExistsWithDataAutomationId(dataAutomationId: string): Promise<boolean>;
110
106
  checkIfMatInputExistsWithPlaceholder(placeholder: string): Promise<boolean>;
111
107
  clickMatInput(): Promise<void>;
112
108
  fillMatInput(value: string): Promise<void>;
113
- fillMatInputByCSS(selector: string, value: string): Promise<void>;
114
109
  fillMatInputByDataAutomationId(dataAutomationId: string, value: string): Promise<void>;
115
110
  focusMatInput(): Promise<void>;
116
111
  blurMatInput(): Promise<void>;
117
112
  getMatInputValue(): Promise<string>;
118
- getMatInputValueByDataAutomationId(dataAutomationId: string): Promise<string>;
119
113
  sendKeysToMatInput(keys: (string | TestKey)[]): Promise<void>;
120
114
  /** MatAutoComplete related methods */
121
115
  typeAndGetOptionsForMatAutoComplete(fixture: ComponentFixture<any>, value: string): Promise<MatOptionHarness[]>;
122
- /** MatError related methods */
123
- getMatErrorByCSS(selector: string): Promise<MatErrorHarness>;
124
- getMatErrorByDataAutomationId(dataAutomationId: string): Promise<MatErrorHarness>;
125
116
  /** MatTabGroup related methods */
126
117
  getSelectedTabFromMatTabGroup(): Promise<MatTabHarness>;
127
118
  getSelectedTabLabelFromMatTabGroup(): Promise<string>;
@@ -23,7 +23,7 @@ export interface ProvideI18NConfig {
23
23
  defaultLanguage?: string;
24
24
  /**
25
25
  * An array of assets to be used for i18n, where each asset is a tuple containing an identifier and a path.
26
- * Example: [['en', '/assets/i18n/en.json'], ['fr', '/assets/i18n/fr.json']]
26
+ * Example: [['adf-core', 'assets/adf-core'], ['my-translations', 'assets/my-translations']]
27
27
  */
28
28
  assets?: [string, string][];
29
29
  }
@@ -4,8 +4,8 @@ import { AppConfigService } from '../../../app-config';
4
4
  import { UrlService } from '../../../common';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ImgViewerComponent implements AfterViewInit, OnChanges, OnDestroy {
7
- private appConfigService;
8
- private urlService;
7
+ private readonly appConfigService;
8
+ private readonly urlService;
9
9
  showToolbar: boolean;
10
10
  readOnly: boolean;
11
11
  allowedEditActions: {