zek 14.2.47 → 14.2.48

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 (35) hide show
  1. package/esm2020/lib/components/base.component.mjs +3 -2
  2. package/esm2020/lib/modules/alert/alert/alert.component.mjs +1 -1
  3. package/esm2020/lib/modules/bb/bb-modal-base.component.mjs +9 -2
  4. package/esm2020/lib/modules/bb/bb-modal-toolbar.mjs +9 -2
  5. package/esm2020/lib/modules/bb/bb.component.mjs +30 -5
  6. package/esm2020/lib/modules/card/card/card.component.mjs +1 -1
  7. package/esm2020/lib/modules/edit-toolbar/edit-toolbar.component.mjs +23 -4
  8. package/esm2020/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.component.mjs +72 -11
  9. package/esm2020/lib/modules/list-toolbar/list-toolbar.component.mjs +44 -7
  10. package/esm2020/lib/modules/modal/modal/modal.component.mjs +72 -8
  11. package/esm2020/lib/modules/page-title/page-title.component.mjs +11 -1
  12. package/esm2020/lib/modules/pager/pager/pager.component.mjs +9 -2
  13. package/esm2020/lib/modules/password/password.component.mjs +9 -2
  14. package/esm2020/lib/modules/readonly/readonly.directive.mjs +5 -5
  15. package/esm2020/lib/modules/select/select.mjs +1 -1
  16. package/esm2020/lib/modules/select2/select2.component.mjs +1 -1
  17. package/esm2020/lib/modules/select2-multiple/select2-multiple.component.mjs +1 -1
  18. package/esm2020/lib/modules/wizard/wizard/wizard.component.mjs +1 -1
  19. package/fesm2015/zek.mjs +272 -38
  20. package/fesm2015/zek.mjs.map +1 -1
  21. package/fesm2020/zek.mjs +272 -38
  22. package/fesm2020/zek.mjs.map +1 -1
  23. package/lib/components/base.component.d.ts +3 -2
  24. package/lib/modules/bb/bb-modal-base.component.d.ts +4 -2
  25. package/lib/modules/bb/bb-modal-toolbar.d.ts +4 -1
  26. package/lib/modules/bb/bb.component.d.ts +13 -4
  27. package/lib/modules/edit-toolbar/edit-toolbar.component.d.ts +10 -3
  28. package/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.component.d.ts +31 -10
  29. package/lib/modules/list-toolbar/list-toolbar.component.d.ts +19 -6
  30. package/lib/modules/modal/modal/modal.component.d.ts +31 -11
  31. package/lib/modules/page-title/page-title.component.d.ts +4 -1
  32. package/lib/modules/pager/pager/pager.component.d.ts +4 -1
  33. package/lib/modules/password/password.component.d.ts +4 -1
  34. package/lib/modules/readonly/readonly.directive.d.ts +3 -2
  35. package/package.json +1 -1
package/fesm2020/zek.mjs CHANGED
@@ -1788,7 +1788,7 @@ class BaseComponent extends CoreComponent {
1788
1788
  return this._readOnly;
1789
1789
  }
1790
1790
  set readOnly(v) {
1791
- this._readOnly = v;
1791
+ this._readOnly = Convert.toBoolean(v);
1792
1792
  }
1793
1793
  getParam(name) {
1794
1794
  return this.route.snapshot.paramMap.get(name);
@@ -2869,10 +2869,10 @@ class ButtonBrowseComponent extends CoreUiComponent {
2869
2869
  this.filter = {};
2870
2870
  this.data = new PagedList();
2871
2871
  this._text = null;
2872
- this.readOnly = false;
2873
- this.hide = false;
2874
- this.showInput = true;
2875
- this.multiSelect = false;
2872
+ this._readOnly = false;
2873
+ this._hide = false;
2874
+ this._showInput = true;
2875
+ this._multiSelect = false;
2876
2876
  this.onShowModal = new EventEmitter();
2877
2877
  this.onChooseAll = new EventEmitter();
2878
2878
  this.onKeyPairChange = new EventEmitter();
@@ -2908,6 +2908,30 @@ class ButtonBrowseComponent extends CoreUiComponent {
2908
2908
  onTextChanged() {
2909
2909
  this.onKeyPairChange.emit({ key: this._value, value: this._text });
2910
2910
  }
2911
+ get readOnly() {
2912
+ return this._readOnly;
2913
+ }
2914
+ set readOnly(v) {
2915
+ this._readOnly = Convert.toBoolean(v);
2916
+ }
2917
+ get hide() {
2918
+ return this._hide;
2919
+ }
2920
+ set hide(v) {
2921
+ this._hide = Convert.toBoolean(v);
2922
+ }
2923
+ get showInput() {
2924
+ return this._showInput;
2925
+ }
2926
+ set showInput(v) {
2927
+ this._showInput = Convert.toBoolean(v);
2928
+ }
2929
+ get multiSelect() {
2930
+ return this._multiSelect;
2931
+ }
2932
+ set multiSelect(v) {
2933
+ this._multiSelect = Convert.toBoolean(v);
2934
+ }
2911
2935
  get modal() {
2912
2936
  if (!this._modal) {
2913
2937
  let modalEl = document.getElementById(this.modalId);
@@ -3009,7 +3033,7 @@ class ButtonBrowseModalToolbarComponent {
3009
3033
  constructor() {
3010
3034
  this.onSearch = new EventEmitter();
3011
3035
  this.onReset = new EventEmitter();
3012
- this.multiSelect = false;
3036
+ this._multiSelect = false;
3013
3037
  this.onChooseAll = new EventEmitter();
3014
3038
  }
3015
3039
  search() {
@@ -3018,6 +3042,12 @@ class ButtonBrowseModalToolbarComponent {
3018
3042
  reset() {
3019
3043
  this.onReset.emit();
3020
3044
  }
3045
+ get multiSelect() {
3046
+ return this._multiSelect;
3047
+ }
3048
+ set multiSelect(v) {
3049
+ this._multiSelect = Convert.toBoolean(v);
3050
+ }
3021
3051
  chooseAll() {
3022
3052
  if (!this.multiSelect)
3023
3053
  return;
@@ -3073,10 +3103,16 @@ class ButtonBrowseModalBaseComponent extends CoreComponent {
3073
3103
  constructor() {
3074
3104
  super(...arguments);
3075
3105
  this.filter = {};
3076
- this.multiSelect = false;
3106
+ this._multiSelect = false;
3077
3107
  this.onChoose = new EventEmitter();
3078
3108
  this.onChooseAll = new EventEmitter();
3079
3109
  }
3110
+ get multiSelect() {
3111
+ return this._multiSelect;
3112
+ }
3113
+ set multiSelect(v) {
3114
+ this._multiSelect = Convert.toBoolean(v);
3115
+ }
3080
3116
  choose(value) {
3081
3117
  this.onChoose.emit(value);
3082
3118
  }
@@ -3503,9 +3539,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
3503
3539
  class EditToolbarComponent {
3504
3540
  constructor() {
3505
3541
  this.printType = PrintType;
3506
- this.showExport = false;
3507
- this.showPrint = false;
3508
- this.readOnly = false;
3542
+ this._showExport = false;
3543
+ this._showPrint = false;
3544
+ this._readOnly = false;
3509
3545
  this.onSave = new EventEmitter();
3510
3546
  // save(navigateToReturnUrl: boolean) {
3511
3547
  // this.onSave.emit(navigateToReturnUrl);
@@ -3519,6 +3555,24 @@ class EditToolbarComponent {
3519
3555
  this.onPrint = new EventEmitter();
3520
3556
  this.onExport = new EventEmitter();
3521
3557
  }
3558
+ get showExport() {
3559
+ return this._showExport;
3560
+ }
3561
+ set showExport(v) {
3562
+ this._showExport = Convert.toBoolean(v);
3563
+ }
3564
+ get showPrint() {
3565
+ return this._showPrint;
3566
+ }
3567
+ set showPrint(v) {
3568
+ this._showPrint = Convert.toBoolean(v);
3569
+ }
3570
+ get readOnly() {
3571
+ return this._readOnly;
3572
+ }
3573
+ set readOnly(v) {
3574
+ this._readOnly = Convert.toBoolean(v);
3575
+ }
3522
3576
  cancel() {
3523
3577
  this.onCancel.emit();
3524
3578
  }
@@ -3639,16 +3693,20 @@ class ModalComponent extends CoreComponent {
3639
3693
  constructor(translate) {
3640
3694
  super();
3641
3695
  this.translate = translate;
3642
- this.showOk = true;
3643
- this.disabledOk = false;
3644
- this.showCancel = true;
3645
- this.autoHide = true;
3696
+ this._showOk = true;
3697
+ this._disabledOk = false;
3698
+ this._showCancel = true;
3699
+ this._autoHide = true;
3646
3700
  this.onShown = new EventEmitter();
3647
3701
  this.onHidden = new EventEmitter();
3648
3702
  this.onOk = new EventEmitter();
3649
3703
  this.componentType = ComponentType.Primary;
3650
- this.showHeader = true;
3651
- this.showFooter = true;
3704
+ this._large = false;
3705
+ this._xl = false;
3706
+ this._scrollable = false;
3707
+ this._fullscreen = false;
3708
+ this._showHeader = true;
3709
+ this._showFooter = true;
3652
3710
  this.onValidating = new EventEmitter(false);
3653
3711
  this.elementId = RandomHelper.randomHex();
3654
3712
  }
@@ -3682,6 +3740,66 @@ class ModalComponent extends CoreComponent {
3682
3740
  }
3683
3741
  }, 1);
3684
3742
  }
3743
+ get showOk() {
3744
+ return this._showOk;
3745
+ }
3746
+ set showOk(v) {
3747
+ this._showOk = Convert.toBoolean(v);
3748
+ }
3749
+ get disabledOk() {
3750
+ return this._disabledOk;
3751
+ }
3752
+ set disabledOk(v) {
3753
+ this._disabledOk = Convert.toBoolean(v);
3754
+ }
3755
+ get showCancel() {
3756
+ return this._showCancel;
3757
+ }
3758
+ set showCancel(v) {
3759
+ this._showCancel = Convert.toBoolean(v);
3760
+ }
3761
+ get autoHide() {
3762
+ return this._autoHide;
3763
+ }
3764
+ set autoHide(v) {
3765
+ this._autoHide = Convert.toBoolean(v);
3766
+ }
3767
+ get large() {
3768
+ return this._large;
3769
+ }
3770
+ set large(v) {
3771
+ this._large = Convert.toBoolean(v);
3772
+ }
3773
+ get xl() {
3774
+ return this._xl;
3775
+ }
3776
+ set xl(v) {
3777
+ this._xl = Convert.toBoolean(v);
3778
+ }
3779
+ get scrollable() {
3780
+ return this._scrollable;
3781
+ }
3782
+ set scrollable(v) {
3783
+ this._scrollable = Convert.toBoolean(v);
3784
+ }
3785
+ get fullscreen() {
3786
+ return this._fullscreen;
3787
+ }
3788
+ set fullscreen(v) {
3789
+ this._fullscreen = Convert.toBoolean(v);
3790
+ }
3791
+ get showHeader() {
3792
+ return this._showHeader;
3793
+ }
3794
+ set showHeader(v) {
3795
+ this._showHeader = Convert.toBoolean(v);
3796
+ }
3797
+ get showFooter() {
3798
+ return this._showFooter;
3799
+ }
3800
+ set showFooter(v) {
3801
+ this._showFooter = Convert.toBoolean(v);
3802
+ }
3685
3803
  // public get modal(): any {
3686
3804
  // if (!this._modal) {
3687
3805
  // this.getModal();
@@ -4087,24 +4205,84 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4087
4205
 
4088
4206
  class GridToolbarComponent {
4089
4207
  constructor() {
4090
- this.showEdit = true;
4091
- this.editEnabled = true;
4092
- this.showDelete = true;
4093
- this.deleteEnabled = true;
4094
- this.showRestore = false;
4095
- this.restoreEnabled = true;
4208
+ this._showEdit = true;
4209
+ this._editEnabled = true;
4210
+ this._showDelete = true;
4211
+ this._deleteEnabled = true;
4212
+ this._showRestore = false;
4213
+ this._restoreEnabled = true;
4096
4214
  this.approveText = 'Action.Approve';
4097
- this.showApprove = false;
4098
- this.approveEnabled = false;
4215
+ this._showApprove = false;
4216
+ this._approveEnabled = false;
4099
4217
  this.disapproveText = 'Action.Disapprove';
4100
- this.showDisapprove = false;
4101
- this.disapproveEnabled = false;
4218
+ this._showDisapprove = false;
4219
+ this._disapproveEnabled = false;
4102
4220
  this.onEdit = new EventEmitter();
4103
4221
  this.onDelete = new EventEmitter();
4104
4222
  this.onApprove = new EventEmitter();
4105
4223
  this.onDisapprove = new EventEmitter();
4106
4224
  this.onRestore = new EventEmitter();
4107
4225
  }
4226
+ get showEdit() {
4227
+ return this._showEdit;
4228
+ }
4229
+ set showEdit(v) {
4230
+ this._showEdit = Convert.toBoolean(v);
4231
+ }
4232
+ get editEnabled() {
4233
+ return this._editEnabled;
4234
+ }
4235
+ set editEnabled(v) {
4236
+ this._editEnabled = Convert.toBoolean(v);
4237
+ }
4238
+ get showDelete() {
4239
+ return this._showDelete;
4240
+ }
4241
+ set showDelete(v) {
4242
+ this._showDelete = Convert.toBoolean(v);
4243
+ }
4244
+ get deleteEnabled() {
4245
+ return this._deleteEnabled;
4246
+ }
4247
+ set deleteEnabled(v) {
4248
+ this._deleteEnabled = Convert.toBoolean(v);
4249
+ }
4250
+ get showRestore() {
4251
+ return this._showRestore;
4252
+ }
4253
+ set showRestore(v) {
4254
+ this._showRestore = Convert.toBoolean(v);
4255
+ }
4256
+ get restoreEnabled() {
4257
+ return this._restoreEnabled;
4258
+ }
4259
+ set restoreEnabled(v) {
4260
+ this._restoreEnabled = Convert.toBoolean(v);
4261
+ }
4262
+ get showApprove() {
4263
+ return this._showApprove;
4264
+ }
4265
+ set showApprove(v) {
4266
+ this._showApprove = Convert.toBoolean(v);
4267
+ }
4268
+ get approveEnabled() {
4269
+ return this._approveEnabled;
4270
+ }
4271
+ set approveEnabled(v) {
4272
+ this._approveEnabled = Convert.toBoolean(v);
4273
+ }
4274
+ get showDisapprove() {
4275
+ return this._showDisapprove;
4276
+ }
4277
+ set showDisapprove(v) {
4278
+ this._showDisapprove = Convert.toBoolean(v);
4279
+ }
4280
+ get disapproveEnabled() {
4281
+ return this._disapproveEnabled;
4282
+ }
4283
+ set disapproveEnabled(v) {
4284
+ this._disapproveEnabled = Convert.toBoolean(v);
4285
+ }
4108
4286
  edit() {
4109
4287
  //this.router.navigate([this.router.url, this.model]);
4110
4288
  this.onEdit.emit(this.model);
@@ -4205,18 +4383,54 @@ class ListToolbarComponent {
4205
4383
  constructor(router) {
4206
4384
  this.router = router;
4207
4385
  this.printType = PrintType;
4208
- this.isFiltered = false;
4209
- this.showCreate = true;
4210
- this.showFilter = true;
4211
- this.showPrint = false;
4212
- this.showSum = false;
4213
- this.showExport = false;
4386
+ this._isFiltered = false;
4387
+ this._showCreate = true;
4388
+ this._showFilter = true;
4389
+ this._showPrint = false;
4390
+ this._showSum = false;
4391
+ this._showExport = false;
4214
4392
  this.onRefresh = new EventEmitter();
4215
4393
  this.onFilter = new EventEmitter();
4216
4394
  this.onPrint = new EventEmitter();
4217
4395
  this.onSum = new EventEmitter();
4218
4396
  this.onExport = new EventEmitter();
4219
4397
  }
4398
+ get isFiltered() {
4399
+ return this._isFiltered;
4400
+ }
4401
+ set isFiltered(v) {
4402
+ this._isFiltered = Convert.toBoolean(v);
4403
+ }
4404
+ get showCreate() {
4405
+ return this._showCreate;
4406
+ }
4407
+ set showCreate(v) {
4408
+ this._showCreate = Convert.toBoolean(v);
4409
+ }
4410
+ get showFilter() {
4411
+ return this._showFilter;
4412
+ }
4413
+ set showFilter(v) {
4414
+ this._showFilter = Convert.toBoolean(v);
4415
+ }
4416
+ get showPrint() {
4417
+ return this._showPrint;
4418
+ }
4419
+ set showPrint(v) {
4420
+ this._showPrint = Convert.toBoolean(v);
4421
+ }
4422
+ get showSum() {
4423
+ return this._showSum;
4424
+ }
4425
+ set showSum(v) {
4426
+ this._showSum = Convert.toBoolean(v);
4427
+ }
4428
+ get showExport() {
4429
+ return this._showExport;
4430
+ }
4431
+ set showExport(v) {
4432
+ this._showExport = Convert.toBoolean(v);
4433
+ }
4220
4434
  refresh() {
4221
4435
  this.onRefresh.emit();
4222
4436
  }
@@ -4420,6 +4634,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4420
4634
  // export * from './loading-interceptor';
4421
4635
 
4422
4636
  class PageTitleComponent {
4637
+ constructor() {
4638
+ this._isEditPage = true;
4639
+ }
4640
+ get isEditPage() {
4641
+ return this._isEditPage;
4642
+ }
4643
+ set isEditPage(v) {
4644
+ this._isEditPage = Convert.toBoolean(v);
4645
+ }
4423
4646
  }
4424
4647
  PageTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: PageTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4425
4648
  PageTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: PageTitleComponent, selector: "zek-page-title", inputs: { icon: "icon", title: "title", isEditPage: "isEditPage", modelId: "modelId" }, ngImport: i0, template: "<h1 class=\"h2 pt-3 pb-2 mb-3 border-bottom\">\r\n <i *ngIf=\"icon\" class=\"{{icon}}\"></i><ng-container *ngIf=\"icon\">&nbsp;</ng-container>{{ title }}&nbsp;<ng-container *ngIf=\"isEditPage\">\r\n <small class=\"text-muted\" *ngIf=\"modelId && modelId > 0 else elseBlock\">[<ng-container>{{ 'Action.Edit' | translate }}</ng-container>]</small>\r\n <ng-template #elseBlock>\r\n <small class=\"text-muted\">[<ng-container>{{ 'Action.Create' | translate }}</ng-container>]</small>\r\n </ng-template>\r\n </ng-container>\r\n</h1>", dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
@@ -4460,11 +4683,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4460
4683
  class PagerComponent {
4461
4684
  constructor() {
4462
4685
  this.pager = new Pager();
4463
- this.showPageSize = true;
4686
+ this._showPageSize = true;
4464
4687
  this.pagerAlign = 'start';
4465
4688
  this.onPageChange = new EventEmitter();
4466
4689
  this.onPageSizeChange = new EventEmitter();
4467
4690
  }
4691
+ get showPageSize() {
4692
+ return this._showPageSize;
4693
+ }
4694
+ set showPageSize(v) {
4695
+ this._showPageSize = Convert.toBoolean(v);
4696
+ }
4468
4697
  setPage(page) {
4469
4698
  // if (!this.pager) return;
4470
4699
  if (page === this.pager.pageNumber)
@@ -4535,12 +4764,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4535
4764
  class PasswordComponent {
4536
4765
  constructor() {
4537
4766
  this.name = 'Password';
4538
- this.required = false;
4767
+ this._required = false;
4539
4768
  this.minlength = null;
4540
4769
  this.maxlength = null;
4541
4770
  this.onChange = new EventEmitter();
4542
4771
  this._type = 'password';
4543
4772
  }
4773
+ get required() {
4774
+ return this._required;
4775
+ }
4776
+ set required(v) {
4777
+ this._required = Convert.toBoolean(v);
4778
+ }
4544
4779
  get type() {
4545
4780
  return this._type;
4546
4781
  }
@@ -4751,12 +4986,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4751
4986
 
4752
4987
  class ReadOnlyDirective {
4753
4988
  constructor() {
4754
- this._isReadonly = false;
4989
+ this._readonly = false;
4755
4990
  }
4756
- set readonly(v) {
4757
- this._isReadonly = v == true || v == '';
4991
+ readonly(v) {
4992
+ this._readonly = Convert.toBoolean(v);
4758
4993
  }
4759
- ;
4760
4994
  }
4761
4995
  ReadOnlyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ReadOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4762
4996
  ReadOnlyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: ReadOnlyDirective, selector: "[readonly],[readOnly]", inputs: { readonly: "readonly" }, host: { properties: { "attr.readonly": "_isReadonly ? \"\" : null" } }, ngImport: i0 });