mobicloud-core 1.0.288 → 1.0.290

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.
Files changed (25) hide show
  1. package/bundles/mobicloud-core-components.umd.js +20 -28
  2. package/bundles/mobicloud-core-components.umd.js.map +1 -1
  3. package/esm2015/components/customer-user/customer-user-address/customer-user-address.component.js +2 -3
  4. package/esm2015/components/customer-user/customer-user-details/customer-user-details.component.js +2 -3
  5. package/esm2015/components/customer-user/customer-user-general/customer-user-general.component.js +2 -3
  6. package/esm2015/components/customer-user/customer-user-image/customer-user-image.component.js +2 -3
  7. package/esm2015/components/dimension/dimension-group-box/dimension-group-box.component.js +2 -2
  8. package/esm2015/components/project/project-description/project-description.component.js +2 -2
  9. package/esm2015/components/project/project-finance/project-finance.component.js +2 -2
  10. package/esm2015/components/project/project-general/project-general.component.js +2 -2
  11. package/esm2015/components/project/project-location/project-location.component.js +2 -2
  12. package/esm2015/components/project/project-time/project-time.component.js +2 -2
  13. package/esm2015/components/project/project-variant-config/project-variant-config.component.js +2 -2
  14. package/esm2015/components/service-object/service-object-general/service-object-general.component.js +2 -2
  15. package/esm2015/components/service-object/service-object-image/service-object-image.component.js +2 -2
  16. package/esm2015/components/service-object/service-object-inventory/service-object-inventory.component.js +2 -2
  17. package/esm2015/components/service-object/service-object-location/service-object-location.component.js +2 -2
  18. package/esm2015/components/service-object/service-object-service/service-object-service.component.js +2 -2
  19. package/esm2015/components/vendor-user/vendor-user-address/vendor-user-address.component.js +2 -3
  20. package/esm2015/components/vendor-user/vendor-user-details/vendor-user-details.component.js +2 -3
  21. package/esm2015/components/vendor-user/vendor-user-general/vendor-user-general.component.js +2 -3
  22. package/esm2015/components/vendor-user/vendor-user-image/vendor-user-image.component.js +2 -3
  23. package/fesm2015/mobicloud-core-components.js +20 -28
  24. package/fesm2015/mobicloud-core-components.js.map +1 -1
  25. package/package.json +1 -1
@@ -3074,8 +3074,7 @@
3074
3074
  }
3075
3075
  CustomerUserGeneralComponent.prototype.ngOnInit = function () {
3076
3076
  var _this = this;
3077
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
3078
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3077
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3079
3078
  this.initializeDataSources();
3080
3079
  };
3081
3080
  CustomerUserGeneralComponent.prototype.initializeDataSources = function () {
@@ -3302,8 +3301,7 @@
3302
3301
  }
3303
3302
  CustomerUserDetailsComponent.prototype.ngOnInit = function () {
3304
3303
  var _this = this;
3305
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
3306
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3304
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3307
3305
  this.user_store = new ODataStore__default["default"]({
3308
3306
  url: this.cloudDataService.getMobiManagementODataUrl("CustomerUser"),
3309
3307
  withCredentials: true,
@@ -3469,8 +3467,7 @@
3469
3467
  }
3470
3468
  CustomerUserAddressComponent.prototype.ngOnInit = function () {
3471
3469
  var _this = this;
3472
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
3473
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3470
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3474
3471
  this.user_store = new ODataStore__default["default"]({
3475
3472
  url: this.cloudDataService.getMobiManagementODataUrl("CustomerUser"),
3476
3473
  withCredentials: true,
@@ -3655,8 +3652,7 @@
3655
3652
  CustomerUserImageComponent.prototype.ngOnInit = function () {
3656
3653
  var _this = this;
3657
3654
  var _a;
3658
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
3659
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3655
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3660
3656
  this.uploadUrl = this.cloudDataService.getMobiManagementODataUrl("customeruser(" + ((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) + ")/UploadProfileImage");
3661
3657
  };
3662
3658
  CustomerUserImageComponent.prototype.getProfileImageUrl = function () {
@@ -4126,8 +4122,7 @@
4126
4122
  }
4127
4123
  VendorUserAddressComponent.prototype.ngOnInit = function () {
4128
4124
  var _this = this;
4129
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
4130
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
4125
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
4131
4126
  this.user_store = new ODataStore__default["default"]({
4132
4127
  url: this.cloudDataService.getMobiManagementODataUrl("VendorUser"),
4133
4128
  withCredentials: true,
@@ -4323,8 +4318,7 @@
4323
4318
  }
4324
4319
  VendorUserDetailsComponent.prototype.ngOnInit = function () {
4325
4320
  var _this = this;
4326
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
4327
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
4321
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
4328
4322
  this.user_store = new ODataStore__default["default"]({
4329
4323
  url: this.cloudDataService.getMobiManagementODataUrl("VendorUser"),
4330
4324
  withCredentials: true,
@@ -4498,8 +4492,7 @@
4498
4492
  }
4499
4493
  VendorUserGeneralComponent.prototype.ngOnInit = function () {
4500
4494
  var _this = this;
4501
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
4502
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
4495
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
4503
4496
  this.initializeDataSources();
4504
4497
  };
4505
4498
  VendorUserGeneralComponent.prototype.initializeDataSources = function () {
@@ -4709,8 +4702,7 @@
4709
4702
  VendorUserImageComponent.prototype.ngOnInit = function () {
4710
4703
  var _this = this;
4711
4704
  var _a;
4712
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
4713
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
4705
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
4714
4706
  this.uploadUrl = this.cloudDataService.getMobiManagementODataUrl("vendoruser(" + ((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) + ")/UploadProfileImage");
4715
4707
  };
4716
4708
  VendorUserImageComponent.prototype.getProfileImageUrl = function () {
@@ -6357,7 +6349,7 @@
6357
6349
  });
6358
6350
  DimensionGroupBoxComponent.prototype.ngOnInit = function () {
6359
6351
  var _this = this;
6360
- this.cloudDataService.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.cloudDataService.coreService.isMasterOrganizationUserAuthenticated(); });
6352
+ this.cloudDataService.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.cloudDataService.coreService.isMasterOrganizationUserAuthenticated() || _this.cloudDataService.coreService.isEmployeeAuthenticated(); });
6361
6353
  this.initializeDataStore();
6362
6354
  };
6363
6355
  DimensionGroupBoxComponent.prototype.initializeDataStore = function () {
@@ -6840,7 +6832,7 @@
6840
6832
  }
6841
6833
  ProjectDescriptionComponent.prototype.ngOnInit = function () {
6842
6834
  var _this = this;
6843
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
6835
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
6844
6836
  this.initializeDataSource();
6845
6837
  };
6846
6838
  ProjectDescriptionComponent.prototype.initializeDataSource = function () {
@@ -7001,7 +6993,7 @@
7001
6993
  }
7002
6994
  ProjectFinanceComponent.prototype.ngOnInit = function () {
7003
6995
  var _this = this;
7004
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
6996
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7005
6997
  this.initializeDataSource();
7006
6998
  this.createCustomerDataSource();
7007
6999
  };
@@ -7205,7 +7197,7 @@
7205
7197
  }
7206
7198
  ProjectGeneralComponent.prototype.ngOnInit = function () {
7207
7199
  var _this = this;
7208
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
7200
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7209
7201
  this.initializeDataSource();
7210
7202
  this.createResponsibleDataSource();
7211
7203
  this.createSalesResponsibleDataSource();
@@ -7424,7 +7416,7 @@
7424
7416
  }
7425
7417
  ProjectLocationComponent.prototype.ngOnInit = function () {
7426
7418
  var _this = this;
7427
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
7419
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7428
7420
  this.initializeDataSource();
7429
7421
  this.createCountryDataSource();
7430
7422
  };
@@ -7642,7 +7634,7 @@
7642
7634
  }
7643
7635
  ProjectTimeComponent.prototype.ngOnInit = function () {
7644
7636
  var _this = this;
7645
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
7637
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7646
7638
  this.initializeDataSource();
7647
7639
  };
7648
7640
  ProjectTimeComponent.prototype.initializeDataSource = function () {
@@ -7795,7 +7787,7 @@
7795
7787
  }
7796
7788
  ProjectVariantConfigComponent.prototype.ngOnInit = function () {
7797
7789
  var _this = this;
7798
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
7790
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7799
7791
  this.initializeDataSource();
7800
7792
  this.createSchemaTypeDataSource();
7801
7793
  };
@@ -7977,7 +7969,7 @@
7977
7969
  }
7978
7970
  ServiceObjectGeneralComponent.prototype.ngOnInit = function () {
7979
7971
  var _this = this;
7980
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
7972
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7981
7973
  this.initializeDataSource();
7982
7974
  this.createCustomerDataSource();
7983
7975
  this.createBeaconDataSource();
@@ -8176,7 +8168,7 @@
8176
8168
  ServiceObjectImageComponent.prototype.ngOnInit = function () {
8177
8169
  var _this = this;
8178
8170
  var _a;
8179
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
8171
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
8180
8172
  this.uploadUrl = this.cloudDataService.getMobiManagementODataUrl("ServiceObject(" + ((_a = this.serviceObject) === null || _a === void 0 ? void 0 : _a.Id) + ")/UploadImage");
8181
8173
  };
8182
8174
  ServiceObjectImageComponent.prototype.getLogoUrl = function () {
@@ -8253,7 +8245,7 @@
8253
8245
  }
8254
8246
  ServiceObjectInventoryComponent.prototype.ngOnInit = function () {
8255
8247
  var _this = this;
8256
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
8248
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
8257
8249
  this.initializeDataSource();
8258
8250
  this.createInventLocationDataSource();
8259
8251
  this.createWMSLocationDataSource();
@@ -8452,7 +8444,7 @@
8452
8444
  }
8453
8445
  ServiceObjectLocationComponent.prototype.ngOnInit = function () {
8454
8446
  var _this = this;
8455
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
8447
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
8456
8448
  this.initializeDataSource();
8457
8449
  this.createCountryDataSource();
8458
8450
  };
@@ -8668,7 +8660,7 @@
8668
8660
  }
8669
8661
  ServiceObjectServiceComponent.prototype.ngOnInit = function () {
8670
8662
  var _this = this;
8671
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
8663
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
8672
8664
  this.initializeDataSource();
8673
8665
  this.createSchemaTypeDataSource();
8674
8666
  };