mobicloud-core 1.0.54 → 1.0.58

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 +663 -29
  2. package/bundles/mobicloud-core-components.umd.js.map +1 -1
  3. package/bundles/mobicloud-core-components.umd.min.js +2 -2
  4. package/bundles/mobicloud-core-components.umd.min.js.map +1 -1
  5. package/bundles/mobicloud-core.umd.js.map +1 -1
  6. package/bundles/mobicloud-core.umd.min.js.map +1 -1
  7. package/components/mobicloud-core-components.metadata.json +1 -1
  8. package/components/public-api.d.ts +4 -0
  9. package/components/vendor-user/vendor-user-address/vendor-user-address.component.d.ts +46 -0
  10. package/components/vendor-user/vendor-user-details/vendor-user-details.component.d.ts +44 -0
  11. package/components/vendor-user/vendor-user-general/vendor-user-general.component.d.ts +53 -0
  12. package/components/vendor-user/vendor-user-image/vendor-user-image.component.d.ts +31 -0
  13. package/esm2015/components/content-toolbar/content-toolbar.component.js +3 -3
  14. package/esm2015/components/mobicloud-components.module.js +7 -3
  15. package/esm2015/components/public-api.js +5 -1
  16. package/esm2015/components/vendor-user/vendor-user-address/vendor-user-address.component.js +185 -0
  17. package/esm2015/components/vendor-user/vendor-user-details/vendor-user-details.component.js +172 -0
  18. package/esm2015/components/vendor-user/vendor-user-general/vendor-user-general.component.js +222 -0
  19. package/esm2015/components/vendor-user/vendor-user-image/vendor-user-image.component.js +68 -0
  20. package/esm2015/lib/types/ui-types.js +1 -1
  21. package/fesm2015/mobicloud-core-components.js +618 -6
  22. package/fesm2015/mobicloud-core-components.js.map +1 -1
  23. package/fesm2015/mobicloud-core.js.map +1 -1
  24. package/lib/types/ui-types.d.ts +10 -9
  25. package/package.json +1 -1
@@ -350,8 +350,8 @@
350
350
  ContentToolbarComponent.decorators = [
351
351
  { type: core.Component, args: [{
352
352
  selector: 'mobicloud-content-toolbar',
353
- template: "<mat-toolbar class=\"content-toolbar\" *ngIf=\"toobarEnabled\">\n <mat-toolbar-row class=\"content-toolbar-row\">\n <ng-container *ngIf=\"preToolbarItems\"> \n <ng-container *ngFor=\"let toolbarItem of preToolbarItems\">\n <button aria-label=\"button\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-pre-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <mat-icon svgIcon=\"{{toolbarItem.svg}}\" class=\"content-pre-toolbar-button-icon\"></mat-icon>\n </button>\n </ng-container>\n <!-- <mat-divider vertical style=\"height:100%\"></mat-divider> -->\n </ng-container> \n <div class=\"content-toolbar-title\">\n <!-- <mat-icon svgIcon=\"{{toobarTitleIcon}}\" class=\"content-toolbar-title-icon\" *ngIf=\"toobarTitleIcon\"></mat-icon> -->\n <svg-icon [name]=\"toobarTitleIcon\" svgClass=\"content-toolbar-title-icon\" *ngIf=\"toobarTitleIcon\"></svg-icon>\n {{toobarTitle}}\n </div>\n \n <ng-content></ng-content>\n <span class=\"content-toolbar-divider\"></span>\n \n <ng-container *ngIf=\"toolbarItems\"> \n <ng-container *ngFor=\"let toolbarItem of toolbarItems\">\n <button aria-label=\"button\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <!-- <mat-icon svgIcon=\"{{toolbarItem.svg}}\" class=\"content-toolbar-button-icon\"></mat-icon> -->\n <svg-icon name=\"{{toolbarItem.svg}}\" svgClass=\"content-toolbar-button-icon\" viewBox=\"0 0 48 48\"></svg-icon>\n </button>\n </ng-container>\n <!-- <mat-divider vertical style=\"height:100%\"></mat-divider> -->\n </ng-container>\n </mat-toolbar-row>\n </mat-toolbar> ",
354
- styles: [".content-toolbar{background-color:transparent!important;min-height:32px!important;max-height:32px!important;margin-bottom:14px}.content-toolbar-row{padding:0}.content-pre-toolbar-button{background-color:transparent!important;width:32px;height:32px;min-width:unset!important;padding:0!important;margin-right:10px!important}.content-pre-toolbar-button-icon{margin-bottom:8px;width:20px;fill:var(--default-toolbar-iconcolor-nobackground)}.content-toolbar-title{font-size:large;font-weight:600;color:var(--default-pagecaption-textcolor);display:flex}.content-toolbar-title-icon{height:20px;width:20px;margin-right:8px;margin-top:5px;fill:var(--default-pagecaption-iconcolor)}.content-toolbar-divider{flex:1 1 auto}.content-toolbar-button{background-color:var(--default-toolbar-iconcolor-withbackground)!important;width:32px;height:32px;min-width:unset!important;padding:0!important;margin-left:8px!important}.content-toolbar-button-icon{pointer-events:none;fill:var(--default-toolbar-iconcolor);width:16px;height:16px;margin-top:6px}"]
353
+ template: "<mat-toolbar class=\"content-toolbar\" *ngIf=\"toobarEnabled\">\n <mat-toolbar-row class=\"content-toolbar-row\">\n <ng-container *ngIf=\"preToolbarItems\"> \n <ng-container *ngFor=\"let toolbarItem of preToolbarItems\">\n <button aria-label=\"button\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-pre-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <mat-icon svgIcon=\"{{toolbarItem.svg}}\" class=\"content-pre-toolbar-button-icon\"></mat-icon>\n </button>\n </ng-container>\n <!-- <mat-divider vertical style=\"height:100%\"></mat-divider> -->\n </ng-container> \n <div class=\"content-toolbar-title\">\n <!-- <mat-icon svgIcon=\"{{toobarTitleIcon}}\" class=\"content-toolbar-title-icon\" *ngIf=\"toobarTitleIcon\"></mat-icon> -->\n <svg-icon [name]=\"toobarTitleIcon\" svgClass=\"content-toolbar-title-icon\" *ngIf=\"toobarTitleIcon\"></svg-icon>\n {{toobarTitle}}\n </div>\n \n <ng-content></ng-content>\n <span class=\"content-toolbar-divider\"></span>\n \n <ng-container *ngIf=\"toolbarItems\"> \n <ng-container *ngFor=\"let toolbarItem of toolbarItems\">\n \n <ng-container *ngIf=\"toolbarItem.children\">\n <button aria-label=\"Button\" [matMenuTriggerFor]=\"toolbarChildMenu\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <svg-icon name=\"{{toolbarItem.svg}}\" svgClass=\"content-toolbar-button-icon\" viewBox=\"0 0 48 48\"></svg-icon>\n </button>\n <mat-menu #toolbarChildMenu>\n <ng-container *ngFor=\"let childToolbarItem of toolbarItem.children\">\n <button aria-label=\"button\" mat-menu-item [routerLink]=\"childToolbarItem.link ? childToolbarItem.link : null\" (click)=\"[childToolbarItem.click ? onToolbarItemClick(childToolbarItem.click, childToolbarItem.click_paramters) : null]\">\n <mat-icon [svgIcon]=\"childToolbarItem.svg\" class=\"content-toolbar-menu-item-icon\"></mat-icon>\n <span>{{childToolbarItem.caption}}</span>\n </button>\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngIf=\"!toolbarItem.children\">\n <button aria-label=\"button\" mat-raised-button appMaterialElevation [routerLink]=\"toolbarItem.link ? toolbarItem.link : null\" (click)=\"[toolbarItem.click ? onToolbarItemClick(toolbarItem.click, toolbarItem.click_paramters) : null]\" class=\"content-toolbar-button\" matTooltip=\"{{toolbarItem.caption}}\">\n <svg-icon name=\"{{toolbarItem.svg}}\" svgClass=\"content-toolbar-button-icon\" viewBox=\"0 0 48 48\"></svg-icon>\n </button>\n </ng-container>\n\n </ng-container>\n <!-- <mat-divider vertical style=\"height:100%\"></mat-divider> -->\n </ng-container>\n </mat-toolbar-row>\n</mat-toolbar> ",
354
+ styles: [".content-toolbar{background-color:transparent!important;min-height:32px!important;max-height:32px!important;margin-bottom:14px}.content-toolbar-row{padding:0}.content-pre-toolbar-button{background-color:transparent!important;width:32px;height:32px;min-width:unset!important;padding:0!important;margin-right:10px!important}.content-pre-toolbar-button-icon{margin-bottom:8px;width:20px;fill:var(--default-toolbar-iconcolor-nobackground)}.content-toolbar-title{font-size:large;font-weight:600;color:var(--default-pagecaption-textcolor);display:flex}.content-toolbar-title-icon{height:20px;width:20px;margin-right:8px;margin-top:5px;fill:var(--default-pagecaption-iconcolor)}.content-toolbar-divider{flex:1 1 auto}.content-toolbar-button{background-color:var(--default-toolbar-iconcolor-withbackground)!important;width:32px;height:32px;min-width:unset!important;padding:0!important;margin-left:8px!important}.content-toolbar-button-icon{pointer-events:none;fill:var(--default-toolbar-iconcolor);width:16px;height:16px;margin-top:6px}.content-toolbar-menu-item-icon{fill:var(--default-popup-iconcolor)}"]
355
355
  },] }
356
356
  ];
357
357
  ContentToolbarComponent.ctorParameters = function () { return []; };
@@ -3008,6 +3008,636 @@
3008
3008
  };
3009
3009
  var templateObject_1$b;
3010
3010
 
3011
+ var VendorUserAddressComponent = /** @class */ (function () {
3012
+ function VendorUserAddressComponent(coreService, cloudDataService, matDialog) {
3013
+ this.coreService = coreService;
3014
+ this.cloudDataService = cloudDataService;
3015
+ this.matDialog = matDialog;
3016
+ this.user_expands = ['Vendor'];
3017
+ this.editAllowed = false;
3018
+ this.fullEditAllowed = false;
3019
+ this.inEditMode = false;
3020
+ this.isLoadingData = false;
3021
+ this.loadingText = $localize(templateObject_1$c || (templateObject_1$c = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3022
+ this.hasErrors = false;
3023
+ this.errorText = "";
3024
+ this.userChanged = new core.EventEmitter();
3025
+ this._countryId = undefined;
3026
+ this._selectedCountry = undefined;
3027
+ this._countryOpened = false;
3028
+ }
3029
+ VendorUserAddressComponent.prototype.ngOnInit = function () {
3030
+ var _this = this;
3031
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
3032
+ 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)); });
3033
+ this.user_store = new ODataStore__default['default']({
3034
+ url: this.cloudDataService.getMobiManagementODataUrl("VendorUser"),
3035
+ withCredentials: true,
3036
+ key: "Id",
3037
+ keyType: "Guid",
3038
+ version: 4,
3039
+ });
3040
+ this.createCountryDataSource();
3041
+ };
3042
+ VendorUserAddressComponent.prototype.ngOnChanges = function (changes) {
3043
+ var _a;
3044
+ if (((_a = changes['user']) === null || _a === void 0 ? void 0 : _a.currentValue) && changes['user'].currentValue != this.formUser) {
3045
+ this.formUser = this.user;
3046
+ this.onUserChanged(this.formUser);
3047
+ }
3048
+ };
3049
+ VendorUserAddressComponent.prototype.onUserChanged = function (vend) {
3050
+ var _a, _b, _c;
3051
+ this._countryId = (_c = (_b = (_a = this.formUser) === null || _a === void 0 ? void 0 : _a.Address) === null || _b === void 0 ? void 0 : _b.Country) === null || _c === void 0 ? void 0 : _c.toString();
3052
+ if (this.datagrids) {
3053
+ this.datagrids.forEach(function (dataGrid) {
3054
+ var _a;
3055
+ (_a = dataGrid.instance) === null || _a === void 0 ? void 0 : _a.refresh();
3056
+ });
3057
+ }
3058
+ };
3059
+ VendorUserAddressComponent.prototype.getUser = function () {
3060
+ var _this = this;
3061
+ var _a;
3062
+ if (((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) && this.user_store) {
3063
+ this.isLoadingData = true;
3064
+ this.loadingText = $localize(templateObject_2$a || (templateObject_2$a = __makeTemplateObject([":@@Loading-Text-VendorUser:Loading user..."], [":@@Loading-Text-VendorUser:Loading user..."])));
3065
+ this.user_store.byKey(this.user.Id, { expand: this.user_expands }).then(function (dataItem) {
3066
+ _this.formUser = Object.assign(new api.VendorUser(), dataItem[0]);
3067
+ _this.user = _this.formUser;
3068
+ _this.onUserChanged(_this.user);
3069
+ _this.isLoadingData = false;
3070
+ _this.hasErrors = false;
3071
+ _this.errorText = "";
3072
+ _this.loadingText = $localize(templateObject_3$a || (templateObject_3$a = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3073
+ _this.userChanged.emit(_this.user);
3074
+ }, function (error) {
3075
+ console.log(error);
3076
+ _this.isLoadingData = false;
3077
+ _this.hasErrors = true;
3078
+ _this.errorText = error;
3079
+ _this.loadingText = $localize(templateObject_4$a || (templateObject_4$a = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3080
+ });
3081
+ }
3082
+ };
3083
+ VendorUserAddressComponent.prototype.onRetryClick = function () {
3084
+ this.getUser();
3085
+ this.inEditMode = false;
3086
+ };
3087
+ VendorUserAddressComponent.prototype.onEditClick = function () {
3088
+ var _a, _b;
3089
+ (_b = (_a = this.form.instance) === null || _a === void 0 ? void 0 : _a.getEditor("Address.Street")) === null || _b === void 0 ? void 0 : _b.focus();
3090
+ this.inEditMode = true;
3091
+ };
3092
+ VendorUserAddressComponent.prototype.onSaveClick = function () {
3093
+ var validateResult = this.form.instance.validate();
3094
+ if (validateResult === null || validateResult === void 0 ? void 0 : validateResult.isValid) {
3095
+ this.saveUser();
3096
+ }
3097
+ };
3098
+ VendorUserAddressComponent.prototype.saveUser = function () {
3099
+ var _this = this;
3100
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
3101
+ if (((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) && this.user_store) {
3102
+ this.isLoadingData = true;
3103
+ this.loadingText = $localize(templateObject_5$a || (templateObject_5$a = __makeTemplateObject([":@@Updating-Text-VendorUser:Updating user..."], [":@@Updating-Text-VendorUser:Updating user..."])));
3104
+ var data = {
3105
+ Address: {
3106
+ Street: (_c = (_b = this.formUser) === null || _b === void 0 ? void 0 : _b.Address) === null || _c === void 0 ? void 0 : _c.Street,
3107
+ ZipCode: (_e = (_d = this.formUser) === null || _d === void 0 ? void 0 : _d.Address) === null || _e === void 0 ? void 0 : _e.ZipCode,
3108
+ City: (_g = (_f = this.formUser) === null || _f === void 0 ? void 0 : _f.Address) === null || _g === void 0 ? void 0 : _g.City,
3109
+ Country: this._countryId,
3110
+ State: (_j = (_h = this.formUser) === null || _h === void 0 ? void 0 : _h.Address) === null || _j === void 0 ? void 0 : _j.State
3111
+ },
3112
+ Phone: (_k = this.formUser) === null || _k === void 0 ? void 0 : _k.Phone
3113
+ };
3114
+ this.user_store.update(this.user.Id, data)
3115
+ .then(function (dataObj) {
3116
+ _this.getUser();
3117
+ _this.isLoadingData = false;
3118
+ _this.inEditMode = false;
3119
+ _this.loadingText = $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3120
+ }, function (error) {
3121
+ console.log(error);
3122
+ _this.isLoadingData = false;
3123
+ _this.loadingText = $localize(templateObject_7$a || (templateObject_7$a = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3124
+ MessageBox.showError({ title: $localize(templateObject_8$a || (templateObject_8$a = __makeTemplateObject([":@@Failed-Text-VendorUser:User update failed"], [":@@Failed-Text-VendorUser:User update failed"]))), message: error }, _this.matDialog)
3125
+ .subscribe(function (result) {
3126
+ });
3127
+ });
3128
+ }
3129
+ };
3130
+ VendorUserAddressComponent.prototype.onCancelEditClick = function () {
3131
+ this.getUser();
3132
+ this.inEditMode = false;
3133
+ };
3134
+ VendorUserAddressComponent.prototype.createCountryDataSource = function () {
3135
+ this.country_ds = new DataSource__default['default']({
3136
+ store: new ODataStore__default['default']({
3137
+ url: this.cloudDataService.getMobiManagementODataUrl("Country"),
3138
+ withCredentials: true,
3139
+ key: "Code2",
3140
+ keyType: "String",
3141
+ version: 4,
3142
+ }),
3143
+ sort: [
3144
+ { selector: "Name", desc: false }
3145
+ ],
3146
+ filter: ["Enabled", "=", true],
3147
+ requireTotalCount: true,
3148
+ map: function (dataItem) {
3149
+ return Object.assign(new mobicloudCore.Country(), dataItem);
3150
+ }
3151
+ });
3152
+ };
3153
+ VendorUserAddressComponent.prototype.countryChanged = function (args) {
3154
+ var _a, _b, _c;
3155
+ this._selectedCountry = ((_a = args.selectedRowsData) === null || _a === void 0 ? void 0 : _a.length) > 0 ? args.selectedRowsData[0] : undefined;
3156
+ this._countryId = (_b = this._selectedCountry) === null || _b === void 0 ? void 0 : _b.Code2;
3157
+ if ((_c = this.formUser) === null || _c === void 0 ? void 0 : _c.Address)
3158
+ this.formUser.Address.Country = this._countryId;
3159
+ };
3160
+ return VendorUserAddressComponent;
3161
+ }());
3162
+ VendorUserAddressComponent.decorators = [
3163
+ { type: core.Component, args: [{
3164
+ selector: 'mobicloud-vendor-user-address',
3165
+ template: "<mobicloud-group-box title=\"Address\" i18n-title=\"@@CaptionHeader-Address\" [width]=\"[width]\" [contentheight]=[contentheight] class=\"employeeAddressForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <dx-form #form id=\"form\"\n [formData]=\"formUser\"\n [readOnly]=\"!inEditMode\"\n [showColonAfterLabel]=\"true\"\n labelLocation=\"top\"\n [showValidationSummary]=\"false\" \n [showRequiredMark] = \"false\"\n validationGroup=\"formUserData_Address\">\n\n <dxi-item itemType=\"group\" caption=\"\" [colCount]=\"2\">\n <dxi-item dataField=\"Address.Street\" [colSpan]=\"2\" [editorOptions]=\"{ inputAttr: {'autocomplete': 'address-line1'} }\">\n <dxo-label text=\"Address\" i18n-text=\"@@FieldCaption-Address\"></dxo-label>\n </dxi-item>\n <dxi-item dataField=\"Address.ZipCode\" [editorOptions]=\"{ elementAttr: {autocomplete: 'postal-code'} }\">\n <dxo-label text=\"Zip code\" i18n-text=\"@@FieldCaption-ZipCode\"></dxo-label>\n </dxi-item>\n <dxi-item dataField=\"Address.City\" [editorOptions]=\"{ inputAttr: {'autocomplete': 'address-level2'} }\">\n <dxo-label text=\"City\" i18n-text=\"@@FieldCaption-City\"></dxo-label>\n </dxi-item>\n \n <dxi-item dataField=\"Address.Country\">\n <dxo-label text=\"Country\" i18n-text=\"@@FieldCaption-Country\"></dxo-label> \n <div *dxTemplate=\"let data of 'content'\">\n <dx-drop-down-box [deferRendering]=\"true\" [showClearButton]=\"true\" [readOnly]=\"!inEditMode\" fieldTemplate=\"fieldTemplate\"\n [dataSource]=\"country_ds\" \n [(value)]=\"_countryId\"\n valueExpr=\"Code2\" \n displayExpr=\"LocalName\" \n [(opened)]=\"_countryOpened\"> \n <dxo-drop-down-options title=\"Countries\" i18n-title=\"@@FieldCaption-Countries\" [showTitle]=\"true\" [fullScreen]=\"false\" [showCloseButton]=\"true\">\n </dxo-drop-down-options> \n <dx-data-grid [filterRow]=\"{ visible: true }\" [scrolling]=\"{ mode: 'standard' }\" [selection]=\"{ mode: 'single' }\" height=\"100%\" [hoverStateEnabled]=\"true\"\n [dataSource]=\"country_ds\"\n [(selectedRowKeys)]=\"_countryId\"\n (onSelectionChanged)=\"countryChanged($event)\"\n (onRowClick)=\"_countryOpened = false\">\n <dxi-column dataField=\"Code2\" [allowFiltering]=\"false\" [allowSorting]=\"false\" cellTemplate=\"imgCellTemplate\" all [width]=\"50\" caption=\"\"></dxi-column>\n <dxi-column dataField=\"LocalName\" i18n-caption=\"@@GridColumn-Name\" caption=\"Name\"></dxi-column>\n <dxo-paging [enabled]=\"false\"></dxo-paging>\n <div *dxTemplate=\"let data of 'imgCellTemplate'\">\n <img alt=\"\"src=\"{{cloudDataService.FlagUrl}}/{{data.value}}-32.png\"/>\n </div>\n </dx-data-grid>\n <div *dxTemplate=\"let data of 'fieldTemplate'\">\n <div class=\"country-edit-item\">\n <div class=\"country-edit-image\"><img alt=\"\"src=\"{{cloudDataService.FlagUrl}}/{{_selectedCountry?.Code2}}-32.png\" *ngIf=\"_selectedCountry?.Code2\"></div>\n <div class=\"country-edit-text\">\n <dx-text-box stylingMode=\"filled\" [value]=\"_selectedCountry?.LocalName\" [readOnly]=\"true\"></dx-text-box>\n </div>\n </div>\n </div>\n </dx-drop-down-box>\n </div> \n <!-- <dxi-validation-rule type=\"required\" message=\"Country is required\"></dxi-validation-rule> -->\n </dxi-item> \n \n <dxi-item dataField=\"Address.State\" [editorOptions]=\"{ inputAttr: {'autocomplete': 'address-level1'} }\">\n <dxo-label text=\"State\" i18n-text=\"@@FieldCaption-State\"></dxo-label> \n </dxi-item>\n <dxi-item dataField=\"Phone\" [colSpan]=\"2\" [editorOptions]=\"{ inputAttr: {'autocomplete': 'tel'} }\">\n <dxo-label text=\"Phone\" i18n-text=\"@@FieldCaption-Phone\"></dxo-label> \n </dxi-item>\n </dxi-item> \n \n </dx-form>\n\n</mobicloud-group-box>",
3166
+ styles: [""]
3167
+ },] }
3168
+ ];
3169
+ VendorUserAddressComponent.ctorParameters = function () { return [
3170
+ { type: mobicloudCore.MobicloudCoreService },
3171
+ { type: api.MobiCloudDataService },
3172
+ { type: dialog.MatDialog }
3173
+ ]; };
3174
+ VendorUserAddressComponent.propDecorators = {
3175
+ user: [{ type: core.Input }],
3176
+ user_expands: [{ type: core.Input }],
3177
+ editAllowed: [{ type: core.Input }],
3178
+ inEditMode: [{ type: core.Input }],
3179
+ width: [{ type: core.Input }],
3180
+ contentheight: [{ type: core.Input }],
3181
+ isLoadingData: [{ type: core.Input }],
3182
+ loadingText: [{ type: core.Input }],
3183
+ hasErrors: [{ type: core.Input }],
3184
+ errorText: [{ type: core.Input }],
3185
+ userChanged: [{ type: core.Output }],
3186
+ form: [{ type: core.ViewChild, args: ['form',] }],
3187
+ datagrids: [{ type: core.ViewChildren, args: [devextremeAngular.DxDataGridComponent,] }]
3188
+ };
3189
+ var templateObject_1$c, templateObject_2$a, templateObject_3$a, templateObject_4$a, templateObject_5$a, templateObject_6$a, templateObject_7$a, templateObject_8$a;
3190
+
3191
+ var VendorUserDetailsComponent = /** @class */ (function () {
3192
+ function VendorUserDetailsComponent(coreService, cloudDataService, matDialog, usernameValidator) {
3193
+ this.coreService = coreService;
3194
+ this.cloudDataService = cloudDataService;
3195
+ this.matDialog = matDialog;
3196
+ this.usernameValidator = usernameValidator;
3197
+ this.user_expands = ['Vendor'];
3198
+ this.editAllowed = false;
3199
+ this.fullEditAllowed = false;
3200
+ this.inEditMode = false;
3201
+ this.isLoadingData = false;
3202
+ this.loadingText = $localize(templateObject_1$d || (templateObject_1$d = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3203
+ this.hasErrors = false;
3204
+ this.errorText = "";
3205
+ this.userChanged = new core.EventEmitter();
3206
+ this.status_ds = [
3207
+ { id: false, description: $localize(templateObject_2$b || (templateObject_2$b = __makeTemplateObject([":@@@FieldValue-InActive:Inactive"], [":@@@FieldValue-InActive:Inactive"]))) },
3208
+ { id: true, description: $localize(templateObject_3$b || (templateObject_3$b = __makeTemplateObject([":@@@FieldValue-Active:Active"], [":@@@FieldValue-Active:Active"]))) }
3209
+ ];
3210
+ this.loginType_ds = [
3211
+ { id: false, description: $localize(templateObject_4$b || (templateObject_4$b = __makeTemplateObject([":@@FieldValue-AppLogin-Regular:Regular"], [":@@FieldValue-AppLogin-Regular:Regular"]))) },
3212
+ { id: true, description: $localize(templateObject_5$b || (templateObject_5$b = __makeTemplateObject([":@@FieldValue-AppLogin-AppUser: App user"], [":@@FieldValue-AppLogin-AppUser: App user"]))) }
3213
+ ];
3214
+ this.boolean_ds = [
3215
+ { id: false, description: $localize(templateObject_6$b || (templateObject_6$b = __makeTemplateObject([":@@FieldValue-No:No"], [":@@FieldValue-No:No"]))) },
3216
+ { id: true, description: $localize(templateObject_7$b || (templateObject_7$b = __makeTemplateObject([":@@FieldValue-Yes:Yes"], [":@@FieldValue-Yes:Yes"]))) }
3217
+ ];
3218
+ this.usernameValidation = this.usernameValidation.bind(this);
3219
+ }
3220
+ VendorUserDetailsComponent.prototype.ngOnInit = function () {
3221
+ var _this = this;
3222
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
3223
+ 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)); });
3224
+ this.user_store = new ODataStore__default['default']({
3225
+ url: this.cloudDataService.getMobiManagementODataUrl("VendorUser"),
3226
+ withCredentials: true,
3227
+ key: "Id",
3228
+ keyType: "Guid",
3229
+ version: 4,
3230
+ });
3231
+ };
3232
+ VendorUserDetailsComponent.prototype.ngOnChanges = function (changes) {
3233
+ var _a;
3234
+ if (((_a = changes['user']) === null || _a === void 0 ? void 0 : _a.currentValue) && changes['user'].currentValue != this.formUser) {
3235
+ this.formUser = this.user;
3236
+ this.onUserChanged(this.formUser);
3237
+ }
3238
+ };
3239
+ VendorUserDetailsComponent.prototype.onUserChanged = function (cust) {
3240
+ if (this.datagrids) {
3241
+ this.datagrids.forEach(function (dataGrid) {
3242
+ var _a;
3243
+ (_a = dataGrid.instance) === null || _a === void 0 ? void 0 : _a.refresh();
3244
+ });
3245
+ }
3246
+ };
3247
+ VendorUserDetailsComponent.prototype.getUser = function () {
3248
+ var _this = this;
3249
+ var _a;
3250
+ if (((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) && this.user_store) {
3251
+ this.isLoadingData = true;
3252
+ this.loadingText = $localize(templateObject_8$b || (templateObject_8$b = __makeTemplateObject([":@@Loading-Text-VendorUser:Loading user..."], [":@@Loading-Text-VendorUser:Loading user..."])));
3253
+ this.user_store.byKey(this.user.Id, { expand: this.user_expands }).then(function (dataItem) {
3254
+ _this.formUser = Object.assign(new api.VendorUser(), dataItem[0]);
3255
+ _this.user = _this.formUser;
3256
+ _this.onUserChanged(_this.user);
3257
+ _this.isLoadingData = false;
3258
+ _this.hasErrors = false;
3259
+ _this.errorText = "";
3260
+ _this.loadingText = $localize(templateObject_9$8 || (templateObject_9$8 = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3261
+ _this.userChanged.emit(_this.user);
3262
+ }, function (error) {
3263
+ console.log(error);
3264
+ _this.isLoadingData = false;
3265
+ _this.hasErrors = true;
3266
+ _this.errorText = error;
3267
+ _this.loadingText = $localize(templateObject_10$8 || (templateObject_10$8 = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3268
+ });
3269
+ }
3270
+ };
3271
+ VendorUserDetailsComponent.prototype.onRetryClick = function () {
3272
+ this.getUser();
3273
+ this.inEditMode = false;
3274
+ };
3275
+ VendorUserDetailsComponent.prototype.onEditClick = function () {
3276
+ var _a, _b;
3277
+ (_b = (_a = this.form.instance) === null || _a === void 0 ? void 0 : _a.getEditor("Active")) === null || _b === void 0 ? void 0 : _b.focus();
3278
+ this.inEditMode = true;
3279
+ };
3280
+ VendorUserDetailsComponent.prototype.onSaveClick = function () {
3281
+ var validateResult = this.form.instance.validate();
3282
+ if (validateResult === null || validateResult === void 0 ? void 0 : validateResult.isValid) {
3283
+ this.saveUser();
3284
+ }
3285
+ };
3286
+ VendorUserDetailsComponent.prototype.saveUser = function () {
3287
+ var _this = this;
3288
+ var _a, _b, _c, _d, _e, _f;
3289
+ if (((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) && this.user_store) {
3290
+ this.isLoadingData = true;
3291
+ this.loadingText = $localize(templateObject_11$7 || (templateObject_11$7 = __makeTemplateObject([":@@Updating-Text-VendorUser:Updating user..."], [":@@Updating-Text-VendorUser:Updating user..."])));
3292
+ var update_values = {
3293
+ Email: (_b = this.formUser) === null || _b === void 0 ? void 0 : _b.Email,
3294
+ ResourceColor: (_c = this.formUser) === null || _c === void 0 ? void 0 : _c.ResourceColor
3295
+ };
3296
+ if (this.fullEditAllowed) {
3297
+ update_values.Active = (_d = this.formUser) === null || _d === void 0 ? void 0 : _d.Active;
3298
+ update_values.Substitute = (_e = this.formUser) === null || _e === void 0 ? void 0 : _e.Substitute;
3299
+ }
3300
+ update_values.Username = (_f = this.formUser) === null || _f === void 0 ? void 0 : _f.Username;
3301
+ this.user_store.update(this.user.Id, update_values)
3302
+ .then(function (dataObj) {
3303
+ _this.getUser();
3304
+ _this.isLoadingData = false;
3305
+ _this.inEditMode = false;
3306
+ _this.loadingText = $localize(templateObject_12$7 || (templateObject_12$7 = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3307
+ }, function (error) {
3308
+ console.log(error);
3309
+ _this.isLoadingData = false;
3310
+ _this.loadingText = $localize(templateObject_13$5 || (templateObject_13$5 = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3311
+ MessageBox.showError({ title: $localize(templateObject_14$5 || (templateObject_14$5 = __makeTemplateObject([":@@Failed-Text-VendorUser:User update failed"], [":@@Failed-Text-VendorUser:User update failed"]))), message: error }, _this.matDialog)
3312
+ .subscribe(function (result) {
3313
+ });
3314
+ });
3315
+ }
3316
+ };
3317
+ VendorUserDetailsComponent.prototype.onCancelEditClick = function () {
3318
+ this.getUser();
3319
+ this.inEditMode = false;
3320
+ };
3321
+ VendorUserDetailsComponent.prototype.usernameValidation = function (params) {
3322
+ var _a, _b;
3323
+ if ((_b = (_a = this.user) === null || _a === void 0 ? void 0 : _a.Vendor) === null || _b === void 0 ? void 0 : _b.Id)
3324
+ return this.usernameValidator.usernameValidation_vendor_devextreme(this.user.Vendor.Id, params === null || params === void 0 ? void 0 : params.value, this.user.Id);
3325
+ return Promise.resolve();
3326
+ };
3327
+ return VendorUserDetailsComponent;
3328
+ }());
3329
+ VendorUserDetailsComponent.decorators = [
3330
+ { type: core.Component, args: [{
3331
+ selector: 'mobicloud-vendor-user-details',
3332
+ template: "<mobicloud-group-box title=\"User Info\" i18n-title=\"@@CaptionHeader-UserInfo\" [width]=\"[width]\" [contentheight]=[contentheight] class=\"employeeUserInfoForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n \n <form>\n <dx-form #form id=\"form\"\n [formData]=\"formUser\"\n [readOnly]=\"!inEditMode\"\n [showColonAfterLabel]=\"true\"\n labelLocation=\"top\"\n [showValidationSummary]=\"false\" \n [showRequiredMark] = \"false\"\n validationGroup=\"formUserData_UserInfo\">\n \n <dxi-item itemType=\"group\" caption=\"\" [colCount]=\"2\">\n <dxi-item dataField=\"Active\" editorType=\"dxSelectBox\" [editorOptions]=\"{ dataSource: status_ds, valueExpr: 'id', displayExpr: 'description', readOnly: !fullEditAllowed }\">\n <dxo-label text=\"Status\" i18n-text=\"@@FieldCaption-Status\"></dxo-label>\n </dxi-item>\n\n\n <dxi-item dataField=\"Username\">\n <dxo-label text=\"Username\" i18n-text=\"@@FieldCaption-Username\"></dxo-label>\n <dxi-validation-rule type=\"required\" message=\"Username is required\" i18n-message=\"@@ValidationText-Username-Required\" *ngIf=\"inEditMode\"></dxi-validation-rule>\n <dxi-validation-rule *ngIf=\"inEditMode\" \n type=\"async\" \n [validationCallback]=\"usernameValidation\">\n </dxi-validation-rule> \n </dxi-item>\n\n <dxi-item dataField=\"Substitute\" editorType=\"dxSelectBox\" [editorOptions]=\"{ dataSource: boolean_ds, valueExpr: 'id', displayExpr: 'description', readOnly: !fullEditAllowed }\">\n <dxo-label text=\"Substitute\" i18n-text=\"@@FieldCaption-Substitute\"></dxo-label>\n </dxi-item> \n\n <dxi-item dataField=\"ResourceColor\" editorType=\"dxColorBox\">\n <dxo-label text=\"Color\" i18n-text=\"@@FieldCaption-Color\"></dxo-label>\n </dxi-item> \n\n <dxi-item dataField=\"Email\" [colSpan]=\"2\" [editorOptions]=\"{ inputAttr: {'autocomplete': 'email'} }\">\n <dxo-label text=\"Email\" i18n-text=\"@@FieldCaption-Email\"></dxo-label> \n <dxi-validation-rule type=\"required\" message=\"Email is required\" i18n-message=\"@@ValidationText-Email-Required\"></dxi-validation-rule>\n <dxi-validation-rule type=\"email\" message=\"Email is invalid\" i18n-message=\"@@ValidationText-Email-Invalid\"></dxi-validation-rule> \n </dxi-item> \n\n </dxi-item> \n \n </dx-form>\n </form>\n</mobicloud-group-box>",
3333
+ styles: [""]
3334
+ },] }
3335
+ ];
3336
+ VendorUserDetailsComponent.ctorParameters = function () { return [
3337
+ { type: mobicloudCore.MobicloudCoreService },
3338
+ { type: api.MobiCloudDataService },
3339
+ { type: dialog.MatDialog },
3340
+ { type: mobicloudCore.UsernameValidator }
3341
+ ]; };
3342
+ VendorUserDetailsComponent.propDecorators = {
3343
+ user: [{ type: core.Input }],
3344
+ user_expands: [{ type: core.Input }],
3345
+ editAllowed: [{ type: core.Input }],
3346
+ inEditMode: [{ type: core.Input }],
3347
+ width: [{ type: core.Input }],
3348
+ contentheight: [{ type: core.Input }],
3349
+ isLoadingData: [{ type: core.Input }],
3350
+ loadingText: [{ type: core.Input }],
3351
+ hasErrors: [{ type: core.Input }],
3352
+ errorText: [{ type: core.Input }],
3353
+ userChanged: [{ type: core.Output }],
3354
+ form: [{ type: core.ViewChild, args: ['form',] }],
3355
+ datagrids: [{ type: core.ViewChildren, args: [devextremeAngular.DxDataGridComponent,] }]
3356
+ };
3357
+ var templateObject_1$d, templateObject_2$b, templateObject_3$b, templateObject_4$b, templateObject_5$b, templateObject_6$b, templateObject_7$b, templateObject_8$b, templateObject_9$8, templateObject_10$8, templateObject_11$7, templateObject_12$7, templateObject_13$5, templateObject_14$5;
3358
+
3359
+ var VendorUserGeneralComponent = /** @class */ (function () {
3360
+ function VendorUserGeneralComponent(coreService, cloudDataService, matDialog) {
3361
+ this.coreService = coreService;
3362
+ this.cloudDataService = cloudDataService;
3363
+ this.matDialog = matDialog;
3364
+ this.user_expands = ['Vendor'];
3365
+ this.editAllowed = false;
3366
+ this.fullEditAllowed = false;
3367
+ this.inEditMode = false;
3368
+ this.isLoadingData = false;
3369
+ this.loadingText = $localize(templateObject_1$e || (templateObject_1$e = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3370
+ this.hasErrors = false;
3371
+ this.errorText = "";
3372
+ this.userChanged = new core.EventEmitter();
3373
+ this.genderType_ds = [
3374
+ { id: api.GenderType.Unknown, description: $localize(templateObject_2$c || (templateObject_2$c = __makeTemplateObject([":@@EnumValue-Unknown:Unknown"], [":@@EnumValue-Unknown:Unknown"]))) },
3375
+ { id: api.GenderType.Male, description: $localize(templateObject_3$c || (templateObject_3$c = __makeTemplateObject([":@@EnumValue-Male:Male"], [":@@EnumValue-Male:Male"]))) },
3376
+ { id: api.GenderType.Female, description: $localize(templateObject_4$c || (templateObject_4$c = __makeTemplateObject([":@@EnumValue-Female:Female"], [":@@EnumValue-Female:Female"]))) },
3377
+ { id: api.GenderType.Other, description: $localize(templateObject_5$c || (templateObject_5$c = __makeTemplateObject([":@@EnumValue-Other:Other"], [":@@EnumValue-Other:Other"]))) }
3378
+ ];
3379
+ this._countryId = undefined;
3380
+ this._selectedCountry = undefined;
3381
+ this._countryOpened = false;
3382
+ this._locationId = undefined;
3383
+ this._locationOpened = false;
3384
+ }
3385
+ VendorUserGeneralComponent.prototype.ngOnInit = function () {
3386
+ var _this = this;
3387
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
3388
+ 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)); });
3389
+ this.initializeDataSources();
3390
+ };
3391
+ VendorUserGeneralComponent.prototype.initializeDataSources = function () {
3392
+ this.user_store = new ODataStore__default['default']({
3393
+ url: this.cloudDataService.getMobiManagementODataUrl("VendorUser"),
3394
+ withCredentials: true,
3395
+ key: "Id",
3396
+ keyType: "Guid",
3397
+ version: 4,
3398
+ });
3399
+ this.createCountryDataSource();
3400
+ this.createLocationDataSource();
3401
+ };
3402
+ VendorUserGeneralComponent.prototype.ngOnChanges = function (changes) {
3403
+ var _a;
3404
+ if (((_a = changes['user']) === null || _a === void 0 ? void 0 : _a.currentValue) && changes['user'].currentValue != this.formUser) {
3405
+ this.formUser = this.user;
3406
+ this.onUserChanged(this.formUser);
3407
+ }
3408
+ };
3409
+ VendorUserGeneralComponent.prototype.onUserChanged = function (cust) {
3410
+ var _a, _b, _c, _d;
3411
+ this._countryId = (_c = (_b = (_a = this.formUser) === null || _a === void 0 ? void 0 : _a.Address) === null || _b === void 0 ? void 0 : _b.Country) === null || _c === void 0 ? void 0 : _c.toString();
3412
+ this._locationId = (_d = this.formUser) === null || _d === void 0 ? void 0 : _d.LocationId;
3413
+ if (this.datagrids) {
3414
+ this.datagrids.forEach(function (dataGrid) {
3415
+ var _a;
3416
+ (_a = dataGrid.instance) === null || _a === void 0 ? void 0 : _a.refresh();
3417
+ });
3418
+ }
3419
+ };
3420
+ VendorUserGeneralComponent.prototype.getUser = function () {
3421
+ var _this = this;
3422
+ var _a;
3423
+ if (((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) && this.user_store) {
3424
+ this.isLoadingData = true;
3425
+ this.loadingText = $localize(templateObject_6$c || (templateObject_6$c = __makeTemplateObject([":@@Loading-Text-VendorUser:Loading user..."], [":@@Loading-Text-VendorUser:Loading user..."])));
3426
+ this.user_store.byKey(this.user.Id, { expand: this.user_expands }).then(function (dataItem) {
3427
+ _this.formUser = Object.assign(new api.VendorUser(), dataItem[0]);
3428
+ _this.user = _this.formUser;
3429
+ _this.onUserChanged(_this.user);
3430
+ _this.isLoadingData = false;
3431
+ _this.hasErrors = false;
3432
+ _this.errorText = "";
3433
+ _this.loadingText = $localize(templateObject_7$c || (templateObject_7$c = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3434
+ _this.userChanged.emit(_this.user);
3435
+ }, function (error) {
3436
+ console.log(error);
3437
+ _this.isLoadingData = false;
3438
+ _this.hasErrors = true;
3439
+ _this.errorText = error;
3440
+ _this.loadingText = $localize(templateObject_8$c || (templateObject_8$c = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3441
+ });
3442
+ }
3443
+ };
3444
+ VendorUserGeneralComponent.prototype.onRetryClick = function () {
3445
+ this.getUser();
3446
+ this.inEditMode = false;
3447
+ };
3448
+ VendorUserGeneralComponent.prototype.onEditClick = function () {
3449
+ var _a, _b;
3450
+ (_b = (_a = this.form.instance) === null || _a === void 0 ? void 0 : _a.getEditor("FirstName")) === null || _b === void 0 ? void 0 : _b.focus();
3451
+ this.inEditMode = true;
3452
+ };
3453
+ VendorUserGeneralComponent.prototype.onSaveClick = function () {
3454
+ var validateResult = this.form.instance.validate();
3455
+ if (validateResult === null || validateResult === void 0 ? void 0 : validateResult.isValid) {
3456
+ this.saveUser();
3457
+ }
3458
+ };
3459
+ VendorUserGeneralComponent.prototype.saveUser = function () {
3460
+ var _this = this;
3461
+ var _a, _b, _c, _d, _e, _f;
3462
+ if (((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) && this.user_store) {
3463
+ this.isLoadingData = true;
3464
+ this.loadingText = $localize(templateObject_9$9 || (templateObject_9$9 = __makeTemplateObject([":@@Updating-Text-VendorUser:Updating user..."], [":@@Updating-Text-VendorUser:Updating user..."])));
3465
+ var update_values = {
3466
+ FirstName: (_b = this.formUser) === null || _b === void 0 ? void 0 : _b.FirstName,
3467
+ LastName: (_c = this.formUser) === null || _c === void 0 ? void 0 : _c.LastName,
3468
+ Gender: (_d = this.formUser) === null || _d === void 0 ? void 0 : _d.Gender,
3469
+ Initials: (_e = this.formUser) === null || _e === void 0 ? void 0 : _e.Initials
3470
+ };
3471
+ if (this.fullEditAllowed) {
3472
+ update_values.LocationId = (_f = this.formUser) === null || _f === void 0 ? void 0 : _f.LocationId;
3473
+ }
3474
+ this.user_store.update(this.user.Id, update_values)
3475
+ .then(function (dataObj) {
3476
+ _this.getUser();
3477
+ _this.isLoadingData = false;
3478
+ _this.inEditMode = false;
3479
+ _this.loadingText = $localize(templateObject_10$9 || (templateObject_10$9 = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3480
+ }, function (error) {
3481
+ console.log(error);
3482
+ _this.isLoadingData = false;
3483
+ _this.loadingText = $localize(templateObject_11$8 || (templateObject_11$8 = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
3484
+ MessageBox.showError({ title: $localize(templateObject_12$8 || (templateObject_12$8 = __makeTemplateObject([":@@Failed-Text-VendorUser:User update failed"], [":@@Failed-Text-VendorUser:User update failed"]))), message: error }, _this.matDialog)
3485
+ .subscribe(function (result) {
3486
+ });
3487
+ });
3488
+ }
3489
+ };
3490
+ VendorUserGeneralComponent.prototype.onCancelEditClick = function () {
3491
+ this.getUser();
3492
+ this.inEditMode = false;
3493
+ };
3494
+ VendorUserGeneralComponent.prototype.createCountryDataSource = function () {
3495
+ this.country_ds = new DataSource__default['default']({
3496
+ store: new ODataStore__default['default']({
3497
+ url: this.cloudDataService.getMobiManagementODataUrl("Country"),
3498
+ withCredentials: true,
3499
+ key: "Code2",
3500
+ keyType: "String",
3501
+ version: 4,
3502
+ }),
3503
+ sort: [
3504
+ { selector: "Name", desc: false }
3505
+ ],
3506
+ filter: ["Enabled", "=", true],
3507
+ requireTotalCount: true,
3508
+ map: function (dataItem) {
3509
+ return Object.assign(new mobicloudCore.Country(), dataItem);
3510
+ }
3511
+ });
3512
+ };
3513
+ VendorUserGeneralComponent.prototype.countryChanged = function (args) {
3514
+ var _a, _b, _c;
3515
+ this._selectedCountry = ((_a = args.selectedRowsData) === null || _a === void 0 ? void 0 : _a.length) > 0 ? args.selectedRowsData[0] : undefined;
3516
+ this._countryId = (_b = this._selectedCountry) === null || _b === void 0 ? void 0 : _b.Code2;
3517
+ if ((_c = this.formUser) === null || _c === void 0 ? void 0 : _c.Address)
3518
+ this.formUser.Address.Country = this._countryId;
3519
+ };
3520
+ VendorUserGeneralComponent.prototype.createLocationDataSource = function () {
3521
+ this.location_ds = new DataSource__default['default']({
3522
+ store: new ODataStore__default['default']({
3523
+ url: this.cloudDataService.getMobiManagementODataUrl("Location"),
3524
+ withCredentials: true,
3525
+ key: "Id",
3526
+ keyType: "Guid",
3527
+ version: 4,
3528
+ }),
3529
+ sort: [
3530
+ { selector: "MetaData.Created", desc: false }
3531
+ ],
3532
+ requireTotalCount: true,
3533
+ map: function (dataItem) {
3534
+ var loc = Object.assign(new api.Location(), dataItem);
3535
+ return loc;
3536
+ }
3537
+ });
3538
+ };
3539
+ VendorUserGeneralComponent.prototype.locationChanged = function (args) {
3540
+ var _a, _b;
3541
+ this._locationId = ((_a = args.selectedRowsData) === null || _a === void 0 ? void 0 : _a.length) > 0 ? (_b = args.selectedRowsData[0]) === null || _b === void 0 ? void 0 : _b.Id : null;
3542
+ if (this.formUser)
3543
+ this.formUser.LocationId = this._locationId;
3544
+ };
3545
+ return VendorUserGeneralComponent;
3546
+ }());
3547
+ VendorUserGeneralComponent.decorators = [
3548
+ { type: core.Component, args: [{
3549
+ selector: 'mobicloud-vendor-user-general',
3550
+ template: "<mobicloud-group-box title=\"Profile\" i18n-title=\"@@CaptionHeader-Profile\" [width]=\"[width]\" [contentheight]=[contentheight] class=\"employeeProfileForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <dx-form #form id=\"form\"\n [formData]=\"formUser\"\n [readOnly]=\"!inEditMode\"\n [showColonAfterLabel]=\"true\"\n labelLocation=\"top\"\n [showValidationSummary]=\"false\" \n [showRequiredMark] = \"false\"\n validationGroup=\"formUserData_Profile\">\n\n <dxi-item itemType=\"group\" caption=\"\" [colCount]=\"2\">\n <dxi-item dataField=\"FirstName\" [editorOptions]=\"{ inputAttr: {'autocomplete': 'given-name'} }\">\n <dxo-label text=\"First name\" i18n-text=\"@@FieldCaption-FirstName\"></dxo-label> \n <dxi-validation-rule type=\"required\" message=\"First name is required\" i18n-message=\"@@ValidationText-FirstName-Required\"></dxi-validation-rule> \n </dxi-item>\n <dxi-item dataField=\"LastName\" [editorOptions]=\"{ inputAttr: {'autocomplete': 'family-name'} }\">\n <dxo-label text=\"Last name\" i18n-text=\"@@FieldCaption-LastName\"></dxo-label> \n <dxi-validation-rule type=\"required\" message=\"Last name is required\" i18n-message=\"@@ValidationText-LastName-Required\"></dxi-validation-rule> \n </dxi-item>\n \n <dxi-item dataField=\"Initials\">\n <dxo-label text=\"Initials\" i18n-text=\"@@FieldCaption-Initials\"></dxo-label> \n </dxi-item>\n\n <dxi-item dataField=\"Gender\" editorType=\"dxSelectBox\" [editorOptions]=\"{ dataSource: genderType_ds, valueExpr: 'id', displayExpr: 'description' }\">\n <dxo-label text=\"Gender\" i18n-text=\"@@FieldCaption-Gender\"></dxo-label>\n </dxi-item> \n\n <dxi-item dataField=\"LocationId\" #customer editorType=\"dxLookup\" [editorOptions]=\"{ itemTemplate:'location_itemTemplate', fieldTemplate: 'location_fieldTemplate', dataSource: location_ds, valueExpr: 'Id', displayExpr: 'Name', searchEnabled: true, searchExpr: ['Name'], showClearButton: true }\">\n <dxo-label text=\"Location\" i18n-text=\"@@FieldCaption-Location\"></dxo-label>\n </dxi-item> \n\n </dxi-item> \n <!-- Templates -->\n <div *dxTemplate=\"let item of 'location_itemTemplate'\">\n {{ item?.Name }}\n </div> \n <div *dxTemplate=\"let fieldData of 'location_fieldTemplate'\" [ngClass]=\"{'lookup-field-template-container':!inEditMode, 'lookup-field-template-container-readonly':!inEditMode}\">\n {{fieldData?.Name}}\n </div> \n </dx-form>\n</mobicloud-group-box>",
3551
+ styles: [""]
3552
+ },] }
3553
+ ];
3554
+ VendorUserGeneralComponent.ctorParameters = function () { return [
3555
+ { type: mobicloudCore.MobicloudCoreService },
3556
+ { type: api.MobiCloudDataService },
3557
+ { type: dialog.MatDialog }
3558
+ ]; };
3559
+ VendorUserGeneralComponent.propDecorators = {
3560
+ user: [{ type: core.Input }],
3561
+ user_expands: [{ type: core.Input }],
3562
+ editAllowed: [{ type: core.Input }],
3563
+ inEditMode: [{ type: core.Input }],
3564
+ width: [{ type: core.Input }],
3565
+ contentheight: [{ type: core.Input }],
3566
+ isLoadingData: [{ type: core.Input }],
3567
+ loadingText: [{ type: core.Input }],
3568
+ hasErrors: [{ type: core.Input }],
3569
+ errorText: [{ type: core.Input }],
3570
+ userChanged: [{ type: core.Output }],
3571
+ form: [{ type: core.ViewChild, args: ['form',] }],
3572
+ datagrids: [{ type: core.ViewChildren, args: [devextremeAngular.DxDataGridComponent,] }]
3573
+ };
3574
+ var templateObject_1$e, templateObject_2$c, templateObject_3$c, templateObject_4$c, templateObject_5$c, templateObject_6$c, templateObject_7$c, templateObject_8$c, templateObject_9$9, templateObject_10$9, templateObject_11$8, templateObject_12$8;
3575
+
3576
+ var VendorUserImageComponent = /** @class */ (function () {
3577
+ function VendorUserImageComponent(coreService, cloudDataService) {
3578
+ this.coreService = coreService;
3579
+ this.cloudDataService = cloudDataService;
3580
+ this.editAllowed = false;
3581
+ this.inEditMode = false;
3582
+ this.fullEditAllowed = false;
3583
+ this.isLoadingData = false;
3584
+ this.loadingText = $localize(templateObject_1$f || (templateObject_1$f = __makeTemplateObject([":@@UploadingLoading-Image-Text:Uploading image..."], [":@@UploadingLoading-Image-Text:Uploading image..."])));
3585
+ this.hasErrors = false;
3586
+ this.errorText = "";
3587
+ this.uploadUrl = undefined;
3588
+ this.isUploaded = false;
3589
+ }
3590
+ VendorUserImageComponent.prototype.ngOnInit = function () {
3591
+ var _this = this;
3592
+ var _a;
3593
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = (p === null || p === void 0 ? void 0 : p.isOrganizationUser); });
3594
+ 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)); });
3595
+ this.uploadUrl = this.cloudDataService.getMobiManagementODataUrl("vendoruser(" + ((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) + ")/UploadProfileImage()");
3596
+ };
3597
+ VendorUserImageComponent.prototype.getProfileImageUrl = function () {
3598
+ var _a;
3599
+ return api.getProfileImageUrl((_a = this.user) === null || _a === void 0 ? void 0 : _a.Image);
3600
+ };
3601
+ VendorUserImageComponent.prototype.onEditClick = function () {
3602
+ this.inEditMode = true;
3603
+ };
3604
+ VendorUserImageComponent.prototype.onCancelEditClick = function () {
3605
+ this.inEditMode = false;
3606
+ };
3607
+ VendorUserImageComponent.prototype.onSaveClick = function () {
3608
+ this.imageEdit.upload();
3609
+ };
3610
+ VendorUserImageComponent.prototype.onRetryClick = function () {
3611
+ this.imageEdit.upload();
3612
+ };
3613
+ return VendorUserImageComponent;
3614
+ }());
3615
+ VendorUserImageComponent.decorators = [
3616
+ { type: core.Component, args: [{
3617
+ selector: 'mobicloud-vendor-user-image',
3618
+ template: "<mobicloud-group-box title=\"Profile Image\" i18n-title=\"@@CaptionHeader-ProfileImage\" [width]=\"[width]\" [contentheight]=\"0\" class=\"vendorUserProfileImageForm\" [isLoadingData]=\"isLoadingData\" [loadingText]=\"loadingText\" \n [editAllowed]=\"editAllowed\" [inEditMode]=\"inEditMode\" [hasErrors]=\"hasErrors\" errorCaption=\"Error\" i18n-errorCaption=\"@@CaptionHeader-Error\" [errorText]=\"errorText\" [enableRetryOnError]=\"true\"\n (Edit_Click)=\"onEditClick()\" (Save_Click)=\"onSaveClick()\" (CancelEdit_Click)=\"onCancelEditClick()\" (Retry_Click)=\"onRetryClick()\">\n\n <mobicloud-image-edit #imageEdit id=\"imageEdit\" [uploadUrl]=\"uploadUrl\" [imageUrl]=\"getProfileImageUrl()\" [width]=\"width - 20\" \n [(inEditMode)]=\"inEditMode\" [(isUploading)]=\"isLoadingData\" [(isUploaded)]=\"isUploaded\" [(uploadError)]=\"hasErrors\" [(uploadErrorMessage)]=\"errorText\"></mobicloud-image-edit>\n\n <!-- <p>url: {{uploadUrl}}</p>\n <p>inEditMode: {{inEditMode}}</p>\n <p>isLoadingData: {{isLoadingData}}</p>\n <p>isUploaded: {{isUploaded}}</p>\n <p>hasErrors: {{hasErrors}}</p>\n <p>errorText: {{errorText}}</p> -->\n</mobicloud-group-box>",
3619
+ styles: [""]
3620
+ },] }
3621
+ ];
3622
+ VendorUserImageComponent.ctorParameters = function () { return [
3623
+ { type: mobicloudCore.MobicloudCoreService },
3624
+ { type: api.MobiCloudDataService }
3625
+ ]; };
3626
+ VendorUserImageComponent.propDecorators = {
3627
+ imageEdit: [{ type: core.ViewChild, args: ['imageEdit',] }],
3628
+ editAllowed: [{ type: core.Input }],
3629
+ inEditMode: [{ type: core.Input }],
3630
+ width: [{ type: core.Input }],
3631
+ contentheight: [{ type: core.Input }],
3632
+ isLoadingData: [{ type: core.Input }],
3633
+ loadingText: [{ type: core.Input }],
3634
+ hasErrors: [{ type: core.Input }],
3635
+ errorText: [{ type: core.Input }],
3636
+ user: [{ type: core.Input }],
3637
+ user_expands: [{ type: core.Input }]
3638
+ };
3639
+ var templateObject_1$f;
3640
+
3011
3641
  var CameraDialogEditComponent = /** @class */ (function () {
3012
3642
  function CameraDialogEditComponent(dialogRef, data, matDialog) {
3013
3643
  this.dialogRef = dialogRef;
@@ -3304,9 +3934,9 @@
3304
3934
  this.cloudDataService = cloudDataService;
3305
3935
  this.matDialog = matDialog;
3306
3936
  this.isLoadingData = false;
3307
- this.loadingText = $localize(templateObject_1$c || (templateObject_1$c = __makeTemplateObject([":@@CreatingShipment-Text:Creating shipment ..."], [":@@CreatingShipment-Text:Creating shipment ..."])));
3937
+ this.loadingText = $localize(templateObject_1$g || (templateObject_1$g = __makeTemplateObject([":@@CreatingShipment-Text:Creating shipment ..."], [":@@CreatingShipment-Text:Creating shipment ..."])));
3308
3938
  this.createCompleted = false;
3309
- this.createCompletedText = $localize(templateObject_2$a || (templateObject_2$a = __makeTemplateObject([":@@ShipmentCreated-Text:Shipment successfully created"], [":@@ShipmentCreated-Text:Shipment successfully created"])));
3939
+ this.createCompletedText = $localize(templateObject_2$d || (templateObject_2$d = __makeTemplateObject([":@@ShipmentCreated-Text:Shipment successfully created"], [":@@ShipmentCreated-Text:Shipment successfully created"])));
3310
3940
  this.createError = false;
3311
3941
  this.createErrorText = "";
3312
3942
  this.showLoadIndicator = true;
@@ -3334,13 +3964,13 @@
3334
3964
  };
3335
3965
  this.servicePointValid = true;
3336
3966
  this.packagingBoxType_ds = [
3337
- { value: api.PackagingBoxType.CustomSize, text: $localize(templateObject_3$a || (templateObject_3$a = __makeTemplateObject([":@@EnumValue-PackagingBoxType-CustomSize:Custom size"], [":@@EnumValue-PackagingBoxType-CustomSize:Custom size"]))) },
3338
- { value: api.PackagingBoxType.EURPallet, text: $localize(templateObject_4$a || (templateObject_4$a = __makeTemplateObject([":@@EnumValue-PackagingBoxType-EURPallet:EUR pallet"], [":@@EnumValue-PackagingBoxType-EURPallet:EUR pallet"]))) },
3339
- { value: api.PackagingBoxType.HalfPallet, text: $localize(templateObject_5$a || (templateObject_5$a = __makeTemplateObject([":@@EnumValue-PackagingBoxType-HalfPallet:Half pallet"], [":@@EnumValue-PackagingBoxType-HalfPallet:Half pallet"]))) },
3340
- { value: api.PackagingBoxType.QuarterPallet, text: $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":@@EnumValue-PackagingBoxType-QuarterPallet:Quarter pallet"], [":@@EnumValue-PackagingBoxType-QuarterPallet:Quarter pallet"]))) },
3341
- { value: api.PackagingBoxType.OceanPallet, text: $localize(templateObject_7$a || (templateObject_7$a = __makeTemplateObject([":@@EnumValue-PackagingBoxType-OceanPallet:Ocean pallet"], [":@@EnumValue-PackagingBoxType-OceanPallet:Ocean pallet"]))) },
3342
- { value: api.PackagingBoxType.Documents, text: $localize(templateObject_8$a || (templateObject_8$a = __makeTemplateObject([":@@EnumValue-PackagingBoxType-Documents:Documents"], [":@@EnumValue-PackagingBoxType-Documents:Documents"]))) },
3343
- { value: api.PackagingBoxType.Envelope, text: $localize(templateObject_9$8 || (templateObject_9$8 = __makeTemplateObject([":@@EnumValue-PackagingBoxType-Envelope:Envelope"], [":@@EnumValue-PackagingBoxType-Envelope:Envelope"]))) },
3967
+ { value: api.PackagingBoxType.CustomSize, text: $localize(templateObject_3$d || (templateObject_3$d = __makeTemplateObject([":@@EnumValue-PackagingBoxType-CustomSize:Custom size"], [":@@EnumValue-PackagingBoxType-CustomSize:Custom size"]))) },
3968
+ { value: api.PackagingBoxType.EURPallet, text: $localize(templateObject_4$d || (templateObject_4$d = __makeTemplateObject([":@@EnumValue-PackagingBoxType-EURPallet:EUR pallet"], [":@@EnumValue-PackagingBoxType-EURPallet:EUR pallet"]))) },
3969
+ { value: api.PackagingBoxType.HalfPallet, text: $localize(templateObject_5$d || (templateObject_5$d = __makeTemplateObject([":@@EnumValue-PackagingBoxType-HalfPallet:Half pallet"], [":@@EnumValue-PackagingBoxType-HalfPallet:Half pallet"]))) },
3970
+ { value: api.PackagingBoxType.QuarterPallet, text: $localize(templateObject_6$d || (templateObject_6$d = __makeTemplateObject([":@@EnumValue-PackagingBoxType-QuarterPallet:Quarter pallet"], [":@@EnumValue-PackagingBoxType-QuarterPallet:Quarter pallet"]))) },
3971
+ { value: api.PackagingBoxType.OceanPallet, text: $localize(templateObject_7$d || (templateObject_7$d = __makeTemplateObject([":@@EnumValue-PackagingBoxType-OceanPallet:Ocean pallet"], [":@@EnumValue-PackagingBoxType-OceanPallet:Ocean pallet"]))) },
3972
+ { value: api.PackagingBoxType.Documents, text: $localize(templateObject_8$d || (templateObject_8$d = __makeTemplateObject([":@@EnumValue-PackagingBoxType-Documents:Documents"], [":@@EnumValue-PackagingBoxType-Documents:Documents"]))) },
3973
+ { value: api.PackagingBoxType.Envelope, text: $localize(templateObject_9$a || (templateObject_9$a = __makeTemplateObject([":@@EnumValue-PackagingBoxType-Envelope:Envelope"], [":@@EnumValue-PackagingBoxType-Envelope:Envelope"]))) },
3344
3974
  ];
3345
3975
  this._senderCountryOpened = false;
3346
3976
  this._receiverCountryOpened = false;
@@ -3377,18 +4007,18 @@
3377
4007
  }
3378
4008
  else {
3379
4009
  _this.showLoadIndicator = false;
3380
- MessageBox.showError({ title: $localize(templateObject_10$8 || (templateObject_10$8 = __makeTemplateObject([":@@Failed-Text-InvalidPickingList:Invalid picking list"], [":@@Failed-Text-InvalidPickingList:Invalid picking list"]))), message: $localize(templateObject_11$7 || (templateObject_11$7 = __makeTemplateObject([":@@Failed-Text-InvalidPickingListForShipment:Picking list is not valid for shipment"], [":@@Failed-Text-InvalidPickingListForShipment:Picking list is not valid for shipment"]))) }, _this.matDialog);
4010
+ MessageBox.showError({ title: $localize(templateObject_10$a || (templateObject_10$a = __makeTemplateObject([":@@Failed-Text-InvalidPickingList:Invalid picking list"], [":@@Failed-Text-InvalidPickingList:Invalid picking list"]))), message: $localize(templateObject_11$9 || (templateObject_11$9 = __makeTemplateObject([":@@Failed-Text-InvalidPickingListForShipment:Picking list is not valid for shipment"], [":@@Failed-Text-InvalidPickingListForShipment:Picking list is not valid for shipment"]))) }, _this.matDialog);
3381
4011
  }
3382
4012
  }, function (error) {
3383
4013
  _this.showLoadIndicator = false;
3384
4014
  console.log(error);
3385
- MessageBox.showError({ title: $localize(templateObject_12$7 || (templateObject_12$7 = __makeTemplateObject([":@@Failed-Text-InvalidPickingList:Invalid picking list"], [":@@Failed-Text-InvalidPickingList:Invalid picking list"]))), message: error }, _this.matDialog);
4015
+ MessageBox.showError({ title: $localize(templateObject_12$9 || (templateObject_12$9 = __makeTemplateObject([":@@Failed-Text-InvalidPickingList:Invalid picking list"], [":@@Failed-Text-InvalidPickingList:Invalid picking list"]))), message: error }, _this.matDialog);
3386
4016
  _this.onCancel();
3387
4017
  });
3388
4018
  }, function (error) {
3389
4019
  _this.showLoadIndicator = false;
3390
4020
  console.log(error);
3391
- MessageBox.showError({ title: $localize(templateObject_13$5 || (templateObject_13$5 = __makeTemplateObject([":@@Failed-Text-CouldNotLoadCompany:Could not load company"], [":@@Failed-Text-CouldNotLoadCompany:Could not load company"]))), message: error }, _this.matDialog);
4021
+ MessageBox.showError({ title: $localize(templateObject_13$6 || (templateObject_13$6 = __makeTemplateObject([":@@Failed-Text-CouldNotLoadCompany:Could not load company"], [":@@Failed-Text-CouldNotLoadCompany:Could not load company"]))), message: error }, _this.matDialog);
3392
4022
  _this.onCancel();
3393
4023
  });
3394
4024
  };
@@ -3417,7 +4047,7 @@
3417
4047
  _this.onPickingListInitialized();
3418
4048
  }
3419
4049
  else {
3420
- MessageBox.showError({ title: $localize(templateObject_14$5 || (templateObject_14$5 = __makeTemplateObject([":@@Failed-Text-NoPickingLines:No picking lines"], [":@@Failed-Text-NoPickingLines:No picking lines"]))), message: $localize(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject([":@@Failed-Text-NoPickingLinesOnPickingList:No shipable picking lines were found on picking list"], [":@@Failed-Text-NoPickingLinesOnPickingList:No shipable picking lines were found on picking list"]))) }, _this.matDialog);
4050
+ MessageBox.showError({ title: $localize(templateObject_14$6 || (templateObject_14$6 = __makeTemplateObject([":@@Failed-Text-NoPickingLines:No picking lines"], [":@@Failed-Text-NoPickingLines:No picking lines"]))), message: $localize(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject([":@@Failed-Text-NoPickingLinesOnPickingList:No shipable picking lines were found on picking list"], [":@@Failed-Text-NoPickingLinesOnPickingList:No shipable picking lines were found on picking list"]))) }, _this.matDialog);
3421
4051
  _this.onCancel();
3422
4052
  }
3423
4053
  }, function (error) {
@@ -4237,7 +4867,7 @@
4237
4867
  }
4238
4868
  return CreateShipmentResponse;
4239
4869
  }());
4240
- var templateObject_1$c, templateObject_2$a, templateObject_3$a, templateObject_4$a, templateObject_5$a, templateObject_6$a, templateObject_7$a, templateObject_8$a, templateObject_9$8, templateObject_10$8, templateObject_11$7, templateObject_12$7, templateObject_13$5, templateObject_14$5, templateObject_15$2, templateObject_16$2, templateObject_17$2, templateObject_18$1;
4870
+ var templateObject_1$g, templateObject_2$d, templateObject_3$d, templateObject_4$d, templateObject_5$d, templateObject_6$d, templateObject_7$d, templateObject_8$d, templateObject_9$a, templateObject_10$a, templateObject_11$9, templateObject_12$9, templateObject_13$6, templateObject_14$6, templateObject_15$2, templateObject_16$2, templateObject_17$2, templateObject_18$1;
4241
4871
 
4242
4872
  var PrintDialogShipment = /** @class */ (function () {
4243
4873
  function PrintDialogShipment(dialogRef, data, cloudDataService, matDialog) {
@@ -4301,7 +4931,7 @@
4301
4931
  this.editAllowed = false;
4302
4932
  this.inEditMode = false;
4303
4933
  this.isLoadingData = false;
4304
- this.loadingText = $localize(templateObject_1$d || (templateObject_1$d = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
4934
+ this.loadingText = $localize(templateObject_1$h || (templateObject_1$h = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
4305
4935
  this.hasErrors = false;
4306
4936
  this.errorText = "";
4307
4937
  this.itemtemplete_value = this.itemtemplete_value.bind(this);
@@ -4362,7 +4992,7 @@
4362
4992
  Object.defineProperty(DimensionGroupBoxComponent.prototype, "caption", {
4363
4993
  get: function () {
4364
4994
  var _a, _b;
4365
- return (_b = (_a = this.entityGroup) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : $localize(templateObject_2$b || (templateObject_2$b = __makeTemplateObject([":@@CaptionHeader-DimensionFields:Dimension fields"], [":@@CaptionHeader-DimensionFields:Dimension fields"])));
4995
+ return (_b = (_a = this.entityGroup) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : $localize(templateObject_2$e || (templateObject_2$e = __makeTemplateObject([":@@CaptionHeader-DimensionFields:Dimension fields"], [":@@CaptionHeader-DimensionFields:Dimension fields"])));
4366
4996
  ;
4367
4997
  },
4368
4998
  enumerable: false,
@@ -4483,7 +5113,7 @@
4483
5113
  var _this = this;
4484
5114
  var _a;
4485
5115
  this.isLoadingData = true;
4486
- this.loadingText = $localize(templateObject_3$b || (templateObject_3$b = __makeTemplateObject([":@@Loading-Text-DimensionField:Loading fields..."], [":@@Loading-Text-DimensionField:Loading fields..."])));
5116
+ this.loadingText = $localize(templateObject_3$e || (templateObject_3$e = __makeTemplateObject([":@@Loading-Text-DimensionField:Loading fields..."], [":@@Loading-Text-DimensionField:Loading fields..."])));
4487
5117
  if ((_a = this.domainObject) === null || _a === void 0 ? void 0 : _a.ExtensionId) {
4488
5118
  this.dimensionField_store.load().then(function (dataItem) {
4489
5119
  var _a, _b;
@@ -4506,13 +5136,13 @@
4506
5136
  _this.isLoadingData = false;
4507
5137
  _this.hasErrors = false;
4508
5138
  _this.errorText = "";
4509
- _this.loadingText = $localize(templateObject_4$b || (templateObject_4$b = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
5139
+ _this.loadingText = $localize(templateObject_4$e || (templateObject_4$e = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
4510
5140
  }, function (error) {
4511
5141
  console.log(error);
4512
5142
  _this.isLoadingData = false;
4513
5143
  _this.hasErrors = true;
4514
5144
  _this.errorText = error;
4515
- _this.loadingText = $localize(templateObject_5$b || (templateObject_5$b = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
5145
+ _this.loadingText = $localize(templateObject_5$e || (templateObject_5$e = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
4516
5146
  });
4517
5147
  }
4518
5148
  else {
@@ -4525,14 +5155,14 @@
4525
5155
  this.isLoadingData = false;
4526
5156
  this.hasErrors = false;
4527
5157
  this.errorText = "";
4528
- this.loadingText = $localize(templateObject_6$b || (templateObject_6$b = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
5158
+ this.loadingText = $localize(templateObject_6$e || (templateObject_6$e = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
4529
5159
  }
4530
5160
  };
4531
5161
  DimensionGroupBoxComponent.prototype.saveEntityGroup = function () {
4532
5162
  var _this = this;
4533
5163
  var _a, _b, _c;
4534
5164
  this.isLoadingData = true;
4535
- this.loadingText = $localize(templateObject_7$b || (templateObject_7$b = __makeTemplateObject([":@@Updating-Text-Fields:Updating fields..."], [":@@Updating-Text-Fields:Updating fields..."])));
5165
+ this.loadingText = $localize(templateObject_7$e || (templateObject_7$e = __makeTemplateObject([":@@Updating-Text-Fields:Updating fields..."], [":@@Updating-Text-Fields:Updating fields..."])));
4536
5166
  var fields = [];
4537
5167
  var body = { "domainObjectId": (_a = this.domainObject) === null || _a === void 0 ? void 0 : _a.Id, "fields": fields };
4538
5168
  var formEntries = Object.entries(this.formEntity);
@@ -4574,12 +5204,12 @@
4574
5204
  _this.getEntityGroup();
4575
5205
  _this.isLoadingData = false;
4576
5206
  _this.inEditMode = false;
4577
- _this.loadingText = $localize(templateObject_8$b || (templateObject_8$b = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
5207
+ _this.loadingText = $localize(templateObject_8$e || (templateObject_8$e = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
4578
5208
  }, function (error) {
4579
5209
  console.log(error);
4580
5210
  _this.isLoadingData = false;
4581
- _this.loadingText = $localize(templateObject_9$9 || (templateObject_9$9 = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
4582
- MessageBox.showError({ title: $localize(templateObject_10$9 || (templateObject_10$9 = __makeTemplateObject([":@@Failed-Text-FieldsUpdate:Fields update failed"], [":@@Failed-Text-FieldsUpdate:Fields update failed"]))), message: error }, _this.matDialog)
5211
+ _this.loadingText = $localize(templateObject_9$b || (templateObject_9$b = __makeTemplateObject([":@@Loading-Text:Loading..."], [":@@Loading-Text:Loading..."])));
5212
+ MessageBox.showError({ title: $localize(templateObject_10$b || (templateObject_10$b = __makeTemplateObject([":@@Failed-Text-FieldsUpdate:Fields update failed"], [":@@Failed-Text-FieldsUpdate:Fields update failed"]))), message: error }, _this.matDialog)
4583
5213
  .subscribe(function (result) {
4584
5214
  });
4585
5215
  });
@@ -4663,7 +5293,7 @@
4663
5293
  errorText: [{ type: core.Input }],
4664
5294
  form: [{ type: core.ViewChild, args: ["form",] }]
4665
5295
  };
4666
- var templateObject_1$d, templateObject_2$b, templateObject_3$b, templateObject_4$b, templateObject_5$b, templateObject_6$b, templateObject_7$b, templateObject_8$b, templateObject_9$9, templateObject_10$9;
5296
+ var templateObject_1$h, templateObject_2$e, templateObject_3$e, templateObject_4$e, templateObject_5$e, templateObject_6$e, templateObject_7$e, templateObject_8$e, templateObject_9$b, templateObject_10$b;
4667
5297
 
4668
5298
  var DimensionGroupsComponent = /** @class */ (function () {
4669
5299
  function DimensionGroupsComponent(cloudDataService, matDialog) {
@@ -4834,7 +5464,7 @@
4834
5464
  { type: core.NgModule, args: [{
4835
5465
  declarations: [SigninCallbackComponent, SigninSilentCallbackComponent, SignoutCallbackComponent, MainNavComponent, ContentToolbarComponent, GroupBoxComponent, SubscriptionBoxComponent, LoadingContainerComponent, MessageBoxDialogComponent, MaterialElevationDirective,
4836
5466
  ProfilePageComponent, ProfilePageSystemUserComponent, ProfilePageEmployeeComponent, ProfilePageCustomerUserComponent, ProfilePageVendorUserComponent, CameraDialogEditComponent, ImageEditComponent,
4837
- EmployeeAddressComponent, EmployeeProfileComponent, EmployeeProfileImageComponent, EmployeeUserInfoComponent, SystemUserProfileComponent, CustomerUserAddressComponent, CustomerUserDetailsComponent, CustomerUserGeneralComponent, CustomerUserImageComponent,
5467
+ EmployeeAddressComponent, EmployeeProfileComponent, EmployeeProfileImageComponent, EmployeeUserInfoComponent, SystemUserProfileComponent, CustomerUserAddressComponent, CustomerUserDetailsComponent, CustomerUserGeneralComponent, CustomerUserImageComponent, VendorUserAddressComponent, VendorUserDetailsComponent, VendorUserGeneralComponent, VendorUserImageComponent,
4838
5468
  PickinglistAddNewShipment, PrintDialogShipment, DimensionGroupBoxComponent, DimensionGroupsComponent],
4839
5469
  imports: [
4840
5470
  common.CommonModule, router.RouterModule, icons.MobiCloudIconsModule, flexLayout.FlexLayoutModule,
@@ -4850,7 +5480,7 @@
4850
5480
  exports: [
4851
5481
  MaterialElevationDirective, SigninCallbackComponent, SigninSilentCallbackComponent, SignoutCallbackComponent, MainNavComponent, ContentToolbarComponent, GroupBoxComponent, SubscriptionBoxComponent, LoadingContainerComponent, MessageBoxDialogComponent,
4852
5482
  ProfilePageComponent, ProfilePageSystemUserComponent, ProfilePageEmployeeComponent, ProfilePageCustomerUserComponent, ProfilePageVendorUserComponent, CameraDialogEditComponent, ImageEditComponent,
4853
- EmployeeAddressComponent, EmployeeProfileComponent, EmployeeProfileImageComponent, EmployeeUserInfoComponent, SystemUserProfileComponent, CustomerUserAddressComponent, CustomerUserDetailsComponent, CustomerUserGeneralComponent, CustomerUserImageComponent,
5483
+ EmployeeAddressComponent, EmployeeProfileComponent, EmployeeProfileImageComponent, EmployeeUserInfoComponent, SystemUserProfileComponent, CustomerUserAddressComponent, CustomerUserDetailsComponent, CustomerUserGeneralComponent, CustomerUserImageComponent, VendorUserAddressComponent, VendorUserDetailsComponent, VendorUserGeneralComponent, VendorUserImageComponent,
4854
5484
  PickinglistAddNewShipment, PrintDialogShipment, DimensionGroupBoxComponent, DimensionGroupsComponent
4855
5485
  ]
4856
5486
  },] }
@@ -4897,6 +5527,10 @@
4897
5527
  exports.SignoutCallbackComponent = SignoutCallbackComponent;
4898
5528
  exports.SubscriptionBoxComponent = SubscriptionBoxComponent;
4899
5529
  exports.SystemUserProfileComponent = SystemUserProfileComponent;
5530
+ exports.VendorUserAddressComponent = VendorUserAddressComponent;
5531
+ exports.VendorUserDetailsComponent = VendorUserDetailsComponent;
5532
+ exports.VendorUserGeneralComponent = VendorUserGeneralComponent;
5533
+ exports.VendorUserImageComponent = VendorUserImageComponent;
4900
5534
 
4901
5535
  Object.defineProperty(exports, '__esModule', { value: true });
4902
5536