nuxeo-development-framework 4.4.5 → 4.4.7
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 +88 -187
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/file-manger/components/add-to-collection/add-to-collection.component.js +41 -42
- package/esm2015/lib/components/file-manger/file-manager.abstract.js +50 -135
- package/esm2015/lib/components/latest-activity/components/single-activity/single-activity.component.js +3 -2
- package/esm2015/lib/core/core.module.js +4 -18
- package/fesm2015/nuxeo-development-framework.js +88 -187
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/file-manger/components/add-to-collection/add-to-collection.component.d.ts +11 -9
- package/lib/components/latest-activity/components/single-activity/single-activity.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -19133,9 +19133,9 @@ class AddToCollectionComponent extends BaseComponent {
|
|
|
19133
19133
|
this.fileManagerService = fileManagerService;
|
|
19134
19134
|
this.customToastrService = customToastrService;
|
|
19135
19135
|
this.nuxeoDialogService = nuxeoDialogService;
|
|
19136
|
-
this.createOperation =
|
|
19137
|
-
this.addOperation =
|
|
19138
|
-
this.getCollectionPP =
|
|
19136
|
+
this.createOperation = 'Collection.Create';
|
|
19137
|
+
this.addOperation = 'Document.AddToCollection';
|
|
19138
|
+
this.getCollectionPP = 'PP_DMS_User_Collections';
|
|
19139
19139
|
this.visibleChange = new EventEmitter();
|
|
19140
19140
|
this.rtlEnabled = false;
|
|
19141
19141
|
this.isSelected = true;
|
|
@@ -19145,17 +19145,15 @@ class AddToCollectionComponent extends BaseComponent {
|
|
|
19145
19145
|
this.onFormCollectionSubmit = (e) => {
|
|
19146
19146
|
e.preventDefault();
|
|
19147
19147
|
this.loading = true;
|
|
19148
|
-
return this.fileManagerService
|
|
19149
|
-
.addToCollection(this.selectedItems, this.collectionid, this.addOperation)
|
|
19150
|
-
.pipe(tap((res) => {
|
|
19148
|
+
return this.fileManagerService.addToCollection(this.selectedItems, this.collectionid, this.addOperation).pipe(tap((res) => {
|
|
19151
19149
|
this.loading = false;
|
|
19152
19150
|
this.form.instance.resetValues();
|
|
19153
19151
|
this.selectedTags = null;
|
|
19154
19152
|
this.visible = false;
|
|
19155
|
-
this.customToastrService.show(
|
|
19153
|
+
this.customToastrService.show('success', 'TOASTER.SUCCESS', 'TOASTER.DOCUMENT_ADDED_TO_COLLECTION');
|
|
19156
19154
|
}, (err) => {
|
|
19157
19155
|
this.loading = false;
|
|
19158
|
-
this.customToastrService.show(
|
|
19156
|
+
this.customToastrService.show('error', 'TOASTER.ERROR', 'TOASTER.DOCUMENT_ADDED_TO_COLLECTION_ERROR');
|
|
19159
19157
|
}));
|
|
19160
19158
|
};
|
|
19161
19159
|
}
|
|
@@ -19174,15 +19172,16 @@ class AddToCollectionComponent extends BaseComponent {
|
|
|
19174
19172
|
}
|
|
19175
19173
|
ngOnInit() { }
|
|
19176
19174
|
openDialog() {
|
|
19175
|
+
this.loadItems();
|
|
19177
19176
|
const options = {
|
|
19178
19177
|
component: NdfNuxeoDialog,
|
|
19179
19178
|
//TODO [Asem] how to put the wrapper ID
|
|
19180
|
-
panelClass:
|
|
19179
|
+
panelClass: 'popUpParent',
|
|
19181
19180
|
config: {
|
|
19182
|
-
title: this.translateService.instant(
|
|
19181
|
+
title: this.translateService.instant('FILE_MANAGER.ADD_TO_COLLECTION'),
|
|
19183
19182
|
contentTemplate: this.contentTemplate,
|
|
19184
|
-
actionsTemplate: this.actionsTemplate
|
|
19185
|
-
}
|
|
19183
|
+
actionsTemplate: this.actionsTemplate
|
|
19184
|
+
}
|
|
19186
19185
|
};
|
|
19187
19186
|
this.nuxeoDialogService
|
|
19188
19187
|
.open(options)
|
|
@@ -19193,9 +19192,7 @@ class AddToCollectionComponent extends BaseComponent {
|
|
|
19193
19192
|
}
|
|
19194
19193
|
emitSelection(event) {
|
|
19195
19194
|
if (this.isSelected) {
|
|
19196
|
-
this.fileManagerService
|
|
19197
|
-
.createNewCollection(event.displayLabel, this.createOperation)
|
|
19198
|
-
.subscribe((res) => {
|
|
19195
|
+
this.fileManagerService.createNewCollection(event.displayLabel, this.createOperation).subscribe((res) => {
|
|
19199
19196
|
this.collectionid = res.uid;
|
|
19200
19197
|
});
|
|
19201
19198
|
}
|
|
@@ -19203,26 +19200,24 @@ class AddToCollectionComponent extends BaseComponent {
|
|
|
19203
19200
|
this.collectionid = event.id;
|
|
19204
19201
|
}
|
|
19205
19202
|
loadItems() {
|
|
19206
|
-
let searchterm =
|
|
19203
|
+
let searchterm = '';
|
|
19207
19204
|
this.isSelected = false;
|
|
19208
19205
|
let mycategories = [];
|
|
19209
|
-
this.items$ = concat(this.fileManagerService
|
|
19210
|
-
.getCollectionFromPP(searchterm, this.getCollectionPP)
|
|
19211
|
-
.pipe(switchMap((res) => {
|
|
19206
|
+
this.items$ = concat(this.fileManagerService.getCollectionFromPP(searchterm, this.getCollectionPP).pipe(switchMap((res) => {
|
|
19212
19207
|
res.entries.map((entry) => {
|
|
19213
|
-
|
|
19214
|
-
|
|
19215
|
-
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
|
|
19208
|
+
if (!this.enableMemberInCollections || !this.memberInCollections.includes(entry.id)) {
|
|
19209
|
+
mycategories.push({
|
|
19210
|
+
displayLabel: entry.title,
|
|
19211
|
+
id: entry.uid,
|
|
19212
|
+
path: entry.path,
|
|
19213
|
+
icon: entry.properties['common:icon']
|
|
19214
|
+
});
|
|
19215
|
+
}
|
|
19219
19216
|
});
|
|
19220
19217
|
return of(mycategories);
|
|
19221
19218
|
})), // default items
|
|
19222
19219
|
this.tagsInput$.pipe(debounceTime(200), distinctUntilChanged(), tap(() => (this.tagsLoading = true)), switchMap((searchterm) => {
|
|
19223
|
-
return this.fileManagerService
|
|
19224
|
-
.getCollectionFromPP(searchterm, this.getCollectionPP)
|
|
19225
|
-
.pipe(catchError(() => of([])), // empty list on error
|
|
19220
|
+
return this.fileManagerService.getCollectionFromPP(searchterm, this.getCollectionPP).pipe(catchError(() => of([])), // empty list on error
|
|
19226
19221
|
switchMap((searchCat) => {
|
|
19227
19222
|
let myInerCateg = [];
|
|
19228
19223
|
this.tagsLoading = false;
|
|
@@ -19232,7 +19227,7 @@ class AddToCollectionComponent extends BaseComponent {
|
|
|
19232
19227
|
displayLabel: entry.title,
|
|
19233
19228
|
id: entry.uid,
|
|
19234
19229
|
path: entry.path,
|
|
19235
|
-
icon: entry.properties[
|
|
19230
|
+
icon: entry.properties['common:icon']
|
|
19236
19231
|
});
|
|
19237
19232
|
});
|
|
19238
19233
|
return of(myInerCateg);
|
|
@@ -19241,29 +19236,33 @@ class AddToCollectionComponent extends BaseComponent {
|
|
|
19241
19236
|
}
|
|
19242
19237
|
}
|
|
19243
19238
|
AddToCollectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AddToCollectionComponent, deps: [{ token: FileManagerService }, { token: CustomToastrService }, { token: NuxeoDialogService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
19244
|
-
AddToCollectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AddToCollectionComponent, selector: "app-add-to-collection", inputs: { createOperation: "createOperation", addOperation: "addOperation", getCollectionPP: "getCollectionPP", visible: "visible", rtlEnabled: "rtlEnabled", selectedItems: "selectedItems" }, outputs: { visibleChange: "visibleChange" }, viewQueries: [{ propertyName: "form", first: true, predicate: DxFormComponent, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ["contentTemplate"], descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: ["actionsTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #contentTemplate>\r\n\t<form>\r\n\t\t<dx-form
|
|
19239
|
+
AddToCollectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AddToCollectionComponent, selector: "app-add-to-collection", inputs: { createOperation: "createOperation", addOperation: "addOperation", getCollectionPP: "getCollectionPP", memberInCollections: "memberInCollections", enableMemberInCollections: "enableMemberInCollections", visible: "visible", rtlEnabled: "rtlEnabled", selectedItems: "selectedItems" }, outputs: { visibleChange: "visibleChange" }, viewQueries: [{ propertyName: "form", first: true, predicate: DxFormComponent, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ["contentTemplate"], descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: ["actionsTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #contentTemplate>\r\n\t<form>\r\n\t\t<dx-form class=\"collection-form-wrapper\" #createForm [formData]=\"formData\" [disabled]=\"loading\">\r\n\t\t\t<dxi-item editorType=\"dxTextBox\">\r\n\t\t\t\t<ng-select\r\n\t\t\t\t\t[items]=\"items$ | async\"\r\n\t\t\t\t\tbindLabel=\"displayLabel\"\r\n\t\t\t\t\t[addTag]=\"true\"\r\n\t\t\t\t\taddTagText=\"Add collection\"\r\n\t\t\t\t\t[multiple]=\"false\"\r\n\t\t\t\t\t[hideSelected]=\"true\"\r\n\t\t\t\t\t[minTermLength]=\"0\"\r\n\t\t\t\t\t[loading]=\"tagsLoading\"\r\n\t\t\t\t\ttypeToSearchText=\"search\"\r\n\t\t\t\t\t[typeahead]=\"tagsInput$\"\r\n\t\t\t\t\t[(ngModel)]=\"selectedTags\"\r\n\t\t\t\t\trequired\r\n\t\t\t\t\tplaceholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\"\r\n\t\t\t\t\tname=\"selectedItem\"\r\n\t\t\t\t\t(change)=\"emitSelection($event)\"\r\n\t\t\t\t>\r\n\t\t\t\t</ng-select>\r\n\t\t\t</dxi-item>\r\n\t\t</dx-form>\r\n\t</form>\r\n</ng-template>\r\n\r\n<ng-template #actionsTemplate let-dialog=\"dialog\">\r\n\t<span class=\"submission-button px-5\" (click)=\"dialog.executeAction(onFormCollectionSubmit, [$event])\">\r\n\t\t{{ 'FILE_MANAGER.ADD' | translate }}\r\n\t</span>\r\n</ng-template>\r\n", styles: [""], components: [{ type: i4$4.DxFormComponent, selector: "dx-form", inputs: ["accessKey", "activeStateEnabled", "alignItemLabels", "alignItemLabelsInAllGroups", "colCount", "colCountByScreen", "customizeItem", "disabled", "elementAttr", "focusStateEnabled", "formData", "height", "hint", "hoverStateEnabled", "items", "labelLocation", "labelMode", "minColWidth", "optionalMark", "readOnly", "requiredMark", "requiredMessage", "rtlEnabled", "screenByWidth", "scrollingEnabled", "showColonAfterLabel", "showOptionalMark", "showRequiredMark", "showValidationSummary", "tabIndex", "validationGroup", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onEditorEnterKey", "onFieldDataChanged", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "alignItemLabelsChange", "alignItemLabelsInAllGroupsChange", "colCountChange", "colCountByScreenChange", "customizeItemChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "formDataChange", "heightChange", "hintChange", "hoverStateEnabledChange", "itemsChange", "labelLocationChange", "labelModeChange", "minColWidthChange", "optionalMarkChange", "readOnlyChange", "requiredMarkChange", "requiredMessageChange", "rtlEnabledChange", "screenByWidthChange", "scrollingEnabledChange", "showColonAfterLabelChange", "showOptionalMarkChange", "showRequiredMarkChange", "showValidationSummaryChange", "tabIndexChange", "validationGroupChange", "visibleChange", "widthChange"] }, { type: i5$2.DxiItemComponent, selector: "dxi-item", inputs: ["disabled", "html", "icon", "template", "text", "title", "titleTemplate", "visible", "onClick", "stylingMode", "type", "baseSize", "box", "ratio", "shrink", "elementAttr", "hint", "beginGroup", "closeMenuOnClick", "items", "selectable", "selected", "colSpan", "cssClass", "dataField", "editorOptions", "editorType", "helpText", "isRequired", "itemType", "label", "name", "validationRules", "visibleIndex", "alignItemLabels", "caption", "colCount", "colCountByScreen", "tabPanelOptions", "tabs", "badge", "tabTemplate", "buttonOptions", "horizontalAlignment", "verticalAlignment", "locateInMenu", "location", "menuItemTemplate", "options", "showText", "widget", "height", "width", "imageAlt", "imageSrc", "acceptedValues", "formatName", "formatValues", "key", "showChevron", "linkAttr", "url", "heightRatio", "widthRatio", "expanded", "hasItems", "id", "parentId"] }, { 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"] }], 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: i2$6.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i4$1.AsyncPipe, "translate": i1.TranslatePipe } });
|
|
19245
19240
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AddToCollectionComponent, decorators: [{
|
|
19246
19241
|
type: Component,
|
|
19247
19242
|
args: [{
|
|
19248
|
-
selector:
|
|
19249
|
-
templateUrl:
|
|
19250
|
-
styleUrls: [
|
|
19243
|
+
selector: 'app-add-to-collection',
|
|
19244
|
+
templateUrl: './add-to-collection.component.html',
|
|
19245
|
+
styleUrls: ['./add-to-collection.component.scss']
|
|
19251
19246
|
}]
|
|
19252
19247
|
}], ctorParameters: function () { return [{ type: FileManagerService }, { type: CustomToastrService }, { type: NuxeoDialogService }, { type: i0.Injector }]; }, propDecorators: { form: [{
|
|
19253
19248
|
type: ViewChild,
|
|
19254
19249
|
args: [DxFormComponent, { static: false }]
|
|
19255
19250
|
}], contentTemplate: [{
|
|
19256
19251
|
type: ViewChild,
|
|
19257
|
-
args: [
|
|
19252
|
+
args: ['contentTemplate']
|
|
19258
19253
|
}], actionsTemplate: [{
|
|
19259
19254
|
type: ViewChild,
|
|
19260
|
-
args: [
|
|
19255
|
+
args: ['actionsTemplate']
|
|
19261
19256
|
}], createOperation: [{
|
|
19262
19257
|
type: Input
|
|
19263
19258
|
}], addOperation: [{
|
|
19264
19259
|
type: Input
|
|
19265
19260
|
}], getCollectionPP: [{
|
|
19266
19261
|
type: Input
|
|
19262
|
+
}], memberInCollections: [{
|
|
19263
|
+
type: Input
|
|
19264
|
+
}], enableMemberInCollections: [{
|
|
19265
|
+
type: Input
|
|
19267
19266
|
}], visible: [{
|
|
19268
19267
|
type: Input
|
|
19269
19268
|
}], visibleChange: [{
|
|
@@ -23841,13 +23840,14 @@ class SingleActivityComponent {
|
|
|
23841
23840
|
this.stateIcons = {};
|
|
23842
23841
|
if (this.configService.myConfiguration.activityLogIcons) {
|
|
23843
23842
|
this.stateIcons = Object.assign(Object.assign({}, this.stateIcons), this.configService.myConfiguration.activityLogIcons);
|
|
23843
|
+
this.defultDateFormate = this.configService.myConfiguration.dateFormate;
|
|
23844
23844
|
}
|
|
23845
23845
|
}
|
|
23846
23846
|
ngOnInit() {
|
|
23847
23847
|
}
|
|
23848
23848
|
}
|
|
23849
23849
|
SingleActivityComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleActivityComponent, deps: [{ token: AppConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23850
|
-
SingleActivityComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SingleActivityComponent, selector: "cts-single-activity", inputs: { item: "item", documentTitle: "documentTitle", newLogActor: "newLogActor", isArabic: "isArabic" }, ngImport: i0, template: "<ng-container *ngIf=\"item\">\r\n <div class=\"avtivity-wrapper\">\r\n <div class=\"avtivity-point border-primary {{ item.documentLifecycle }}\">\r\n <span class=\"{{stateIcons[item.eventName]}} new-icon-section\"></span>\r\n </div>\r\n <div class=\"avtivity-panal border-primary {{ item.documentLifecycle }}\">\r\n <div class=\"avtivity-corr-status border-primary {{ item.documentLifecycle }}\">\r\n {{ \"STATS.\" + item.documentLifecycle | translate }}\r\n </div>\r\n <div class=\"avtivity-heading\">\r\n <div class=\"avtivity-title\">\r\n <div class=\"status\">{{ \"ACTIVITY_LOG.status.\" + item.eventName | translate }}</div>\r\n <div class=\"\">\r\n {{ item.creator.id === 'system' ? ('SYSTEM_ADMIN' | translate) : item.creator.properties.firstName + \" \" +item.creator.properties.lastName }}\r\n </div>\r\n </div>\r\n <div class=\"avtivity-date\">\r\n <div>{{ item.eventDate | localizedDate: \"M/d/y\" }}</div>\r\n <div>{{ item.eventDate | localizedDate: \"h:mm a\" }}</div>\r\n </div>\r\n </div>\r\n <div class=\"avtivity-body\">\r\n <cts-activity-line\r\n [newLogActor]=\"newLogActor\"\r\n [item]=\"item\"\r\n [isArabic]=\"isArabic\"\r\n [documentTitle]=\"item.documentName\"\r\n ></cts-activity-line>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<!-- <div class=\"d-flex\">\r\n <div class=\"myLink link creator\" id=\"parent3\">{{ creator }}</div>\r\n <div class=\"mx-1\">send the correspondence</div>\r\n <div class=\"myLink link\" id=\"child3\">{{ param2 }}</div>\r\n <div class=\"myLink to\" id=\"child3\">to</div>\r\n <div class=\"myLink link\" id=\"child3\">{{corr:to}}</div>\r\n <div class=\"myLink link\" id=\"child3\">and assigned it to</div>\r\n <div class=\"myLink link\" id=\"child3\">{{corr:owner}}</div>\r\n</div> -->\r\n", styles: [".bi{margin:0!important}.memo-sorting-wrapper{width:265px;margin:0 10px;height:100%;display:flex}.memo-sorting-wrapper .sorting-direction{width:65px;height:40px;background-color:#465573;color:#fff;font-size:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.memo-sorting-wrapper .memo-sorting-trigger{width:calc(100% - 65px);height:100%;background-color:transparent;border:1px solid lightgrey;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:14px}.memo-sorting-wrapper .memo-sorting-trigger i{font-size:16px;color:gray}.memo-sorting-menu{width:200px}.my-button{border:1px solid #465573;color:#465573;border-radius:5px;background-color:transparent;font-weight:bold;min-width:80px;height:40px}.my-button.reset{border:none}.my-button:hover{color:#fff;background-color:#465573}.my-button:hover.reset{color:#465573;border:1px solid #465573;background-color:#fff}.app-property-value .app-input-wrapper label{color:#646f85;font-size:13px;margin-bottom:5px}.app-property-value .app-input-wrapper label .text-danger{font-size:16px;line-height:14px;margin:0 5px!important}.app-property-value .app-input-wrapper .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}.app-property-value .app-input-wrapper .form-control:disabled{background-color:#e9ecef!important}.app-property-value .app-input-wrapper .form-control:focus{border:1px solid #1a96c6;box-shadow:0 0 4px #79c3c26b!important}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers{list-style:none;padding:0;margin:0;font-size:14px}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers .error{margin-top:5px}.autocomplete-container .input-container input:focus,hijri-gregorian-datepicker .form-group .input-group .form-control:focus,.ng-select.ng-select-focused .ng-select-container{border:1px solid #1a96c6!important;box-shadow:0 0 4px #79c3c26b!important}input::placeholder{font-size:12px}.form-control:focus{box-shadow:none!important}.mat-stepper-horizontal{margin-top:-25px}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header.cdk-program-focused{background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-icon-selected{background-color:transparent;color:#fff;background-image:linear-gradient(to right,#0dbab5,#1a96c6)}@media only screen and (max-width: 576px){.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-label .mat-step-text-label{white-space:pre-wrap;overflow:visible}}.mat-stepper-horizontal .mat-horizontal-content-container{overflow:visible}@media only screen and (max-width: 768px){.mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 24px}}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:after,.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:before{display:none}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);left:0}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);right:0}.form-wrapper{padding:30px 15px;border:1px solid #dde0e2}.form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.form-wrapper .buttons-wrapper button:hover{opacity:.7}.form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.form-wrapper .upload-wrapper button span{margin:0 10px}.renameFileComponent .form-wrapper{padding:30px 15px;border:none!important}.renameFileComponent .form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.renameFileComponent .form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.renameFileComponent .form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.renameFileComponent .form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.renameFileComponent .form-wrapper .buttons-wrapper button:hover{opacity:.7}.renameFileComponent .form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.renameFileComponent .form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.renameFileComponent .form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.renameFileComponent .form-wrapper .upload-wrapper button span{margin:0 10px}.my-dynamic-viewer{display:flex;align-items:center;font-size:12px;min-height:30px}.my-dynamic-viewer .my-label{font-size:12px;font-weight:500;width:150px;word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-label{width:50%}}.my-dynamic-viewer .my-value{width:calc(100% - 150px);word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-value{width:50%}}.my-dynamic-viewer .direction-img{font-size:14px}.my-dynamic-viewer .direction-img .incoming{display:none}.my-dynamic-viewer .direction-img .outgoing{display:none}.my-dynamic-viewer .direction-img .internal{display:none}.my-dynamic-viewer.draft .my-value{color:#596973}.my-dynamic-viewer.inProgress .my-value{color:#3c3cf0}.my-dynamic-viewer.registered .my-value{color:#4f008c}.my-dynamic-viewer.archived .my-value{color:#fbb62c}.my-dynamic-viewer.closed .my-value{color:#00dca5}.my-dynamic-viewer.approved .my-value{color:#06a57e}.my-dynamic-viewer.assigned .my-value{color:#fd6670}.my-dynamic-viewer.sent .my-value{color:#3c3cf0}.my-dynamic-viewer.published .my-value{color:#00dca5}.my-dynamic-viewer.Outgoing .my-value{display:flex}.my-dynamic-viewer.Outgoing .my-value .direction-img .outgoing{color:#fbb62c;margin:1px 5px;display:flex}.my-dynamic-viewer.Outgoing .my-value .text{margin:0 5px}.my-dynamic-viewer.Internal .my-value{display:flex}.my-dynamic-viewer.Internal .my-value .direction-img .internal{color:#3c3cf0;margin:1px 5px;display:flex}.my-dynamic-viewer.Internal .my-value .text{margin:0 5px}.my-dynamic-viewer.Incoming .my-value{display:flex}.my-dynamic-viewer.Incoming .my-value .direction-img .incoming{color:#00dca5;display:flex}.my-dynamic-viewer.Incoming .my-value .text{margin:-3px 5px 0}.my-dynamic-viewer.vertical{display:block}.my-dynamic-viewer.vertical .my-label{width:auto}.my-dynamic-viewer.vertical .my-value{width:auto}.my-dynamic-viewer.with-out-label{width:100%!important}.avtivity-wrapper{margin-bottom:36px;background:#fff;display:flex;position:relative}.avtivity-wrapper .avtivity-point{display:block;width:14px;height:14px;border-radius:50%;border:4px solid #0dbab5;background-color:#fff;position:absolute;top:0px;left:-28px}.avtivity-wrapper .avtivity-point .new-icon-section{display:none}.avtivity-wrapper .avtivity-point.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-point.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-point.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-point.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-point.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal{width:100%;border-radius:8px;border-inline-start:8px solid #0dbab5;padding:20px;position:relative;box-shadow:0 0 25px #0000001a}.avtivity-wrapper .avtivity-panal.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-panal.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-panal.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-panal.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal.meeting_created{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status{position:absolute;background:#ffffff;font-size:11px;width:100px;height:24px;border:1px solid #0dbab5;border-radius:5px;left:11px;top:-13px;text-align:center;display:flex;align-items:center;justify-content:center}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.meeting_created{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-heading{display:flex;justify-content:space-between;margin-bottom:10px;border-bottom:2px solid #f5f6f8}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-date{font-size:12px;color:#6a768e}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-title{margin-bottom:8px;font-size:14px;color:#6a768e}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-title .status{font-weight:400;font-size:16px;color:#465573!important}.rtl .avtivity-corr-status{left:unset;right:11px}.rtl .avtivity-point{left:unset;right:-28px}\n"], components: [{ type: ActivityLineComponent, selector: "cts-activity-line", inputs: ["item", "documentTitle", "newLogActor", "isArabic"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1.TranslatePipe, "localizedDate": LocalizedDatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
23850
|
+
SingleActivityComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SingleActivityComponent, selector: "cts-single-activity", inputs: { item: "item", documentTitle: "documentTitle", newLogActor: "newLogActor", isArabic: "isArabic" }, ngImport: i0, template: "<ng-container *ngIf=\"item\">\r\n <div class=\"avtivity-wrapper\">\r\n <div class=\"avtivity-point border-primary {{ item.documentLifecycle }}\">\r\n <span class=\"{{stateIcons[item.eventName]}} new-icon-section\"></span>\r\n </div>\r\n <div class=\"avtivity-panal border-primary {{ item.documentLifecycle }}\">\r\n <div class=\"avtivity-corr-status border-primary {{ item.documentLifecycle }}\">\r\n {{ \"STATS.\" + item.documentLifecycle | translate }}\r\n </div>\r\n <div class=\"avtivity-heading\">\r\n <div class=\"avtivity-title\">\r\n <div class=\"status\">{{ \"ACTIVITY_LOG.status.\" + item.eventName | translate }}</div>\r\n <div class=\"\">\r\n {{ item.creator.id === 'system' ? ('SYSTEM_ADMIN' | translate) : item.creator.properties.firstName + \" \" +item.creator.properties.lastName }}\r\n </div>\r\n </div>\r\n <div class=\"avtivity-date\">\r\n <div>{{ item.eventDate | localizedDate: \"M/d/y\" }}</div>\r\n <div>{{ item.eventDate | localizedDate: \"h:mm a\" }}</div>\r\n </div>\r\n <div class=\"defult-avtivity-date\">\r\n <div>{{ item.eventDate | localizedDate: defultDateFormate :(isArabic? 'ar-AR' : 'en-US') }}</div>\r\n </div>\r\n </div>\r\n <div class=\"avtivity-body\">\r\n <cts-activity-line\r\n [newLogActor]=\"newLogActor\"\r\n [item]=\"item\"\r\n [isArabic]=\"isArabic\"\r\n [documentTitle]=\"item.documentName\"\r\n ></cts-activity-line>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<!-- <div class=\"d-flex\">\r\n <div class=\"myLink link creator\" id=\"parent3\">{{ creator }}</div>\r\n <div class=\"mx-1\">send the correspondence</div>\r\n <div class=\"myLink link\" id=\"child3\">{{ param2 }}</div>\r\n <div class=\"myLink to\" id=\"child3\">to</div>\r\n <div class=\"myLink link\" id=\"child3\">{{corr:to}}</div>\r\n <div class=\"myLink link\" id=\"child3\">and assigned it to</div>\r\n <div class=\"myLink link\" id=\"child3\">{{corr:owner}}</div>\r\n</div> -->\r\n", styles: [".bi{margin:0!important}.memo-sorting-wrapper{width:265px;margin:0 10px;height:100%;display:flex}.memo-sorting-wrapper .sorting-direction{width:65px;height:40px;background-color:#465573;color:#fff;font-size:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.memo-sorting-wrapper .memo-sorting-trigger{width:calc(100% - 65px);height:100%;background-color:transparent;border:1px solid lightgrey;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:14px}.memo-sorting-wrapper .memo-sorting-trigger i{font-size:16px;color:gray}.memo-sorting-menu{width:200px}.my-button{border:1px solid #465573;color:#465573;border-radius:5px;background-color:transparent;font-weight:bold;min-width:80px;height:40px}.my-button.reset{border:none}.my-button:hover{color:#fff;background-color:#465573}.my-button:hover.reset{color:#465573;border:1px solid #465573;background-color:#fff}.app-property-value .app-input-wrapper label{color:#646f85;font-size:13px;margin-bottom:5px}.app-property-value .app-input-wrapper label .text-danger{font-size:16px;line-height:14px;margin:0 5px!important}.app-property-value .app-input-wrapper .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}.app-property-value .app-input-wrapper .form-control:disabled{background-color:#e9ecef!important}.app-property-value .app-input-wrapper .form-control:focus{border:1px solid #1a96c6;box-shadow:0 0 4px #79c3c26b!important}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers{list-style:none;padding:0;margin:0;font-size:14px}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers .error{margin-top:5px}.autocomplete-container .input-container input:focus,hijri-gregorian-datepicker .form-group .input-group .form-control:focus,.ng-select.ng-select-focused .ng-select-container{border:1px solid #1a96c6!important;box-shadow:0 0 4px #79c3c26b!important}input::placeholder{font-size:12px}.form-control:focus{box-shadow:none!important}.mat-stepper-horizontal{margin-top:-25px}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header.cdk-program-focused{background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-icon-selected{background-color:transparent;color:#fff;background-image:linear-gradient(to right,#0dbab5,#1a96c6)}@media only screen and (max-width: 576px){.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-label .mat-step-text-label{white-space:pre-wrap;overflow:visible}}.mat-stepper-horizontal .mat-horizontal-content-container{overflow:visible}@media only screen and (max-width: 768px){.mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 24px}}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:after,.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:before{display:none}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);left:0}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);right:0}.form-wrapper{padding:30px 15px;border:1px solid #dde0e2}.form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.form-wrapper .buttons-wrapper button:hover{opacity:.7}.form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.form-wrapper .upload-wrapper button span{margin:0 10px}.renameFileComponent .form-wrapper{padding:30px 15px;border:none!important}.renameFileComponent .form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.renameFileComponent .form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.renameFileComponent .form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.renameFileComponent .form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.renameFileComponent .form-wrapper .buttons-wrapper button:hover{opacity:.7}.renameFileComponent .form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.renameFileComponent .form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.renameFileComponent .form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.renameFileComponent .form-wrapper .upload-wrapper button span{margin:0 10px}.my-dynamic-viewer{display:flex;align-items:center;font-size:12px;min-height:30px}.my-dynamic-viewer .my-label{font-size:12px;font-weight:500;width:150px;word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-label{width:50%}}.my-dynamic-viewer .my-value{width:calc(100% - 150px);word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-value{width:50%}}.my-dynamic-viewer .direction-img{font-size:14px}.my-dynamic-viewer .direction-img .incoming{display:none}.my-dynamic-viewer .direction-img .outgoing{display:none}.my-dynamic-viewer .direction-img .internal{display:none}.my-dynamic-viewer.draft .my-value{color:#596973}.my-dynamic-viewer.inProgress .my-value{color:#3c3cf0}.my-dynamic-viewer.registered .my-value{color:#4f008c}.my-dynamic-viewer.archived .my-value{color:#fbb62c}.my-dynamic-viewer.closed .my-value{color:#00dca5}.my-dynamic-viewer.approved .my-value{color:#06a57e}.my-dynamic-viewer.assigned .my-value{color:#fd6670}.my-dynamic-viewer.sent .my-value{color:#3c3cf0}.my-dynamic-viewer.published .my-value{color:#00dca5}.my-dynamic-viewer.Outgoing .my-value{display:flex}.my-dynamic-viewer.Outgoing .my-value .direction-img .outgoing{color:#fbb62c;margin:1px 5px;display:flex}.my-dynamic-viewer.Outgoing .my-value .text{margin:0 5px}.my-dynamic-viewer.Internal .my-value{display:flex}.my-dynamic-viewer.Internal .my-value .direction-img .internal{color:#3c3cf0;margin:1px 5px;display:flex}.my-dynamic-viewer.Internal .my-value .text{margin:0 5px}.my-dynamic-viewer.Incoming .my-value{display:flex}.my-dynamic-viewer.Incoming .my-value .direction-img .incoming{color:#00dca5;display:flex}.my-dynamic-viewer.Incoming .my-value .text{margin:-3px 5px 0}.my-dynamic-viewer.vertical{display:block}.my-dynamic-viewer.vertical .my-label{width:auto}.my-dynamic-viewer.vertical .my-value{width:auto}.my-dynamic-viewer.with-out-label{width:100%!important}.avtivity-wrapper{margin-bottom:36px;background:#fff;display:flex;position:relative}.avtivity-wrapper .avtivity-point{display:block;width:14px;height:14px;border-radius:50%;border:4px solid #0dbab5;background-color:#fff;position:absolute;top:0px;left:-28px}.avtivity-wrapper .avtivity-point .new-icon-section{display:none}.avtivity-wrapper .avtivity-point.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-point.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-point.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-point.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-point.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal{width:100%;border-radius:8px;border-inline-start:8px solid #0dbab5;padding:20px;position:relative;box-shadow:0 0 25px #0000001a}.avtivity-wrapper .avtivity-panal.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-panal.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-panal.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-panal.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal.meeting_created{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status{position:absolute;background:#ffffff;font-size:11px;width:100px;height:24px;border:1px solid #0dbab5;border-radius:5px;left:11px;top:-13px;text-align:center;display:flex;align-items:center;justify-content:center}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.meeting_created{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-heading{display:flex;justify-content:space-between;margin-bottom:10px;border-bottom:2px solid #f5f6f8}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-date{font-size:12px;color:#6a768e}.avtivity-wrapper .avtivity-panal .avtivity-heading .defult-avtivity-date{font-size:12px;color:#6a768e;display:none}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-title{margin-bottom:8px;font-size:14px;color:#6a768e}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-title .status{font-weight:400;font-size:16px;color:#465573!important}.rtl .avtivity-corr-status{left:unset;right:11px}.rtl .avtivity-point{left:unset;right:-28px}\n"], components: [{ type: ActivityLineComponent, selector: "cts-activity-line", inputs: ["item", "documentTitle", "newLogActor", "isArabic"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1.TranslatePipe, "localizedDate": LocalizedDatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
23851
23851
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleActivityComponent, decorators: [{
|
|
23852
23852
|
type: Component,
|
|
23853
23853
|
args: [{
|
|
@@ -25301,8 +25301,7 @@ class FileManagerAbstract {
|
|
|
25301
25301
|
}
|
|
25302
25302
|
};
|
|
25303
25303
|
this.refresh = () => {
|
|
25304
|
-
if (this.myPageConfiguration.fileMangerObjectName ===
|
|
25305
|
-
'externalshareFileMangerObj') {
|
|
25304
|
+
if (this.myPageConfiguration.fileMangerObjectName === 'externalshareFileMangerObj') {
|
|
25306
25305
|
this.fileManagerService.customEvent.emit('refresh');
|
|
25307
25306
|
}
|
|
25308
25307
|
else {
|
|
@@ -25376,8 +25375,7 @@ class FileManagerAbstract {
|
|
|
25376
25375
|
? (successMessage = 'unsubscribe_To_Item_success')
|
|
25377
25376
|
: (successMessage = 'subscribe_To_Item_success');
|
|
25378
25377
|
this.customToastrService.show('success', 'TOASTER.SUCCESS', `TOASTER.${successMessage}`);
|
|
25379
|
-
this.selectedItem.isUserSubscriberToFile =
|
|
25380
|
-
!this.selectedItem.isUserSubscriberToFile;
|
|
25378
|
+
this.selectedItem.isUserSubscriberToFile = !this.selectedItem.isUserSubscriberToFile;
|
|
25381
25379
|
this.multiSelectedkeys = [''];
|
|
25382
25380
|
}
|
|
25383
25381
|
}, (err) => {
|
|
@@ -25414,10 +25412,7 @@ class FileManagerAbstract {
|
|
|
25414
25412
|
});
|
|
25415
25413
|
});
|
|
25416
25414
|
newSelectedWithArrPrefix.map((item, index) => {
|
|
25417
|
-
this.newSelectedWithIdPrefix +=
|
|
25418
|
-
index == newSelectedWithArrPrefix.length - 1
|
|
25419
|
-
? item.id
|
|
25420
|
-
: item.id + ',';
|
|
25415
|
+
this.newSelectedWithIdPrefix += index == newSelectedWithArrPrefix.length - 1 ? item.id : item.id + ',';
|
|
25421
25416
|
item.type == 'Folder' ? (myType = 'Folder') : null;
|
|
25422
25417
|
});
|
|
25423
25418
|
}
|
|
@@ -25427,23 +25422,15 @@ class FileManagerAbstract {
|
|
|
25427
25422
|
height: '400px',
|
|
25428
25423
|
panelClass: 'watcher-dialog-container',
|
|
25429
25424
|
data: {
|
|
25430
|
-
id: this.multipleItems.length > 1
|
|
25431
|
-
|
|
25432
|
-
: this.selectedItem.id,
|
|
25433
|
-
PublishType: this.multipleItems.length > 1
|
|
25434
|
-
? myType
|
|
25435
|
-
: this.selectedItem.isDirectory
|
|
25436
|
-
? 'Folder'
|
|
25437
|
-
: 'File'
|
|
25425
|
+
id: this.multipleItems.length > 1 ? this.newSelectedWithIdPrefix : this.selectedItem.id,
|
|
25426
|
+
PublishType: this.multipleItems.length > 1 ? myType : this.selectedItem.isDirectory ? 'Folder' : 'File'
|
|
25438
25427
|
}
|
|
25439
25428
|
});
|
|
25440
25429
|
};
|
|
25441
25430
|
this.addToClipboard = () => {
|
|
25442
25431
|
let selectedItemsIds = this.selectedItems.split(',');
|
|
25443
25432
|
let directory = this.getCurrentDirectory();
|
|
25444
|
-
let id = directory.dataItem === undefined
|
|
25445
|
-
? this.mainFolder
|
|
25446
|
-
: this.getCurrentFolderId(directory);
|
|
25433
|
+
let id = directory.dataItem === undefined ? this.mainFolder : this.getCurrentFolderId(directory);
|
|
25447
25434
|
if (selectedItemsIds.length === 1 &&
|
|
25448
25435
|
this.clipboardItems.length > 0 &&
|
|
25449
25436
|
this.clipboardItems.indexOf(selectedItemsIds[0]) > -1) {
|
|
@@ -25496,8 +25483,7 @@ class FileManagerAbstract {
|
|
|
25496
25483
|
this.nuxeoService = this.injectorObj.get(NuxeoService);
|
|
25497
25484
|
this.nuxeoDialogService = this.injectorObj.get(NuxeoDialogService);
|
|
25498
25485
|
this.multiSelectedkeys = [''];
|
|
25499
|
-
this.myPageConfiguration =
|
|
25500
|
-
this.appConfService.myConfiguration.fileManger[this.myPageConfName];
|
|
25486
|
+
this.myPageConfiguration = this.appConfService.myConfiguration.fileManger[this.myPageConfName];
|
|
25501
25487
|
this.subscriptions.concat([
|
|
25502
25488
|
this.router.events.subscribe((event) => {
|
|
25503
25489
|
if (event.navigationTrigger === 'popstate') {
|
|
@@ -25538,9 +25524,7 @@ class FileManagerAbstract {
|
|
|
25538
25524
|
this.subscriptions.concat([
|
|
25539
25525
|
this.translationService.isArabic.subscribe((res) => {
|
|
25540
25526
|
this.isArabic = res;
|
|
25541
|
-
this.isArabic
|
|
25542
|
-
? (this.menuDirection = 'before')
|
|
25543
|
-
: (this.menuDirection = 'after');
|
|
25527
|
+
this.isArabic ? (this.menuDirection = 'before') : (this.menuDirection = 'after');
|
|
25544
25528
|
})
|
|
25545
25529
|
]);
|
|
25546
25530
|
if (this.userPreferenceService) {
|
|
@@ -25587,18 +25571,14 @@ class FileManagerAbstract {
|
|
|
25587
25571
|
]);
|
|
25588
25572
|
}
|
|
25589
25573
|
ngAfterViewChecked() {
|
|
25590
|
-
this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.options.onNodeChanged =
|
|
25591
|
-
|
|
25592
|
-
|
|
25593
|
-
|
|
25594
|
-
|
|
25595
|
-
|
|
25596
|
-
|
|
25597
|
-
|
|
25598
|
-
.path === ''
|
|
25599
|
-
? document
|
|
25600
|
-
.getElementsByClassName('dx-menu-item-content')[0]
|
|
25601
|
-
.classList.add('custom')
|
|
25574
|
+
this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.options.onNodeChanged = (node) => {
|
|
25575
|
+
var _a;
|
|
25576
|
+
if (!(node === null || node === void 0 ? void 0 : node.itemsLoaded)) {
|
|
25577
|
+
this.reinitializeFolderTree((_a = node === null || node === void 0 ? void 0 : node.fileItem.dataItem) === null || _a === void 0 ? void 0 : _a.id, node.fileItem, node);
|
|
25578
|
+
}
|
|
25579
|
+
};
|
|
25580
|
+
this.fileManager.instance._breadcrumbs._currentDirectory.fileItem.path === ''
|
|
25581
|
+
? document.getElementsByClassName('dx-menu-item-content')[0].classList.add('custom')
|
|
25602
25582
|
: '';
|
|
25603
25583
|
}
|
|
25604
25584
|
init(id, breadcrumbs = null, currentFolder = null) {
|
|
@@ -25610,9 +25590,7 @@ class FileManagerAbstract {
|
|
|
25610
25590
|
var _a, _b, _c;
|
|
25611
25591
|
let toSubstr;
|
|
25612
25592
|
if (this.mainFolder === 'sharedDocumentsRoot') {
|
|
25613
|
-
toSubstr = this.fileManagerService.sharedFiles.entries.filter((item) => this.path.includes(item.contextParameters.breadcrumb.entries
|
|
25614
|
-
.map((item) => item.title)
|
|
25615
|
-
.join('/')));
|
|
25593
|
+
toSubstr = this.fileManagerService.sharedFiles.entries.filter((item) => this.path.includes(item.contextParameters.breadcrumb.entries.map((item) => item.title).join('/')));
|
|
25616
25594
|
const pathSplit = (_a = toSubstr[0]) === null || _a === void 0 ? void 0 : _a.contextParameters.breadcrumb.entries.map((item) => item.title);
|
|
25617
25595
|
this.currentPath = pathSplit[pathSplit.length - 1];
|
|
25618
25596
|
}
|
|
@@ -25624,14 +25602,11 @@ class FileManagerAbstract {
|
|
|
25624
25602
|
else {
|
|
25625
25603
|
// if not static root then there is multiple objects in storag
|
|
25626
25604
|
// if user was admin then use the full path
|
|
25627
|
-
if (this.nuxeoService.nuxeoClient.user.isAdministrator ||
|
|
25628
|
-
this.myPageConfiguration.useFullPath) {
|
|
25605
|
+
if (this.nuxeoService.nuxeoClient.user.isAdministrator || this.myPageConfiguration.useFullPath) {
|
|
25629
25606
|
this.currentPath = this.path;
|
|
25630
25607
|
}
|
|
25631
25608
|
else {
|
|
25632
|
-
toSubstr = this.fileManagerObj.entries.filter((item) => this.path.includes(item.contextParameters.breadcrumb.entries
|
|
25633
|
-
.map((item) => item.title)
|
|
25634
|
-
.join('/')));
|
|
25609
|
+
toSubstr = this.fileManagerObj.entries.filter((item) => { var _a, _b, _c, _d; return this.path.includes((_d = (_c = (_b = (_a = item.contextParameters) === null || _a === void 0 ? void 0 : _a.breadcrumb) === null || _b === void 0 ? void 0 : _b.entries) === null || _c === void 0 ? void 0 : _c.map((item) => item.title)) === null || _d === void 0 ? void 0 : _d.join('/')); });
|
|
25635
25610
|
const pathSplit = (_b = toSubstr[0]) === null || _b === void 0 ? void 0 : _b.contextParameters.breadcrumb.entries.map((item) => item.title);
|
|
25636
25611
|
let x = pathSplit ? (_c = pathSplit[0]) === null || _c === void 0 ? void 0 : _c.length : 0;
|
|
25637
25612
|
this.currentPath = this.path.substr(x);
|
|
@@ -25640,20 +25615,14 @@ class FileManagerAbstract {
|
|
|
25640
25615
|
}
|
|
25641
25616
|
this.fileItems = d;
|
|
25642
25617
|
let directory = this.getCurrentDirectory();
|
|
25643
|
-
this.currentFolder =
|
|
25644
|
-
directory.dataItem === undefined
|
|
25645
|
-
? this.canCreate
|
|
25646
|
-
: directory.dataItem.canCreate;
|
|
25618
|
+
this.currentFolder = directory.dataItem === undefined ? this.canCreate : directory.dataItem.canCreate;
|
|
25647
25619
|
});
|
|
25648
25620
|
}
|
|
25649
25621
|
else {
|
|
25650
25622
|
this.getFolderChildren(id, payload).subscribe((data) => {
|
|
25651
25623
|
this.fileItems = data;
|
|
25652
25624
|
let directory = this.getCurrentDirectory();
|
|
25653
|
-
this.currentFolder =
|
|
25654
|
-
directory.dataItem === undefined
|
|
25655
|
-
? this.canCreate
|
|
25656
|
-
: directory.dataItem.canCreate;
|
|
25625
|
+
this.currentFolder = directory.dataItem === undefined ? this.canCreate : directory.dataItem.canCreate;
|
|
25657
25626
|
// this is required to redraw the tree to make it show up to solve issue with the tree not showing in the first time load
|
|
25658
25627
|
setTimeout(() => {
|
|
25659
25628
|
this.fileItems = [...data];
|
|
@@ -25718,13 +25687,9 @@ class FileManagerAbstract {
|
|
|
25718
25687
|
};
|
|
25719
25688
|
if (directory.dataItem === undefined) {
|
|
25720
25689
|
__classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_resetPagination).call(this, this.mainFolder);
|
|
25721
|
-
this.fileManagerService
|
|
25722
|
-
.refreshData(this.mainFolder, payload)
|
|
25723
|
-
.subscribe((result) => {
|
|
25690
|
+
this.fileManagerService.refreshData(this.mainFolder, payload).subscribe((result) => {
|
|
25724
25691
|
__classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_initPagination).call(this, this.mainFolder, result);
|
|
25725
|
-
const data = payload && FileManagerPaginationConfig.Enable
|
|
25726
|
-
? result.data
|
|
25727
|
-
: result;
|
|
25692
|
+
const data = payload && FileManagerPaginationConfig.Enable ? result.data : result;
|
|
25728
25693
|
this.showNoDataImage(data);
|
|
25729
25694
|
this.fileItems = data;
|
|
25730
25695
|
this.clicked = false;
|
|
@@ -25738,9 +25703,7 @@ class FileManagerAbstract {
|
|
|
25738
25703
|
.pipe(map((result) => {
|
|
25739
25704
|
__classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_initPagination).call(this, id, result);
|
|
25740
25705
|
this.startLoading({ directory });
|
|
25741
|
-
const data = payload && FileManagerPaginationConfig.Enable
|
|
25742
|
-
? result.data
|
|
25743
|
-
: result;
|
|
25706
|
+
const data = payload && FileManagerPaginationConfig.Enable ? result.data : result;
|
|
25744
25707
|
this.showNoDataImage(data);
|
|
25745
25708
|
this.clicked = false;
|
|
25746
25709
|
return data;
|
|
@@ -25758,12 +25721,10 @@ class FileManagerAbstract {
|
|
|
25758
25721
|
var _a, _b;
|
|
25759
25722
|
if (this.itemListView) {
|
|
25760
25723
|
if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
|
|
25761
|
-
(_a = document
|
|
25762
|
-
.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _a === void 0 ? void 0 : _a.classList.add('empty-collection');
|
|
25724
|
+
(_a = document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _a === void 0 ? void 0 : _a.classList.add('empty-collection');
|
|
25763
25725
|
}
|
|
25764
25726
|
else {
|
|
25765
|
-
(_b = document
|
|
25766
|
-
.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _b === void 0 ? void 0 : _b.classList.remove('empty-collection');
|
|
25727
|
+
(_b = document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _b === void 0 ? void 0 : _b.classList.remove('empty-collection');
|
|
25767
25728
|
}
|
|
25768
25729
|
}
|
|
25769
25730
|
else {
|
|
@@ -25790,9 +25751,7 @@ class FileManagerAbstract {
|
|
|
25790
25751
|
this.path = res.path;
|
|
25791
25752
|
}
|
|
25792
25753
|
else {
|
|
25793
|
-
this.path = res.contextParameters.breadcrumb.entries
|
|
25794
|
-
.map((item) => item.title)
|
|
25795
|
-
.join('/');
|
|
25754
|
+
this.path = res.contextParameters.breadcrumb.entries.map((item) => item.title).join('/');
|
|
25796
25755
|
}
|
|
25797
25756
|
if (this.route.snapshot.queryParams['fromSharedDocument']) {
|
|
25798
25757
|
res.contextParameters.breadcrumb.entries = [
|
|
@@ -25833,16 +25792,13 @@ class FileManagerAbstract {
|
|
|
25833
25792
|
});
|
|
25834
25793
|
}
|
|
25835
25794
|
getSelectedItem(directory) {
|
|
25836
|
-
let selectedItem = (directory === null || directory === void 0 ? void 0 : directory.dataItem) && directory.dataItem.id
|
|
25837
|
-
? directory.dataItem.id
|
|
25838
|
-
: this.mainFolder;
|
|
25795
|
+
let selectedItem = (directory === null || directory === void 0 ? void 0 : directory.dataItem) && directory.dataItem.id ? directory.dataItem.id : this.mainFolder;
|
|
25839
25796
|
return selectedItem;
|
|
25840
25797
|
}
|
|
25841
25798
|
contextItemsParser(items = []) {
|
|
25842
25799
|
return items.map((item) => {
|
|
25843
25800
|
let parsed = Object.assign({}, item);
|
|
25844
|
-
if (parsed.visibleEvaluator &&
|
|
25845
|
-
typeof parsed.visibleEvaluator == 'function') {
|
|
25801
|
+
if (parsed.visibleEvaluator && typeof parsed.visibleEvaluator == 'function') {
|
|
25846
25802
|
parsed.visible = parsed.visibleEvaluator();
|
|
25847
25803
|
}
|
|
25848
25804
|
return parsed;
|
|
@@ -25862,9 +25818,7 @@ class FileManagerAbstract {
|
|
|
25862
25818
|
if (selectedItem.some((q) => { var _a; return !((_a = q === null || q === void 0 ? void 0 : q.dataItem) === null || _a === void 0 ? void 0 : _a.isReady); }))
|
|
25863
25819
|
return;
|
|
25864
25820
|
this.itemsSelected =
|
|
25865
|
-
(e === null || e === void 0 ? void 0 : e.selectedItems.length) > 1
|
|
25866
|
-
? `${e === null || e === void 0 ? void 0 : e.selectedItems.length} items`
|
|
25867
|
-
: (_a = e === null || e === void 0 ? void 0 : e.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.dataItem.name;
|
|
25821
|
+
(e === null || e === void 0 ? void 0 : e.selectedItems.length) > 1 ? `${e === null || e === void 0 ? void 0 : e.selectedItems.length} items` : (_a = e === null || e === void 0 ? void 0 : e.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.dataItem.name;
|
|
25868
25822
|
this.isItemSelected = (e === null || e === void 0 ? void 0 : e.selectedItems.length) > 0 ? true : false;
|
|
25869
25823
|
this.selectedItemLength = selectedItem.length > 1 ? false : true;
|
|
25870
25824
|
if ((_b = e === null || e === void 0 ? void 0 : e.selectedItems[0]) === null || _b === void 0 ? void 0 : _b.dataItem) {
|
|
@@ -25898,9 +25852,7 @@ class FileManagerAbstract {
|
|
|
25898
25852
|
text: this.isArabic ? 'مجلد جديد' : 'New Directory',
|
|
25899
25853
|
action: this.createFolder,
|
|
25900
25854
|
visibleEvaluator: () => {
|
|
25901
|
-
return
|
|
25902
|
-
this.selectedItemLength &&
|
|
25903
|
-
this.selectedItem.canCreate);
|
|
25855
|
+
return this.selectedItem.isDirectory && this.selectedItemLength && this.selectedItem.canCreate;
|
|
25904
25856
|
}
|
|
25905
25857
|
}
|
|
25906
25858
|
]);
|
|
@@ -25921,10 +25873,7 @@ class FileManagerAbstract {
|
|
|
25921
25873
|
onContextItemClick({ itemData, viewArea, fileSystemItem }) {
|
|
25922
25874
|
var _a;
|
|
25923
25875
|
let selectedItem = this.fileManager.instance.getSelectedItems();
|
|
25924
|
-
this.itemToDisplay =
|
|
25925
|
-
viewArea === 'navPane'
|
|
25926
|
-
? fileSystemItem.dataItem
|
|
25927
|
-
: (_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.dataItem;
|
|
25876
|
+
this.itemToDisplay = viewArea === 'navPane' ? fileSystemItem.dataItem : (_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.dataItem;
|
|
25928
25877
|
let directory = this.getCurrentDirectory();
|
|
25929
25878
|
let id = this.getCurrentFolderId(directory);
|
|
25930
25879
|
itemData.action();
|
|
@@ -25941,9 +25890,7 @@ class FileManagerAbstract {
|
|
|
25941
25890
|
}
|
|
25942
25891
|
getCurrentFolderId(directory) {
|
|
25943
25892
|
var _a, _b;
|
|
25944
|
-
let id = directory.dataItem === undefined
|
|
25945
|
-
? (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id
|
|
25946
|
-
: (_b = directory.dataItem) === null || _b === void 0 ? void 0 : _b.id;
|
|
25893
|
+
let id = directory.dataItem === undefined ? (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id : (_b = directory.dataItem) === null || _b === void 0 ? void 0 : _b.id;
|
|
25947
25894
|
return id;
|
|
25948
25895
|
}
|
|
25949
25896
|
// ------------------------------------------------------------
|
|
@@ -25960,18 +25907,14 @@ class FileManagerAbstract {
|
|
|
25960
25907
|
this.selectedFolderPath = (_b = (_a = e.directory.dataItem) === null || _a === void 0 ? void 0 : _a.entity) === null || _b === void 0 ? void 0 : _b.path;
|
|
25961
25908
|
if (((_c = e.directory.dataItem) === null || _c === void 0 ? void 0 : _c.id) === undefined) {
|
|
25962
25909
|
if (this.mainFolder === 'sharedDocumentsRoot') {
|
|
25963
|
-
this.fileManagerService
|
|
25964
|
-
.getChildrenForSharedDocumentRoot(this.mainFolder)
|
|
25965
|
-
.subscribe((data) => {
|
|
25910
|
+
this.fileManagerService.getChildrenForSharedDocumentRoot(this.mainFolder).subscribe((data) => {
|
|
25966
25911
|
this.showNoDataImage(data);
|
|
25967
25912
|
this.fileItems = data;
|
|
25968
25913
|
return this.fileItems;
|
|
25969
25914
|
});
|
|
25970
25915
|
}
|
|
25971
25916
|
else {
|
|
25972
|
-
this.fileManagerService
|
|
25973
|
-
.refreshData(this.mainFolder)
|
|
25974
|
-
.subscribe((data) => {
|
|
25917
|
+
this.fileManagerService.refreshData(this.mainFolder).subscribe((data) => {
|
|
25975
25918
|
this.showNoDataImage(data);
|
|
25976
25919
|
this.fileItems = data;
|
|
25977
25920
|
return this.fileItems;
|
|
@@ -26001,9 +25944,7 @@ class FileManagerAbstract {
|
|
|
26001
25944
|
}
|
|
26002
25945
|
this.itemListView = e.component._itemView._itemList;
|
|
26003
25946
|
if (this.itemListView) {
|
|
26004
|
-
document
|
|
26005
|
-
.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]
|
|
26006
|
-
.classList.remove('empty-collection');
|
|
25947
|
+
document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0].classList.remove('empty-collection');
|
|
26007
25948
|
}
|
|
26008
25949
|
else {
|
|
26009
25950
|
let loadPanelElement = document.getElementsByClassName('dx-loadpanel-content')[0];
|
|
@@ -26014,19 +25955,15 @@ class FileManagerAbstract {
|
|
|
26014
25955
|
}
|
|
26015
25956
|
}
|
|
26016
25957
|
var elem = ((_j = e === null || e === void 0 ? void 0 : e.directory) === null || _j === void 0 ? void 0 : _j.path) === ''
|
|
26017
|
-
? document
|
|
26018
|
-
.getElementsByClassName('dx-menu-item-content')[0]
|
|
26019
|
-
.classList.add('custom')
|
|
25958
|
+
? document.getElementsByClassName('dx-menu-item-content')[0].classList.add('custom')
|
|
26020
25959
|
: '';
|
|
26021
25960
|
const id = (_l = (_k = e === null || e === void 0 ? void 0 : e.directory) === null || _k === void 0 ? void 0 : _k.dataItem) === null || _l === void 0 ? void 0 : _l.id;
|
|
26022
|
-
this.fileManagerService.selectedFolderId =
|
|
26023
|
-
(e === null || e === void 0 ? void 0 : e.directory) && ((_m = e === null || e === void 0 ? void 0 : e.directory) === null || _m === void 0 ? void 0 : _m.dataItem) ? id : this.mainFolder;
|
|
25961
|
+
this.fileManagerService.selectedFolderId = (e === null || e === void 0 ? void 0 : e.directory) && ((_m = e === null || e === void 0 ? void 0 : e.directory) === null || _m === void 0 ? void 0 : _m.dataItem) ? id : this.mainFolder;
|
|
26024
25962
|
const queryParams = {
|
|
26025
25963
|
id: (e === null || e === void 0 ? void 0 : e.directory) && ((_o = e === null || e === void 0 ? void 0 : e.directory) === null || _o === void 0 ? void 0 : _o.dataItem) ? id : this.mainFolder
|
|
26026
25964
|
};
|
|
26027
25965
|
each(this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.getExpandedNodesKeys(), (key) => {
|
|
26028
|
-
if (key.includes(e.directory.path) &&
|
|
26029
|
-
key.replace('FIK_', '') !== e.directory.path) {
|
|
25966
|
+
if (key.includes(e.directory.path) && key.replace('FIK_', '') !== e.directory.path) {
|
|
26030
25967
|
this.fileManager.instance._filesTreeView._filesTreeView._toggleExpandedState(key, false);
|
|
26031
25968
|
}
|
|
26032
25969
|
});
|
|
@@ -26052,9 +25989,7 @@ class FileManagerAbstract {
|
|
|
26052
25989
|
currentPageIndex: 0
|
|
26053
25990
|
};
|
|
26054
25991
|
if (!e.directory.dataItem.isReady) {
|
|
26055
|
-
const newDataItem = yield this.fileManagerService
|
|
26056
|
-
.getMapedFolder(id)
|
|
26057
|
-
.toPromise();
|
|
25992
|
+
const newDataItem = yield this.fileManagerService.getMapedFolder(id).toPromise();
|
|
26058
25993
|
assign(e.directory.dataItem, newDataItem);
|
|
26059
25994
|
}
|
|
26060
25995
|
e.directory.dataItem.items = yield this.getFolderChildren(id, payload).toPromise();
|
|
@@ -26072,16 +26007,11 @@ class FileManagerAbstract {
|
|
|
26072
26007
|
}
|
|
26073
26008
|
catch (e) { }
|
|
26074
26009
|
if (!this.itemListView) {
|
|
26075
|
-
document
|
|
26076
|
-
.getElementsByClassName('dx-loadpanel-content')[0]
|
|
26077
|
-
.classList.remove('hide-loadpanel');
|
|
26010
|
+
document.getElementsByClassName('dx-loadpanel-content')[0].classList.remove('hide-loadpanel');
|
|
26078
26011
|
}
|
|
26079
26012
|
}
|
|
26080
26013
|
let directory = this.getCurrentDirectory();
|
|
26081
|
-
this.currentFolder =
|
|
26082
|
-
directory.dataItem === undefined
|
|
26083
|
-
? this.canCreate
|
|
26084
|
-
: directory.dataItem.canCreate;
|
|
26014
|
+
this.currentFolder = directory.dataItem === undefined ? this.canCreate : directory.dataItem.canCreate;
|
|
26085
26015
|
});
|
|
26086
26016
|
}
|
|
26087
26017
|
//--------------------------------------------------------------
|
|
@@ -26101,15 +26031,11 @@ class FileManagerAbstract {
|
|
|
26101
26031
|
dialogRef.afterClosed().subscribe((res) => {
|
|
26102
26032
|
if (res) {
|
|
26103
26033
|
if (this.dialogMangmentService.creationMode === 'upload') {
|
|
26104
|
-
this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '70%', '85%', !this.myPageConfiguration.isStaticRoot
|
|
26105
|
-
? this.selectedFolderPath
|
|
26106
|
-
: '' // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
26034
|
+
this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '70%', '85%', !this.myPageConfiguration.isStaticRoot ? this.selectedFolderPath : '' // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
26107
26035
|
);
|
|
26108
26036
|
}
|
|
26109
26037
|
else if (this.dialogMangmentService.creationMode === 'scan') {
|
|
26110
|
-
this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '90%', '90%', !this.myPageConfiguration.isStaticRoot
|
|
26111
|
-
? this.selectedFolderPath
|
|
26112
|
-
: '' // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
26038
|
+
this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '90%', '90%', !this.myPageConfiguration.isStaticRoot ? this.selectedFolderPath : '' // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
26113
26039
|
);
|
|
26114
26040
|
}
|
|
26115
26041
|
}
|
|
@@ -26182,15 +26108,11 @@ class FileManagerAbstract {
|
|
|
26182
26108
|
dialogRef.afterClosed().subscribe((res) => {
|
|
26183
26109
|
if (res) {
|
|
26184
26110
|
if (this.dialogMangmentService.creationMode === 'upload') {
|
|
26185
|
-
this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '70%', '85%', !this.myPageConfiguration.isStaticRoot
|
|
26186
|
-
? this.selectedFolderPath
|
|
26187
|
-
: '' // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
26111
|
+
this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '70%', '85%', !this.myPageConfiguration.isStaticRoot ? this.selectedFolderPath : '' // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
26188
26112
|
);
|
|
26189
26113
|
}
|
|
26190
26114
|
else if (this.dialogMangmentService.creationMode === 'scan') {
|
|
26191
|
-
this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '90%', '90%', !this.myPageConfiguration.isStaticRoot
|
|
26192
|
-
? this.selectedFolderPath
|
|
26193
|
-
: '' // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
26115
|
+
this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '90%', '90%', !this.myPageConfiguration.isStaticRoot ? this.selectedFolderPath : '' // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
26194
26116
|
);
|
|
26195
26117
|
}
|
|
26196
26118
|
}
|
|
@@ -26226,12 +26148,7 @@ class FileManagerAbstract {
|
|
|
26226
26148
|
}
|
|
26227
26149
|
//--------------------------------- may be unused funtions -------------------
|
|
26228
26150
|
checkForClass(className) {
|
|
26229
|
-
let classes = [
|
|
26230
|
-
'detailed-menu',
|
|
26231
|
-
'ng-tag-label',
|
|
26232
|
-
'ng-option-label',
|
|
26233
|
-
'ng-star-inserted'
|
|
26234
|
-
];
|
|
26151
|
+
let classes = ['detailed-menu', 'ng-tag-label', 'ng-option-label', 'ng-star-inserted'];
|
|
26235
26152
|
let classFounded = false;
|
|
26236
26153
|
classes.map((item) => {
|
|
26237
26154
|
if (className.includes(item)) {
|
|
@@ -26333,10 +26250,8 @@ _FileManagerAbstract_foldersSubscription$ = new WeakMap(), _FileManagerAbstract_
|
|
|
26333
26250
|
};
|
|
26334
26251
|
}, _FileManagerAbstract_getNode = function _FileManagerAbstract_getNode(id) {
|
|
26335
26252
|
const fm = this.fileManager.instance;
|
|
26336
|
-
const dataStructure = fm._filesTreeView._filesTreeView._dataAdapter
|
|
26337
|
-
|
|
26338
|
-
const dataItem = dataStructure.find((q) => { var _a, _b; return ((_b = (_a = q.fileItem) === null || _a === void 0 ? void 0 : _a.dataItem) === null || _b === void 0 ? void 0 : _b.id) == id; }) ||
|
|
26339
|
-
dataStructure[0];
|
|
26253
|
+
const dataStructure = fm._filesTreeView._filesTreeView._dataAdapter._dataStructure;
|
|
26254
|
+
const dataItem = dataStructure.find((q) => { var _a, _b; return ((_b = (_a = q.fileItem) === null || _a === void 0 ? void 0 : _a.dataItem) === null || _b === void 0 ? void 0 : _b.id) == id; }) || dataStructure[0];
|
|
26340
26255
|
return fm._filesTreeView._filesTreeView._getNode(dataItem.internalFields.key);
|
|
26341
26256
|
}, _FileManagerAbstract_addOrReplace = function _FileManagerAbstract_addOrReplace(data, items) {
|
|
26342
26257
|
let itemMap = keyBy(data, 'id');
|
|
@@ -28859,11 +28774,7 @@ class NuxeoCoreModule {
|
|
|
28859
28774
|
}
|
|
28860
28775
|
NuxeoCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NuxeoCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
28861
28776
|
NuxeoCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NuxeoCoreModule, imports: [CommonModule, i1$6.TreeviewModule, HttpClientModule, i1.TranslateModule, i1$1.ToastrModule, KeycloakAngularModule,
|
|
28862
|
-
RxReactiveFormsModule], exports: [KeycloakAngularModule,
|
|
28863
|
-
TranslateModule,
|
|
28864
|
-
TreeviewModule,
|
|
28865
|
-
ToastrModule,
|
|
28866
|
-
RxReactiveFormsModule] });
|
|
28777
|
+
RxReactiveFormsModule], exports: [KeycloakAngularModule, TranslateModule, TreeviewModule, ToastrModule, RxReactiveFormsModule] });
|
|
28867
28778
|
NuxeoCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NuxeoCoreModule, providers: [
|
|
28868
28779
|
TranslateStore,
|
|
28869
28780
|
TranslateService,
|
|
@@ -28892,11 +28803,7 @@ NuxeoCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
|
|
|
28892
28803
|
}),
|
|
28893
28804
|
KeycloakAngularModule,
|
|
28894
28805
|
RxReactiveFormsModule
|
|
28895
|
-
], KeycloakAngularModule,
|
|
28896
|
-
TranslateModule,
|
|
28897
|
-
TreeviewModule,
|
|
28898
|
-
ToastrModule,
|
|
28899
|
-
RxReactiveFormsModule] });
|
|
28806
|
+
], KeycloakAngularModule, TranslateModule, TreeviewModule, ToastrModule, RxReactiveFormsModule] });
|
|
28900
28807
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NuxeoCoreModule, decorators: [{
|
|
28901
28808
|
type: NgModule,
|
|
28902
28809
|
args: [{
|
|
@@ -28912,13 +28819,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
28912
28819
|
KeycloakAngularModule,
|
|
28913
28820
|
RxReactiveFormsModule
|
|
28914
28821
|
],
|
|
28915
|
-
exports: [
|
|
28916
|
-
KeycloakAngularModule,
|
|
28917
|
-
TranslateModule,
|
|
28918
|
-
TreeviewModule,
|
|
28919
|
-
ToastrModule,
|
|
28920
|
-
RxReactiveFormsModule
|
|
28921
|
-
],
|
|
28822
|
+
exports: [KeycloakAngularModule, TranslateModule, TreeviewModule, ToastrModule, RxReactiveFormsModule],
|
|
28922
28823
|
providers: [
|
|
28923
28824
|
TranslateStore,
|
|
28924
28825
|
TranslateService,
|