@alfresco/adf-content-services 8.1.0-15991325710 → 8.1.0-16024576091
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.
|
@@ -14,18 +14,22 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
17
|
+
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
18
18
|
import { ADF_COMMENTS_SERVICE, CommentsComponent } from '@alfresco/adf-core';
|
|
19
19
|
import { NodeCommentsService } from './services/node-comments.service';
|
|
20
20
|
import * as i0 from "@angular/core";
|
|
21
21
|
export class NodeCommentsComponent {
|
|
22
|
+
constructor() {
|
|
23
|
+
/** Emits when a new comment is added */
|
|
24
|
+
this.commentAdded = new EventEmitter();
|
|
25
|
+
}
|
|
22
26
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NodeCommentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NodeCommentsComponent, isStandalone: true, selector: "adf-node-comments", inputs: { nodeId: "nodeId", readOnly: "readOnly" }, providers: [
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NodeCommentsComponent, isStandalone: true, selector: "adf-node-comments", inputs: { nodeId: "nodeId", readOnly: "readOnly" }, outputs: { commentAdded: "commentAdded" }, providers: [
|
|
24
28
|
{
|
|
25
29
|
provide: ADF_COMMENTS_SERVICE,
|
|
26
30
|
useClass: NodeCommentsService
|
|
27
31
|
}
|
|
28
|
-
], ngImport: i0, template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"nodeId\"\n/>", dependencies: [{ kind: "component", type: CommentsComponent, selector: "adf-comments", inputs: ["id", "readOnly"], outputs: ["error"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
32
|
+
], ngImport: i0, template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"nodeId\"\n (commentAdded)=\"commentAdded.emit($event)\"\n/>", dependencies: [{ kind: "component", type: CommentsComponent, selector: "adf-comments", inputs: ["id", "readOnly"], outputs: ["error", "commentAdded"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
29
33
|
}
|
|
30
34
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NodeCommentsComponent, decorators: [{
|
|
31
35
|
type: Component,
|
|
@@ -34,11 +38,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
34
38
|
provide: ADF_COMMENTS_SERVICE,
|
|
35
39
|
useClass: NodeCommentsService
|
|
36
40
|
}
|
|
37
|
-
], template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"nodeId\"\n/>" }]
|
|
41
|
+
], template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"nodeId\"\n (commentAdded)=\"commentAdded.emit($event)\"\n/>" }]
|
|
38
42
|
}], propDecorators: { nodeId: [{
|
|
39
43
|
type: Input,
|
|
40
44
|
args: [{ required: true }]
|
|
41
45
|
}], readOnly: [{
|
|
42
46
|
type: Input
|
|
47
|
+
}], commentAdded: [{
|
|
48
|
+
type: Output
|
|
43
49
|
}] } });
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1jb21tZW50cy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWIvY29udGVudC1zZXJ2aWNlcy9zcmMvbGliL25vZGUtY29tbWVudHMvbm9kZS1jb21tZW50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RkZWQgKi9cbiAgICBAT3V0cHV0KClcbiAgICBjb21tZW50QWRkZWQgPSBuZXcgRXZlbnRFbWl0dGVyPENvbW1lbnRNb2RlbD4oKTtcbn1cbiIsIjxhZGYtY29tbWVudHMgXG4gICAgW3JlYWRPbmx5XT1cInJlYWRPbmx5XCJcbiAgICBbaWRdPVwibm9kZUlkXCJcbiAgICAoY29tbWVudEFkZGVkKT1cImNvbW1lbnRBZGRlZC5lbWl0KCRldmVudClcIlxuLz4iXX0=
|
|
@@ -25044,13 +25044,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
25044
25044
|
* limitations under the License.
|
|
25045
25045
|
*/
|
|
25046
25046
|
class NodeCommentsComponent {
|
|
25047
|
+
constructor() {
|
|
25048
|
+
/** Emits when a new comment is added */
|
|
25049
|
+
this.commentAdded = new EventEmitter();
|
|
25050
|
+
}
|
|
25047
25051
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NodeCommentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25048
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NodeCommentsComponent, isStandalone: true, selector: "adf-node-comments", inputs: { nodeId: "nodeId", readOnly: "readOnly" }, providers: [
|
|
25052
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NodeCommentsComponent, isStandalone: true, selector: "adf-node-comments", inputs: { nodeId: "nodeId", readOnly: "readOnly" }, outputs: { commentAdded: "commentAdded" }, providers: [
|
|
25049
25053
|
{
|
|
25050
25054
|
provide: ADF_COMMENTS_SERVICE,
|
|
25051
25055
|
useClass: NodeCommentsService
|
|
25052
25056
|
}
|
|
25053
|
-
], ngImport: i0, template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"nodeId\"\n/>", dependencies: [{ kind: "component", type: CommentsComponent, selector: "adf-comments", inputs: ["id", "readOnly"], outputs: ["error"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
25057
|
+
], ngImport: i0, template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"nodeId\"\n (commentAdded)=\"commentAdded.emit($event)\"\n/>", dependencies: [{ kind: "component", type: CommentsComponent, selector: "adf-comments", inputs: ["id", "readOnly"], outputs: ["error", "commentAdded"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
25054
25058
|
}
|
|
25055
25059
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NodeCommentsComponent, decorators: [{
|
|
25056
25060
|
type: Component,
|
|
@@ -25059,12 +25063,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
25059
25063
|
provide: ADF_COMMENTS_SERVICE,
|
|
25060
25064
|
useClass: NodeCommentsService
|
|
25061
25065
|
}
|
|
25062
|
-
], template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"nodeId\"\n/>" }]
|
|
25066
|
+
], template: "<adf-comments \n [readOnly]=\"readOnly\"\n [id]=\"nodeId\"\n (commentAdded)=\"commentAdded.emit($event)\"\n/>" }]
|
|
25063
25067
|
}], propDecorators: { nodeId: [{
|
|
25064
25068
|
type: Input,
|
|
25065
25069
|
args: [{ required: true }]
|
|
25066
25070
|
}], readOnly: [{
|
|
25067
25071
|
type: Input
|
|
25072
|
+
}], commentAdded: [{
|
|
25073
|
+
type: Output
|
|
25068
25074
|
}] } });
|
|
25069
25075
|
|
|
25070
25076
|
/*!
|