mobicloud-core 1.0.91 → 1.0.92

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 (29) hide show
  1. package/bundles/mobicloud-core-components.umd.js +19 -19
  2. package/bundles/mobicloud-core-components.umd.js.map +1 -1
  3. package/bundles/mobicloud-core-components.umd.min.js +1 -1
  4. package/bundles/mobicloud-core-components.umd.min.js.map +1 -1
  5. package/bundles/mobicloud-core.umd.js +15 -0
  6. package/bundles/mobicloud-core.umd.js.map +1 -1
  7. package/bundles/mobicloud-core.umd.min.js +1 -1
  8. package/bundles/mobicloud-core.umd.min.js.map +1 -1
  9. package/components/mobicloud-core-components.metadata.json +1 -1
  10. package/esm2015/components/customer-user/customer-user-address/customer-user-address.component.js +3 -3
  11. package/esm2015/components/customer-user/customer-user-details/customer-user-details.component.js +3 -3
  12. package/esm2015/components/customer-user/customer-user-general/customer-user-general.component.js +3 -3
  13. package/esm2015/components/customer-user/customer-user-image/customer-user-image.component.js +3 -3
  14. package/esm2015/components/employee/employee-address/employee-address.component.js +2 -2
  15. package/esm2015/components/employee/employee-profile/employee-profile.component.js +2 -2
  16. package/esm2015/components/employee/employee-profile-image/employee-profile-image.component.js +2 -2
  17. package/esm2015/components/system-user/system-user-profile/system-user-profile.component.js +1 -1
  18. package/esm2015/components/vendor-user/vendor-user-address/vendor-user-address.component.js +3 -3
  19. package/esm2015/components/vendor-user/vendor-user-details/vendor-user-details.component.js +3 -3
  20. package/esm2015/components/vendor-user/vendor-user-general/vendor-user-general.component.js +3 -3
  21. package/esm2015/components/vendor-user/vendor-user-image/vendor-user-image.component.js +3 -3
  22. package/esm2015/lib/services/mobicloud-core.service.js +16 -1
  23. package/fesm2015/mobicloud-core-components.js +19 -19
  24. package/fesm2015/mobicloud-core-components.js.map +1 -1
  25. package/fesm2015/mobicloud-core.js +15 -0
  26. package/fesm2015/mobicloud-core.js.map +1 -1
  27. package/lib/services/mobicloud-core.service.d.ts +5 -0
  28. package/mobicloud-core.metadata.json +1 -1
  29. package/package.json +1 -1
@@ -1512,7 +1512,7 @@
1512
1512
  }
1513
1513
  EmployeeAddressComponent.prototype.ngOnInit = function () {
1514
1514
  var _this = this;
1515
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
1515
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
1516
1516
  this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (_this.employee && (p === null || p === void 0 ? void 0 : p.user_id) == _this.employee.Id)); });
1517
1517
  this.employee_store = new ODataStore__default['default']({
1518
1518
  url: this.cloudDataService.getMobiManagementODataUrl("Employee"),
@@ -1693,7 +1693,7 @@
1693
1693
  }
1694
1694
  EmployeeProfileComponent.prototype.ngOnInit = function () {
1695
1695
  var _this = this;
1696
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
1696
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
1697
1697
  this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.employee) === null || _a === void 0 ? void 0 : _a.Id)); });
1698
1698
  this.initializeDataSources();
1699
1699
  };
@@ -1925,7 +1925,7 @@
1925
1925
  EmployeeProfileImageComponent.prototype.ngOnInit = function () {
1926
1926
  var _this = this;
1927
1927
  var _a;
1928
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
1928
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
1929
1929
  this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.employee) === null || _a === void 0 ? void 0 : _a.Id)); });
1930
1930
  this.uploadUrl = this.cloudDataService.getMobiManagementODataUrl("Employee(" + ((_a = this.employee) === null || _a === void 0 ? void 0 : _a.Id) + ")/UploadProfileImage()");
1931
1931
  };
@@ -2396,8 +2396,8 @@
2396
2396
  }
2397
2397
  CustomerUserAddressComponent.prototype.ngOnInit = function () {
2398
2398
  var _this = this;
2399
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
2400
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
2399
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
2400
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
2401
2401
  this.user_store = new ODataStore__default['default']({
2402
2402
  url: this.cloudDataService.getMobiManagementODataUrl("CustomerUser"),
2403
2403
  withCredentials: true,
@@ -2585,8 +2585,8 @@
2585
2585
  }
2586
2586
  CustomerUserDetailsComponent.prototype.ngOnInit = function () {
2587
2587
  var _this = this;
2588
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
2589
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
2588
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
2589
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
2590
2590
  this.user_store = new ODataStore__default['default']({
2591
2591
  url: this.cloudDataService.getMobiManagementODataUrl("CustomerUser"),
2592
2592
  withCredentials: true,
@@ -2750,8 +2750,8 @@
2750
2750
  }
2751
2751
  CustomerUserGeneralComponent.prototype.ngOnInit = function () {
2752
2752
  var _this = this;
2753
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
2754
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
2753
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
2754
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
2755
2755
  this.initializeDataSources();
2756
2756
  };
2757
2757
  CustomerUserGeneralComponent.prototype.initializeDataSources = function () {
@@ -2956,8 +2956,8 @@
2956
2956
  CustomerUserImageComponent.prototype.ngOnInit = function () {
2957
2957
  var _this = this;
2958
2958
  var _a;
2959
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
2960
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
2959
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
2960
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
2961
2961
  this.uploadUrl = this.cloudDataService.getMobiManagementODataUrl("customeruser(" + ((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) + ")/UploadProfileImage()");
2962
2962
  };
2963
2963
  CustomerUserImageComponent.prototype.getProfileImageUrl = function () {
@@ -3024,8 +3024,8 @@
3024
3024
  }
3025
3025
  VendorUserAddressComponent.prototype.ngOnInit = function () {
3026
3026
  var _this = this;
3027
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
3028
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3027
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
3028
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3029
3029
  this.user_store = new ODataStore__default['default']({
3030
3030
  url: this.cloudDataService.getMobiManagementODataUrl("VendorUser"),
3031
3031
  withCredentials: true,
@@ -3213,8 +3213,8 @@
3213
3213
  }
3214
3214
  VendorUserDetailsComponent.prototype.ngOnInit = function () {
3215
3215
  var _this = this;
3216
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
3217
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3216
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
3217
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3218
3218
  this.user_store = new ODataStore__default['default']({
3219
3219
  url: this.cloudDataService.getMobiManagementODataUrl("VendorUser"),
3220
3220
  withCredentials: true,
@@ -3378,8 +3378,8 @@
3378
3378
  }
3379
3379
  VendorUserGeneralComponent.prototype.ngOnInit = function () {
3380
3380
  var _this = this;
3381
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
3382
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3381
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
3382
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3383
3383
  this.initializeDataSources();
3384
3384
  };
3385
3385
  VendorUserGeneralComponent.prototype.initializeDataSources = function () {
@@ -3584,8 +3584,8 @@
3584
3584
  VendorUserImageComponent.prototype.ngOnInit = function () {
3585
3585
  var _this = this;
3586
3586
  var _a;
3587
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
3588
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationUser) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3587
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAuthenticated(); });
3588
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3589
3589
  this.uploadUrl = this.cloudDataService.getMobiManagementODataUrl("vendoruser(" + ((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) + ")/UploadProfileImage()");
3590
3590
  };
3591
3591
  VendorUserImageComponent.prototype.getProfileImageUrl = function () {