mobicloud-core 1.0.115 → 1.0.116

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/flex-layout'), require('@angular/material/sidenav'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/expansion'), require('@angular/material/list'), require('@angular/material/menu'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('@angular/material/card'), require('@angular/material/progress-spinner'), require('@angular/material/slide-toggle'), require('@angular/material/stepper'), require('devextreme-angular'), require('ngx-webcam'), require('mobicloud-core/icons'), require('@angular/cdk/layout'), require('rxjs/operators'), require('devextreme/data/data_source'), require('devextreme/data/odata/store'), require('mobicloud-core'), require('@angular/material/dialog'), require('devextreme/ui/notify'), require('mobicloud-core/api'), require('@angular/localize/init'), require('rxjs'), require('devextreme/data/array_store'), require('devextreme/ui/validation_engine'), require('devextreme/core/guid')) :
3
- typeof define === 'function' && define.amd ? define('mobicloud-core/components', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/flex-layout', '@angular/material/sidenav', '@angular/material/button', '@angular/material/icon', '@angular/material/expansion', '@angular/material/list', '@angular/material/menu', '@angular/material/toolbar', '@angular/material/tooltip', '@angular/material/card', '@angular/material/progress-spinner', '@angular/material/slide-toggle', '@angular/material/stepper', 'devextreme-angular', 'ngx-webcam', 'mobicloud-core/icons', '@angular/cdk/layout', 'rxjs/operators', 'devextreme/data/data_source', 'devextreme/data/odata/store', 'mobicloud-core', '@angular/material/dialog', 'devextreme/ui/notify', 'mobicloud-core/api', '@angular/localize/init', 'rxjs', 'devextreme/data/array_store', 'devextreme/ui/validation_engine', 'devextreme/core/guid'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mobicloud-core'] = global['mobicloud-core'] || {}, global['mobicloud-core'].components = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.flexLayout, global.ng.material.sidenav, global.ng.material.button, global.ng.material.icon, global.ng.material.expansion, global.ng.material.list, global.ng.material.menu, global.ng.material.toolbar, global.ng.material.tooltip, global.ng.material.card, global.ng.material.progressSpinner, global.ng.material.slideToggle, global.ng.material.stepper, global['devextreme-angular'], global['ngx-webcam'], global['mobicloud-core'].icons, global.ng.cdk.layout, global.rxjs.operators, global['devextreme/data/data_source'], global['devextreme/data/odata/store'], global['mobicloud-core'], global.ng.material.dialog, global['devextreme/ui/notify'], global['mobicloud-core'].api, global.ng.localize.init, global.rxjs, global.ArrayStore, global.validationEngine, global.Guid));
5
- }(this, (function (exports, core, common, router, flexLayout, sidenav, button, icon, expansion, list, menu, toolbar, tooltip, card, progressSpinner, slideToggle, stepper, devextremeAngular, ngxWebcam, icons, layout, operators, DataSource, ODataStore, mobicloudCore, dialog, notify, api, init, rxjs, ArrayStore, validationEngine, Guid) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/flex-layout'), require('@angular/material/sidenav'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/expansion'), require('@angular/material/list'), require('@angular/material/menu'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('@angular/material/card'), require('@angular/material/progress-spinner'), require('@angular/material/slide-toggle'), require('@angular/material/stepper'), require('devextreme-angular'), require('ngx-webcam'), require('mobicloud-core/icons'), require('@angular/cdk/layout'), require('rxjs/operators'), require('devextreme/data/data_source'), require('devextreme/data/odata/store'), require('mobicloud-core'), require('@angular/material/dialog'), require('devextreme/ui/notify'), require('mobicloud-core/api'), require('@angular/localize/init'), require('rxjs'), require('devextreme/data/array_store'), require('devextreme/ui/validation_engine'), require('devextreme/core/guid'), require('ngx-ionic-image-viewer'), require('@ionic/angular'), require('devextreme/file_management/remote_provider')) :
3
+ typeof define === 'function' && define.amd ? define('mobicloud-core/components', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/flex-layout', '@angular/material/sidenav', '@angular/material/button', '@angular/material/icon', '@angular/material/expansion', '@angular/material/list', '@angular/material/menu', '@angular/material/toolbar', '@angular/material/tooltip', '@angular/material/card', '@angular/material/progress-spinner', '@angular/material/slide-toggle', '@angular/material/stepper', 'devextreme-angular', 'ngx-webcam', 'mobicloud-core/icons', '@angular/cdk/layout', 'rxjs/operators', 'devextreme/data/data_source', 'devextreme/data/odata/store', 'mobicloud-core', '@angular/material/dialog', 'devextreme/ui/notify', 'mobicloud-core/api', '@angular/localize/init', 'rxjs', 'devextreme/data/array_store', 'devextreme/ui/validation_engine', 'devextreme/core/guid', 'ngx-ionic-image-viewer', '@ionic/angular', 'devextreme/file_management/remote_provider'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mobicloud-core'] = global['mobicloud-core'] || {}, global['mobicloud-core'].components = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.flexLayout, global.ng.material.sidenav, global.ng.material.button, global.ng.material.icon, global.ng.material.expansion, global.ng.material.list, global.ng.material.menu, global.ng.material.toolbar, global.ng.material.tooltip, global.ng.material.card, global.ng.material.progressSpinner, global.ng.material.slideToggle, global.ng.material.stepper, global['devextreme-angular'], global['ngx-webcam'], global['mobicloud-core'].icons, global.ng.cdk.layout, global.rxjs.operators, global['devextreme/data/data_source'], global['devextreme/data/odata/store'], global['mobicloud-core'], global.ng.material.dialog, global['devextreme/ui/notify'], global['mobicloud-core'].api, global.ng.localize.init, global.rxjs, global.ArrayStore, global.validationEngine, global.Guid, global.ngxIonicImageViewer, global.angular, global.RemoteFileSystemProvider));
5
+ }(this, (function (exports, core, common, router, flexLayout, sidenav, button, icon, expansion, list, menu, toolbar, tooltip, card, progressSpinner, slideToggle, stepper, devextremeAngular, ngxWebcam, icons, layout, operators, DataSource, ODataStore, mobicloudCore, dialog, notify, api, init, rxjs, ArrayStore, validationEngine, Guid, ngxIonicImageViewer, angular, RemoteFileSystemProvider) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -12,6 +12,7 @@
12
12
  var ArrayStore__default = /*#__PURE__*/_interopDefaultLegacy(ArrayStore);
13
13
  var validationEngine__default = /*#__PURE__*/_interopDefaultLegacy(validationEngine);
14
14
  var Guid__default = /*#__PURE__*/_interopDefaultLegacy(Guid);
15
+ var RemoteFileSystemProvider__default = /*#__PURE__*/_interopDefaultLegacy(RemoteFileSystemProvider);
15
16
 
16
17
  /*! *****************************************************************************
17
18
  Copyright (c) Microsoft Corporation.
@@ -7624,6 +7625,334 @@
7624
7625
  };
7625
7626
  var templateObject_1$s, templateObject_2$o, templateObject_3$o, templateObject_4$o, templateObject_5$o, templateObject_6$o, templateObject_7$o, templateObject_8$o;
7626
7627
 
7628
+ var DocumentCatalogComponent = /** @class */ (function () {
7629
+ function DocumentCatalogComponent(route, cloudDataService, router, location, modalController) {
7630
+ this.route = route;
7631
+ this.cloudDataService = cloudDataService;
7632
+ this.router = router;
7633
+ this.location = location;
7634
+ this.modalController = modalController;
7635
+ this.selectedItemIdChanged = new core.EventEmitter();
7636
+ this.selectedDocumentChanged = new core.EventEmitter();
7637
+ this.beforeSubmit = this.beforeSubmit.bind(this);
7638
+ }
7639
+ DocumentCatalogComponent.prototype.ngOnInit = function () {
7640
+ if (this.entityname && this.entityid) {
7641
+ this.endpointUrl = this.cloudDataService.getMobiManagementApiUrl("DocumentCatalogManager?entity=" + this.entityname + "&id=" + this.entityid);
7642
+ }
7643
+ else {
7644
+ this.endpointUrl = this.cloudDataService.getMobiManagementApiUrl("DocumentCatalogManager");
7645
+ }
7646
+ this.remoteProvider = new RemoteFileSystemProvider__default['default']({
7647
+ endpointUrl: this.endpointUrl,
7648
+ beforeSubmit: this.beforeSubmit
7649
+ });
7650
+ this.initializeDataSource();
7651
+ };
7652
+ DocumentCatalogComponent.prototype.beforeSubmit = function (options) {
7653
+ var _a, _b, _c;
7654
+ options.formData.Authorization = "Bearer " + ((_c = (_b = (_a = this.cloudDataService) === null || _a === void 0 ? void 0 : _a.coreService) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.access_token);
7655
+ };
7656
+ DocumentCatalogComponent.prototype.initializeDataSource = function () {
7657
+ var _this = this;
7658
+ this.document_store = new ODataStore__default['default']({
7659
+ url: this.cloudDataService.getMobiManagementODataUrl("Document"),
7660
+ beforeSend: function (e) {
7661
+ var _a, _b;
7662
+ if (((_a = e.method) === null || _a === void 0 ? void 0 : _a.toUpperCase()) == "GET") {
7663
+ if (!((_b = e.params) === null || _b === void 0 ? void 0 : _b.$orderby)) {
7664
+ e.url = _this.cloudDataService.getMobiManagementODataUrl("Document?$orderby=MetaData/Created,DocumentId");
7665
+ }
7666
+ }
7667
+ },
7668
+ onUpdating: function (key, values) {
7669
+ },
7670
+ onInserting: function (values) {
7671
+ },
7672
+ onRemoving: function (key) {
7673
+ },
7674
+ withCredentials: true,
7675
+ key: "Id",
7676
+ keyType: "Guid",
7677
+ version: 4
7678
+ });
7679
+ var category_store = new ODataStore__default['default']({
7680
+ url: this.cloudDataService.getMobiManagementODataUrl("DocumentCategory"),
7681
+ beforeSend: function (e) {
7682
+ var _a, _b;
7683
+ if (((_a = e.method) === null || _a === void 0 ? void 0 : _a.toUpperCase()) == "GET") {
7684
+ if (!((_b = e.params) === null || _b === void 0 ? void 0 : _b.$orderby)) {
7685
+ e.url = _this.cloudDataService.getMobiManagementODataUrl("DocumentCategory?$orderby=MetaData/Created,CategoryId");
7686
+ }
7687
+ }
7688
+ },
7689
+ withCredentials: true,
7690
+ key: "Id",
7691
+ keyType: "Guid",
7692
+ version: 4
7693
+ });
7694
+ category_store.load().then(function (val) {
7695
+ _this.categories = val;
7696
+ });
7697
+ var document_types_store = new ODataStore__default['default']({
7698
+ url: this.cloudDataService.getMobiManagementODataUrl("DocumentType"),
7699
+ beforeSend: function (e) {
7700
+ var _a, _b;
7701
+ if (((_a = e.method) === null || _a === void 0 ? void 0 : _a.toUpperCase()) == "GET") {
7702
+ if (!((_b = e.params) === null || _b === void 0 ? void 0 : _b.$orderby)) {
7703
+ e.url = _this.cloudDataService.getMobiManagementODataUrl("DocumentType?$orderby=MetaData/Created,TypeId");
7704
+ }
7705
+ }
7706
+ },
7707
+ withCredentials: true,
7708
+ key: "Id",
7709
+ keyType: "Guid",
7710
+ version: 4
7711
+ });
7712
+ document_types_store.load().then(function (val) {
7713
+ _this.document_types = val;
7714
+ });
7715
+ this.securityFlags = [
7716
+ { value: api.SecurityFlag.None, text: $localize(templateObject_1$t || (templateObject_1$t = __makeTemplateObject([":@@EnumValue-SecurityFlag-None:None"], [":@@EnumValue-SecurityFlag-None:None"]))) },
7717
+ { value: api.SecurityFlag.OrganizationUser, text: $localize(templateObject_2$p || (templateObject_2$p = __makeTemplateObject([":@@EnumValue-SecurityFlag-OrganizationUser:OrganizationUser"], [":@@EnumValue-SecurityFlag-OrganizationUser:OrganizationUser"]))) },
7718
+ { value: api.SecurityFlag.Employee, text: $localize(templateObject_3$p || (templateObject_3$p = __makeTemplateObject([":@@EnumValue-SecurityFlag-Employee:Employee"], [":@@EnumValue-SecurityFlag-Employee:Employee"]))) },
7719
+ { value: api.SecurityFlag.Vendor, text: $localize(templateObject_4$p || (templateObject_4$p = __makeTemplateObject([":@@EnumValue-SecurityFlag-Vendor:Vendor"], [":@@EnumValue-SecurityFlag-Vendor:Vendor"]))) },
7720
+ { value: api.SecurityFlag.Customer, text: $localize(templateObject_5$p || (templateObject_5$p = __makeTemplateObject([":@@EnumValue-SecurityFlag-Customer:Customer"], [":@@EnumValue-SecurityFlag-Customer:Customer"]))) }
7721
+ ];
7722
+ };
7723
+ DocumentCatalogComponent.prototype.refresh = function () {
7724
+ var _a, _b;
7725
+ (_b = (_a = this.fileManager) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.refresh();
7726
+ };
7727
+ DocumentCatalogComponent.prototype.onSelectionChanged = function (e) {
7728
+ var _a, _b;
7729
+ return __awaiter(this, void 0, void 0, function () {
7730
+ return __generator(this, function (_q) {
7731
+ if ((_b = (_a = e.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.dataItem) === null || _b === void 0 ? void 0 : _b.key) {
7732
+ if (e.selectedItems[0].dataItem.isDirectory == true) {
7733
+ this.selectedItemIdChanged.emit(undefined);
7734
+ this.selectedDocumentChanged.emit(e.selectedItems[0].dataItem);
7735
+ }
7736
+ else {
7737
+ this.selectedItemIdChanged.emit(e.selectedItems[0].dataItem.key);
7738
+ this.selectedDocumentChanged.emit(e.selectedItems[0].dataItem);
7739
+ }
7740
+ }
7741
+ else {
7742
+ this.selectedItemIdChanged.emit(undefined);
7743
+ this.selectedDocumentChanged.emit(undefined);
7744
+ }
7745
+ return [2 /*return*/];
7746
+ });
7747
+ });
7748
+ };
7749
+ DocumentCatalogComponent.prototype.onContextMenuShowing = function (e) {
7750
+ var _a, _b, _c, _d;
7751
+ if (this.editAllowed) {
7752
+ var items = [{ name: 'create' }, { name: 'upload' }, { name: 'rename' }, { name: 'move' }, { name: 'copy' }, { name: 'delete' }, { name: 'refresh' }, { name: 'download' }];
7753
+ if (!((_a = e.fileSystemItem) === null || _a === void 0 ? void 0 : _a.isDirectory)) {
7754
+ if (this.categories) {
7755
+ var category_item = { text: 'Category', icon: 'tags', beginGroup: true, items: [] };
7756
+ for (var i = 0; i < this.categories.length; i++) {
7757
+ category_item.items.push({ text: this.categories[i].Name, icon: 'tags', uid: this.categories[i].Id, tag: 'category' });
7758
+ }
7759
+ items.push(category_item);
7760
+ }
7761
+ if (this.document_types) {
7762
+ var document_type_item = { text: 'Types', icon: 'tags', beginGroup: false, items: [] };
7763
+ for (var i = 0; i < this.document_types.length; i++) {
7764
+ document_type_item.items.push({ text: this.document_types[i].Name, icon: 'tags', uid: this.document_types[i].Id, tag: 'type' });
7765
+ }
7766
+ items.push(document_type_item);
7767
+ }
7768
+ if (this.manageSecurity && this.securityFlags) {
7769
+ var securityVisibility = (_d = (_c = (_b = e.fileSystemItem) === null || _b === void 0 ? void 0 : _b.dataItem) === null || _c === void 0 ? void 0 : _c.SecurityVisibility) !== null && _d !== void 0 ? _d : '';
7770
+ var security_item = { text: 'Security', icon: 'link', beginGroup: true, items: [] };
7771
+ for (var i = 2; i < this.securityFlags.length; i++) {
7772
+ var value = this.securityFlags[i].value;
7773
+ var isEnabled = securityVisibility.indexOf(value) >= 0;
7774
+ var icon = isEnabled ? 'minus' : 'plus';
7775
+ security_item.items.push({ text: this.securityFlags[i].text, icon: icon, value: value, tag: 'security', enable: !isEnabled });
7776
+ }
7777
+ items.push(security_item);
7778
+ }
7779
+ e.component.option('contextMenu.items', items);
7780
+ }
7781
+ else {
7782
+ e.component.option('contextMenu.items', items);
7783
+ }
7784
+ }
7785
+ };
7786
+ DocumentCatalogComponent.prototype.onContextMenuItemClick = function (args) {
7787
+ var _this = this;
7788
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
7789
+ if (this.document_store && ((_a = args.itemData) === null || _a === void 0 ? void 0 : _a.tag) == 'category') {
7790
+ if ((_c = (_b = args.fileSystemItem) === null || _b === void 0 ? void 0 : _b.dataItem) === null || _c === void 0 ? void 0 : _c.key) {
7791
+ this.document_store.update((_d = args.fileSystemItem.dataItem.DocumentId) !== null && _d !== void 0 ? _d : args.fileSystemItem.dataItem.key, { MainCategoryId: args.itemData.uid.toString() }).then(function (val) {
7792
+ _this.refresh();
7793
+ });
7794
+ }
7795
+ }
7796
+ else if (((_e = args.itemData) === null || _e === void 0 ? void 0 : _e.tag) == 'type') {
7797
+ if (this.document_store && ((_g = (_f = args.fileSystemItem) === null || _f === void 0 ? void 0 : _f.dataItem) === null || _g === void 0 ? void 0 : _g.key)) {
7798
+ this.document_store.update((_h = args.fileSystemItem.dataItem.DocumentId) !== null && _h !== void 0 ? _h : args.fileSystemItem.dataItem.key, { DocumentTypeId: args.itemData.uid.toString() }).then(function (val) {
7799
+ _this.refresh();
7800
+ });
7801
+ }
7802
+ }
7803
+ else if (this.manageSecurity && (((_j = args.itemData) === null || _j === void 0 ? void 0 : _j.tag) == 'security')) {
7804
+ if (this.document_store && ((_l = (_k = args.fileSystemItem) === null || _k === void 0 ? void 0 : _k.dataItem) === null || _l === void 0 ? void 0 : _l.key)) {
7805
+ var securityFlags_selected = (_m = args.itemData.value) === null || _m === void 0 ? void 0 : _m.toString();
7806
+ var securityFlags_Str = args.fileSystemItem.dataItem.SecurityVisibility;
7807
+ var securityFlags = securityFlags_Str.replace(' ', '').split(',');
7808
+ if ((_o = args.itemData) === null || _o === void 0 ? void 0 : _o.enable) {
7809
+ securityFlags.push(securityFlags_selected);
7810
+ }
7811
+ else {
7812
+ var securityFlags_tmp = [];
7813
+ for (var i = 0; i < securityFlags.length; i++) {
7814
+ if (securityFlags[i] != securityFlags_selected) {
7815
+ securityFlags_tmp.push(securityFlags[i]);
7816
+ }
7817
+ }
7818
+ securityFlags = securityFlags_tmp;
7819
+ if (securityFlags.length == 0) {
7820
+ securityFlags.push(api.SecurityFlag.None);
7821
+ }
7822
+ }
7823
+ var securityFlags_Str_Updated = securityFlags.join(', ');
7824
+ this.document_store.update((_p = args.fileSystemItem.dataItem.DocumentId) !== null && _p !== void 0 ? _p : args.fileSystemItem.dataItem.key, { SecurityVisibility: securityFlags_Str_Updated }).then(function (val) {
7825
+ _this.refresh();
7826
+ });
7827
+ }
7828
+ }
7829
+ };
7830
+ DocumentCatalogComponent.prototype.onSelectedFileOpened = function (e) {
7831
+ var _a, _b, _c, _d, _e;
7832
+ return __awaiter(this, void 0, void 0, function () {
7833
+ var filename, selectedItems;
7834
+ return __generator(this, function (_q) {
7835
+ if (this.downloadAllowed) {
7836
+ if ((_a = e.file) === null || _a === void 0 ? void 0 : _a.dataItem) {
7837
+ filename = (_d = (_c = (_b = e.file.dataItem) === null || _b === void 0 ? void 0 : _b.BlobFullName) === null || _c === void 0 ? void 0 : _c.toLowerCase()) !== null && _d !== void 0 ? _d : '';
7838
+ if (filename.endsWith('.jpg') || filename.endsWith('.jpeg') || filename.endsWith('.gif') || filename.endsWith('.png')) {
7839
+ this.openImageViewer(e);
7840
+ }
7841
+ else {
7842
+ selectedItems = this.fileManager.instance.getSelectedItems();
7843
+ (_e = this.remoteProvider) === null || _e === void 0 ? void 0 : _e.downloadItems(selectedItems);
7844
+ }
7845
+ }
7846
+ }
7847
+ return [2 /*return*/];
7848
+ });
7849
+ });
7850
+ };
7851
+ DocumentCatalogComponent.prototype.openImageViewer = function (e) {
7852
+ var _a, _b, _c;
7853
+ return __awaiter(this, void 0, void 0, function () {
7854
+ var imgUrl, modal;
7855
+ return __generator(this, function (_q) {
7856
+ switch (_q.label) {
7857
+ case 0:
7858
+ imgUrl = this.cloudDataService.getDocumentBlobUrl((_a = e.file.dataItem) === null || _a === void 0 ? void 0 : _a.StorageAccountName, (_b = e.file.dataItem) === null || _b === void 0 ? void 0 : _b.BlobFullName);
7859
+ return [4 /*yield*/, this.modalController.create({
7860
+ component: ngxIonicImageViewer.ViewerModalComponent,
7861
+ componentProps: {
7862
+ src: imgUrl,
7863
+ title: (_c = e.file) === null || _c === void 0 ? void 0 : _c.name,
7864
+ text: "",
7865
+ },
7866
+ cssClass: 'ion-img-viewer',
7867
+ keyboardClose: true,
7868
+ showBackdrop: true,
7869
+ })];
7870
+ case 1:
7871
+ modal = _q.sent();
7872
+ return [4 /*yield*/, modal.present()];
7873
+ case 2: return [2 /*return*/, _q.sent()];
7874
+ }
7875
+ });
7876
+ });
7877
+ };
7878
+ DocumentCatalogComponent.prototype.onErrorOccurred = function (e) {
7879
+ return __awaiter(this, void 0, void 0, function () {
7880
+ return __generator(this, function (_q) {
7881
+ console.log("Error:", e);
7882
+ return [2 /*return*/];
7883
+ });
7884
+ });
7885
+ };
7886
+ return DocumentCatalogComponent;
7887
+ }());
7888
+ DocumentCatalogComponent.decorators = [
7889
+ { type: core.Component, args: [{
7890
+ selector: 'mobicloud-document-catalog',
7891
+ template: "<dx-file-manager #fileManager id=\"fileManager\"\n [fileSystemProvider]=\"remoteProvider\" selectionMode=\"single\" (onErrorOccurred)=\"onErrorOccurred($event)\"\n rootFolderName=\"Documents\" i18n-rootFolderName=\"@@DocumentsFolderName-Text\" (onSelectionChanged)=\"onSelectionChanged($event)\"(onSelectedFileOpened)=\"onSelectedFileOpened($event)\" (onContextMenuShowing)=\"onContextMenuShowing($event)\" (onContextMenuItemClick)=\"onContextMenuItemClick($event)\" height=\"100%\">\n\n <dxo-permissions \n [create]=\"editAllowed\"\n [copy]=\"editAllowed\"\n [move]=\"editAllowed\"\n [delete]=\"editAllowed\"\n [rename]=\"editAllowed\"\n [upload]=\"editAllowed\"\n [download]=\"downloadAllowed\">\n </dxo-permissions>\n \n <dxo-item-view [showParentFolder]=\"false\">\n <dxo-details>\n <dxi-column dataField=\"thumbnail\"></dxi-column>\n <dxi-column dataField=\"name\"></dxi-column>\n <dxi-column dataField=\"CategoryName\" caption=\"Category\"></dxi-column>\n <dxi-column dataField=\"TypeName\" caption=\"Type\"></dxi-column> \n <dxi-column dataField=\"dateModified\"></dxi-column>\n <!-- <dxi-column dataField=\"IsSystem\" caption=\"System\" [visible]=\"true\"></dxi-column> -->\n <dxi-column dataField=\"BlobFullName\" caption=\"Blob name\" [visible]=\"true\"></dxi-column>\n <dxi-column dataField=\"SecurityVisibility\" caption=\"Security\" [visible]=\"true\" *ngIf=\"manageSecurity\"></dxi-column>\n <!-- <dxi-column dataField=\"SecurityVisibility\" caption=\"Security\" [visible]=\"true\"></dxi-column> -->\n <!-- <dxi-column dataField=\"size\"></dxi-column> -->\n </dxo-details>\n </dxo-item-view>\n <!-- <dxo-upload [chunkSize]=\"500000\"></dxo-upload> -->\n\n <dxo-context-menu>\n <!-- <dxi-item name=\"create\"></dxi-item>\n <dxi-item name=\"upload\"></dxi-item>\n <dxi-item name=\"rename\"></dxi-item>\n <dxi-item name=\"move\"></dxi-item> \n <dxi-item name=\"copy\"></dxi-item> \n <dxi-item name=\"delete\"></dxi-item> \n <dxi-item text=\"Category\" icon=\"tags\" beginGroup=\"true\">\n <dxi-item text=\"Work\" [options]=\"{ category: 'Work' }\"></dxi-item>\n <dxi-item text=\"Important\" [options]=\"{ category: 'Important' }\"></dxi-item>\n <dxi-item text=\"Home\" [options]=\"{ category: 'Home' }\"></dxi-item>\n <dxi-item text=\"None\" [options]=\"{ category: '' }\"></dxi-item>\n </dxi-item> \n <dxi-item name=\"refresh\" beginGroup=\"true\"></dxi-item>\n <dxi-item name=\"download\"></dxi-item> -->\n \n\n </dxo-context-menu> \n</dx-file-manager>",
7892
+ styles: [""]
7893
+ },] }
7894
+ ];
7895
+ DocumentCatalogComponent.ctorParameters = function () { return [
7896
+ { type: router.ActivatedRoute },
7897
+ { type: api.MobiCloudDataService },
7898
+ { type: router.Router },
7899
+ { type: common.Location },
7900
+ { type: angular.ModalController }
7901
+ ]; };
7902
+ DocumentCatalogComponent.propDecorators = {
7903
+ fileManager: [{ type: core.ViewChild, args: ['fileManager',] }],
7904
+ endpointUrl: [{ type: core.Input }],
7905
+ selectedItemIdChanged: [{ type: core.Output }],
7906
+ selectedDocumentChanged: [{ type: core.Output }],
7907
+ editAllowed: [{ type: core.Input }],
7908
+ downloadAllowed: [{ type: core.Input }],
7909
+ entityname: [{ type: core.Input }],
7910
+ entityid: [{ type: core.Input }],
7911
+ manageSecurity: [{ type: core.Input }]
7912
+ };
7913
+ var templateObject_1$t, templateObject_2$p, templateObject_3$p, templateObject_4$p, templateObject_5$p;
7914
+
7915
+ var DocumentCatalogDialogComponent = /** @class */ (function () {
7916
+ function DocumentCatalogDialogComponent(dialogRef, data, cloudDataService, matDialog) {
7917
+ this.dialogRef = dialogRef;
7918
+ this.data = data;
7919
+ this.cloudDataService = cloudDataService;
7920
+ this.matDialog = matDialog;
7921
+ this.selectedDocument = undefined;
7922
+ }
7923
+ DocumentCatalogDialogComponent.prototype.ngOnInit = function () {
7924
+ };
7925
+ DocumentCatalogDialogComponent.prototype.selectedItemIdChanged = function (key) {
7926
+ this.selectedItemId = key;
7927
+ };
7928
+ DocumentCatalogDialogComponent.prototype.selectedDocumentChanged = function (document) {
7929
+ this.selectedDocument = document;
7930
+ };
7931
+ DocumentCatalogDialogComponent.prototype.onClose = function () {
7932
+ this.dialogRef.close({ result: { id: this.selectedItemId, image: this.selectedDocument, dialogResult: exports.MessageResult.Ok } });
7933
+ };
7934
+ DocumentCatalogDialogComponent.prototype.onCancelClick = function () {
7935
+ this.onCancel();
7936
+ };
7937
+ DocumentCatalogDialogComponent.prototype.onCancel = function () {
7938
+ this.dialogRef.close({ result: { id: "", document: undefined, dialogResult: exports.MessageResult.Cancel } });
7939
+ };
7940
+ return DocumentCatalogDialogComponent;
7941
+ }());
7942
+ DocumentCatalogDialogComponent.decorators = [
7943
+ { type: core.Component, args: [{
7944
+ selector: 'mobicloud-document-catalog-dialog',
7945
+ template: "<div class=\"filemanager-container\">\n <mobicloud-document-catalog (selectedItemIdChanged)=\"selectedItemIdChanged($event)\" (selectedDocumentChanged)=\"selectedDocumentChanged($event)\"></mobicloud-document-catalog>\n <div fxLayout=\"row\" fxLayoutAlign=\"end start\" class=\"buttonpanel\">\n <button mat-flat-button color=\"primary\" class=\"button1\" [disabled]=\"!selectedItemId\" (click)=\"onClose()\" i18n=\"@@Button-Select\">Select</button>\n <button mat-flat-button color=\"accent\" class=\"button2\" (click)=\"onCancelClick()\" i18n=\"@@Button-Cancel\">Cancel</button> \n </div>\n</div>",
7946
+ styles: [".buttonpanel{margin-top:16px!important;margin-bottom:16px!important}.buttonpanel,.buttonpanel .button1{margin-right:15px}.buttonpanel .button2{margin-left:15px}"]
7947
+ },] }
7948
+ ];
7949
+ DocumentCatalogDialogComponent.ctorParameters = function () { return [
7950
+ { type: dialog.MatDialogRef },
7951
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
7952
+ { type: api.MobiCloudDataService },
7953
+ { type: dialog.MatDialog }
7954
+ ]; };
7955
+
7627
7956
  var MobiCloudComponentsModule = /** @class */ (function () {
7628
7957
  function MobiCloudComponentsModule() {
7629
7958
  }
@@ -7636,7 +7965,7 @@
7636
7965
  EmployeeAddressComponent, EmployeeProfileComponent, EmployeeProfileImageComponent, EmployeeUserInfoComponent, SystemUserProfileComponent, CustomerUserAddressComponent, CustomerUserDetailsComponent, CustomerUserGeneralComponent, CustomerUserImageComponent, VendorUserAddressComponent, VendorUserDetailsComponent, VendorUserGeneralComponent, VendorUserImageComponent,
7637
7966
  PickinglistAddNewShipment, PrintDialogShipment, DimensionGroupBoxComponent, DimensionGroupsComponent,
7638
7967
  ProjectDescriptionComponent, ProjectFinanceComponent, ProjectGeneralComponent, ProjectLocationComponent, ProjectTimeComponent, ProjectVariantConfigComponent,
7639
- ServiceObjectGeneralComponent, ServiceObjectImageComponent, ServiceObjectInventoryComponent, ServiceObjectLocationComponent, ServiceObjectServiceComponent
7968
+ ServiceObjectGeneralComponent, ServiceObjectImageComponent, ServiceObjectInventoryComponent, ServiceObjectLocationComponent, ServiceObjectServiceComponent, DocumentCatalogComponent, DocumentCatalogDialogComponent
7640
7969
  ],
7641
7970
  imports: [
7642
7971
  common.CommonModule, router.RouterModule, icons.MobiCloudIconsModule, flexLayout.FlexLayoutModule,
@@ -7654,7 +7983,7 @@
7654
7983
  ProfilePageComponent, ProfilePageSystemUserComponent, ProfilePageEmployeeComponent, ProfilePageCustomerUserComponent, ProfilePageVendorUserComponent, CameraDialogEditComponent, ImageEditComponent,
7655
7984
  EmployeeAddressComponent, EmployeeProfileComponent, EmployeeProfileImageComponent, EmployeeUserInfoComponent, SystemUserProfileComponent, CustomerUserAddressComponent, CustomerUserDetailsComponent, CustomerUserGeneralComponent, CustomerUserImageComponent, VendorUserAddressComponent, VendorUserDetailsComponent, VendorUserGeneralComponent, VendorUserImageComponent,
7656
7985
  PickinglistAddNewShipment, PrintDialogShipment, DimensionGroupBoxComponent, DimensionGroupsComponent, ProjectDescriptionComponent, ProjectFinanceComponent, ProjectGeneralComponent, ProjectLocationComponent, ProjectTimeComponent, ProjectVariantConfigComponent,
7657
- ServiceObjectGeneralComponent, ServiceObjectImageComponent, ServiceObjectInventoryComponent, ServiceObjectLocationComponent, ServiceObjectServiceComponent
7986
+ ServiceObjectGeneralComponent, ServiceObjectImageComponent, ServiceObjectInventoryComponent, ServiceObjectLocationComponent, ServiceObjectServiceComponent, DocumentCatalogComponent, DocumentCatalogDialogComponent
7658
7987
  ]
7659
7988
  },] }
7660
7989
  ];
@@ -7669,6 +7998,8 @@
7669
7998
  exports.CustomerUserImageComponent = CustomerUserImageComponent;
7670
7999
  exports.DimensionGroupBoxComponent = DimensionGroupBoxComponent;
7671
8000
  exports.DimensionGroupsComponent = DimensionGroupsComponent;
8001
+ exports.DocumentCatalogComponent = DocumentCatalogComponent;
8002
+ exports.DocumentCatalogDialogComponent = DocumentCatalogDialogComponent;
7672
8003
  exports.EmployeeAddressComponent = EmployeeAddressComponent;
7673
8004
  exports.EmployeeProfileComponent = EmployeeProfileComponent;
7674
8005
  exports.EmployeeProfileImageComponent = EmployeeProfileImageComponent;