nuxeo-development-framework 4.1.7 → 4.1.9
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/bundles/nuxeo-development-framework.umd.js +136 -139
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.js +2 -2
- package/esm2015/lib/components/file-manger/components/publish-dialog/publish-dialog.component.js +81 -81
- package/esm2015/lib/components/file-manger/components/update-modal/update-modal.component.js +24 -24
- package/fesm2015/nuxeo-development-framework.js +88 -92
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/file-manger/components/publish-dialog/publish-dialog.component.d.ts +12 -10
- package/lib/components/file-manger/components/update-modal/update-modal.component.d.ts +9 -8
- package/package.json +1 -1
|
@@ -20591,7 +20591,7 @@ class DynamicFieldsRendererComponent {
|
|
|
20591
20591
|
}
|
|
20592
20592
|
}
|
|
20593
20593
|
DynamicFieldsRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DynamicFieldsRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20594
|
-
DynamicFieldsRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicFieldsRendererComponent, selector: "app-dynamic-fields-renderer", inputs: { form: "form", agencyNameFilter: "agencyNameFilter", countryNameFilter: "countryNameFilter", mode: "mode", fields: "fields" }, ngImport: i0, template: "<div [formGroup]=\"form\" *ngIf=\"form\">\r\n <div class=\"renderer-container\">\r\n <div class=\"field-container\" *ngFor=\"let field of fields\">\r\n <ng-container\r\n *permission=\"{ name: field.permission, entity: field.formControlName }\"\r\n >\r\n <div class=\"single-field mb-3\" *ngIf=\"field.type === 'text'\">\r\n <div class=\"label-style\">\r\n {{ field.label | translate }}\r\n <span class=\"text-red-500\" *ngIf=\"field.required\">*</span>\r\n </div>\r\n <input\r\n class=\"field-style\"\r\n [formControlName]=\"field.formControlName\"\r\n placeholder=\" {{ field.placeholder | translate }}\"\r\n />\r\n </div>\r\n <div class=\"single-field mb-3\" *ngIf=\"field.type === 'number'\">\r\n <div class=\"label-style\">\r\n {{ field.label | translate }}\r\n <span class=\"text-red-500\" *ngIf=\"field.required\">*</span>\r\n </div>\r\n <input\r\n min=\"1\"\r\n type=\"number\"\r\n class=\"field-style\"\r\n [formControlName]=\"field.formControlName\"\r\n placeholder=\" {{ field.placeholder | translate }}\"\r\n />\r\n </div>\r\n <div class=\"single-field mb-3\" *ngIf=\"field.type === 'date'\">\r\n <cts-dynamic-form-hijri-dateitem\r\n [formControlName]=\"field.formControlName\"\r\n [label]=\"field.label\"\r\n >\r\n </cts-dynamic-form-hijri-dateitem>\r\n </div>\r\n\r\n <div\r\n class=\"single-field mb-3\"\r\n *ngIf=\"field.type === 'dynamic-vocabulary'\"\r\n >\r\n <app-dynamic-form-vocabulary-item\r\n [label]=\"field.label\"\r\n [bindLabel]=\"field.bindLabel\"\r\n [bindValue]=\"field.bindValue\"\r\n placeholder=\"{{ field.placeholder | translate }}\"\r\n [multiple]=\"field.multiple\"\r\n [searchable]=\"field.searchable\"\r\n [closeOnSelect]=\"field.closeOnSelect\"\r\n [disabled]=\"field.disabled\"\r\n [hideSelectedItems]=\"field.hideSelectedItems\"\r\n [vocabularyType]=\"field.vocabularyType\"\r\n [formControlName]=\"field.formControlName\"\r\n >\r\n </app-dynamic-form-vocabulary-item>\r\n </div>\r\n\r\n <!-- <div class=\"single-field mb-3\" *ngIf=\"field.type === 'department-selector'\">\r\n <div class=\"label-style\">\r\n {{ field.label | translate }}\r\n <span class=\"text-red-500\" *ngIf=\"field.required\">*</span>\r\n </div>\r\n <app-dynamic-form-department\r\n [formControlName]=\"field.formControlName\"\r\n [placeholder]=\"field.placeholder\"\r\n [pp_departmentNestedTree]=\"field.pp_departmentNestedTree\"\r\n [pp_departmentTree]=\"field.pp_departmentTree\"\r\n [customPrefix]=\"field.customPrefix\"\r\n [customParentProperty]=\"field.customParentProperty\"\r\n [useCustomAddEditAction]=\"field.useCustomAddEditAction\"\r\n >\r\n </app-dynamic-form-department>\r\n </div> -->\r\n\r\n <div\r\n class=\"single-field mb-3\"\r\n *ngIf=\"field.type === 'translated-vocabulary'\"\r\n >\r\n <app-translated-vocabulary-select\r\n [label]=\"field.label\"\r\n [arbBindLabel]=\"field.arbBindLabel\"\r\n [engBindLabel]=\"field.engBindLabel\"\r\n [bindValue]=\"field.bindValue\"\r\n placeholder=\"{{ field.placeholder | translate }}\"\r\n [multiple]=\"field.multiple\"\r\n [searchable]=\"field.searchable\"\r\n [closeOnSelect]=\"field.closeOnSelect\"\r\n [hideSelectedItems]=\"field.hideSelectedItems\"\r\n [formControlName]=\"field.formControlName\"\r\n [vocbularyId]=\"field.vocbularyId\"\r\n [useFilter]=\"field.useFilter\"\r\n [filter]=\"\r\n field.filter === 'agencyName'\r\n ? agencyNameFilter\r\n : field.filter === 'countryName'\r\n ? countryNameFilter\r\n : {}\r\n \"\r\n [params]=\"field.params || {}\"\r\n [getByDirectorySuggestion]=\"field.getByDirectorySuggestion\"\r\n >\r\n </app-translated-vocabulary-select>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [""], components: [{ type: DynamicFormHijriDateitemComponent, selector: "cts-dynamic-form-hijri-dateitem", inputs: ["minHijri", "maxHijri", "minGreg", "maxGreg", "label", "isDisabled", "range", "vertical", "isReadOnly", "placeholder"], outputs: ["valueChanged"] }, { type: DynamicFormVocabularyItemComponent, selector: "app-dynamic-form-vocabulary-item", inputs: ["bindValue", "bindLabel", "placeholder", "multiple", "searchable", "closeOnSelect", "hideSelectedItems", "disabled", "vocabularyType", "label", "cacheable", "shwoAllValues"], outputs: ["onSelecting"] }, { type: TranslatedVocabularySelectComponent, selector: "app-translated-vocabulary-select", inputs: ["label", "bindValue", "arbBindLabel", "engBindLabel", "placeholder", "multiple", "searchable", "closeOnSelect", "hideSelectedItems", "disabled", "clear", "filter", "useFilter", "vocbularyId", "mapingResponse", "params", "getByDirectorySuggestion"], outputs: ["onSelectItems"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2$6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: PermissionsDirective, selector: "[permission]", inputs: ["permission"] }, { type: i2$6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2$6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$6.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2$6.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { type: i2$6.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }], pipes: { "translate": i1.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
20594
|
+
DynamicFieldsRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicFieldsRendererComponent, selector: "app-dynamic-fields-renderer", inputs: { form: "form", agencyNameFilter: "agencyNameFilter", countryNameFilter: "countryNameFilter", mode: "mode", fields: "fields" }, ngImport: i0, template: "<div [formGroup]=\"form\" *ngIf=\"form\">\r\n <div class=\"renderer-container\">\r\n <div class=\"field-container\" *ngFor=\"let field of fields\">\r\n <ng-container\r\n *permission=\"{ name: field.permission, entity: field.formControlName }\"\r\n >\r\n <div class=\"single-field mb-3\" *ngIf=\"field.type === 'text'\">\r\n <div class=\"label-style\">\r\n {{ field.label | translate }}\r\n <span class=\"text-red-500\" *ngIf=\"field.required\">*</span>\r\n </div>\r\n <input\r\n class=\"field-style\"\r\n id=\"{{ field.formControlName }}\"\r\n [formControlName]=\"field.formControlName\"\r\n placeholder=\" {{ field.placeholder | translate }}\"\r\n />\r\n </div>\r\n <div class=\"single-field mb-3\" *ngIf=\"field.type === 'number'\">\r\n <div class=\"label-style\">\r\n {{ field.label | translate }}\r\n <span class=\"text-red-500\" *ngIf=\"field.required\">*</span>\r\n </div>\r\n <input\r\n min=\"1\"\r\n type=\"number\"\r\n class=\"field-style\"\r\n [formControlName]=\"field.formControlName\"\r\n placeholder=\" {{ field.placeholder | translate }}\"\r\n />\r\n </div>\r\n <div class=\"single-field mb-3\" *ngIf=\"field.type === 'date'\">\r\n <cts-dynamic-form-hijri-dateitem\r\n [formControlName]=\"field.formControlName\"\r\n [label]=\"field.label\"\r\n >\r\n </cts-dynamic-form-hijri-dateitem>\r\n </div>\r\n\r\n <div\r\n class=\"single-field mb-3\"\r\n *ngIf=\"field.type === 'dynamic-vocabulary'\"\r\n >\r\n <app-dynamic-form-vocabulary-item\r\n [label]=\"field.label\"\r\n [bindLabel]=\"field.bindLabel\"\r\n [bindValue]=\"field.bindValue\"\r\n placeholder=\"{{ field.placeholder | translate }}\"\r\n [multiple]=\"field.multiple\"\r\n [searchable]=\"field.searchable\"\r\n [closeOnSelect]=\"field.closeOnSelect\"\r\n [disabled]=\"field.disabled\"\r\n [hideSelectedItems]=\"field.hideSelectedItems\"\r\n [vocabularyType]=\"field.vocabularyType\"\r\n [formControlName]=\"field.formControlName\"\r\n >\r\n </app-dynamic-form-vocabulary-item>\r\n </div>\r\n\r\n <!-- <div class=\"single-field mb-3\" *ngIf=\"field.type === 'department-selector'\">\r\n <div class=\"label-style\">\r\n {{ field.label | translate }}\r\n <span class=\"text-red-500\" *ngIf=\"field.required\">*</span>\r\n </div>\r\n <app-dynamic-form-department\r\n [formControlName]=\"field.formControlName\"\r\n [placeholder]=\"field.placeholder\"\r\n [pp_departmentNestedTree]=\"field.pp_departmentNestedTree\"\r\n [pp_departmentTree]=\"field.pp_departmentTree\"\r\n [customPrefix]=\"field.customPrefix\"\r\n [customParentProperty]=\"field.customParentProperty\"\r\n [useCustomAddEditAction]=\"field.useCustomAddEditAction\"\r\n >\r\n </app-dynamic-form-department>\r\n </div> -->\r\n\r\n <div\r\n class=\"single-field mb-3\"\r\n *ngIf=\"field.type === 'translated-vocabulary'\"\r\n >\r\n <app-translated-vocabulary-select\r\n [label]=\"field.label\"\r\n [arbBindLabel]=\"field.arbBindLabel\"\r\n [engBindLabel]=\"field.engBindLabel\"\r\n [bindValue]=\"field.bindValue\"\r\n placeholder=\"{{ field.placeholder | translate }}\"\r\n [multiple]=\"field.multiple\"\r\n [searchable]=\"field.searchable\"\r\n [closeOnSelect]=\"field.closeOnSelect\"\r\n [hideSelectedItems]=\"field.hideSelectedItems\"\r\n [formControlName]=\"field.formControlName\"\r\n [vocbularyId]=\"field.vocbularyId\"\r\n [useFilter]=\"field.useFilter\"\r\n [filter]=\"\r\n field.filter === 'agencyName'\r\n ? agencyNameFilter\r\n : field.filter === 'countryName'\r\n ? countryNameFilter\r\n : {}\r\n \"\r\n [params]=\"field.params || {}\"\r\n [getByDirectorySuggestion]=\"field.getByDirectorySuggestion\"\r\n >\r\n </app-translated-vocabulary-select>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [""], components: [{ type: DynamicFormHijriDateitemComponent, selector: "cts-dynamic-form-hijri-dateitem", inputs: ["minHijri", "maxHijri", "minGreg", "maxGreg", "label", "isDisabled", "range", "vertical", "isReadOnly", "placeholder"], outputs: ["valueChanged"] }, { type: DynamicFormVocabularyItemComponent, selector: "app-dynamic-form-vocabulary-item", inputs: ["bindValue", "bindLabel", "placeholder", "multiple", "searchable", "closeOnSelect", "hideSelectedItems", "disabled", "vocabularyType", "label", "cacheable", "shwoAllValues"], outputs: ["onSelecting"] }, { type: TranslatedVocabularySelectComponent, selector: "app-translated-vocabulary-select", inputs: ["label", "bindValue", "arbBindLabel", "engBindLabel", "placeholder", "multiple", "searchable", "closeOnSelect", "hideSelectedItems", "disabled", "clear", "filter", "useFilter", "vocbularyId", "mapingResponse", "params", "getByDirectorySuggestion"], outputs: ["onSelectItems"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2$6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: PermissionsDirective, selector: "[permission]", inputs: ["permission"] }, { type: i2$6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2$6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$6.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2$6.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { type: i2$6.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }], pipes: { "translate": i1.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
20595
20595
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DynamicFieldsRendererComponent, decorators: [{
|
|
20596
20596
|
type: Component,
|
|
20597
20597
|
args: [{
|
|
@@ -21923,8 +21923,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
21923
21923
|
args: ['environment']
|
|
21924
21924
|
}] }, { type: CallApiService }]; } });
|
|
21925
21925
|
|
|
21926
|
-
class PublishDialogComponent {
|
|
21927
|
-
constructor(publishing, dialogRef, data, tosterService, translate) {
|
|
21926
|
+
class PublishDialogComponent extends BaseDialogComponent {
|
|
21927
|
+
constructor(publishing, dialogRef, data, tosterService, translate, injector) {
|
|
21928
|
+
super(injector);
|
|
21928
21929
|
this.publishing = publishing;
|
|
21929
21930
|
this.dialogRef = dialogRef;
|
|
21930
21931
|
this.data = data;
|
|
@@ -21935,44 +21936,88 @@ class PublishDialogComponent {
|
|
|
21935
21936
|
this.startPublishing = false;
|
|
21936
21937
|
this.renditionList = [
|
|
21937
21938
|
{
|
|
21938
|
-
name: this.translate.instant(
|
|
21939
|
-
value:
|
|
21939
|
+
name: this.translate.instant('publishDocs.none'),
|
|
21940
|
+
value: 'none'
|
|
21940
21941
|
},
|
|
21941
21942
|
/*{
|
|
21942
|
-
|
|
21943
|
-
|
|
21944
|
-
|
|
21943
|
+
name: this.translate.instant('publishDocs.defaultRendition'),
|
|
21944
|
+
value: 'defaultRendition'
|
|
21945
|
+
},*/
|
|
21945
21946
|
{
|
|
21946
|
-
name: this.translate.instant(
|
|
21947
|
-
value:
|
|
21947
|
+
name: this.translate.instant('publishDocs.thumbnail'),
|
|
21948
|
+
value: 'thumbnail'
|
|
21948
21949
|
},
|
|
21949
21950
|
{
|
|
21950
|
-
name: this.translate.instant(
|
|
21951
|
-
value:
|
|
21952
|
-
}
|
|
21951
|
+
name: this.translate.instant('publishDocs.pdf'),
|
|
21952
|
+
value: 'pdf'
|
|
21953
|
+
}
|
|
21953
21954
|
/*{
|
|
21954
|
-
|
|
21955
|
-
|
|
21956
|
-
|
|
21955
|
+
name: this.translate.instant('publishDocs.zipExport'),
|
|
21956
|
+
value: 'zipExport'
|
|
21957
|
+
},*/
|
|
21957
21958
|
/*{
|
|
21958
|
-
|
|
21959
|
-
|
|
21960
|
-
|
|
21959
|
+
name: this.translate.instant('publishDocs.xmlExport'),
|
|
21960
|
+
value: 'xmlExport'
|
|
21961
|
+
},*/
|
|
21961
21962
|
];
|
|
21962
21963
|
this.initialRenditionValue = this.renditionList[0].value;
|
|
21963
21964
|
this.PublicationForm = new FormGroup({
|
|
21964
21965
|
target: new FormControl(null, Validators.required),
|
|
21965
21966
|
defaultRendition: new FormControl(),
|
|
21966
|
-
renditionName: new FormControl()
|
|
21967
|
+
renditionName: new FormControl()
|
|
21967
21968
|
});
|
|
21968
21969
|
this.isSelectThisBefor = false;
|
|
21969
21970
|
this.showpublishingLoader = false;
|
|
21971
|
+
this.publish = () => {
|
|
21972
|
+
this.startPublishing = true;
|
|
21973
|
+
this.showpublishingLoader = true;
|
|
21974
|
+
let params = {
|
|
21975
|
+
mySection: this.PublicationForm.get('target').value
|
|
21976
|
+
};
|
|
21977
|
+
if (this.data.PublishType == 'File') {
|
|
21978
|
+
let Id;
|
|
21979
|
+
switch (this.PublicationForm.get('renditionName').value) {
|
|
21980
|
+
case 'none': {
|
|
21981
|
+
break;
|
|
21982
|
+
}
|
|
21983
|
+
// case 'defaultRendition': { params["defaultRendition"] = true; break; }
|
|
21984
|
+
default:
|
|
21985
|
+
params['myRenditionName'] =
|
|
21986
|
+
this.PublicationForm.get('renditionName').value;
|
|
21987
|
+
}
|
|
21988
|
+
}
|
|
21989
|
+
let Id;
|
|
21990
|
+
this.data.PublishType == 'File'
|
|
21991
|
+
? (Id = this.fetchedVersionDoc
|
|
21992
|
+
? this.fetchedVersionDoc.versionDocId
|
|
21993
|
+
: this.data.file.uid)
|
|
21994
|
+
: (Id = this.fetchedVersionDoc
|
|
21995
|
+
? this.fetchedVersionDoc.versionDocId
|
|
21996
|
+
: this.data.id);
|
|
21997
|
+
return this.publishing.publishDocument(Id, params).pipe(tap((res) => {
|
|
21998
|
+
if (res) {
|
|
21999
|
+
this.publishing.newPublished.next(true);
|
|
22000
|
+
this.data.PublishType == 'File'
|
|
22001
|
+
? this.tosterService.show('success', 'TOASTER.SUCCESS', 'TOASTER.publishDocument_success')
|
|
22002
|
+
: this.tosterService.show('success', 'TOASTER.SUCCESS', 'TOASTER.publishFolder_success');
|
|
22003
|
+
this.showpublishingLoader = false;
|
|
22004
|
+
setTimeout(() => {
|
|
22005
|
+
this.close();
|
|
22006
|
+
}, 500);
|
|
22007
|
+
}
|
|
22008
|
+
}, (err) => {
|
|
22009
|
+
this.data.PublishType == 'File'
|
|
22010
|
+
? this.tosterService.show('error', 'TOASTER.ERROR', 'TOASTER.publishDocument_fail')
|
|
22011
|
+
: this.tosterService.show('error', 'TOASTER.ERROR', 'TOASTER.publishFolder_fail');
|
|
22012
|
+
this.startPublishing = false;
|
|
22013
|
+
}));
|
|
22014
|
+
};
|
|
21970
22015
|
this.subscribtion.concat([
|
|
21971
22016
|
this.publishing.getPublishingSections().subscribe((res) => {
|
|
21972
22017
|
this.sections = res.entries;
|
|
21973
|
-
})
|
|
22018
|
+
})
|
|
21974
22019
|
]);
|
|
21975
|
-
this.subscription$ = this.PublicationForm.get(
|
|
22020
|
+
this.subscription$ = this.PublicationForm.get('target').valueChanges.subscribe((res) => {
|
|
21976
22021
|
this.isSelectThisBefor = false;
|
|
21977
22022
|
this.publishinpPlaces.map((item) => {
|
|
21978
22023
|
if (item.contextParameters.breadcrumb.entries[1].uid == res) {
|
|
@@ -21995,70 +22040,24 @@ class PublishDialogComponent {
|
|
|
21995
22040
|
close() {
|
|
21996
22041
|
this.dialogRef.close();
|
|
21997
22042
|
}
|
|
21998
|
-
publish() {
|
|
21999
|
-
this.startPublishing = true;
|
|
22000
|
-
this.showpublishingLoader = true;
|
|
22001
|
-
let params = {
|
|
22002
|
-
mySection: this.PublicationForm.get("target").value,
|
|
22003
|
-
};
|
|
22004
|
-
if (this.data.PublishType == "File") {
|
|
22005
|
-
let Id;
|
|
22006
|
-
switch (this.PublicationForm.get("renditionName").value) {
|
|
22007
|
-
case "none": {
|
|
22008
|
-
break;
|
|
22009
|
-
}
|
|
22010
|
-
// case 'defaultRendition': { params["defaultRendition"] = true; break; }
|
|
22011
|
-
default:
|
|
22012
|
-
params["myRenditionName"] =
|
|
22013
|
-
this.PublicationForm.get("renditionName").value;
|
|
22014
|
-
}
|
|
22015
|
-
}
|
|
22016
|
-
let Id;
|
|
22017
|
-
this.data.PublishType == "File"
|
|
22018
|
-
? (Id = this.fetchedVersionDoc
|
|
22019
|
-
? this.fetchedVersionDoc.versionDocId
|
|
22020
|
-
: this.data.file.uid)
|
|
22021
|
-
: (Id = this.fetchedVersionDoc
|
|
22022
|
-
? this.fetchedVersionDoc.versionDocId
|
|
22023
|
-
: this.data.id);
|
|
22024
|
-
this.subscribtion.concat([
|
|
22025
|
-
this.publishing.publishDocument(Id, params).subscribe((res) => {
|
|
22026
|
-
if (res) {
|
|
22027
|
-
this.publishing.newPublished.next(true);
|
|
22028
|
-
this.data.PublishType == "File"
|
|
22029
|
-
? this.tosterService.show("success", "TOASTER.SUCCESS", "TOASTER.publishDocument_success")
|
|
22030
|
-
: this.tosterService.show("success", "TOASTER.SUCCESS", "TOASTER.publishFolder_success");
|
|
22031
|
-
this.showpublishingLoader = false;
|
|
22032
|
-
setTimeout(() => {
|
|
22033
|
-
this.close();
|
|
22034
|
-
}, 500);
|
|
22035
|
-
}
|
|
22036
|
-
}, (err) => {
|
|
22037
|
-
this.data.PublishType == "File"
|
|
22038
|
-
? this.tosterService.show("error", "TOASTER.ERROR", "TOASTER.publishDocument_fail")
|
|
22039
|
-
: this.tosterService.show("error", "TOASTER.ERROR", "TOASTER.publishFolder_fail");
|
|
22040
|
-
this.startPublishing = false;
|
|
22041
|
-
}),
|
|
22042
|
-
]);
|
|
22043
|
-
}
|
|
22044
22043
|
ngOnDestroy() {
|
|
22045
22044
|
this.subscribtion.forEach((sub) => sub.unsubscribe());
|
|
22046
22045
|
this.subscription$.unsubscribe();
|
|
22047
22046
|
}
|
|
22048
22047
|
}
|
|
22049
|
-
PublishDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PublishDialogComponent, deps: [{ token: PublishingDocumentService }, { token: i1$3.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: CustomToastrService }, { token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
22050
|
-
PublishDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PublishDialogComponent, selector: "app-publish-dialog", ngImport: i0, template: "<
|
|
22048
|
+
PublishDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PublishDialogComponent, deps: [{ token: PublishingDocumentService }, { token: i1$3.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: CustomToastrService }, { token: i1.TranslateService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
22049
|
+
PublishDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PublishDialogComponent, selector: "app-publish-dialog", usesInheritance: true, ngImport: i0, template: "<ndf-nuxeo-dialog\r\n\tdialogTitle=\"{{ 'publishDocs.publishDialogTitle' | translate }}\"\r\n>\r\n\t<ng-template #contentTemplate>\r\n\t\t<form [formGroup]=\"PublicationForm\" class=\"h-full\" SetRtl>\r\n\t\t\t<div class=\"flex flex-col justify-between h-full\">\r\n\t\t\t\t<!--Form Section-->\r\n\t\t\t\t<div class=\"mt-2\" *ngIf=\"!startPublishing; else loading\">\r\n\t\t\t\t\t<div class=\"mb-3\">\r\n\t\t\t\t\t\t<label class=\"text-base font-bold mb-0\">\r\n\t\t\t\t\t\t\t{{ 'publishDocs.target' | translate }}\r\n\t\t\t\t\t\t\t<span class=\"text-danger\">*</span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t<ng-select\r\n\t\t\t\t\t\t\t[items]=\"sections\"\r\n\t\t\t\t\t\t\tbindLabel=\"title\"\r\n\t\t\t\t\t\t\tbindValue=\"uid\"\r\n\t\t\t\t\t\t\t[placeholder]=\"'publishDocs.targetPlaceholder' | translate\"\r\n\t\t\t\t\t\t\tformControlName=\"target\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t</ng-select>\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t*ngIf=\"\r\n\t\t\t\t\t\t\t\tPublicationForm.get('target').touched &&\r\n\t\t\t\t\t\t\t\tPublicationForm.get('target').errors?.required\r\n\t\t\t\t\t\t\t\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class=\"text-red-500 text-base\">\r\n\t\t\t\t\t\t\t\t{{ 'publishDocs.target' | translate }}\r\n\t\t\t\t\t\t\t\t{{ 'VALIDATORS.REQUIRED' | translate }}\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div *ngIf=\"data.PublishType == 'File'\" class=\"mb-3\">\r\n\t\t\t\t\t\t<label class=\"text-base font-bold mb-0\">\r\n\t\t\t\t\t\t\t{{ 'publishDocs.rendition' | translate }}\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t<ng-select\r\n\t\t\t\t\t\t\t[items]=\"renditionList\"\r\n\t\t\t\t\t\t\tbindLabel=\"name\"\r\n\t\t\t\t\t\t\tbindValue=\"value\"\r\n\t\t\t\t\t\t\t[(ngModel)]=\"initialRenditionValue\"\r\n\t\t\t\t\t\t\tformControlName=\"renditionName\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t</ng-select>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div\r\n\t\t\t\t\t\tclass=\"text-primary font-bold text-md flex justify-center items-center\"\r\n\t\t\t\t\t\t*ngIf=\"isSelectThisBefor\"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<mat-icon class=\"w-16 h-16\" [svgIcon]=\"'alertIcon'\"> </mat-icon>\r\n\t\t\t\t\t\t{{ 'publishDocs.publishWithDepbefpre' | translate }}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</form>\r\n\t</ng-template>\r\n\r\n\t<ng-template #actionsTemplate let-dialog=\"dialog\">\r\n\t\t<button\r\n\t\t\tclass=\"submission-button\"\r\n\t\t\t(click)=\"dialog.executeAction(publish)\"\r\n\t\t\t[disabled]=\"!PublicationForm.valid\"\r\n\t\t>\r\n\t\t\t<span>{{ 'BUTTONS.PUBLISH' | translate }}</span>\r\n\t\t</button>\r\n\t</ng-template>\r\n</ndf-nuxeo-dialog>\r\n", styles: [""], components: [{ type: NdfNuxeoDialog, selector: "ndf-nuxeo-dialog", inputs: ["dialogTitle", "subTitle", "loaderMode"] }, { type: i3$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2$6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2$6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: SetRtlDirective, selector: "[SetRtl]" }, { type: i2$6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$6.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "translate": i1.TranslatePipe } });
|
|
22051
22050
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PublishDialogComponent, decorators: [{
|
|
22052
22051
|
type: Component,
|
|
22053
22052
|
args: [{
|
|
22054
|
-
selector:
|
|
22055
|
-
templateUrl:
|
|
22056
|
-
styleUrls: [
|
|
22053
|
+
selector: 'app-publish-dialog',
|
|
22054
|
+
templateUrl: './publish-dialog.component.html',
|
|
22055
|
+
styleUrls: ['./publish-dialog.component.scss']
|
|
22057
22056
|
}]
|
|
22058
22057
|
}], ctorParameters: function () { return [{ type: PublishingDocumentService }, { type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
22059
22058
|
type: Inject,
|
|
22060
22059
|
args: [MAT_DIALOG_DATA]
|
|
22061
|
-
}] }, { type: CustomToastrService }, { type: i1.TranslateService }]; } });
|
|
22060
|
+
}] }, { type: CustomToastrService }, { type: i1.TranslateService }, { type: i0.Injector }]; } });
|
|
22062
22061
|
|
|
22063
22062
|
class RenameComponent extends BaseComponent {
|
|
22064
22063
|
constructor(fileManagerService, customToastrService, nuxeoDialogService, injector) {
|
|
@@ -23018,8 +23017,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
23018
23017
|
args: [MAT_DIALOG_DATA]
|
|
23019
23018
|
}] }, { type: i1$3.MatDialogRef }, { type: i1$3.MatDialog }, { type: i2$6.FormBuilder }, { type: SharedDocsService }, { type: CustomToastrService }, { type: NuxeoService }, { type: UserPreferencesService }, { type: i0.Injector }]; } });
|
|
23020
23019
|
|
|
23021
|
-
class UpdateModalComponent {
|
|
23022
|
-
constructor(data, environment, dialogRef, fileMangerService, tosterService, formBuilder, appConfService, dynamicFormService, adapter, translationService, dateHelperService, documentService) {
|
|
23020
|
+
class UpdateModalComponent extends BaseDialogComponent {
|
|
23021
|
+
constructor(data, environment, dialogRef, fileMangerService, tosterService, formBuilder, appConfService, dynamicFormService, adapter, translationService, dateHelperService, documentService, injector) {
|
|
23022
|
+
super(injector);
|
|
23023
23023
|
this.data = data;
|
|
23024
23024
|
this.environment = environment;
|
|
23025
23025
|
this.dialogRef = dialogRef;
|
|
@@ -23039,7 +23039,7 @@ class UpdateModalComponent {
|
|
|
23039
23039
|
};
|
|
23040
23040
|
this.id = '';
|
|
23041
23041
|
this.isDirectory = false;
|
|
23042
|
-
|
|
23042
|
+
//isArabic = false;
|
|
23043
23043
|
this.showStaticForm = false;
|
|
23044
23044
|
this.usingExtraFields = false; // flage to switch between static form types
|
|
23045
23045
|
this.fields = [
|
|
@@ -23187,6 +23187,14 @@ class UpdateModalComponent {
|
|
|
23187
23187
|
];
|
|
23188
23188
|
this.customeHeader = 'lock,dc:creator';
|
|
23189
23189
|
this.userSelectorKeys = [];
|
|
23190
|
+
this.UpdateDocument = () => {
|
|
23191
|
+
let params = this.constructPayLoad(this.dynamicData['data'], this.fileForm.value);
|
|
23192
|
+
return this.fileMangerService.UpdateFolder(params, this.id).pipe(tap(res => {
|
|
23193
|
+
this.fileMangerService.onRefreshingFileManger.next();
|
|
23194
|
+
this.tosterService.show('success', 'TOASTER.SUCCESS', "TOASTER.FOLDER_UPDATED_SUCCE");
|
|
23195
|
+
this.closeDialog();
|
|
23196
|
+
}));
|
|
23197
|
+
};
|
|
23190
23198
|
this.type = this.data.type;
|
|
23191
23199
|
this.code = this.data.code;
|
|
23192
23200
|
this.id = this.data.id;
|
|
@@ -23199,9 +23207,6 @@ class UpdateModalComponent {
|
|
|
23199
23207
|
}
|
|
23200
23208
|
}
|
|
23201
23209
|
ngOnInit() {
|
|
23202
|
-
this.translationSubcription = this.translationService.isArabic.subscribe(res => {
|
|
23203
|
-
this.isArabic = res;
|
|
23204
|
-
});
|
|
23205
23210
|
let collectData = {};
|
|
23206
23211
|
this.dynamicFormService.getDynamicForm(this.code ? this.code : this.type).subscribe(form => {
|
|
23207
23212
|
if (form && form['components'] && form['components'].length > 0) {
|
|
@@ -23313,15 +23318,6 @@ class UpdateModalComponent {
|
|
|
23313
23318
|
closeDialog() {
|
|
23314
23319
|
this.dialogRef.close(false);
|
|
23315
23320
|
}
|
|
23316
|
-
UpdateDocument() {
|
|
23317
|
-
let params = this.constructPayLoad(this.dynamicData['data'], this.fileForm.value);
|
|
23318
|
-
this.fileMangerService.UpdateFolder(params, this.id).subscribe(res => {
|
|
23319
|
-
//console.log(res);
|
|
23320
|
-
this.fileMangerService.onRefreshingFileManger.next();
|
|
23321
|
-
this.tosterService.show('success', 'TOASTER.SUCCESS', "TOASTER.FOLDER_UPDATED_SUCCE");
|
|
23322
|
-
this.closeDialog();
|
|
23323
|
-
});
|
|
23324
|
-
}
|
|
23325
23321
|
constructPayLoad(dynamicValues, staticForm) {
|
|
23326
23322
|
let props = this.dynamicForm ? this.dynamicFormService.constructDynamicFormPayload(dynamicValues, this.dynamicForm) : {};
|
|
23327
23323
|
let staticFormData = this.mappingStaticData(staticForm);
|
|
@@ -23344,8 +23340,8 @@ class UpdateModalComponent {
|
|
|
23344
23340
|
this.translationSubcription ? this.translationSubcription.unsubscribe() : null;
|
|
23345
23341
|
}
|
|
23346
23342
|
}
|
|
23347
|
-
UpdateModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UpdateModalComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: 'environment' }, { token: i1$3.MatDialogRef }, { token: FileManagerService }, { token: CustomToastrService }, { token: i2$6.FormBuilder }, { token: AppConfigService }, { token: DynamicFormService }, { token: AdapterService }, { token: TranslationService }, { token: DateHelperService }, { token: DocumentsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23348
|
-
UpdateModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: UpdateModalComponent, selector: "app-update-modal", host: { listeners: { "document:keyup.enter": "KeyUpEvent($event)" } }, ngImport: i0, template: "<
|
|
23343
|
+
UpdateModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UpdateModalComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: 'environment' }, { token: i1$3.MatDialogRef }, { token: FileManagerService }, { token: CustomToastrService }, { token: i2$6.FormBuilder }, { token: AppConfigService }, { token: DynamicFormService }, { token: AdapterService }, { token: TranslationService }, { token: DateHelperService }, { token: DocumentsService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
23344
|
+
UpdateModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: UpdateModalComponent, selector: "app-update-modal", host: { listeners: { "document:keyup.enter": "KeyUpEvent($event)" } }, usesInheritance: true, ngImport: i0, template: "<ndf-nuxeo-dialog dialogTitle=\"{{ 'FILE_MANAGER.UPDATE' | translate }}\">\r\n\t<ng-template #contentTemplate>\r\n\t\t<div\r\n\t\t\tclass=\"create-folder-modal d-flex justify-center w-full relative h-full\"\r\n\t\t>\r\n\t\t\t<div class=\"folder-wrapper\" SetRtl>\r\n\t\t\t\t<div class=\"mb-5\">\r\n\t\t\t\t\t<div class=\"label-style\">\r\n\t\t\t\t\t\t{{ 'FOLDERS.TYPE_ONLY' | translate }}\r\n\t\t\t\t\t\t<span class=\"text-red-500\">*</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div *ngIf=\"!isDirectory\">\r\n\t\t\t\t\t\t{{\r\n\t\t\t\t\t\t\ttranslatedDocumentType\r\n\t\t\t\t\t\t\t\t? isArabic\r\n\t\t\t\t\t\t\t\t\t? translatedDocumentType.arabicName\r\n\t\t\t\t\t\t\t\t\t: translatedDocumentType.englishTitle\r\n\t\t\t\t\t\t\t\t: type\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div *ngIf=\"isDirectory\">\r\n\t\t\t\t\t\t{{ type === 'DmsFolder' ? (isArabic ? '\u0645\u062C\u0644\u062F' : 'Folder') : type }}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<form [formGroup]=\"fileForm\" *ngIf=\"fileForm\">\r\n\t\t\t\t\t<div class=\"mb-3\">\r\n\t\t\t\t\t\t<div class=\"label-style\">\r\n\t\t\t\t\t\t\t{{ 'FOLDERS.TITLE_ONLY' | translate }}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\tclass=\"field-style\"\r\n\t\t\t\t\t\t\t[ngClass]=\"{ 'border-red-500': fileForm.value.title === '..' }\"\r\n\t\t\t\t\t\t\trequired\r\n\t\t\t\t\t\t\tformControlName=\"title\"\r\n\t\t\t\t\t\t\tplaceholder=\" {{ 'CREATE.TITLE' | translate }}\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tclass=\"text-red-500 text-base\"\r\n\t\t\t\t\t\t\t*ngIf=\"fileForm.value.title === '..'\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t{{ 'FOLDERS.INVALID_TITLE_ONLY' | translate }}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"mb-3\">\r\n\t\t\t\t\t\t<div class=\"label-style\">\r\n\t\t\t\t\t\t\t{{ 'FOLDERS.DESCRIPTION_ONLY' | translate }}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\tclass=\"field-style\"\r\n\t\t\t\t\t\t\tformControlName=\"description\"\r\n\t\t\t\t\t\t\tplaceholder=\" {{ 'CREATE.DESCRIPTION' | translate }}\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<!------------------ new statis form ---------------------------->\r\n\t\t\t\t\t<div *ngIf=\"usingExtraFields && !isDirectory\">\r\n\t\t\t\t\t\t<app-dynamic-fields-renderer\r\n\t\t\t\t\t\t\t[mode]=\"'edit'\"\r\n\t\t\t\t\t\t\t[fields]=\"fields\"\r\n\t\t\t\t\t\t\t[form]=\"fileForm\"\r\n\t\t\t\t\t\t\t[agencyNameFilter]=\"agencyNameFilter\"\r\n\t\t\t\t\t\t\t[countryNameFilter]=\"countryNameFilter\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t</app-dynamic-fields-renderer>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<!-- ----------------------------------------------------------- -->\r\n\t\t\t\t</form>\r\n\t\t\t\t<div class=\"dynamic-part -mx-4\" *ngIf=\"dynamicForm && showRenderer\">\r\n\t\t\t\t\t<app-dynamic-form\r\n\t\t\t\t\t\t[form]=\"dynamicForm\"\r\n\t\t\t\t\t\t[data]=\"temporaryDyanmicData\"\r\n\t\t\t\t\t\t(change)=\"ondynamicFormChange($event)\"\r\n\t\t\t\t\t></app-dynamic-form>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template #actionsTemplate let-dialog=\"dialog\">\r\n\t\t<button\r\n\t\t\t(click)=\"dialog.executeAction(UpdateDocument)\"\r\n\t\t\t[disabled]=\"\r\n\t\t\t\t(dynamicData['data'] && !dynamicData.valid) ||\r\n\t\t\t\tfileForm.invalid ||\r\n\t\t\t\tfileForm.value.title === '..'\r\n\t\t\t\"\r\n\t\t\t[ngClass]=\"{\r\n\t\t\t\t'opacity-30 cursor-not-allowed':\r\n\t\t\t\t\t(dynamicData['data'] && !dynamicData.valid) ||\r\n\t\t\t\t\tfileForm.invalid ||\r\n\t\t\t\t\tfileForm.value.title === '..'\r\n\t\t\t}\"\r\n\t\t\tclass=\"submission-button\"\r\n\t\t>\r\n\t\t\t{{ 'BUTTONS.UPDATE' | translate }}\r\n\t\t</button>\r\n\t</ng-template>\r\n</ndf-nuxeo-dialog>\r\n", styles: [".folder-wrapper{height:calc(100% - 50px);overflow-y:auto;overflow-x:hidden;padding:0 10px;width:100%}\n"], components: [{ type: NdfNuxeoDialog, selector: "ndf-nuxeo-dialog", inputs: ["dialogTitle", "subTitle", "loaderMode"] }, { type: DynamicFieldsRendererComponent, selector: "app-dynamic-fields-renderer", inputs: ["form", "agencyNameFilter", "countryNameFilter", "mode", "fields"] }, { type: DynamicFormComponent, selector: "app-dynamic-form", inputs: ["form", "data", "readOnly"], outputs: ["change"] }], directives: [{ type: SetRtlDirective, selector: "[SetRtl]" }, { type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2$6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2$6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2$6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i2$6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$6.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "translate": i1.TranslatePipe } });
|
|
23349
23345
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UpdateModalComponent, decorators: [{
|
|
23350
23346
|
type: Component,
|
|
23351
23347
|
args: [{
|
|
@@ -23359,7 +23355,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
23359
23355
|
}] }, { type: undefined, decorators: [{
|
|
23360
23356
|
type: Inject,
|
|
23361
23357
|
args: ['environment']
|
|
23362
|
-
}] }, { type: i1$3.MatDialogRef }, { type: FileManagerService }, { type: CustomToastrService }, { type: i2$6.FormBuilder }, { type: AppConfigService }, { type: DynamicFormService }, { type: AdapterService }, { type: TranslationService }, { type: DateHelperService }, { type: DocumentsService }]; }, propDecorators: { KeyUpEvent: [{
|
|
23358
|
+
}] }, { type: i1$3.MatDialogRef }, { type: FileManagerService }, { type: CustomToastrService }, { type: i2$6.FormBuilder }, { type: AppConfigService }, { type: DynamicFormService }, { type: AdapterService }, { type: TranslationService }, { type: DateHelperService }, { type: DocumentsService }, { type: i0.Injector }]; }, propDecorators: { KeyUpEvent: [{
|
|
23363
23359
|
type: HostListener,
|
|
23364
23360
|
args: ['document:keyup.enter', ['$event']]
|
|
23365
23361
|
}] } });
|