zek 14.2.89 → 14.2.90

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/fesm2020/zek.mjs CHANGED
@@ -335,6 +335,9 @@ class Convert {
335
335
  }
336
336
  return false;
337
337
  }
338
+ static toBooleanProperty(value) {
339
+ return value != null && `${value}` !== 'false';
340
+ }
338
341
  static parseNumber(value) {
339
342
  if (typeof value === 'undefined' || value == null || (typeof value === 'string' && value.length === 0))
340
343
  return null;
@@ -1491,19 +1494,12 @@ class Pager extends PagerBase {
1491
1494
  class PagedListBase {
1492
1495
  constructor() {
1493
1496
  this.pager = new Pager();
1494
- // constructor() {
1495
- // this.pager = new Pager();
1496
- // }
1497
1497
  }
1498
1498
  }
1499
1499
  class PagedList extends PagedListBase {
1500
1500
  constructor() {
1501
1501
  super(...arguments);
1502
1502
  this.data = [];
1503
- // constructor() {
1504
- // super();
1505
- // this.data = [];
1506
- // }
1507
1503
  }
1508
1504
  }
1509
1505
 
@@ -1929,7 +1925,7 @@ class BaseComponent extends CoreComponent {
1929
1925
  return this._readOnly;
1930
1926
  }
1931
1927
  set readOnly(v) {
1932
- this._readOnly = Convert.toBoolean(v);
1928
+ this._readOnly = Convert.toBooleanProperty(v);
1933
1929
  }
1934
1930
  get url() {
1935
1931
  if (!this._url)
@@ -2088,7 +2084,7 @@ class CoreUiComponent extends CoreComponent {
2088
2084
  return this._readonly;
2089
2085
  }
2090
2086
  set readonly(value) {
2091
- let v = Convert.toBoolean(value);
2087
+ let v = Convert.toBooleanProperty(value);
2092
2088
  if (this._readonly !== v) {
2093
2089
  this._readonly = v;
2094
2090
  this.onReadOnlyChanged();
@@ -2100,7 +2096,7 @@ class CoreUiComponent extends CoreComponent {
2100
2096
  return this._disabled;
2101
2097
  }
2102
2098
  set disabled(value) {
2103
- let v = Convert.toBoolean(value);
2099
+ let v = Convert.toBooleanProperty(value);
2104
2100
  if (this._disabled !== v) {
2105
2101
  this._disabled = v;
2106
2102
  this.onDisabledChanged();
@@ -2112,7 +2108,7 @@ class CoreUiComponent extends CoreComponent {
2112
2108
  return this._required;
2113
2109
  }
2114
2110
  set required(value) {
2115
- let v = Convert.toBoolean(value);
2111
+ let v = Convert.toBooleanProperty(value);
2116
2112
  if (this._required !== v) {
2117
2113
  this._required = v;
2118
2114
  this.onRequiredChanged();
@@ -2733,7 +2729,7 @@ class ZekAlert {
2733
2729
  return this._showClose;
2734
2730
  }
2735
2731
  set showClose(v) {
2736
- this._showClose = Convert.toBoolean(v);
2732
+ this._showClose = Convert.toBooleanProperty(v);
2737
2733
  }
2738
2734
  }
2739
2735
  ZekAlert.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ZekAlert, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -3063,25 +3059,25 @@ class ButtonBrowseComponent extends CoreUiComponent {
3063
3059
  return this._readOnly;
3064
3060
  }
3065
3061
  set readOnly(v) {
3066
- this._readOnly = Convert.toBoolean(v);
3062
+ this._readOnly = Convert.toBooleanProperty(v);
3067
3063
  }
3068
3064
  get hide() {
3069
3065
  return this._hide;
3070
3066
  }
3071
3067
  set hide(v) {
3072
- this._hide = Convert.toBoolean(v);
3068
+ this._hide = Convert.toBooleanProperty(v);
3073
3069
  }
3074
3070
  get showInput() {
3075
3071
  return this._showInput;
3076
3072
  }
3077
3073
  set showInput(v) {
3078
- this._showInput = Convert.toBoolean(v);
3074
+ this._showInput = Convert.toBooleanProperty(v);
3079
3075
  }
3080
3076
  get multiSelect() {
3081
3077
  return this._multiSelect;
3082
3078
  }
3083
3079
  set multiSelect(v) {
3084
- this._multiSelect = Convert.toBoolean(v);
3080
+ this._multiSelect = Convert.toBooleanProperty(v);
3085
3081
  }
3086
3082
  get modal() {
3087
3083
  if (!this._modal) {
@@ -3197,7 +3193,7 @@ class ButtonBrowseModalToolbarComponent {
3197
3193
  return this._multiSelect;
3198
3194
  }
3199
3195
  set multiSelect(v) {
3200
- this._multiSelect = Convert.toBoolean(v);
3196
+ this._multiSelect = Convert.toBooleanProperty(v);
3201
3197
  }
3202
3198
  chooseAll() {
3203
3199
  if (!this.multiSelect)
@@ -3262,7 +3258,7 @@ class ButtonBrowseModalBaseComponent extends CoreComponent {
3262
3258
  return this._multiSelect;
3263
3259
  }
3264
3260
  set multiSelect(v) {
3265
- this._multiSelect = Convert.toBoolean(v);
3261
+ this._multiSelect = Convert.toBooleanProperty(v);
3266
3262
  }
3267
3263
  choose(value) {
3268
3264
  this.onChoose.emit(value);
@@ -3710,19 +3706,19 @@ class EditToolbarComponent {
3710
3706
  return this._showExport;
3711
3707
  }
3712
3708
  set showExport(v) {
3713
- this._showExport = Convert.toBoolean(v);
3709
+ this._showExport = Convert.toBooleanProperty(v);
3714
3710
  }
3715
3711
  get showPrint() {
3716
3712
  return this._showPrint;
3717
3713
  }
3718
3714
  set showPrint(v) {
3719
- this._showPrint = Convert.toBoolean(v);
3715
+ this._showPrint = Convert.toBooleanProperty(v);
3720
3716
  }
3721
3717
  get readOnly() {
3722
3718
  return this._readOnly;
3723
3719
  }
3724
3720
  set readOnly(v) {
3725
- this._readOnly = Convert.toBoolean(v);
3721
+ this._readOnly = Convert.toBooleanProperty(v);
3726
3722
  }
3727
3723
  cancel() {
3728
3724
  this.onCancel.emit();
@@ -3895,61 +3891,61 @@ class ModalComponent extends CoreComponent {
3895
3891
  return this._showOk;
3896
3892
  }
3897
3893
  set showOk(v) {
3898
- this._showOk = Convert.toBoolean(v);
3894
+ this._showOk = Convert.toBooleanProperty(v);
3899
3895
  }
3900
3896
  get disabledOk() {
3901
3897
  return this._disabledOk;
3902
3898
  }
3903
3899
  set disabledOk(v) {
3904
- this._disabledOk = Convert.toBoolean(v);
3900
+ this._disabledOk = Convert.toBooleanProperty(v);
3905
3901
  }
3906
3902
  get showCancel() {
3907
3903
  return this._showCancel;
3908
3904
  }
3909
3905
  set showCancel(v) {
3910
- this._showCancel = Convert.toBoolean(v);
3906
+ this._showCancel = Convert.toBooleanProperty(v);
3911
3907
  }
3912
3908
  get autoHide() {
3913
3909
  return this._autoHide;
3914
3910
  }
3915
3911
  set autoHide(v) {
3916
- this._autoHide = Convert.toBoolean(v);
3912
+ this._autoHide = Convert.toBooleanProperty(v);
3917
3913
  }
3918
3914
  get large() {
3919
3915
  return this._large;
3920
3916
  }
3921
3917
  set large(v) {
3922
- this._large = Convert.toBoolean(v);
3918
+ this._large = Convert.toBooleanProperty(v);
3923
3919
  }
3924
3920
  get xl() {
3925
3921
  return this._xl;
3926
3922
  }
3927
3923
  set xl(v) {
3928
- this._xl = Convert.toBoolean(v);
3924
+ this._xl = Convert.toBooleanProperty(v);
3929
3925
  }
3930
3926
  get scrollable() {
3931
3927
  return this._scrollable;
3932
3928
  }
3933
3929
  set scrollable(v) {
3934
- this._scrollable = Convert.toBoolean(v);
3930
+ this._scrollable = Convert.toBooleanProperty(v);
3935
3931
  }
3936
3932
  get fullscreen() {
3937
3933
  return this._fullscreen;
3938
3934
  }
3939
3935
  set fullscreen(v) {
3940
- this._fullscreen = Convert.toBoolean(v);
3936
+ this._fullscreen = Convert.toBooleanProperty(v);
3941
3937
  }
3942
3938
  get showHeader() {
3943
3939
  return this._showHeader;
3944
3940
  }
3945
3941
  set showHeader(v) {
3946
- this._showHeader = Convert.toBoolean(v);
3942
+ this._showHeader = Convert.toBooleanProperty(v);
3947
3943
  }
3948
3944
  get showFooter() {
3949
3945
  return this._showFooter;
3950
3946
  }
3951
3947
  set showFooter(v) {
3952
- this._showFooter = Convert.toBoolean(v);
3948
+ this._showFooter = Convert.toBooleanProperty(v);
3953
3949
  }
3954
3950
  // public get modal(): any {
3955
3951
  // if (!this._modal) {
@@ -4378,61 +4374,61 @@ class GridToolbarComponent {
4378
4374
  return this._showEdit;
4379
4375
  }
4380
4376
  set showEdit(v) {
4381
- this._showEdit = Convert.toBoolean(v);
4377
+ this._showEdit = Convert.toBooleanProperty(v);
4382
4378
  }
4383
4379
  get editEnabled() {
4384
4380
  return this._editEnabled;
4385
4381
  }
4386
4382
  set editEnabled(v) {
4387
- this._editEnabled = Convert.toBoolean(v);
4383
+ this._editEnabled = Convert.toBooleanProperty(v);
4388
4384
  }
4389
4385
  get showDelete() {
4390
4386
  return this._showDelete;
4391
4387
  }
4392
4388
  set showDelete(v) {
4393
- this._showDelete = Convert.toBoolean(v);
4389
+ this._showDelete = Convert.toBooleanProperty(v);
4394
4390
  }
4395
4391
  get deleteEnabled() {
4396
4392
  return this._deleteEnabled;
4397
4393
  }
4398
4394
  set deleteEnabled(v) {
4399
- this._deleteEnabled = Convert.toBoolean(v);
4395
+ this._deleteEnabled = Convert.toBooleanProperty(v);
4400
4396
  }
4401
4397
  get showRestore() {
4402
4398
  return this._showRestore;
4403
4399
  }
4404
4400
  set showRestore(v) {
4405
- this._showRestore = Convert.toBoolean(v);
4401
+ this._showRestore = Convert.toBooleanProperty(v);
4406
4402
  }
4407
4403
  get restoreEnabled() {
4408
4404
  return this._restoreEnabled;
4409
4405
  }
4410
4406
  set restoreEnabled(v) {
4411
- this._restoreEnabled = Convert.toBoolean(v);
4407
+ this._restoreEnabled = Convert.toBooleanProperty(v);
4412
4408
  }
4413
4409
  get showApprove() {
4414
4410
  return this._showApprove;
4415
4411
  }
4416
4412
  set showApprove(v) {
4417
- this._showApprove = Convert.toBoolean(v);
4413
+ this._showApprove = Convert.toBooleanProperty(v);
4418
4414
  }
4419
4415
  get approveEnabled() {
4420
4416
  return this._approveEnabled;
4421
4417
  }
4422
4418
  set approveEnabled(v) {
4423
- this._approveEnabled = Convert.toBoolean(v);
4419
+ this._approveEnabled = Convert.toBooleanProperty(v);
4424
4420
  }
4425
4421
  get showDisapprove() {
4426
4422
  return this._showDisapprove;
4427
4423
  }
4428
4424
  set showDisapprove(v) {
4429
- this._showDisapprove = Convert.toBoolean(v);
4425
+ this._showDisapprove = Convert.toBooleanProperty(v);
4430
4426
  }
4431
4427
  get disapproveEnabled() {
4432
4428
  return this._disapproveEnabled;
4433
4429
  }
4434
4430
  set disapproveEnabled(v) {
4435
- this._disapproveEnabled = Convert.toBoolean(v);
4431
+ this._disapproveEnabled = Convert.toBooleanProperty(v);
4436
4432
  }
4437
4433
  edit() {
4438
4434
  //this.router.navigate([this.router.url, this.model]);
@@ -4550,37 +4546,37 @@ class ListToolbarComponent {
4550
4546
  return this._isFiltered;
4551
4547
  }
4552
4548
  set isFiltered(v) {
4553
- this._isFiltered = Convert.toBoolean(v);
4549
+ this._isFiltered = Convert.toBooleanProperty(v);
4554
4550
  }
4555
4551
  get showCreate() {
4556
4552
  return this._showCreate;
4557
4553
  }
4558
4554
  set showCreate(v) {
4559
- this._showCreate = Convert.toBoolean(v);
4555
+ this._showCreate = Convert.toBooleanProperty(v);
4560
4556
  }
4561
4557
  get showFilter() {
4562
4558
  return this._showFilter;
4563
4559
  }
4564
4560
  set showFilter(v) {
4565
- this._showFilter = Convert.toBoolean(v);
4561
+ this._showFilter = Convert.toBooleanProperty(v);
4566
4562
  }
4567
4563
  get showPrint() {
4568
4564
  return this._showPrint;
4569
4565
  }
4570
4566
  set showPrint(v) {
4571
- this._showPrint = Convert.toBoolean(v);
4567
+ this._showPrint = Convert.toBooleanProperty(v);
4572
4568
  }
4573
4569
  get showSum() {
4574
4570
  return this._showSum;
4575
4571
  }
4576
4572
  set showSum(v) {
4577
- this._showSum = Convert.toBoolean(v);
4573
+ this._showSum = Convert.toBooleanProperty(v);
4578
4574
  }
4579
4575
  get showExport() {
4580
4576
  return this._showExport;
4581
4577
  }
4582
4578
  set showExport(v) {
4583
- this._showExport = Convert.toBoolean(v);
4579
+ this._showExport = Convert.toBooleanProperty(v);
4584
4580
  }
4585
4581
  refresh() {
4586
4582
  this.onRefresh.emit();
@@ -4793,7 +4789,7 @@ class PageTitleComponent {
4793
4789
  return this._isEditPage;
4794
4790
  }
4795
4791
  set isEditPage(v) {
4796
- this._isEditPage = Convert.toBoolean(v);
4792
+ this._isEditPage = Convert.toBooleanProperty(v);
4797
4793
  }
4798
4794
  }
4799
4795
  PageTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: PageTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -4844,7 +4840,7 @@ class PagerComponent {
4844
4840
  return this._showPageSize;
4845
4841
  }
4846
4842
  set showPageSize(v) {
4847
- this._showPageSize = Convert.toBoolean(v);
4843
+ this._showPageSize = Convert.toBooleanProperty(v);
4848
4844
  }
4849
4845
  setPage(page) {
4850
4846
  // if (!this.pager) return;
@@ -4926,7 +4922,7 @@ class PasswordComponent {
4926
4922
  return this._required;
4927
4923
  }
4928
4924
  set required(v) {
4929
- this._required = Convert.toBoolean(v);
4925
+ this._required = Convert.toBooleanProperty(v);
4930
4926
  }
4931
4927
  get type() {
4932
4928
  return this._type;
@@ -5027,13 +5023,13 @@ class ZekProgress {
5027
5023
  return this._showValue;
5028
5024
  }
5029
5025
  set showValue(v) {
5030
- this._showValue = Convert.toBoolean(v);
5026
+ this._showValue = Convert.toBooleanProperty(v);
5031
5027
  }
5032
5028
  get showTitle() {
5033
5029
  return this._showTitle;
5034
5030
  }
5035
5031
  set showTitle(v) {
5036
- this._showTitle = Convert.toBoolean(v);
5032
+ this._showTitle = Convert.toBooleanProperty(v);
5037
5033
  }
5038
5034
  get _title() {
5039
5035
  return this._showTitle ? `${this._value} %` : null;
@@ -5042,13 +5038,13 @@ class ZekProgress {
5042
5038
  return this._striped;
5043
5039
  }
5044
5040
  set striped(v) {
5045
- this._striped = Convert.toBoolean(v);
5041
+ this._striped = Convert.toBooleanProperty(v);
5046
5042
  }
5047
5043
  get animated() {
5048
5044
  return this._animated;
5049
5045
  }
5050
5046
  set animated(v) {
5051
- this._animated = Convert.toBoolean(v);
5047
+ this._animated = Convert.toBooleanProperty(v);
5052
5048
  }
5053
5049
  get label() {
5054
5050
  return this._label;
@@ -5142,7 +5138,7 @@ class RadioComponent extends CoreUiComponent {
5142
5138
  return this._checked;
5143
5139
  }
5144
5140
  set checked(value) {
5145
- const newCheckedState = Convert.toBoolean(value);
5141
+ const newCheckedState = Convert.toBooleanProperty(value);
5146
5142
  if (this._checked !== newCheckedState) {
5147
5143
  this._checked = newCheckedState;
5148
5144
  this._markForCheck();
@@ -5255,7 +5251,7 @@ class ReadOnlyDirective {
5255
5251
  this._readonly = false;
5256
5252
  }
5257
5253
  readonly(v) {
5258
- this._readonly = Convert.toBoolean(v);
5254
+ this._readonly = Convert.toBooleanProperty(v);
5259
5255
  }
5260
5256
  }
5261
5257
  ReadOnlyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ReadOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
@@ -5487,7 +5483,7 @@ class ZekSelectMultiple extends CoreUiComponent {
5487
5483
  return this._multiple;
5488
5484
  }
5489
5485
  set multiple(value) {
5490
- this._multiple = Convert.toBoolean(value);
5486
+ this._multiple = Convert.toBooleanProperty(value);
5491
5487
  }
5492
5488
  get data() {
5493
5489
  return this._data;