@smartbit4all/ng-client 4.0.45 → 4.0.46

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 (15) hide show
  1. package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.mjs +3 -6
  2. package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +11 -5
  3. package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.mjs +8 -13
  4. package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.mjs +16 -5
  5. package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.mjs +3 -8
  6. package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +16 -5
  7. package/fesm2022/smartbit4all-ng-client.mjs +51 -36
  8. package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
  9. package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.d.ts +0 -1
  10. package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.d.ts +7 -3
  11. package/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.service.d.ts +7 -3
  12. package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.d.ts +7 -3
  13. package/package.json +1 -1
  14. package/smartbit4all-ng-client-4.0.46.tgz +0 -0
  15. package/smartbit4all-ng-client-4.0.45.tgz +0 -0
@@ -7834,11 +7834,8 @@ class UiActionConfirmDialogComponent {
7834
7834
  this.manager = manager;
7835
7835
  this.componentLibrary = ComponentLibrary;
7836
7836
  this.code = this.service.action.code;
7837
- this.setUp();
7838
- }
7839
- async setUp() {
7840
- this.descriptor = await this.manager.getActionDescriptor(this.service.action);
7841
- this.dialogType = this.descriptor.confirmDialog ? 'confirmDialog' : 'dialog';
7837
+ this.descriptor = service.descriptor;
7838
+ this.dialogType = service.dialogType;
7842
7839
  }
7843
7840
  ngOnDestroy() {
7844
7841
  this.service._destroy$.next();
@@ -7883,18 +7880,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
7883
7880
  }] }, { type: UiActionDescriptorService }] });
7884
7881
 
7885
7882
  class UiActionConfirmDialogService extends SmartdialogService {
7886
- constructor(dialog, router, dialogService, inject, compLib) {
7883
+ constructor(dialog, router, dialogService, inject, compLib, manager) {
7887
7884
  super(dialog, router, dialogService, inject, compLib);
7885
+ this.manager = manager;
7888
7886
  this._destroy$ = new Subject();
7889
7887
  this.onAction = new SmartSubject(this._destroy$);
7890
7888
  this.shouldDoAction = false;
7889
+ this.setUp();
7890
+ }
7891
+ async setUp() {
7892
+ this.descriptor = await this.manager.getActionDescriptor(this.action);
7893
+ this.dialogType = this.descriptor.confirmDialog ? 'confirmDialog' : 'dialog';
7891
7894
  }
7892
7895
  openDialog() {
7893
7896
  this.shouldDoAction = false;
7894
7897
  this.onAction = new SmartSubject(this._destroy$);
7895
7898
  const dialogData = {
7896
7899
  content: {
7897
- title: this.action.descriptor?.confirmDialog?.title,
7900
+ title: this.descriptor[this.dialogType].title,
7898
7901
  },
7899
7902
  size: {},
7900
7903
  customComponent: UiActionConfirmDialogComponent,
@@ -7912,7 +7915,7 @@ class UiActionConfirmDialogService extends SmartdialogService {
7912
7915
  this.closeDialog();
7913
7916
  this.onAction = new SmartSubject(this._destroy$);
7914
7917
  }
7915
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionConfirmDialogService, deps: [{ token: i1$1.MatDialog }, { token: i2$1.Router }, { token: i3$1.DialogService }, { token: i0.Injector }, { token: COMPONENT_LIBRARY }], target: i0.ɵɵFactoryTarget.Injectable }); }
7918
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionConfirmDialogService, deps: [{ token: i1$1.MatDialog }, { token: i2$1.Router }, { token: i3$1.DialogService }, { token: i0.Injector }, { token: COMPONENT_LIBRARY }, { token: UiActionDescriptorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
7916
7919
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionConfirmDialogService, providedIn: 'root' }); }
7917
7920
  }
7918
7921
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionConfirmDialogService, decorators: [{
@@ -7923,7 +7926,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
7923
7926
  }], ctorParameters: () => [{ type: i1$1.MatDialog }, { type: i2$1.Router }, { type: i3$1.DialogService }, { type: i0.Injector }, { type: ComponentLibrary, decorators: [{
7924
7927
  type: Inject,
7925
7928
  args: [COMPONENT_LIBRARY]
7926
- }] }] });
7929
+ }] }, { type: UiActionDescriptorService }] });
7927
7930
 
7928
7931
  class UiActionInputDialogComponent {
7929
7932
  constructor(service, compLib, manager) {
@@ -7939,13 +7942,8 @@ class UiActionInputDialogComponent {
7939
7942
  this.cancel();
7940
7943
  }
7941
7944
  async setUp() {
7942
- this.descriptor = await this.manager.getActionDescriptor(this.service.action);
7943
- if (this.descriptor[this.service.inputTypeName]) {
7944
- this.dialogType = this.service.inputTypeName;
7945
- }
7946
- else {
7947
- this.dialogType = this.descriptor.inputDialog ? 'inputDialog' : 'dialog';
7948
- }
7945
+ this.descriptor = this.service.descriptor;
7946
+ this.dialogType = this.service.dialogType;
7949
7947
  this.constructForm();
7950
7948
  }
7951
7949
  getTitle() {
@@ -8044,10 +8042,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
8044
8042
  }] } });
8045
8043
 
8046
8044
  class UiActionInputDialogService extends SmartdialogService {
8047
- constructor(dialog, router, dialogService, inject, compLib) {
8045
+ constructor(dialog, router, dialogService, inject, compLib, manager) {
8048
8046
  super(dialog, router, dialogService, inject, compLib);
8047
+ this.manager = manager;
8049
8048
  this._destroy$ = new Subject();
8050
8049
  this.onAction = new SmartSubject(this._destroy$);
8050
+ this.setUp();
8051
+ }
8052
+ async setUp() {
8053
+ this.descriptor = await this.manager.getActionDescriptor(this.action);
8054
+ if (this.descriptor[this.inputTypeName]) {
8055
+ this.dialogType = this.inputTypeName;
8056
+ }
8057
+ else {
8058
+ this.dialogType = this.descriptor.inputDialog ? 'inputDialog' : 'dialog';
8059
+ }
8051
8060
  }
8052
8061
  setDataAndOpenDialog(action, nodeName) {
8053
8062
  this.action = action;
@@ -8059,7 +8068,7 @@ class UiActionInputDialogService extends SmartdialogService {
8059
8068
  this.onAction = new SmartSubject(this._destroy$);
8060
8069
  const dialogData = {
8061
8070
  content: {
8062
- title: this.action.descriptor?.[this.inputTypeName]?.title,
8071
+ title: this.descriptor[this.dialogType].title,
8063
8072
  },
8064
8073
  size: {},
8065
8074
  customComponent: UiActionInputDialogComponent,
@@ -8077,7 +8086,7 @@ class UiActionInputDialogService extends SmartdialogService {
8077
8086
  this.closeDialog();
8078
8087
  this.onAction = new SmartSubject(this._destroy$);
8079
8088
  }
8080
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionInputDialogService, deps: [{ token: i1$1.MatDialog }, { token: i2$1.Router }, { token: i3$1.DialogService }, { token: i0.Injector }, { token: COMPONENT_LIBRARY }], target: i0.ɵɵFactoryTarget.Injectable }); }
8089
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionInputDialogService, deps: [{ token: i1$1.MatDialog }, { token: i2$1.Router }, { token: i3$1.DialogService }, { token: i0.Injector }, { token: COMPONENT_LIBRARY }, { token: UiActionDescriptorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
8081
8090
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionInputDialogService, providedIn: 'root' }); }
8082
8091
  }
8083
8092
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionInputDialogService, decorators: [{
@@ -8088,7 +8097,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
8088
8097
  }], ctorParameters: () => [{ type: i1$1.MatDialog }, { type: i2$1.Router }, { type: i3$1.DialogService }, { type: i0.Injector }, { type: ComponentLibrary, decorators: [{
8089
8098
  type: Inject,
8090
8099
  args: [COMPONENT_LIBRARY]
8091
- }] }] });
8100
+ }] }, { type: UiActionDescriptorService }] });
8092
8101
 
8093
8102
  /*
8094
8103
  * Public API Surface of smart-view-context
@@ -8217,11 +8226,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
8217
8226
  }], ctorParameters: () => [{ type: SmartViewContextErrorDialogService }] });
8218
8227
 
8219
8228
  class UiActionFileUploadDialogService extends SmartdialogService {
8220
- constructor(dialog, router, dialogService, inject, compLib) {
8229
+ constructor(dialog, router, dialogService, inject, compLib, manager) {
8221
8230
  super(dialog, router, dialogService, inject, compLib);
8231
+ this.manager = manager;
8222
8232
  this._destroy$ = new Subject();
8223
8233
  this.onAction = new SmartSubject(this._destroy$);
8224
8234
  this.isMultiple = false;
8235
+ this.setUp();
8236
+ }
8237
+ async setUp() {
8238
+ this.descriptor = await this.manager.getActionDescriptor(this.action);
8239
+ if (this.descriptor[this.inputTypeName]) {
8240
+ this.dialogType = this.inputTypeName;
8241
+ }
8242
+ else {
8243
+ this.dialogType = this.descriptor.inputDialog ? 'inputDialog' : 'dialog';
8244
+ }
8225
8245
  }
8226
8246
  setDataAndOpenDialog(action, nodeName) {
8227
8247
  this.action = action;
@@ -8233,7 +8253,7 @@ class UiActionFileUploadDialogService extends SmartdialogService {
8233
8253
  this.onAction = new SmartSubject(this._destroy$);
8234
8254
  const dialogData = {
8235
8255
  content: {
8236
- title: this.action.descriptor?.[this.inputTypeName]?.title,
8256
+ title: this.descriptor[this.dialogType].title,
8237
8257
  },
8238
8258
  size: {},
8239
8259
  customComponent: UiActionFileUploadDialogComponent,
@@ -8251,7 +8271,7 @@ class UiActionFileUploadDialogService extends SmartdialogService {
8251
8271
  this.closeDialog();
8252
8272
  this.onAction = new SmartSubject(this._destroy$);
8253
8273
  }
8254
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionFileUploadDialogService, deps: [{ token: i1$1.MatDialog }, { token: i2$1.Router }, { token: i3$1.DialogService }, { token: i0.Injector }, { token: COMPONENT_LIBRARY }], target: i0.ɵɵFactoryTarget.Injectable }); }
8274
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionFileUploadDialogService, deps: [{ token: i1$1.MatDialog }, { token: i2$1.Router }, { token: i3$1.DialogService }, { token: i0.Injector }, { token: COMPONENT_LIBRARY }, { token: UiActionDescriptorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
8255
8275
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionFileUploadDialogService, providedIn: 'root' }); }
8256
8276
  }
8257
8277
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UiActionFileUploadDialogService, decorators: [{
@@ -8262,7 +8282,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
8262
8282
  }], ctorParameters: () => [{ type: i1$1.MatDialog }, { type: i2$1.Router }, { type: i3$1.DialogService }, { type: i0.Injector }, { type: ComponentLibrary, decorators: [{
8263
8283
  type: Inject,
8264
8284
  args: [COMPONENT_LIBRARY]
8265
- }] }] });
8285
+ }] }, { type: UiActionDescriptorService }] });
8266
8286
 
8267
8287
  class UiActionFileUploadDialogComponent {
8268
8288
  constructor(service, compLib, manager) {
@@ -8280,22 +8300,17 @@ class UiActionFileUploadDialogComponent {
8280
8300
  this.cancel();
8281
8301
  }
8282
8302
  async setUp() {
8283
- this.descriptor = await this.manager.getActionDescriptor(this.service.action);
8303
+ this.descriptor = this.service.descriptor;
8284
8304
  this.isMultiple = this.service.isMultiple;
8285
8305
  this.i18n = {
8286
- addFile: this.descriptor.upload?.title ?? 'dokumentum hozzáadása',
8287
- browseOrDrag: this.descriptor.upload?.description ?? 'tallózás vagy behúzás',
8288
- formats: this.descriptor.upload?.formats ?? '',
8289
- maxSize: this.descriptor.upload?.maxSize ?? '',
8290
- upload: this.descriptor.upload?.uploadButtonTitle,
8306
+ addFile: this.descriptor?.upload?.title ?? 'dokumentum hozzáadása',
8307
+ browseOrDrag: this.descriptor?.upload?.description ?? 'tallózás vagy behúzás',
8308
+ formats: this.descriptor?.upload?.formats ?? '',
8309
+ maxSize: this.descriptor?.upload?.maxSize ?? '',
8310
+ upload: this.descriptor?.upload?.uploadButtonTitle,
8291
8311
  };
8292
8312
  // TODO set max size and file formats by UiAction.params
8293
- if (this.descriptor[this.service.inputTypeName]) {
8294
- this.dialogType = this.service.inputTypeName;
8295
- }
8296
- else {
8297
- this.dialogType = this.descriptor.inputDialog ? 'inputDialog' : 'dialog';
8298
- }
8313
+ this.dialogType = this.service.dialogType;
8299
8314
  }
8300
8315
  getTitle() {
8301
8316
  return this.descriptor[this.dialogType].title;