zek 14.2.47 → 14.2.49

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 (49) hide show
  1. package/esm2020/lib/components/base.component.mjs +3 -2
  2. package/esm2020/lib/components/types.mjs +1 -1
  3. package/esm2020/lib/modules/alert/alert/alert.component.mjs +1 -1
  4. package/esm2020/lib/modules/bb/bb-modal-base.component.mjs +9 -2
  5. package/esm2020/lib/modules/bb/bb-modal-toolbar.mjs +9 -2
  6. package/esm2020/lib/modules/bb/bb.component.mjs +30 -5
  7. package/esm2020/lib/modules/card/card/card.component.mjs +1 -1
  8. package/esm2020/lib/modules/edit-toolbar/edit-toolbar.component.mjs +23 -4
  9. package/esm2020/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.component.mjs +72 -11
  10. package/esm2020/lib/modules/index.mjs +2 -1
  11. package/esm2020/lib/modules/list-toolbar/list-toolbar.component.mjs +44 -7
  12. package/esm2020/lib/modules/modal/modal/modal.component.mjs +72 -8
  13. package/esm2020/lib/modules/page-title/page-title.component.mjs +11 -1
  14. package/esm2020/lib/modules/pager/pager/pager.component.mjs +9 -2
  15. package/esm2020/lib/modules/password/password.component.mjs +9 -2
  16. package/esm2020/lib/modules/progress/index.mjs +3 -0
  17. package/esm2020/lib/modules/progress/module.mjs +26 -0
  18. package/esm2020/lib/modules/progress/progress.mjs +100 -0
  19. package/esm2020/lib/modules/readonly/readonly.directive.mjs +5 -5
  20. package/esm2020/lib/modules/select/select.mjs +1 -1
  21. package/esm2020/lib/modules/select2/select2.component.mjs +1 -1
  22. package/esm2020/lib/modules/select2-multiple/select2-multiple.component.mjs +1 -1
  23. package/esm2020/lib/modules/wizard/wizard/wizard.component.mjs +1 -1
  24. package/esm2020/lib/utils/convert.mjs +7 -1
  25. package/esm2020/lib/utils/math-helper.mjs +2 -2
  26. package/fesm2015/zek.mjs +397 -40
  27. package/fesm2015/zek.mjs.map +1 -1
  28. package/fesm2020/zek.mjs +397 -40
  29. package/fesm2020/zek.mjs.map +1 -1
  30. package/lib/components/base.component.d.ts +3 -2
  31. package/lib/components/types.d.ts +1 -0
  32. package/lib/modules/bb/bb-modal-base.component.d.ts +4 -2
  33. package/lib/modules/bb/bb-modal-toolbar.d.ts +4 -1
  34. package/lib/modules/bb/bb.component.d.ts +13 -4
  35. package/lib/modules/edit-toolbar/edit-toolbar.component.d.ts +10 -3
  36. package/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.component.d.ts +31 -10
  37. package/lib/modules/index.d.ts +1 -0
  38. package/lib/modules/list-toolbar/list-toolbar.component.d.ts +19 -6
  39. package/lib/modules/modal/modal/modal.component.d.ts +31 -11
  40. package/lib/modules/page-title/page-title.component.d.ts +4 -1
  41. package/lib/modules/pager/pager/pager.component.d.ts +4 -1
  42. package/lib/modules/password/password.component.d.ts +4 -1
  43. package/lib/modules/progress/index.d.ts +2 -0
  44. package/lib/modules/progress/module.d.ts +9 -0
  45. package/lib/modules/progress/progress.d.ts +32 -0
  46. package/lib/modules/readonly/readonly.directive.d.ts +3 -2
  47. package/lib/utils/convert.d.ts +1 -0
  48. package/lib/utils/math-helper.d.ts +1 -1
  49. package/package.json +1 -1
package/fesm2015/zek.mjs CHANGED
@@ -336,6 +336,12 @@ class Convert {
336
336
  }
337
337
  return false;
338
338
  }
339
+ static toNumber(value) {
340
+ if (typeof value !== 'undefined' && value !== null && value !== '') {
341
+ return +value;
342
+ }
343
+ return 0;
344
+ }
339
345
  }
340
346
 
341
347
  class CssHelper {
@@ -911,7 +917,7 @@ class HtmlHelper {
911
917
  }
912
918
 
913
919
  class MathHelper {
914
- round(value, decimals = 0) {
920
+ static round(value, decimals = 0) {
915
921
  return Math.round(Number(value) * Math.pow(10, decimals)) / (Math.pow(10, decimals));
916
922
  }
917
923
  ;
@@ -1795,7 +1801,7 @@ class BaseComponent extends CoreComponent {
1795
1801
  return this._readOnly;
1796
1802
  }
1797
1803
  set readOnly(v) {
1798
- this._readOnly = v;
1804
+ this._readOnly = Convert.toBoolean(v);
1799
1805
  }
1800
1806
  getParam(name) {
1801
1807
  return this.route.snapshot.paramMap.get(name);
@@ -2910,10 +2916,10 @@ class ButtonBrowseComponent extends CoreUiComponent {
2910
2916
  this.filter = {};
2911
2917
  this.data = new PagedList();
2912
2918
  this._text = null;
2913
- this.readOnly = false;
2914
- this.hide = false;
2915
- this.showInput = true;
2916
- this.multiSelect = false;
2919
+ this._readOnly = false;
2920
+ this._hide = false;
2921
+ this._showInput = true;
2922
+ this._multiSelect = false;
2917
2923
  this.onShowModal = new EventEmitter();
2918
2924
  this.onChooseAll = new EventEmitter();
2919
2925
  this.onKeyPairChange = new EventEmitter();
@@ -2950,6 +2956,30 @@ class ButtonBrowseComponent extends CoreUiComponent {
2950
2956
  onTextChanged() {
2951
2957
  this.onKeyPairChange.emit({ key: this._value, value: this._text });
2952
2958
  }
2959
+ get readOnly() {
2960
+ return this._readOnly;
2961
+ }
2962
+ set readOnly(v) {
2963
+ this._readOnly = Convert.toBoolean(v);
2964
+ }
2965
+ get hide() {
2966
+ return this._hide;
2967
+ }
2968
+ set hide(v) {
2969
+ this._hide = Convert.toBoolean(v);
2970
+ }
2971
+ get showInput() {
2972
+ return this._showInput;
2973
+ }
2974
+ set showInput(v) {
2975
+ this._showInput = Convert.toBoolean(v);
2976
+ }
2977
+ get multiSelect() {
2978
+ return this._multiSelect;
2979
+ }
2980
+ set multiSelect(v) {
2981
+ this._multiSelect = Convert.toBoolean(v);
2982
+ }
2953
2983
  get modal() {
2954
2984
  if (!this._modal) {
2955
2985
  let modalEl = document.getElementById(this.modalId);
@@ -3052,7 +3082,7 @@ class ButtonBrowseModalToolbarComponent {
3052
3082
  constructor() {
3053
3083
  this.onSearch = new EventEmitter();
3054
3084
  this.onReset = new EventEmitter();
3055
- this.multiSelect = false;
3085
+ this._multiSelect = false;
3056
3086
  this.onChooseAll = new EventEmitter();
3057
3087
  }
3058
3088
  search() {
@@ -3061,6 +3091,12 @@ class ButtonBrowseModalToolbarComponent {
3061
3091
  reset() {
3062
3092
  this.onReset.emit();
3063
3093
  }
3094
+ get multiSelect() {
3095
+ return this._multiSelect;
3096
+ }
3097
+ set multiSelect(v) {
3098
+ this._multiSelect = Convert.toBoolean(v);
3099
+ }
3064
3100
  chooseAll() {
3065
3101
  if (!this.multiSelect)
3066
3102
  return;
@@ -3116,10 +3152,16 @@ class ButtonBrowseModalBaseComponent extends CoreComponent {
3116
3152
  constructor() {
3117
3153
  super(...arguments);
3118
3154
  this.filter = {};
3119
- this.multiSelect = false;
3155
+ this._multiSelect = false;
3120
3156
  this.onChoose = new EventEmitter();
3121
3157
  this.onChooseAll = new EventEmitter();
3122
3158
  }
3159
+ get multiSelect() {
3160
+ return this._multiSelect;
3161
+ }
3162
+ set multiSelect(v) {
3163
+ this._multiSelect = Convert.toBoolean(v);
3164
+ }
3123
3165
  choose(value) {
3124
3166
  this.onChoose.emit(value);
3125
3167
  }
@@ -3550,9 +3592,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
3550
3592
  class EditToolbarComponent {
3551
3593
  constructor() {
3552
3594
  this.printType = PrintType;
3553
- this.showExport = false;
3554
- this.showPrint = false;
3555
- this.readOnly = false;
3595
+ this._showExport = false;
3596
+ this._showPrint = false;
3597
+ this._readOnly = false;
3556
3598
  this.onSave = new EventEmitter();
3557
3599
  // save(navigateToReturnUrl: boolean) {
3558
3600
  // this.onSave.emit(navigateToReturnUrl);
@@ -3566,6 +3608,24 @@ class EditToolbarComponent {
3566
3608
  this.onPrint = new EventEmitter();
3567
3609
  this.onExport = new EventEmitter();
3568
3610
  }
3611
+ get showExport() {
3612
+ return this._showExport;
3613
+ }
3614
+ set showExport(v) {
3615
+ this._showExport = Convert.toBoolean(v);
3616
+ }
3617
+ get showPrint() {
3618
+ return this._showPrint;
3619
+ }
3620
+ set showPrint(v) {
3621
+ this._showPrint = Convert.toBoolean(v);
3622
+ }
3623
+ get readOnly() {
3624
+ return this._readOnly;
3625
+ }
3626
+ set readOnly(v) {
3627
+ this._readOnly = Convert.toBoolean(v);
3628
+ }
3569
3629
  cancel() {
3570
3630
  this.onCancel.emit();
3571
3631
  }
@@ -3686,16 +3746,20 @@ class ModalComponent extends CoreComponent {
3686
3746
  constructor(translate) {
3687
3747
  super();
3688
3748
  this.translate = translate;
3689
- this.showOk = true;
3690
- this.disabledOk = false;
3691
- this.showCancel = true;
3692
- this.autoHide = true;
3749
+ this._showOk = true;
3750
+ this._disabledOk = false;
3751
+ this._showCancel = true;
3752
+ this._autoHide = true;
3693
3753
  this.onShown = new EventEmitter();
3694
3754
  this.onHidden = new EventEmitter();
3695
3755
  this.onOk = new EventEmitter();
3696
3756
  this.componentType = ComponentType.Primary;
3697
- this.showHeader = true;
3698
- this.showFooter = true;
3757
+ this._large = false;
3758
+ this._xl = false;
3759
+ this._scrollable = false;
3760
+ this._fullscreen = false;
3761
+ this._showHeader = true;
3762
+ this._showFooter = true;
3699
3763
  this.onValidating = new EventEmitter(false);
3700
3764
  this.elementId = RandomHelper.randomHex();
3701
3765
  }
@@ -3735,6 +3799,66 @@ class ModalComponent extends CoreComponent {
3735
3799
  }
3736
3800
  }, 1);
3737
3801
  }
3802
+ get showOk() {
3803
+ return this._showOk;
3804
+ }
3805
+ set showOk(v) {
3806
+ this._showOk = Convert.toBoolean(v);
3807
+ }
3808
+ get disabledOk() {
3809
+ return this._disabledOk;
3810
+ }
3811
+ set disabledOk(v) {
3812
+ this._disabledOk = Convert.toBoolean(v);
3813
+ }
3814
+ get showCancel() {
3815
+ return this._showCancel;
3816
+ }
3817
+ set showCancel(v) {
3818
+ this._showCancel = Convert.toBoolean(v);
3819
+ }
3820
+ get autoHide() {
3821
+ return this._autoHide;
3822
+ }
3823
+ set autoHide(v) {
3824
+ this._autoHide = Convert.toBoolean(v);
3825
+ }
3826
+ get large() {
3827
+ return this._large;
3828
+ }
3829
+ set large(v) {
3830
+ this._large = Convert.toBoolean(v);
3831
+ }
3832
+ get xl() {
3833
+ return this._xl;
3834
+ }
3835
+ set xl(v) {
3836
+ this._xl = Convert.toBoolean(v);
3837
+ }
3838
+ get scrollable() {
3839
+ return this._scrollable;
3840
+ }
3841
+ set scrollable(v) {
3842
+ this._scrollable = Convert.toBoolean(v);
3843
+ }
3844
+ get fullscreen() {
3845
+ return this._fullscreen;
3846
+ }
3847
+ set fullscreen(v) {
3848
+ this._fullscreen = Convert.toBoolean(v);
3849
+ }
3850
+ get showHeader() {
3851
+ return this._showHeader;
3852
+ }
3853
+ set showHeader(v) {
3854
+ this._showHeader = Convert.toBoolean(v);
3855
+ }
3856
+ get showFooter() {
3857
+ return this._showFooter;
3858
+ }
3859
+ set showFooter(v) {
3860
+ this._showFooter = Convert.toBoolean(v);
3861
+ }
3738
3862
  // public get modal(): any {
3739
3863
  // if (!this._modal) {
3740
3864
  // this.getModal();
@@ -4140,24 +4264,84 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4140
4264
 
4141
4265
  class GridToolbarComponent {
4142
4266
  constructor() {
4143
- this.showEdit = true;
4144
- this.editEnabled = true;
4145
- this.showDelete = true;
4146
- this.deleteEnabled = true;
4147
- this.showRestore = false;
4148
- this.restoreEnabled = true;
4267
+ this._showEdit = true;
4268
+ this._editEnabled = true;
4269
+ this._showDelete = true;
4270
+ this._deleteEnabled = true;
4271
+ this._showRestore = false;
4272
+ this._restoreEnabled = true;
4149
4273
  this.approveText = 'Action.Approve';
4150
- this.showApprove = false;
4151
- this.approveEnabled = false;
4274
+ this._showApprove = false;
4275
+ this._approveEnabled = false;
4152
4276
  this.disapproveText = 'Action.Disapprove';
4153
- this.showDisapprove = false;
4154
- this.disapproveEnabled = false;
4277
+ this._showDisapprove = false;
4278
+ this._disapproveEnabled = false;
4155
4279
  this.onEdit = new EventEmitter();
4156
4280
  this.onDelete = new EventEmitter();
4157
4281
  this.onApprove = new EventEmitter();
4158
4282
  this.onDisapprove = new EventEmitter();
4159
4283
  this.onRestore = new EventEmitter();
4160
4284
  }
4285
+ get showEdit() {
4286
+ return this._showEdit;
4287
+ }
4288
+ set showEdit(v) {
4289
+ this._showEdit = Convert.toBoolean(v);
4290
+ }
4291
+ get editEnabled() {
4292
+ return this._editEnabled;
4293
+ }
4294
+ set editEnabled(v) {
4295
+ this._editEnabled = Convert.toBoolean(v);
4296
+ }
4297
+ get showDelete() {
4298
+ return this._showDelete;
4299
+ }
4300
+ set showDelete(v) {
4301
+ this._showDelete = Convert.toBoolean(v);
4302
+ }
4303
+ get deleteEnabled() {
4304
+ return this._deleteEnabled;
4305
+ }
4306
+ set deleteEnabled(v) {
4307
+ this._deleteEnabled = Convert.toBoolean(v);
4308
+ }
4309
+ get showRestore() {
4310
+ return this._showRestore;
4311
+ }
4312
+ set showRestore(v) {
4313
+ this._showRestore = Convert.toBoolean(v);
4314
+ }
4315
+ get restoreEnabled() {
4316
+ return this._restoreEnabled;
4317
+ }
4318
+ set restoreEnabled(v) {
4319
+ this._restoreEnabled = Convert.toBoolean(v);
4320
+ }
4321
+ get showApprove() {
4322
+ return this._showApprove;
4323
+ }
4324
+ set showApprove(v) {
4325
+ this._showApprove = Convert.toBoolean(v);
4326
+ }
4327
+ get approveEnabled() {
4328
+ return this._approveEnabled;
4329
+ }
4330
+ set approveEnabled(v) {
4331
+ this._approveEnabled = Convert.toBoolean(v);
4332
+ }
4333
+ get showDisapprove() {
4334
+ return this._showDisapprove;
4335
+ }
4336
+ set showDisapprove(v) {
4337
+ this._showDisapprove = Convert.toBoolean(v);
4338
+ }
4339
+ get disapproveEnabled() {
4340
+ return this._disapproveEnabled;
4341
+ }
4342
+ set disapproveEnabled(v) {
4343
+ this._disapproveEnabled = Convert.toBoolean(v);
4344
+ }
4161
4345
  edit() {
4162
4346
  //this.router.navigate([this.router.url, this.model]);
4163
4347
  this.onEdit.emit(this.model);
@@ -4258,18 +4442,54 @@ class ListToolbarComponent {
4258
4442
  constructor(router) {
4259
4443
  this.router = router;
4260
4444
  this.printType = PrintType;
4261
- this.isFiltered = false;
4262
- this.showCreate = true;
4263
- this.showFilter = true;
4264
- this.showPrint = false;
4265
- this.showSum = false;
4266
- this.showExport = false;
4445
+ this._isFiltered = false;
4446
+ this._showCreate = true;
4447
+ this._showFilter = true;
4448
+ this._showPrint = false;
4449
+ this._showSum = false;
4450
+ this._showExport = false;
4267
4451
  this.onRefresh = new EventEmitter();
4268
4452
  this.onFilter = new EventEmitter();
4269
4453
  this.onPrint = new EventEmitter();
4270
4454
  this.onSum = new EventEmitter();
4271
4455
  this.onExport = new EventEmitter();
4272
4456
  }
4457
+ get isFiltered() {
4458
+ return this._isFiltered;
4459
+ }
4460
+ set isFiltered(v) {
4461
+ this._isFiltered = Convert.toBoolean(v);
4462
+ }
4463
+ get showCreate() {
4464
+ return this._showCreate;
4465
+ }
4466
+ set showCreate(v) {
4467
+ this._showCreate = Convert.toBoolean(v);
4468
+ }
4469
+ get showFilter() {
4470
+ return this._showFilter;
4471
+ }
4472
+ set showFilter(v) {
4473
+ this._showFilter = Convert.toBoolean(v);
4474
+ }
4475
+ get showPrint() {
4476
+ return this._showPrint;
4477
+ }
4478
+ set showPrint(v) {
4479
+ this._showPrint = Convert.toBoolean(v);
4480
+ }
4481
+ get showSum() {
4482
+ return this._showSum;
4483
+ }
4484
+ set showSum(v) {
4485
+ this._showSum = Convert.toBoolean(v);
4486
+ }
4487
+ get showExport() {
4488
+ return this._showExport;
4489
+ }
4490
+ set showExport(v) {
4491
+ this._showExport = Convert.toBoolean(v);
4492
+ }
4273
4493
  refresh() {
4274
4494
  this.onRefresh.emit();
4275
4495
  }
@@ -4473,6 +4693,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4473
4693
  // export * from './loading-interceptor';
4474
4694
 
4475
4695
  class PageTitleComponent {
4696
+ constructor() {
4697
+ this._isEditPage = true;
4698
+ }
4699
+ get isEditPage() {
4700
+ return this._isEditPage;
4701
+ }
4702
+ set isEditPage(v) {
4703
+ this._isEditPage = Convert.toBoolean(v);
4704
+ }
4476
4705
  }
4477
4706
  PageTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: PageTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4478
4707
  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" }] });
@@ -4513,11 +4742,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4513
4742
  class PagerComponent {
4514
4743
  constructor() {
4515
4744
  this.pager = new Pager();
4516
- this.showPageSize = true;
4745
+ this._showPageSize = true;
4517
4746
  this.pagerAlign = 'start';
4518
4747
  this.onPageChange = new EventEmitter();
4519
4748
  this.onPageSizeChange = new EventEmitter();
4520
4749
  }
4750
+ get showPageSize() {
4751
+ return this._showPageSize;
4752
+ }
4753
+ set showPageSize(v) {
4754
+ this._showPageSize = Convert.toBoolean(v);
4755
+ }
4521
4756
  setPage(page) {
4522
4757
  // if (!this.pager) return;
4523
4758
  if (page === this.pager.pageNumber)
@@ -4588,12 +4823,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4588
4823
  class PasswordComponent {
4589
4824
  constructor() {
4590
4825
  this.name = 'Password';
4591
- this.required = false;
4826
+ this._required = false;
4592
4827
  this.minlength = null;
4593
4828
  this.maxlength = null;
4594
4829
  this.onChange = new EventEmitter();
4595
4830
  this._type = 'password';
4596
4831
  }
4832
+ get required() {
4833
+ return this._required;
4834
+ }
4835
+ set required(v) {
4836
+ this._required = Convert.toBoolean(v);
4837
+ }
4597
4838
  get type() {
4598
4839
  return this._type;
4599
4840
  }
@@ -4666,6 +4907,123 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4666
4907
  }]
4667
4908
  }] });
4668
4909
 
4910
+ function toPercent(v) {
4911
+ let n = MathHelper.round(Convert.toNumber(v));
4912
+ if (n > 100) {
4913
+ return 100;
4914
+ }
4915
+ else if (n < 0) {
4916
+ return 0;
4917
+ }
4918
+ return n;
4919
+ }
4920
+ class ZekProgress {
4921
+ constructor() {
4922
+ this._max = 100;
4923
+ this._value = 0;
4924
+ this._normalizedValue = 0;
4925
+ this._showValue = false;
4926
+ this._striped = false;
4927
+ this._animated = false;
4928
+ this._label = null;
4929
+ this._height = null;
4930
+ }
4931
+ get max() {
4932
+ return this._max;
4933
+ }
4934
+ set max(v) {
4935
+ this._max = toPercent(v);
4936
+ }
4937
+ get value() {
4938
+ return this._value;
4939
+ }
4940
+ set value(v) {
4941
+ this._value = Convert.toNumber(v);
4942
+ this._normalizedValue = toPercent(this._value);
4943
+ }
4944
+ get showValue() {
4945
+ return this._showValue;
4946
+ }
4947
+ set showValue(v) {
4948
+ this._showValue = Convert.toBoolean(v);
4949
+ }
4950
+ get striped() {
4951
+ return this._striped;
4952
+ }
4953
+ set striped(v) {
4954
+ this._striped = Convert.toBoolean(v);
4955
+ }
4956
+ get animated() {
4957
+ return this._animated;
4958
+ }
4959
+ set animated(v) {
4960
+ this._animated = Convert.toBoolean(v);
4961
+ }
4962
+ get label() {
4963
+ return this._label;
4964
+ }
4965
+ set label(v) {
4966
+ if (this.label)
4967
+ this._label = v;
4968
+ }
4969
+ get height() {
4970
+ return this._height;
4971
+ }
4972
+ set height(v) {
4973
+ if (ObjectHelper.isDefined(v)) {
4974
+ this._height = Convert.toNumber(v);
4975
+ }
4976
+ else {
4977
+ this._height = null;
4978
+ }
4979
+ }
4980
+ get background() {
4981
+ return this._background;
4982
+ }
4983
+ set background(v) {
4984
+ this._background = v;
4985
+ }
4986
+ }
4987
+ ZekProgress.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ZekProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
4988
+ ZekProgress.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ZekProgress, selector: "zek-progress", inputs: { max: "max", striped: "striped", animated: "animated", label: "label", height: "height", background: "background" }, ngImport: i0, template: "<div class=\"progress\">\r\n <div class=\"progress-bar\" role=\"progressbar\"\r\n [class.progress-bar-striped]=\"striped || animated\"\r\n [class.progress-bar-animated]=\"animated\"\r\n [style.height.px]=\"height\"\r\n [style.width.%]=\"_normalizedValue\"\r\n [attr.aria-valuenow]=\"_normalizedValue\"\r\n aria-valuemin=\"0\"\r\n [attr.aria-valuemax]=\"max\">\r\n <ng-container *ngIf=\"showValue\">{{_normalizedValue}}%</ng-container>\r\n {{label}}\r\n </div>\r\n</div>", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4989
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ZekProgress, decorators: [{
4990
+ type: Component,
4991
+ args: [{ selector: 'zek-progress', template: "<div class=\"progress\">\r\n <div class=\"progress-bar\" role=\"progressbar\"\r\n [class.progress-bar-striped]=\"striped || animated\"\r\n [class.progress-bar-animated]=\"animated\"\r\n [style.height.px]=\"height\"\r\n [style.width.%]=\"_normalizedValue\"\r\n [attr.aria-valuenow]=\"_normalizedValue\"\r\n aria-valuemin=\"0\"\r\n [attr.aria-valuemax]=\"max\">\r\n <ng-container *ngIf=\"showValue\">{{_normalizedValue}}%</ng-container>\r\n {{label}}\r\n </div>\r\n</div>", styles: [":host{display:block}\n"] }]
4992
+ }], propDecorators: { max: [{
4993
+ type: Input
4994
+ }], striped: [{
4995
+ type: Input
4996
+ }], animated: [{
4997
+ type: Input
4998
+ }], label: [{
4999
+ type: Input
5000
+ }], height: [{
5001
+ type: Input
5002
+ }], background: [{
5003
+ type: Input
5004
+ }] } });
5005
+
5006
+ class ProgressModule {
5007
+ }
5008
+ ProgressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5009
+ ProgressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: ProgressModule, declarations: [ZekProgress], imports: [CommonModule,
5010
+ TranslateModule], exports: [ZekProgress] });
5011
+ ProgressModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ProgressModule, imports: [CommonModule,
5012
+ TranslateModule] });
5013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ProgressModule, decorators: [{
5014
+ type: NgModule,
5015
+ args: [{
5016
+ imports: [
5017
+ CommonModule,
5018
+ TranslateModule
5019
+ ],
5020
+ declarations: [
5021
+ ZekProgress,
5022
+ ],
5023
+ exports: [ZekProgress]
5024
+ }]
5025
+ }] });
5026
+
4669
5027
  let uniqueId$1 = 0;
4670
5028
  /**
4671
5029
  * Provider Expression that allows zek-radio to register as a ControlValueAccessor. This
@@ -4804,12 +5162,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
4804
5162
 
4805
5163
  class ReadOnlyDirective {
4806
5164
  constructor() {
4807
- this._isReadonly = false;
5165
+ this._readonly = false;
4808
5166
  }
4809
- set readonly(v) {
4810
- this._isReadonly = v == true || v == '';
5167
+ readonly(v) {
5168
+ this._readonly = Convert.toBoolean(v);
4811
5169
  }
4812
- ;
4813
5170
  }
4814
5171
  ReadOnlyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ReadOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4815
5172
  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 });
@@ -6182,5 +6539,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
6182
6539
  * Generated bundle index. Do not edit.
6183
6540
  */
6184
6541
 
6185
- export { API_BASE_URL, AgeModule, AgePipe, Alert, AlertComponent, AlertModule, AlertService, AlertType, AppBaseModule, ApproveModalComponent, ArrayHelper, AuthGuardService, AuthService, AutoCompleteDirective, AutoCompleteModule, Base64Helper, BaseAlert, BaseComponent, BaseService, BitwiseHelper, BootstrapHelper, ButtonBrowseComponent, ButtonBrowseModalBaseComponent, ButtonBrowseModalToolbarComponent, ButtonBrowseModule, CallbackModule, CallbackPipe, CardComponent, CardModule, Color, ComponentType, Convert, CoreComponent, CoreUiComponent, CrudService, CssHelper, CustomHttpParamEncoder, DATE_FORMAT, DateAgoModule, DateAgoPipe, DateHelper, DateValueAccessor, DatepickerModule, DeleteModalComponent, DisapproveModalComponent, EditBase, EditBaseComponent, EditComponent, EditFormComponent, EditToolbarComponent, EditToolbarModule, FieldValidatorComponent, FileBase, FileBytes, FileHelper, FileModule, FileSizePipe, FileString, FileViewerComponent, FileViewerModule, FilterBase, FilterHelper, FilterModalComponent, Gender, GridToolbarBarComponent, GridToolbarComponent, GridToolbarModule, HtmlHelper, HttpErrorHandler, KeyPair, KeyPairChecked, KeyPairEx, KeyPairRequired, LANGUAGE, ListBase, ListBaseComponent, ListToolbarComponent, ListToolbarModule, LoadingComponent, LoadingModule, MathHelper, ModalComponent, ModalModule, Month, ObjectHelper, OverlapHelper, PageTitleComponent, PageTitleModule, PagedList, PagedListBase, Pager, PagerBase, PagerComponent, PagerHelper, PagerModule, PasswordComponent, PasswordModule, PeriodRelation, PrintType, RECAPTCHA_SITE_KEY, RadioComponent, RadioModule, RandomHelper, RangeValidator, ReCaptchaService, ReadOnlyDirective, ReadOnlyModule, RecaptchaModule, RestoreModalComponent, SafeModule, SafePipe, Select2Component, Select2Module, Select2MultipleComponent, Select2MultipleModule, SortButtonGroupComponent, SortDirective, SortModule, StorageHelper, StringHelper, SubmitModalComponent, SumComponent, TimeHelper, TimeModule, TimePipe, TimerService, Toast, ToastComponent, Tree, ValidEventArgs, ValidationComponent, ValidatorModule, Validators, ValidatorsModule, WebApiClient, WebApiModule, WizardComponent, WizardComponent2, WizardModule, ZekSelectModule, ZekSelectMultiple, firstBy, handler, nullValidator, rangeValidator };
6542
+ export { API_BASE_URL, AgeModule, AgePipe, Alert, AlertComponent, AlertModule, AlertService, AlertType, AppBaseModule, ApproveModalComponent, ArrayHelper, AuthGuardService, AuthService, AutoCompleteDirective, AutoCompleteModule, Base64Helper, BaseAlert, BaseComponent, BaseService, BitwiseHelper, BootstrapHelper, ButtonBrowseComponent, ButtonBrowseModalBaseComponent, ButtonBrowseModalToolbarComponent, ButtonBrowseModule, CallbackModule, CallbackPipe, CardComponent, CardModule, Color, ComponentType, Convert, CoreComponent, CoreUiComponent, CrudService, CssHelper, CustomHttpParamEncoder, DATE_FORMAT, DateAgoModule, DateAgoPipe, DateHelper, DateValueAccessor, DatepickerModule, DeleteModalComponent, DisapproveModalComponent, EditBase, EditBaseComponent, EditComponent, EditFormComponent, EditToolbarComponent, EditToolbarModule, FieldValidatorComponent, FileBase, FileBytes, FileHelper, FileModule, FileSizePipe, FileString, FileViewerComponent, FileViewerModule, FilterBase, FilterHelper, FilterModalComponent, Gender, GridToolbarBarComponent, GridToolbarComponent, GridToolbarModule, HtmlHelper, HttpErrorHandler, KeyPair, KeyPairChecked, KeyPairEx, KeyPairRequired, LANGUAGE, ListBase, ListBaseComponent, ListToolbarComponent, ListToolbarModule, LoadingComponent, LoadingModule, MathHelper, ModalComponent, ModalModule, Month, ObjectHelper, OverlapHelper, PageTitleComponent, PageTitleModule, PagedList, PagedListBase, Pager, PagerBase, PagerComponent, PagerHelper, PagerModule, PasswordComponent, PasswordModule, PeriodRelation, PrintType, ProgressModule, RECAPTCHA_SITE_KEY, RadioComponent, RadioModule, RandomHelper, RangeValidator, ReCaptchaService, ReadOnlyDirective, ReadOnlyModule, RecaptchaModule, RestoreModalComponent, SafeModule, SafePipe, Select2Component, Select2Module, Select2MultipleComponent, Select2MultipleModule, SortButtonGroupComponent, SortDirective, SortModule, StorageHelper, StringHelper, SubmitModalComponent, SumComponent, TimeHelper, TimeModule, TimePipe, TimerService, Toast, ToastComponent, Tree, ValidEventArgs, ValidationComponent, ValidatorModule, Validators, ValidatorsModule, WebApiClient, WebApiModule, WizardComponent, WizardComponent2, WizardModule, ZekProgress, ZekSelectModule, ZekSelectMultiple, firstBy, handler, nullValidator, rangeValidator };
6186
6543
  //# sourceMappingURL=zek.mjs.map