mobicloud-core 1.0.91 → 1.0.95

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 (34) hide show
  1. package/bundles/mobicloud-core-components.umd.js +27 -27
  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 +251 -151
  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/esm2015/components/customer-user/customer-user-address/customer-user-address.component.js +3 -3
  10. package/esm2015/components/customer-user/customer-user-details/customer-user-details.component.js +3 -3
  11. package/esm2015/components/customer-user/customer-user-general/customer-user-general.component.js +3 -3
  12. package/esm2015/components/customer-user/customer-user-image/customer-user-image.component.js +3 -3
  13. package/esm2015/components/dimension/dimension-group-box/dimension-group-box.component.js +2 -2
  14. package/esm2015/components/employee/employee-address/employee-address.component.js +3 -3
  15. package/esm2015/components/employee/employee-profile/employee-profile.component.js +3 -3
  16. package/esm2015/components/employee/employee-profile-image/employee-profile-image.component.js +3 -3
  17. package/esm2015/components/employee/employee-user-info/employee-user-info.component.js +3 -3
  18. package/esm2015/components/system-user/system-user-profile/system-user-profile.component.js +3 -3
  19. package/esm2015/components/vendor-user/vendor-user-address/vendor-user-address.component.js +3 -3
  20. package/esm2015/components/vendor-user/vendor-user-details/vendor-user-details.component.js +3 -3
  21. package/esm2015/components/vendor-user/vendor-user-general/vendor-user-general.component.js +3 -3
  22. package/esm2015/components/vendor-user/vendor-user-image/vendor-user-image.component.js +3 -3
  23. package/esm2015/lib/services/mobicloud-core.service.js +79 -3
  24. package/esm2015/lib/types/application-details.js +5 -1
  25. package/esm2015/lib/utils.js +11 -1
  26. package/fesm2015/mobicloud-core-components.js +27 -27
  27. package/fesm2015/mobicloud-core-components.js.map +1 -1
  28. package/fesm2015/mobicloud-core.js +220 -132
  29. package/fesm2015/mobicloud-core.js.map +1 -1
  30. package/lib/services/mobicloud-core.service.d.ts +10 -1
  31. package/lib/types/application-details.d.ts +10 -0
  32. package/lib/utils.d.ts +2 -0
  33. package/mobicloud-core.metadata.json +1 -1
  34. package/package.json +1 -1
@@ -1512,8 +1512,8 @@
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); });
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)); });
1515
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
1516
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (_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"),
1519
1519
  withCredentials: true,
@@ -1693,8 +1693,8 @@
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); });
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)); });
1696
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
1697
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (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
  };
1700
1700
  EmployeeProfileComponent.prototype.initializeDataSources = function () {
@@ -1925,8 +1925,8 @@
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); });
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)); });
1928
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
1929
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (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
  };
1932
1932
  EmployeeProfileImageComponent.prototype.getProfileImageUrl = function () {
@@ -2024,7 +2024,7 @@
2024
2024
  this.coreService.applicationDetailsObservable.subscribe(function (p) { return _this.certificateLogin = p === null || p === void 0 ? void 0 : p.CertificateLogin; });
2025
2025
  this.coreService.mobiUserProfileObservable.subscribe(function (p) {
2026
2026
  var _a;
2027
- _this.fullEditAllowed = ((_a = p === null || p === void 0 ? void 0 : p.isOrganizationUser) !== null && _a !== void 0 ? _a : false);
2027
+ _this.fullEditAllowed = (_a = _this.coreService.isMasterOrganizationUserAuthenticated()) !== null && _a !== void 0 ? _a : false;
2028
2028
  if (_this.fullEditAllowed) {
2029
2029
  delete _this.editorOptions_Status.readOnly;
2030
2030
  delete _this.editorOptions_AppLogin.readOnly;
@@ -2032,7 +2032,7 @@
2032
2032
  delete _this.editorOptions_EmployeeNumber.readOnly;
2033
2033
  }
2034
2034
  });
2035
- 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)); });
2035
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.employee) === null || _a === void 0 ? void 0 : _a.Id)); });
2036
2036
  this.employee_store = new ODataStore__default['default']({
2037
2037
  url: this.cloudDataService.getMobiManagementODataUrl("Employee"),
2038
2038
  withCredentials: true,
@@ -2233,8 +2233,8 @@
2233
2233
  SystemUserProfileComponent.prototype.ngOnInit = function () {
2234
2234
  var _this = this;
2235
2235
  this.coreService.applicationDetailsObservable.subscribe(function (p) { return _this.certificateLogin = p === null || p === void 0 ? void 0 : p.CertificateLogin; });
2236
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationAdmin); });
2237
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = ((p === null || p === void 0 ? void 0 : p.isOrganizationAdmin) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.systemUser) === null || _a === void 0 ? void 0 : _a.Id)); });
2236
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationAdminAuthenticated(); });
2237
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.editAllowed = (_this.coreService.isMasterOrganizationAdminAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.systemUser) === null || _a === void 0 ? void 0 : _a.Id)); });
2238
2238
  this.systemUser_store = new ODataStore__default['default']({
2239
2239
  url: this.cloudDataService.getMobiManagementODataUrl("SystemUser"),
2240
2240
  withCredentials: true,
@@ -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.isMasterOrganizationUserAuthenticated(); });
2400
+ 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)); });
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.isMasterOrganizationUserAuthenticated(); });
2589
+ 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)); });
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.isMasterOrganizationUserAuthenticated(); });
2754
+ 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)); });
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.isMasterOrganizationUserAuthenticated(); });
2960
+ 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)); });
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.isMasterOrganizationUserAuthenticated(); });
3028
+ 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)); });
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.isMasterOrganizationUserAuthenticated(); });
3217
+ 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)); });
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.isMasterOrganizationUserAuthenticated(); });
3382
+ 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)); });
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.isMasterOrganizationUserAuthenticated(); });
3588
+ 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)); });
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 () {
@@ -5072,7 +5072,7 @@
5072
5072
  });
5073
5073
  DimensionGroupBoxComponent.prototype.ngOnInit = function () {
5074
5074
  var _this = this;
5075
- this.cloudDataService.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = p === null || p === void 0 ? void 0 : p.isOrganizationUser; });
5075
+ this.cloudDataService.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.cloudDataService.coreService.isMasterOrganizationUserAuthenticated(); });
5076
5076
  this.initializeDataStore();
5077
5077
  };
5078
5078
  DimensionGroupBoxComponent.prototype.initializeDataStore = function () {