@alfresco/adf-core 8.3.0-17240447502 → 8.4.0-17373527064

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.
@@ -7676,26 +7676,6 @@ class OidcAuthenticationService extends BaseAuthenticationService {
7676
7676
  */
7677
7677
  this.shouldPerformSsoLogin$ = combineLatest([this.auth.authenticated$, this.auth.isDiscoveryDocumentLoaded$]).pipe(map(([authenticated, isDiscoveryDocumentLoaded]) => !authenticated && isDiscoveryDocumentLoaded));
7678
7678
  }
7679
- /**
7680
- * @deprecated use `isLoggedIn` instead
7681
- * @returns true if the ECM provider is logged in
7682
- */
7683
- isEcmLoggedIn() {
7684
- if (this.isECMProvider() || this.isALLProvider()) {
7685
- return this.isLoggedIn();
7686
- }
7687
- return false;
7688
- }
7689
- /**
7690
- * @deprecated use `isLoggedIn` instead
7691
- * @returns true if the BPM provider is logged in
7692
- */
7693
- isBpmLoggedIn() {
7694
- if (this.isBPMProvider() || this.isALLProvider()) {
7695
- return this.isLoggedIn();
7696
- }
7697
- return false;
7698
- }
7699
7679
  isLoggedIn() {
7700
7680
  return this.oauthService.hasValidAccessToken() && this.oauthService.hasValidIdToken();
7701
7681
  }
@@ -7741,20 +7721,6 @@ class OidcAuthenticationService extends BaseAuthenticationService {
7741
7721
  getUsername() {
7742
7722
  return this.jwtHelperService.getValueFromLocalToken(JwtHelperService.USER_PREFERRED_USERNAME);
7743
7723
  }
7744
- /**
7745
- * @deprecated use `getUsername` instead
7746
- * @returns the logged username
7747
- */
7748
- getEcmUsername() {
7749
- return this.getUsername();
7750
- }
7751
- /**
7752
- * @deprecated use `getUsername` instead
7753
- * @returns the logged username
7754
- */
7755
- getBpmUsername() {
7756
- return this.getUsername();
7757
- }
7758
7724
  ssoLogin(redirectUrl) {
7759
7725
  this.auth.login(redirectUrl);
7760
7726
  }
@@ -8367,26 +8333,6 @@ class BasicAlfrescoAuthService extends BaseAuthenticationService {
8367
8333
  return '';
8368
8334
  }
8369
8335
  }
8370
- /**
8371
- * @deprecated
8372
- * @returns content auth token
8373
- */
8374
- getTicketEcm() {
8375
- return this.contentAuth.getToken();
8376
- }
8377
- /**
8378
- * @deprecated
8379
- * @returns process auth token
8380
- */
8381
- getTicketBpm() {
8382
- return this.processAuth.getToken();
8383
- }
8384
- isBpmLoggedIn() {
8385
- return this.processAuth.isLoggedIn();
8386
- }
8387
- isEcmLoggedIn() {
8388
- return this.contentAuth.isLoggedIn();
8389
- }
8390
8336
  isLoggedIn() {
8391
8337
  const authWithCredentials = this.isKerberosEnabled();
8392
8338
  if (this.isBPMProvider()) {
@@ -8458,20 +8404,6 @@ class BasicAlfrescoAuthService extends BaseAuthenticationService {
8458
8404
  hasSelectedProviderAll(provider) {
8459
8405
  return this.redirectUrl && (this.redirectUrl.provider === 'ALL' || provider === 'ALL');
8460
8406
  }
8461
- /**
8462
- * @deprecated use `getUsername()` instead
8463
- * @returns the username of the authenticated user
8464
- */
8465
- getBpmUsername() {
8466
- return this.processAuth.getUsername();
8467
- }
8468
- /**
8469
- * @deprecated use `getUsername()` instead
8470
- * @returns the username of the authenticated user
8471
- */
8472
- getEcmUsername() {
8473
- return this.contentAuth.getUsername();
8474
- }
8475
8407
  /**
8476
8408
  * Gets the username of the authenticated user.
8477
8409
  *
@@ -9036,30 +8968,6 @@ class AuthenticationService {
9036
8968
  return from(this.basicAlfrescoAuthService.logout());
9037
8969
  }
9038
8970
  }
9039
- /**
9040
- * @deprecated use `isLoggedIn` instead
9041
- * @returns true if the ECM provider is logged in
9042
- */
9043
- isEcmLoggedIn() {
9044
- if (this.isOauth()) {
9045
- return this.oidcAuthenticationService.isLoggedIn();
9046
- }
9047
- else {
9048
- return this.basicAlfrescoAuthService.isEcmLoggedIn();
9049
- }
9050
- }
9051
- /**
9052
- * @deprecated use `isLoggedIn` instead
9053
- * @returns true if the BPM provider is logged in
9054
- */
9055
- isBpmLoggedIn() {
9056
- if (this.isOauth()) {
9057
- return this.oidcAuthenticationService.isLoggedIn();
9058
- }
9059
- else {
9060
- return this.basicAlfrescoAuthService.isBpmLoggedIn();
9061
- }
9062
- }
9063
8971
  reset() {
9064
8972
  if (this.isOauth()) {
9065
8973
  return this.oidcAuthenticationService.reset();
@@ -9089,20 +8997,6 @@ class AuthenticationService {
9089
8997
  return this.basicAlfrescoAuthService.getUsername();
9090
8998
  }
9091
8999
  }
9092
- /**
9093
- * @deprecated use `getUsername` instead
9094
- * @returns the logged username
9095
- */
9096
- getEcmUsername() {
9097
- return this.getUsername();
9098
- }
9099
- /**
9100
- * @deprecated use `getUsername` instead
9101
- * @returns the logged username
9102
- */
9103
- getBpmUsername() {
9104
- return this.getUsername();
9105
- }
9106
9000
  getAuthHeaders(requestUrl, headers) {
9107
9001
  if (this.isOauth()) {
9108
9002
  return this.oidcAuthenticationService.getAuthHeaders(requestUrl, headers);
@@ -9355,7 +9249,7 @@ const AuthGuardEcm = async (_, state) => {
9355
9249
  if (authenticationService.isLoggedIn() && authenticationService.isOauth() && authGuardBaseService.isLoginFragmentPresent()) {
9356
9250
  return authGuardBaseService.redirectSSOSuccessURL();
9357
9251
  }
9358
- if (authenticationService.isEcmLoggedIn() || authGuardBaseService.withCredentials) {
9252
+ if (authenticationService.isLoggedIn() || authGuardBaseService.withCredentials) {
9359
9253
  return true;
9360
9254
  }
9361
9255
  return authGuardBaseService.redirectToUrl(state.url);
@@ -13418,13 +13312,13 @@ class SnackbarContentComponent {
13418
13312
  this.data.callActionOnIconClick ? this.snackBarRef.dismissWithAction() : this.snackBarRef.dismiss();
13419
13313
  }
13420
13314
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SnackbarContentComponent, deps: [{ token: i1$b.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
13421
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: SnackbarContentComponent, isStandalone: true, selector: "adf-snackbar-content", host: { classAttribute: "mat-simple-snackbar" }, ngImport: i0, template: "<p class=\"adf-snackbar-message-content\" data-automation-id=\"adf-snackbar-message-content\" aria-hidden=\"true\">\n @if (data.decorativeIcon) {\n <mat-icon data-automation-id=\"adf-snackbar-decorative-icon\">{{ data.decorativeIcon }}</mat-icon>\n }\n {{ data.message }}\n</p>\n\n@if (data.showAction) {\n <div class=\"adf-snackbar-message-content-action\" aria-hidden=\"true\">\n @if (data.actionLabel) {\n <button mat-button (click)=\"snackBarRef.dismissWithAction()\" class=\"adf-snackbar-message-content-action-button\"\n data-automation-id=\"adf-snackbar-message-content-action-button\">\n {{data.actionLabel}}\n </button>\n }\n @if (data.actionIcon) {\n <button mat-button (click)=\"onIconClicked()\" class=\"adf-snackbar-message-content-action-icon\"\n [attr.aria-label]=\"data.actionIconAriaLabel | translate\">\n <mat-icon>{{ data.actionIcon }}</mat-icon>\n </button>\n }\n </div>\n}\n", styles: [":host{display:flex;align-items:center;justify-content:space-between}:host .adf-snackbar-message-content{display:flex;align-items:center;margin:0}:host .adf-snackbar-message-content mat-icon{margin-right:8px}:host .adf-snackbar-message-content-action{margin-left:24px;display:flex;flex-direction:row}:host .adf-snackbar-message-content-action .mat-mdc-button{min-width:0;margin:-8px;height:unset}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-button{margin-right:8px;padding-left:16px;padding-right:16px;width:auto;-webkit-font-smoothing:subpixel-antialiased}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-icon{padding:0;width:auto}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-icon mat-icon{height:24px;width:24px;font-size:24px;margin-right:0;margin-top:4px}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }] }); }
13315
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: SnackbarContentComponent, isStandalone: true, selector: "adf-snackbar-content", host: { classAttribute: "mat-simple-snackbar" }, ngImport: i0, template: "<p class=\"adf-snackbar-message-content\" data-automation-id=\"adf-snackbar-message-content\" aria-hidden=\"true\">\n @if (data.decorativeIcon) {\n <mat-icon data-automation-id=\"adf-snackbar-decorative-icon\">{{ data.decorativeIcon }}</mat-icon>\n }\n {{ data.message }}\n</p>\n\n@if (data.showAction) {\n <div class=\"adf-snackbar-message-content-action\" aria-hidden=\"true\">\n @if (data.actionLabel) {\n <button mat-button (click)=\"snackBarRef.dismissWithAction()\" class=\"adf-snackbar-message-content-action-button\"\n data-automation-id=\"adf-snackbar-message-content-action-button\">\n {{data.actionLabel}}\n </button>\n }\n @if (data.actionIcon) {\n <button mat-button (click)=\"onIconClicked()\" class=\"adf-snackbar-message-content-action-icon\"\n [attr.aria-label]=\"data.actionIconAriaLabel | translate\">\n <mat-icon>{{ data.actionIcon }}</mat-icon>\n </button>\n }\n </div>\n}\n", styles: [":host{display:flex;align-items:center;justify-content:space-between}:host .adf-snackbar-message-content{display:flex;align-items:center;margin:0;overflow-wrap:anywhere;gap:8px}:host .adf-snackbar-message-content mat-icon{flex:0 0 auto;align-self:flex-start}:host .adf-snackbar-message-content-action{margin-left:24px;display:flex;flex-direction:row}:host .adf-snackbar-message-content-action .mat-mdc-button{min-width:0;margin:-8px;height:unset}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-button{margin-right:8px;padding-left:16px;padding-right:16px;width:auto;-webkit-font-smoothing:subpixel-antialiased}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-icon{padding:0;width:auto}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-icon mat-icon{height:24px;width:24px;font-size:24px;margin-right:0;margin-top:4px}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }] }); }
13422
13316
  }
13423
13317
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SnackbarContentComponent, decorators: [{
13424
13318
  type: Component,
13425
13319
  args: [{ selector: 'adf-snackbar-content', imports: [MatIconModule, TranslatePipe, MatButtonModule], host: {
13426
13320
  class: 'mat-simple-snackbar'
13427
- }, template: "<p class=\"adf-snackbar-message-content\" data-automation-id=\"adf-snackbar-message-content\" aria-hidden=\"true\">\n @if (data.decorativeIcon) {\n <mat-icon data-automation-id=\"adf-snackbar-decorative-icon\">{{ data.decorativeIcon }}</mat-icon>\n }\n {{ data.message }}\n</p>\n\n@if (data.showAction) {\n <div class=\"adf-snackbar-message-content-action\" aria-hidden=\"true\">\n @if (data.actionLabel) {\n <button mat-button (click)=\"snackBarRef.dismissWithAction()\" class=\"adf-snackbar-message-content-action-button\"\n data-automation-id=\"adf-snackbar-message-content-action-button\">\n {{data.actionLabel}}\n </button>\n }\n @if (data.actionIcon) {\n <button mat-button (click)=\"onIconClicked()\" class=\"adf-snackbar-message-content-action-icon\"\n [attr.aria-label]=\"data.actionIconAriaLabel | translate\">\n <mat-icon>{{ data.actionIcon }}</mat-icon>\n </button>\n }\n </div>\n}\n", styles: [":host{display:flex;align-items:center;justify-content:space-between}:host .adf-snackbar-message-content{display:flex;align-items:center;margin:0}:host .adf-snackbar-message-content mat-icon{margin-right:8px}:host .adf-snackbar-message-content-action{margin-left:24px;display:flex;flex-direction:row}:host .adf-snackbar-message-content-action .mat-mdc-button{min-width:0;margin:-8px;height:unset}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-button{margin-right:8px;padding-left:16px;padding-right:16px;width:auto;-webkit-font-smoothing:subpixel-antialiased}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-icon{padding:0;width:auto}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-icon mat-icon{height:24px;width:24px;font-size:24px;margin-right:0;margin-top:4px}\n"] }]
13321
+ }, template: "<p class=\"adf-snackbar-message-content\" data-automation-id=\"adf-snackbar-message-content\" aria-hidden=\"true\">\n @if (data.decorativeIcon) {\n <mat-icon data-automation-id=\"adf-snackbar-decorative-icon\">{{ data.decorativeIcon }}</mat-icon>\n }\n {{ data.message }}\n</p>\n\n@if (data.showAction) {\n <div class=\"adf-snackbar-message-content-action\" aria-hidden=\"true\">\n @if (data.actionLabel) {\n <button mat-button (click)=\"snackBarRef.dismissWithAction()\" class=\"adf-snackbar-message-content-action-button\"\n data-automation-id=\"adf-snackbar-message-content-action-button\">\n {{data.actionLabel}}\n </button>\n }\n @if (data.actionIcon) {\n <button mat-button (click)=\"onIconClicked()\" class=\"adf-snackbar-message-content-action-icon\"\n [attr.aria-label]=\"data.actionIconAriaLabel | translate\">\n <mat-icon>{{ data.actionIcon }}</mat-icon>\n </button>\n }\n </div>\n}\n", styles: [":host{display:flex;align-items:center;justify-content:space-between}:host .adf-snackbar-message-content{display:flex;align-items:center;margin:0;overflow-wrap:anywhere;gap:8px}:host .adf-snackbar-message-content mat-icon{flex:0 0 auto;align-self:flex-start}:host .adf-snackbar-message-content-action{margin-left:24px;display:flex;flex-direction:row}:host .adf-snackbar-message-content-action .mat-mdc-button{min-width:0;margin:-8px;height:unset}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-button{margin-right:8px;padding-left:16px;padding-right:16px;width:auto;-webkit-font-smoothing:subpixel-antialiased}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-icon{padding:0;width:auto}:host .adf-snackbar-message-content-action .mat-mdc-button.adf-snackbar-message-content-action-icon mat-icon{height:24px;width:24px;font-size:24px;margin-right:0;margin-top:4px}\n"] }]
13428
13322
  }], ctorParameters: () => [{ type: i1$b.MatSnackBarRef }, { type: undefined, decorators: [{
13429
13323
  type: Inject,
13430
13324
  args: [MAT_SNACK_BAR_DATA]