@smartbit4all/ng-client 3.1.12 → 3.1.14

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 (97) hide show
  1. package/esm2020/lib/smart-client/smart-component-api-client.mjs +10 -26
  2. package/esm2020/lib/smart-form/api/api/api.mjs +1 -1
  3. package/esm2020/lib/smart-form/api/api/default.service.mjs +1 -1
  4. package/esm2020/lib/smart-form/api/api.module.mjs +1 -1
  5. package/esm2020/lib/smart-form/api/configuration.mjs +1 -1
  6. package/esm2020/lib/smart-form/api/encoder.mjs +1 -1
  7. package/esm2020/lib/smart-form/api/index.mjs +1 -1
  8. package/esm2020/lib/smart-form/api/model/models.mjs +1 -1
  9. package/esm2020/lib/smart-form/api/model/propertyMapping.mjs +1 -1
  10. package/esm2020/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
  11. package/esm2020/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
  12. package/esm2020/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
  13. package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
  14. package/esm2020/lib/smart-form/api/param.mjs +1 -1
  15. package/esm2020/lib/smart-form/api/variables.mjs +1 -1
  16. package/esm2020/lib/smart-grid/api/grid-api/api/api.mjs +1 -1
  17. package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +1 -1
  18. package/esm2020/lib/smart-grid/api/grid-api/api.module.mjs +1 -1
  19. package/esm2020/lib/smart-grid/api/grid-api/configuration.mjs +1 -1
  20. package/esm2020/lib/smart-grid/api/grid-api/encoder.mjs +1 -1
  21. package/esm2020/lib/smart-grid/api/grid-api/index.mjs +1 -1
  22. package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
  23. package/esm2020/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +1 -1
  24. package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
  25. package/esm2020/lib/smart-grid/api/grid-api/model/gridPage.mjs +1 -1
  26. package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
  27. package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +1 -1
  28. package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +1 -1
  29. package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
  30. package/esm2020/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +1 -1
  31. package/esm2020/lib/smart-grid/api/grid-api/model/gridView.mjs +1 -1
  32. package/esm2020/lib/smart-grid/api/grid-api/model/gridViewDescriptor.mjs +1 -1
  33. package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +1 -1
  34. package/esm2020/lib/smart-grid/api/grid-api/param.mjs +1 -1
  35. package/esm2020/lib/smart-grid/api/grid-api/variables.mjs +1 -1
  36. package/esm2020/lib/smart-grid/components/table-layout-definer/table-layout-definer.component.mjs +13 -15
  37. package/esm2020/lib/smart-grid/smart-grid.component.mjs +3 -9
  38. package/esm2020/lib/smart-grid/smart-grid.service.mjs +3 -6
  39. package/esm2020/lib/view-context/api/api/api.mjs +1 -1
  40. package/esm2020/lib/view-context/api/api/view.service.mjs +1 -1
  41. package/esm2020/lib/view-context/api/api.module.mjs +1 -1
  42. package/esm2020/lib/view-context/api/configuration.mjs +1 -1
  43. package/esm2020/lib/view-context/api/encoder.mjs +1 -1
  44. package/esm2020/lib/view-context/api/index.mjs +1 -1
  45. package/esm2020/lib/view-context/api/model/closeResult.mjs +1 -1
  46. package/esm2020/lib/view-context/api/model/componentConstraint.mjs +1 -1
  47. package/esm2020/lib/view-context/api/model/componentModel.mjs +1 -1
  48. package/esm2020/lib/view-context/api/model/componentModelChange.mjs +1 -1
  49. package/esm2020/lib/view-context/api/model/dataChange.mjs +1 -1
  50. package/esm2020/lib/view-context/api/model/dataChangeEvent.mjs +1 -1
  51. package/esm2020/lib/view-context/api/model/dataChangeKind.mjs +1 -1
  52. package/esm2020/lib/view-context/api/model/link.mjs +1 -1
  53. package/esm2020/lib/view-context/api/model/messageData.mjs +1 -1
  54. package/esm2020/lib/view-context/api/model/messageOption.mjs +1 -1
  55. package/esm2020/lib/view-context/api/model/messageOptionType.mjs +1 -1
  56. package/esm2020/lib/view-context/api/model/messageResult.mjs +1 -1
  57. package/esm2020/lib/view-context/api/model/messageType.mjs +1 -1
  58. package/esm2020/lib/view-context/api/model/models.mjs +1 -1
  59. package/esm2020/lib/view-context/api/model/openPendingData.mjs +1 -1
  60. package/esm2020/lib/view-context/api/model/smartLinkData.mjs +1 -1
  61. package/esm2020/lib/view-context/api/model/uiAction.mjs +1 -1
  62. package/esm2020/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
  63. package/esm2020/lib/view-context/api/model/uiActionButtonIconPos.mjs +1 -1
  64. package/esm2020/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
  65. package/esm2020/lib/view-context/api/model/uiActionConstraint.mjs +1 -1
  66. package/esm2020/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
  67. package/esm2020/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
  68. package/esm2020/lib/view-context/api/model/uiActionFeedbackType.mjs +1 -1
  69. package/esm2020/lib/view-context/api/model/uiActionInputType.mjs +1 -1
  70. package/esm2020/lib/view-context/api/model/uiActionRequest.mjs +1 -1
  71. package/esm2020/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
  72. package/esm2020/lib/view-context/api/model/valueSet.mjs +1 -1
  73. package/esm2020/lib/view-context/api/model/view.mjs +1 -1
  74. package/esm2020/lib/view-context/api/model/viewApiError.mjs +1 -1
  75. package/esm2020/lib/view-context/api/model/viewConstraint.mjs +1 -1
  76. package/esm2020/lib/view-context/api/model/viewContext.mjs +1 -1
  77. package/esm2020/lib/view-context/api/model/viewContextChange.mjs +1 -1
  78. package/esm2020/lib/view-context/api/model/viewContextData.mjs +1 -1
  79. package/esm2020/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
  80. package/esm2020/lib/view-context/api/model/viewData.mjs +1 -1
  81. package/esm2020/lib/view-context/api/model/viewState.mjs +1 -1
  82. package/esm2020/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
  83. package/esm2020/lib/view-context/api/model/viewType.mjs +1 -1
  84. package/esm2020/lib/view-context/api/param.mjs +1 -1
  85. package/esm2020/lib/view-context/api/variables.mjs +1 -1
  86. package/fesm2015/smartbit4all-ng-client.mjs +17 -41
  87. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  88. package/fesm2020/smartbit4all-ng-client.mjs +15 -41
  89. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  90. package/lib/smart-client/smart-component-api-client.d.ts +4 -3
  91. package/lib/smart-grid/components/table-layout-definer/table-layout-definer.component.d.ts +2 -2
  92. package/package.json +1 -1
  93. package/smartbit4all-ng-client-3.1.14.tgz +0 -0
  94. package/src/lib/smart-form/api/README.md +226 -226
  95. package/src/lib/smart-grid/api/grid-api/README.md +226 -226
  96. package/src/lib/view-context/api/README.md +226 -226
  97. package/smartbit4all-ng-client-3.1.12.tgz +0 -0
@@ -10465,18 +10465,14 @@ class SmartGridService {
10465
10465
  }
10466
10466
  }
10467
10467
  SmartGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, deps: [{ token: GridService }], target: i0.ɵɵFactoryTarget.Injectable });
10468
- SmartGridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, providedIn: 'root' });
10468
+ SmartGridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService });
10469
10469
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, decorators: [{
10470
- type: Injectable,
10471
- args: [{
10472
- providedIn: 'root',
10473
- }]
10470
+ type: Injectable
10474
10471
  }], ctorParameters: function () { return [{ type: GridService }]; } });
10475
10472
 
10476
10473
  class TableLayoutDefinerComponent {
10477
- constructor(data, service, dialogRef) {
10474
+ constructor(data, dialogRef) {
10478
10475
  this.data = data;
10479
- this.service = service;
10480
10476
  this.dialogRef = dialogRef;
10481
10477
  this._destroy$ = new Subject();
10482
10478
  this.orderedColumnsAsObject = {};
@@ -10590,7 +10586,7 @@ class TableLayoutDefinerComponent {
10590
10586
  orderByList: this.view.orderByList,
10591
10587
  orderedColumnNames: this.view.orderedColumnNames,
10592
10588
  };
10593
- await this.service.update(config.uuid, config.identifier, updateData);
10589
+ await this.data.customComponentInputs.config.service.update(config.uuid, config.identifier, updateData);
10594
10590
  this.dialogRef.close();
10595
10591
  }
10596
10592
  getUpdatedOrderedColumns() {
@@ -10623,7 +10619,7 @@ class TableLayoutDefinerComponent {
10623
10619
  return true;
10624
10620
  }
10625
10621
  }
10626
- TableLayoutDefinerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TableLayoutDefinerComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: SmartGridService }, { token: i1$2.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
10622
+ TableLayoutDefinerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TableLayoutDefinerComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$2.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
10627
10623
  TableLayoutDefinerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: TableLayoutDefinerComponent, selector: "app-table-layout-definer", viewQueries: [{ propertyName: "formChildren", predicate: ["forms"], descendants: true }], ngImport: i0, template: "<div class=\"edit-columns-container\">\r\n <div class=\"example-list\" cdkDropList (cdkDropListDropped)=\"drop($event)\">\r\n <div class=\"column-meta-row\" *ngFor=\"let col of forms\" cdkDrag cdkDragLockAxis=\"y\">\r\n <smart-icon color=\"primary\" icon=\"drag_handle\"></smart-icon>\r\n <smartform class=\"form\" #forms [smartForm]=\"col\"></smartform>\r\n <button\r\n *ngIf=\"isAlwaysShow(col) && (view?.orderedColumnNames)!.length > 1\"\r\n (click)=\"removeColumn(col)\"\r\n mat-icon-button\r\n color=\"primary\"\r\n >\r\n <mat-icon>delete_outline</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div appStickyMenu class=\"button-toolbar\">\r\n <button mat-icon-button color=\"primary\" [disabled]=\"addDisabled\" (click)=\"addColumn()\">\r\n <mat-icon>add</mat-icon>\r\n </button>\r\n <button mat-raised-button color=\"primary\" [disabled]=\"disableSave\" (click)=\"submit()\">\r\n Ment\u00E9s\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".edit-columns-container{padding:1rem;display:flex;flex-direction:column;gap:1rem}.row{display:flex;flex-direction:row;gap:.5rem}.form{flex:1}.fields{padding:1rem 0;display:flex;flex-direction:column;gap:.5rem}.example-list{display:flex;flex-direction:column;gap:1rem;width:500px;max-width:100%;max-height:80vh;overflow:auto}.column-meta-row{display:flex;flex-direction:row;gap:1rem;justify-content:space-between;border:solid 1px #ccc;padding:1rem}.buttonsContainer{display:flex;flex-direction:row;justify-content:space-between}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}h2{margin:0}.button-toolbar{display:flex;flex-direction:row;justify-content:space-between;padding:.5rem}\n"], components: [{ type: SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type: SmartformComponent, selector: "smartform", inputs: ["smartForm"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2$2.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
10628
10624
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TableLayoutDefinerComponent, decorators: [{
10629
10625
  type: Component,
@@ -10631,7 +10627,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
10631
10627
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
10632
10628
  type: Inject,
10633
10629
  args: [MAT_DIALOG_DATA]
10634
- }] }, { type: SmartGridService }, { type: i1$2.MatDialogRef }]; }, propDecorators: { formChildren: [{
10630
+ }] }, { type: i1$2.MatDialogRef }]; }, propDecorators: { formChildren: [{
10635
10631
  type: ViewChildren,
10636
10632
  args: ['forms']
10637
10633
  }] } });
@@ -11491,17 +11487,11 @@ class SmartGridComponent {
11491
11487
  uuid: this.uuid,
11492
11488
  identifier: this.smartGrid.gridIdentifier,
11493
11489
  view: this.service.gridModel.view,
11490
+ service: this.service,
11494
11491
  },
11495
11492
  },
11496
11493
  };
11497
- let dialogRef = this.dialog.open(TableLayoutDefinerComponent, { data: dialogData });
11498
- dialogRef
11499
- .afterClosed()
11500
- .pipe(takeUntil(this._destroy$))
11501
- .subscribe((result) => {
11502
- this.service.gridModelChanged.next();
11503
- dialogRef.close();
11504
- });
11494
+ this.dialog.open(TableLayoutDefinerComponent, { data: dialogData });
11505
11495
  }
11506
11496
  }
11507
11497
  SmartGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridComponent, deps: [{ token: SmartGridService }, { token: ComponentFactoryService }, { token: i1$2.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
@@ -12445,29 +12435,6 @@ let SmartComponentApiClient = class SmartComponentApiClient {
12445
12435
  this.auth = auth;
12446
12436
  this.pageName = pageName;
12447
12437
  this._destroy$ = new Subject();
12448
- // protected sendDataChanges: boolean = false;
12449
- // private _useAutoSubmit: boolean = false;
12450
- // private _useAutoSubmitTurnedOff: Subject<void> = new SmartSubject(this._destroy$);
12451
- // protected get useAutoSubmit(): boolean {
12452
- // return this._useAutoSubmit;
12453
- // }
12454
- // protected set useAutoSubmit(useAutoSubmit: boolean) {
12455
- // this._useAutoSubmit = useAutoSubmit;
12456
- // if (this._useAutoSubmit) {
12457
- // this.subscribeToAutoSubmit();
12458
- // this.reSubscribeToChange.pipe(takeUntil(this._useAutoSubmitTurnedOff)).subscribe(() => {
12459
- // this.subscribeToAutoSubmit();
12460
- // });
12461
- // } else {
12462
- // this._useAutoSubmitTurnedOff.next();
12463
- // }
12464
- // }
12465
- // private subscribeToAutoSubmit(): void {
12466
- // this.submit.pipe(takeUntil(this._useAutoSubmitTurnedOff)).subscribe(() => {
12467
- // this.submitForms();
12468
- // this.submit.complete();
12469
- // });
12470
- // }
12471
12438
  this.detectChange = new SmartSubject(this._destroy$);
12472
12439
  this.uiActionModels = [];
12473
12440
  this.dataChanged = new SmartSubject(this._destroy$);
@@ -12582,6 +12549,13 @@ let SmartComponentApiClient = class SmartComponentApiClient {
12582
12549
  // this.model = await this.viewContext.load(this.uuid);
12583
12550
  await this.viewContext.load2(this.uuid);
12584
12551
  }
12552
+ async execute(uiAction, options) {
12553
+ this.uiActionService.uiActionModel = {
12554
+ serviceToUse: this,
12555
+ uiAction: uiAction,
12556
+ };
12557
+ this.uiActionService.execute(uiAction, options);
12558
+ }
12585
12559
  //#region UseUiAction
12586
12560
  getAdditionalParams(uiAction) {
12587
12561
  return {