@alfresco/adf-core 8.4.0-17806466306 → 8.4.0-17827115123
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/api/lib/adf-http-client.service.d.ts +9 -9
- package/fesm2022/adf-core.mjs +3 -5
- package/fesm2022/adf-core.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-api.mjs +34 -22
- package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
- package/lib/auth/interfaces/authentication-service.interface.d.ts +7 -5
- package/lib/auth/services/authentication.service.d.ts +8 -6
- package/lib/auth/services/base-authentication.service.d.ts +6 -6
- package/lib/form/components/form-base.component.d.ts +1 -1
- package/lib/form/components/widgets/base-viewer/base-viewer.widget.d.ts +16 -0
- package/lib/form/components/widgets/core/form.model.d.ts +2 -1
- package/package.json +4 -5
- package/schematics/migrations/schematics/migrations/7_0_0/index.d.ts +1 -2
- package/schematics/migrations/schematics/migrations/7_0_0/index.js +46 -59
- package/schematics/migrations/schematics/migrations/7_0_0/index.js.map +1 -1
- package/schematics/migrations/schematics/migrations/collection.json +0 -5
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Emitters as JsApiEmitters, HttpClient as JsApiHttpClient } from '@alfresco/js-api';
|
|
1
|
+
import { Emitters as JsApiEmitters, HttpClient as JsApiHttpClient, EventEmitterInstance, EventEmitterEvents } from '@alfresco/js-api';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { RequestOptions, SecurityOptions } from './interfaces';
|
|
4
|
-
import ee, { Emitter } from 'event-emitter';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export interface Emitters {
|
|
7
|
-
readonly eventEmitter:
|
|
8
|
-
readonly apiClientEmitter:
|
|
6
|
+
readonly eventEmitter: EventEmitterInstance;
|
|
7
|
+
readonly apiClientEmitter: EventEmitterInstance;
|
|
9
8
|
}
|
|
10
|
-
export declare class AdfHttpClient implements
|
|
9
|
+
export declare class AdfHttpClient implements JsApiHttpClient {
|
|
11
10
|
private httpClient;
|
|
12
|
-
|
|
13
|
-
off: ee.EmitterMethod;
|
|
14
|
-
once: ee.EmitterMethod;
|
|
11
|
+
private eventEmitter;
|
|
15
12
|
_disableCsrf: boolean;
|
|
16
|
-
emit: (type: string, ...args: any[]) => void;
|
|
17
13
|
get disableCsrf(): boolean;
|
|
18
14
|
set disableCsrf(disableCsrf: boolean);
|
|
19
15
|
private defaultSecurityOptions;
|
|
20
16
|
constructor(httpClient: HttpClient);
|
|
17
|
+
on(event: EventEmitterEvents, fn: (...args: any[]) => void, context?: any): this;
|
|
18
|
+
off(event: EventEmitterEvents, fn?: (...args: any[]) => void, context?: any): this;
|
|
19
|
+
once(event: EventEmitterEvents, fn: (...args: any[]) => void, context?: any): this;
|
|
20
|
+
emit(event: EventEmitterEvents, ...args: any[]): boolean;
|
|
21
21
|
setDefaultSecurityOption(options: any): void;
|
|
22
22
|
merge(...objects: any[]): any;
|
|
23
23
|
request<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T>;
|
package/fesm2022/adf-core.mjs
CHANGED
|
@@ -62,7 +62,6 @@ import * as i2$6 from '@angular/material/checkbox';
|
|
|
62
62
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
63
63
|
import * as i1$a from 'angular-oauth2-oidc';
|
|
64
64
|
import { OAuthStorage, AuthConfig, OAuthService, OAuthErrorEvent, OAuthLogger, OAuthSuccessEvent, AUTH_CONFIG, provideOAuthClient } from 'angular-oauth2-oidc';
|
|
65
|
-
import ee from 'event-emitter';
|
|
66
65
|
import { Minimatch } from 'minimatch';
|
|
67
66
|
import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';
|
|
68
67
|
import { AuthenticationInterceptor, Authentication } from '@alfresco/adf-core/auth';
|
|
@@ -7231,7 +7230,6 @@ class BaseAuthenticationService {
|
|
|
7231
7230
|
this.onError = new ReplaySubject(1);
|
|
7232
7231
|
this.onLogin = new ReplaySubject(1);
|
|
7233
7232
|
this.onLogout = new ReplaySubject(1);
|
|
7234
|
-
ee(this);
|
|
7235
7233
|
}
|
|
7236
7234
|
/**
|
|
7237
7235
|
* Adds the auth token to an HTTP header using the 'bearer' scheme.
|
|
@@ -23588,7 +23586,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
23588
23586
|
'(input)': 'event($event)',
|
|
23589
23587
|
'(invalid)': 'event($event)',
|
|
23590
23588
|
'(select)': 'event($event)'
|
|
23591
|
-
}, imports: [
|
|
23589
|
+
}, imports: [TranslatePipe, ViewerComponent, ErrorWidgetComponent], encapsulation: ViewEncapsulation.None, template: "<div class=\"adf-base-viewer-widget {{ field.className }}\"\n [class.adf-invalid]=\"!field.isValid\"\n [class.adf-readonly]=\"field.readOnly\">\n <label class=\"adf-label\" [attr.for]=\"field.id\">\n {{ field.name | translate }}\n <span class=\"adf-asterisk\" [style.visibility]=\"isRequired() ? 'visible' : 'hidden'\">*</span></label>\n <adf-viewer [urlFile]=\"field.value.urlFile\"\n [blobFile]=\"field.value.blobFile\"\n [fileName]=\"field.value.fileName\"\n [showViewer]=\"field.value?.blobFile || field.value?.urlFile\"\n [allowGoBack]=\"false\" />\n <div class=\"adf-error-messages-container\">\n <error-widget [error]=\"field.validationSummary\" />\n </div>\n</div>\n", styles: ["base-viewer-widget{height:100%;width:100%}base-viewer-widget .adf-base-viewer-widget{height:100%;width:100%}base-viewer-widget .adf-base-viewer-widget adf-viewer.adf-viewer{position:relative}base-viewer-widget .adf-base-viewer-widget adf-viewer.adf-viewer .adf-viewer-container .adf-viewer-content>div{height:90vh}\n"] }]
|
|
23592
23590
|
}], ctorParameters: () => [{ type: FormService }] });
|
|
23593
23591
|
|
|
23594
23592
|
/*!
|
|
@@ -24628,8 +24626,8 @@ class FormBaseComponent {
|
|
|
24628
24626
|
}
|
|
24629
24627
|
else {
|
|
24630
24628
|
// Note: Activiti is using NAME field rather than ID for outcomes
|
|
24631
|
-
if (outcome.name) {
|
|
24632
|
-
this.completeTaskForm(outcome.name);
|
|
24629
|
+
if (outcome.name && outcome.id) {
|
|
24630
|
+
this.completeTaskForm(outcome.name, outcome.id);
|
|
24633
24631
|
return true;
|
|
24634
24632
|
}
|
|
24635
24633
|
}
|