@bnsights/bbsf-admin-portal 1.2.18 → 1.2.19

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.
package/README.md CHANGED
@@ -4,6 +4,12 @@ BBSF Admin Portal package is part of BBSF 3 packages. It hosts all the angular m
4
4
 
5
5
  For more info please visit [BBSF documentation](https://bnsightsprojects.visualstudio.com/BBSF%203/_wiki/wikis/BBSF-3.wiki/65/BBSF-Documentation)
6
6
 
7
+ ## 1.2.19 / 14-04-2026
8
+
9
+ =====================
10
+
11
+ - Fix organization edit issue
12
+
7
13
  ## 1.2.18 / 09-04-2026
8
14
 
9
15
  =====================
@@ -22367,18 +22367,16 @@ class OrganizationListModel {
22367
22367
  }
22368
22368
 
22369
22369
  class EditOrganizationComponent {
22370
- constructor(pageInfoService, utilityService, environmentService, modalService, service, requestHandlerService, authService) {
22370
+ constructor(pageInfoService, utilityService, modalService, service) {
22371
22371
  this.pageInfoService = pageInfoService;
22372
22372
  this.utilityService = utilityService;
22373
- this.environmentService = environmentService;
22374
22373
  this.modalService = modalService;
22375
22374
  this.service = service;
22376
- this.requestHandlerService = requestHandlerService;
22377
- this.authService = authService;
22378
22375
  this.form = new FormGroup({});
22379
22376
  this.editModelFunc = () => {
22380
22377
  let ResultModel = this.form.value;
22381
22378
  let model = new OrganizationModel();
22379
+ model.iD_GUID = this.organizationId;
22382
22380
  model.name = ResultModel[this.multiLingualNameOptions.name];
22383
22381
  model.defaultLanguage = ResultModel[this.languageOptions.name];
22384
22382
  model.defaultTimeZone = ResultModel[this.timeZoneOptions.name];
@@ -22389,9 +22387,6 @@ class EditOrganizationComponent {
22389
22387
  this.editOrganizationFunc = (model) => {
22390
22388
  return this.service.editOrganization(model);
22391
22389
  };
22392
- this.onSuccess = () => {
22393
- this.pagingElement.reinitializePaging();
22394
- };
22395
22390
  }
22396
22391
  ngOnInit() {
22397
22392
  PageInfoService.PageTitle = this.utilityService.getResourceValue("Organization");
@@ -22403,16 +22398,16 @@ class EditOrganizationComponent {
22403
22398
  this.pageInfoService.calculateBreadcrumbs();
22404
22399
  }
22405
22400
  //#region add modal
22406
- showModal(id) {
22401
+ showModal(organizationId) {
22402
+ this.organizationId = organizationId;
22407
22403
  this.utilityService.startBlockUI();
22408
22404
  this.form = new FormGroup({});
22409
22405
  this.formOptions = new FormOptions();
22410
22406
  this.formOptions.formGroup = this.form;
22411
22407
  this.formOptions.getModelFunction = this.editModelFunc;
22412
22408
  this.formOptions.serviceSubmitFunction = this.editOrganizationFunc;
22413
- this.formOptions.onSuccessHandler = this.onSuccess;
22414
22409
  this.formOptions.pagingReference = this.pagingElement;
22415
- this.service.getOrganization(id).subscribe(res => {
22410
+ this.service.getOrganization(organizationId).subscribe(res => {
22416
22411
  let name = new EnglishArabicDTO();
22417
22412
  let result = res.model;
22418
22413
  name.arabic = result.name.arabic;
@@ -22456,13 +22451,13 @@ class EditOrganizationComponent {
22456
22451
  this.utilityService.stopBlockUI();
22457
22452
  });
22458
22453
  }
22459
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: EditOrganizationComponent, deps: [{ token: PageInfoService }, { token: i1$1.UtilityService }, { token: i1$1.EnvironmentService }, { token: i5$1.NgbModal }, { token: OrganizationService }, { token: i1$1.RequestHandlerService }, { token: i1$1.AuthService }], target: i0.ɵɵFactoryTarget.Component }); }
22454
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: EditOrganizationComponent, deps: [{ token: PageInfoService }, { token: i1$1.UtilityService }, { token: i5$1.NgbModal }, { token: OrganizationService }], target: i0.ɵɵFactoryTarget.Component }); }
22460
22455
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: EditOrganizationComponent, isStandalone: false, selector: "lib-edit-organization", inputs: { pagingElement: "pagingElement" }, viewQueries: [{ propertyName: "modal", first: true, predicate: ["editModal"], descendants: true }], ngImport: i0, template: "<ng-template #editModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"modal.dismiss()\" class=\"btn btn-sm btn-icon btn-active-color-primary\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{ utilityService.getResourceValue('Add') }}</h1>\r\n </div>\r\n <BBSF-Form [options]=\"formOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextBox [options]=\"multiLingualNameOptions\" [group]=\"form\"></BBSF-MultiLingualTextBox>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <BBSF-TextBox [options]=\"languageOptions\" [group]=\"form\"> </BBSF-TextBox>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <BBSF-TextBox [options]=\"timeZoneOptions\" [group]=\"form\"> </BBSF-TextBox>\r\n </div>\r\n <div class=\"col-md-12\">\r\n <BBSF-ImageUpload [options]=\"logoOptions\" [group]=\"form\"> </BBSF-ImageUpload>\r\n </div>\r\n </div>\r\n <div class=\"text-center pt-7\">\r\n <button\r\n type=\"button\"\r\n #closeOrganizationModal\r\n id=\"closeOrganizationModal\"\r\n data-dismiss=\"modal\"\r\n aria-label=\"Close\"\r\n class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{ utilityService.getResourceValue('CancelLabel') }}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{ utilityService.getResourceValue('SaveLabel') }}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "component", type: i9.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["onChange", "onBlur"] }, { kind: "component", type: i9.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["onChange"] }, { kind: "component", type: i9.MultiLingualTextBoxComponent, selector: "BBSF-MultiLingualTextBox", inputs: ["group", "options"], outputs: ["onChange"] }, { kind: "component", type: i9.ImageUploaderComponent, selector: "BBSF-ImageUpload", inputs: ["group", "options"], outputs: ["onChange"] }, { kind: "directive", type: i11.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["inlineSVG", "resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "setSVGAttributes", "removeSVGAttributes", "forceEvalStyles", "evalScripts", "fallbackImgUrl", "fallbackSVG", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }] }); }
22461
22456
  }
22462
22457
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: EditOrganizationComponent, decorators: [{
22463
22458
  type: Component,
22464
22459
  args: [{ selector: 'lib-edit-organization', standalone: false, template: "<ng-template #editModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"modal.dismiss()\" class=\"btn btn-sm btn-icon btn-active-color-primary\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{ utilityService.getResourceValue('Add') }}</h1>\r\n </div>\r\n <BBSF-Form [options]=\"formOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextBox [options]=\"multiLingualNameOptions\" [group]=\"form\"></BBSF-MultiLingualTextBox>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <BBSF-TextBox [options]=\"languageOptions\" [group]=\"form\"> </BBSF-TextBox>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <BBSF-TextBox [options]=\"timeZoneOptions\" [group]=\"form\"> </BBSF-TextBox>\r\n </div>\r\n <div class=\"col-md-12\">\r\n <BBSF-ImageUpload [options]=\"logoOptions\" [group]=\"form\"> </BBSF-ImageUpload>\r\n </div>\r\n </div>\r\n <div class=\"text-center pt-7\">\r\n <button\r\n type=\"button\"\r\n #closeOrganizationModal\r\n id=\"closeOrganizationModal\"\r\n data-dismiss=\"modal\"\r\n aria-label=\"Close\"\r\n class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{ utilityService.getResourceValue('CancelLabel') }}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{ utilityService.getResourceValue('SaveLabel') }}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n" }]
22465
- }], ctorParameters: () => [{ type: PageInfoService }, { type: i1$1.UtilityService }, { type: i1$1.EnvironmentService }, { type: i5$1.NgbModal }, { type: OrganizationService }, { type: i1$1.RequestHandlerService }, { type: i1$1.AuthService }], propDecorators: { pagingElement: [{
22460
+ }], ctorParameters: () => [{ type: PageInfoService }, { type: i1$1.UtilityService }, { type: i5$1.NgbModal }, { type: OrganizationService }], propDecorators: { pagingElement: [{
22466
22461
  type: Input
22467
22462
  }], modal: [{
22468
22463
  type: ViewChild,
@@ -22470,14 +22465,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
22470
22465
  }] } });
22471
22466
 
22472
22467
  class AddOrganizationComponent {
22473
- constructor(pageInfoService, utilityService, environmentService, modalService, service, requestHandlerService, authService) {
22468
+ constructor(pageInfoService, utilityService, modalService, service) {
22474
22469
  this.pageInfoService = pageInfoService;
22475
22470
  this.utilityService = utilityService;
22476
- this.environmentService = environmentService;
22477
22471
  this.modalService = modalService;
22478
22472
  this.service = service;
22479
- this.requestHandlerService = requestHandlerService;
22480
- this.authService = authService;
22481
22473
  this.form = new FormGroup({});
22482
22474
  this.addModelFunc = () => {
22483
22475
  let ResultModel = this.form.value;
@@ -22492,9 +22484,6 @@ class AddOrganizationComponent {
22492
22484
  this.addOrganizationFunc = (model) => {
22493
22485
  return this.service.addOrganization(model);
22494
22486
  };
22495
- this.onSuccess = () => {
22496
- this.pagingElement.reinitializePaging();
22497
- };
22498
22487
  }
22499
22488
  ngOnInit() {
22500
22489
  PageInfoService.PageTitle = this.utilityService.getResourceValue("Organization");
@@ -22513,7 +22502,6 @@ class AddOrganizationComponent {
22513
22502
  this.formOptions.formGroup = this.form;
22514
22503
  this.formOptions.getModelFunction = this.addModelFunc;
22515
22504
  this.formOptions.serviceSubmitFunction = this.addOrganizationFunc;
22516
- this.formOptions.onSuccessHandler = this.onSuccess;
22517
22505
  this.formOptions.pagingReference = this.pagingElement;
22518
22506
  this.multiLingualNameOptions = new MultiLingualTextBoxOptions();
22519
22507
  this.multiLingualNameOptions.name = "Name";
@@ -22551,13 +22539,13 @@ class AddOrganizationComponent {
22551
22539
  this.modalService.open(this.modal, { size: 'xl' });
22552
22540
  this.utilityService.stopBlockUI();
22553
22541
  }
22554
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AddOrganizationComponent, deps: [{ token: PageInfoService }, { token: i1$1.UtilityService }, { token: i1$1.EnvironmentService }, { token: i5$1.NgbModal }, { token: OrganizationService }, { token: i1$1.RequestHandlerService }, { token: i1$1.AuthService }], target: i0.ɵɵFactoryTarget.Component }); }
22542
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AddOrganizationComponent, deps: [{ token: PageInfoService }, { token: i1$1.UtilityService }, { token: i5$1.NgbModal }, { token: OrganizationService }], target: i0.ɵɵFactoryTarget.Component }); }
22555
22543
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: AddOrganizationComponent, isStandalone: false, selector: "lib-add-organization", inputs: { pagingElement: "pagingElement" }, viewQueries: [{ propertyName: "modal", first: true, predicate: ["addModal"], descendants: true }], ngImport: i0, template: "<ng-template #addModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"modal.dismiss()\" class=\"btn btn-sm btn-icon btn-active-color-primary\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{ utilityService.getResourceValue('Add') }}</h1>\r\n </div>\r\n <BBSF-Form [options]=\"formOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextBox [options]=\"multiLingualNameOptions\" [group]=\"form\"></BBSF-MultiLingualTextBox>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <BBSF-TextBox [options]=\"languageOptions\" [group]=\"form\"> </BBSF-TextBox>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <BBSF-TextBox [options]=\"timeZoneOptions\" [group]=\"form\"> </BBSF-TextBox>\r\n </div>\r\n <div class=\"col-md-12\">\r\n <BBSF-ImageUpload [options]=\"logoOptions\" [group]=\"form\"> </BBSF-ImageUpload>\r\n </div>\r\n </div>\r\n <div class=\"text-center pt-7\">\r\n <button\r\n type=\"button\"\r\n #closeOrganizationModal\r\n id=\"closeOrganizationModal\"\r\n data-dismiss=\"modal\"\r\n aria-label=\"Close\"\r\n class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{ utilityService.getResourceValue('CancelLabel') }}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{ utilityService.getResourceValue('SaveLabel') }}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "component", type: i9.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["onChange", "onBlur"] }, { kind: "component", type: i9.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["onChange"] }, { kind: "component", type: i9.MultiLingualTextBoxComponent, selector: "BBSF-MultiLingualTextBox", inputs: ["group", "options"], outputs: ["onChange"] }, { kind: "component", type: i9.ImageUploaderComponent, selector: "BBSF-ImageUpload", inputs: ["group", "options"], outputs: ["onChange"] }, { kind: "directive", type: i11.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["inlineSVG", "resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "setSVGAttributes", "removeSVGAttributes", "forceEvalStyles", "evalScripts", "fallbackImgUrl", "fallbackSVG", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }] }); }
22556
22544
  }
22557
22545
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AddOrganizationComponent, decorators: [{
22558
22546
  type: Component,
22559
22547
  args: [{ selector: 'lib-add-organization', standalone: false, template: "<ng-template #addModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"modal.dismiss()\" class=\"btn btn-sm btn-icon btn-active-color-primary\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{ utilityService.getResourceValue('Add') }}</h1>\r\n </div>\r\n <BBSF-Form [options]=\"formOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextBox [options]=\"multiLingualNameOptions\" [group]=\"form\"></BBSF-MultiLingualTextBox>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <BBSF-TextBox [options]=\"languageOptions\" [group]=\"form\"> </BBSF-TextBox>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <BBSF-TextBox [options]=\"timeZoneOptions\" [group]=\"form\"> </BBSF-TextBox>\r\n </div>\r\n <div class=\"col-md-12\">\r\n <BBSF-ImageUpload [options]=\"logoOptions\" [group]=\"form\"> </BBSF-ImageUpload>\r\n </div>\r\n </div>\r\n <div class=\"text-center pt-7\">\r\n <button\r\n type=\"button\"\r\n #closeOrganizationModal\r\n id=\"closeOrganizationModal\"\r\n data-dismiss=\"modal\"\r\n aria-label=\"Close\"\r\n class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{ utilityService.getResourceValue('CancelLabel') }}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{ utilityService.getResourceValue('SaveLabel') }}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n" }]
22560
- }], ctorParameters: () => [{ type: PageInfoService }, { type: i1$1.UtilityService }, { type: i1$1.EnvironmentService }, { type: i5$1.NgbModal }, { type: OrganizationService }, { type: i1$1.RequestHandlerService }, { type: i1$1.AuthService }], propDecorators: { pagingElement: [{
22548
+ }], ctorParameters: () => [{ type: PageInfoService }, { type: i1$1.UtilityService }, { type: i5$1.NgbModal }, { type: OrganizationService }], propDecorators: { pagingElement: [{
22561
22549
  type: Input
22562
22550
  }], modal: [{
22563
22551
  type: ViewChild,