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.
- package/esm2020/lib/components/base.component.mjs +3 -2
- package/esm2020/lib/components/types.mjs +1 -1
- package/esm2020/lib/modules/alert/alert/alert.component.mjs +1 -1
- package/esm2020/lib/modules/bb/bb-modal-base.component.mjs +9 -2
- package/esm2020/lib/modules/bb/bb-modal-toolbar.mjs +9 -2
- package/esm2020/lib/modules/bb/bb.component.mjs +30 -5
- package/esm2020/lib/modules/card/card/card.component.mjs +1 -1
- package/esm2020/lib/modules/edit-toolbar/edit-toolbar.component.mjs +23 -4
- package/esm2020/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.component.mjs +72 -11
- package/esm2020/lib/modules/index.mjs +2 -1
- package/esm2020/lib/modules/list-toolbar/list-toolbar.component.mjs +44 -7
- package/esm2020/lib/modules/modal/modal/modal.component.mjs +72 -8
- package/esm2020/lib/modules/page-title/page-title.component.mjs +11 -1
- package/esm2020/lib/modules/pager/pager/pager.component.mjs +9 -2
- package/esm2020/lib/modules/password/password.component.mjs +9 -2
- package/esm2020/lib/modules/progress/index.mjs +3 -0
- package/esm2020/lib/modules/progress/module.mjs +26 -0
- package/esm2020/lib/modules/progress/progress.mjs +100 -0
- package/esm2020/lib/modules/readonly/readonly.directive.mjs +5 -5
- package/esm2020/lib/modules/select/select.mjs +1 -1
- package/esm2020/lib/modules/select2/select2.component.mjs +1 -1
- package/esm2020/lib/modules/select2-multiple/select2-multiple.component.mjs +1 -1
- package/esm2020/lib/modules/wizard/wizard/wizard.component.mjs +1 -1
- package/esm2020/lib/utils/convert.mjs +7 -1
- package/esm2020/lib/utils/math-helper.mjs +2 -2
- package/fesm2015/zek.mjs +397 -40
- package/fesm2015/zek.mjs.map +1 -1
- package/fesm2020/zek.mjs +397 -40
- package/fesm2020/zek.mjs.map +1 -1
- package/lib/components/base.component.d.ts +3 -2
- package/lib/components/types.d.ts +1 -0
- package/lib/modules/bb/bb-modal-base.component.d.ts +4 -2
- package/lib/modules/bb/bb-modal-toolbar.d.ts +4 -1
- package/lib/modules/bb/bb.component.d.ts +13 -4
- package/lib/modules/edit-toolbar/edit-toolbar.component.d.ts +10 -3
- package/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.component.d.ts +31 -10
- package/lib/modules/index.d.ts +1 -0
- package/lib/modules/list-toolbar/list-toolbar.component.d.ts +19 -6
- package/lib/modules/modal/modal/modal.component.d.ts +31 -11
- package/lib/modules/page-title/page-title.component.d.ts +4 -1
- package/lib/modules/pager/pager/pager.component.d.ts +4 -1
- package/lib/modules/password/password.component.d.ts +4 -1
- package/lib/modules/progress/index.d.ts +2 -0
- package/lib/modules/progress/module.d.ts +9 -0
- package/lib/modules/progress/progress.d.ts +32 -0
- package/lib/modules/readonly/readonly.directive.d.ts +3 -2
- package/lib/utils/convert.d.ts +1 -0
- package/lib/utils/math-helper.d.ts +1 -1
- package/package.json +1 -1
package/fesm2020/zek.mjs
CHANGED
|
@@ -335,6 +335,12 @@ class Convert {
|
|
|
335
335
|
}
|
|
336
336
|
return false;
|
|
337
337
|
}
|
|
338
|
+
static toNumber(value) {
|
|
339
|
+
if (typeof value !== 'undefined' && value !== null && value !== '') {
|
|
340
|
+
return +value;
|
|
341
|
+
}
|
|
342
|
+
return 0;
|
|
343
|
+
}
|
|
338
344
|
}
|
|
339
345
|
|
|
340
346
|
class CssHelper {
|
|
@@ -910,7 +916,7 @@ class HtmlHelper {
|
|
|
910
916
|
}
|
|
911
917
|
|
|
912
918
|
class MathHelper {
|
|
913
|
-
round(value, decimals = 0) {
|
|
919
|
+
static round(value, decimals = 0) {
|
|
914
920
|
return Math.round(Number(value) * Math.pow(10, decimals)) / (Math.pow(10, decimals));
|
|
915
921
|
}
|
|
916
922
|
;
|
|
@@ -1788,7 +1794,7 @@ class BaseComponent extends CoreComponent {
|
|
|
1788
1794
|
return this._readOnly;
|
|
1789
1795
|
}
|
|
1790
1796
|
set readOnly(v) {
|
|
1791
|
-
this._readOnly = v;
|
|
1797
|
+
this._readOnly = Convert.toBoolean(v);
|
|
1792
1798
|
}
|
|
1793
1799
|
getParam(name) {
|
|
1794
1800
|
return this.route.snapshot.paramMap.get(name);
|
|
@@ -2869,10 +2875,10 @@ class ButtonBrowseComponent extends CoreUiComponent {
|
|
|
2869
2875
|
this.filter = {};
|
|
2870
2876
|
this.data = new PagedList();
|
|
2871
2877
|
this._text = null;
|
|
2872
|
-
this.
|
|
2873
|
-
this.
|
|
2874
|
-
this.
|
|
2875
|
-
this.
|
|
2878
|
+
this._readOnly = false;
|
|
2879
|
+
this._hide = false;
|
|
2880
|
+
this._showInput = true;
|
|
2881
|
+
this._multiSelect = false;
|
|
2876
2882
|
this.onShowModal = new EventEmitter();
|
|
2877
2883
|
this.onChooseAll = new EventEmitter();
|
|
2878
2884
|
this.onKeyPairChange = new EventEmitter();
|
|
@@ -2908,6 +2914,30 @@ class ButtonBrowseComponent extends CoreUiComponent {
|
|
|
2908
2914
|
onTextChanged() {
|
|
2909
2915
|
this.onKeyPairChange.emit({ key: this._value, value: this._text });
|
|
2910
2916
|
}
|
|
2917
|
+
get readOnly() {
|
|
2918
|
+
return this._readOnly;
|
|
2919
|
+
}
|
|
2920
|
+
set readOnly(v) {
|
|
2921
|
+
this._readOnly = Convert.toBoolean(v);
|
|
2922
|
+
}
|
|
2923
|
+
get hide() {
|
|
2924
|
+
return this._hide;
|
|
2925
|
+
}
|
|
2926
|
+
set hide(v) {
|
|
2927
|
+
this._hide = Convert.toBoolean(v);
|
|
2928
|
+
}
|
|
2929
|
+
get showInput() {
|
|
2930
|
+
return this._showInput;
|
|
2931
|
+
}
|
|
2932
|
+
set showInput(v) {
|
|
2933
|
+
this._showInput = Convert.toBoolean(v);
|
|
2934
|
+
}
|
|
2935
|
+
get multiSelect() {
|
|
2936
|
+
return this._multiSelect;
|
|
2937
|
+
}
|
|
2938
|
+
set multiSelect(v) {
|
|
2939
|
+
this._multiSelect = Convert.toBoolean(v);
|
|
2940
|
+
}
|
|
2911
2941
|
get modal() {
|
|
2912
2942
|
if (!this._modal) {
|
|
2913
2943
|
let modalEl = document.getElementById(this.modalId);
|
|
@@ -3009,7 +3039,7 @@ class ButtonBrowseModalToolbarComponent {
|
|
|
3009
3039
|
constructor() {
|
|
3010
3040
|
this.onSearch = new EventEmitter();
|
|
3011
3041
|
this.onReset = new EventEmitter();
|
|
3012
|
-
this.
|
|
3042
|
+
this._multiSelect = false;
|
|
3013
3043
|
this.onChooseAll = new EventEmitter();
|
|
3014
3044
|
}
|
|
3015
3045
|
search() {
|
|
@@ -3018,6 +3048,12 @@ class ButtonBrowseModalToolbarComponent {
|
|
|
3018
3048
|
reset() {
|
|
3019
3049
|
this.onReset.emit();
|
|
3020
3050
|
}
|
|
3051
|
+
get multiSelect() {
|
|
3052
|
+
return this._multiSelect;
|
|
3053
|
+
}
|
|
3054
|
+
set multiSelect(v) {
|
|
3055
|
+
this._multiSelect = Convert.toBoolean(v);
|
|
3056
|
+
}
|
|
3021
3057
|
chooseAll() {
|
|
3022
3058
|
if (!this.multiSelect)
|
|
3023
3059
|
return;
|
|
@@ -3073,10 +3109,16 @@ class ButtonBrowseModalBaseComponent extends CoreComponent {
|
|
|
3073
3109
|
constructor() {
|
|
3074
3110
|
super(...arguments);
|
|
3075
3111
|
this.filter = {};
|
|
3076
|
-
this.
|
|
3112
|
+
this._multiSelect = false;
|
|
3077
3113
|
this.onChoose = new EventEmitter();
|
|
3078
3114
|
this.onChooseAll = new EventEmitter();
|
|
3079
3115
|
}
|
|
3116
|
+
get multiSelect() {
|
|
3117
|
+
return this._multiSelect;
|
|
3118
|
+
}
|
|
3119
|
+
set multiSelect(v) {
|
|
3120
|
+
this._multiSelect = Convert.toBoolean(v);
|
|
3121
|
+
}
|
|
3080
3122
|
choose(value) {
|
|
3081
3123
|
this.onChoose.emit(value);
|
|
3082
3124
|
}
|
|
@@ -3503,9 +3545,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
3503
3545
|
class EditToolbarComponent {
|
|
3504
3546
|
constructor() {
|
|
3505
3547
|
this.printType = PrintType;
|
|
3506
|
-
this.
|
|
3507
|
-
this.
|
|
3508
|
-
this.
|
|
3548
|
+
this._showExport = false;
|
|
3549
|
+
this._showPrint = false;
|
|
3550
|
+
this._readOnly = false;
|
|
3509
3551
|
this.onSave = new EventEmitter();
|
|
3510
3552
|
// save(navigateToReturnUrl: boolean) {
|
|
3511
3553
|
// this.onSave.emit(navigateToReturnUrl);
|
|
@@ -3519,6 +3561,24 @@ class EditToolbarComponent {
|
|
|
3519
3561
|
this.onPrint = new EventEmitter();
|
|
3520
3562
|
this.onExport = new EventEmitter();
|
|
3521
3563
|
}
|
|
3564
|
+
get showExport() {
|
|
3565
|
+
return this._showExport;
|
|
3566
|
+
}
|
|
3567
|
+
set showExport(v) {
|
|
3568
|
+
this._showExport = Convert.toBoolean(v);
|
|
3569
|
+
}
|
|
3570
|
+
get showPrint() {
|
|
3571
|
+
return this._showPrint;
|
|
3572
|
+
}
|
|
3573
|
+
set showPrint(v) {
|
|
3574
|
+
this._showPrint = Convert.toBoolean(v);
|
|
3575
|
+
}
|
|
3576
|
+
get readOnly() {
|
|
3577
|
+
return this._readOnly;
|
|
3578
|
+
}
|
|
3579
|
+
set readOnly(v) {
|
|
3580
|
+
this._readOnly = Convert.toBoolean(v);
|
|
3581
|
+
}
|
|
3522
3582
|
cancel() {
|
|
3523
3583
|
this.onCancel.emit();
|
|
3524
3584
|
}
|
|
@@ -3639,16 +3699,20 @@ class ModalComponent extends CoreComponent {
|
|
|
3639
3699
|
constructor(translate) {
|
|
3640
3700
|
super();
|
|
3641
3701
|
this.translate = translate;
|
|
3642
|
-
this.
|
|
3643
|
-
this.
|
|
3644
|
-
this.
|
|
3645
|
-
this.
|
|
3702
|
+
this._showOk = true;
|
|
3703
|
+
this._disabledOk = false;
|
|
3704
|
+
this._showCancel = true;
|
|
3705
|
+
this._autoHide = true;
|
|
3646
3706
|
this.onShown = new EventEmitter();
|
|
3647
3707
|
this.onHidden = new EventEmitter();
|
|
3648
3708
|
this.onOk = new EventEmitter();
|
|
3649
3709
|
this.componentType = ComponentType.Primary;
|
|
3650
|
-
this.
|
|
3651
|
-
this.
|
|
3710
|
+
this._large = false;
|
|
3711
|
+
this._xl = false;
|
|
3712
|
+
this._scrollable = false;
|
|
3713
|
+
this._fullscreen = false;
|
|
3714
|
+
this._showHeader = true;
|
|
3715
|
+
this._showFooter = true;
|
|
3652
3716
|
this.onValidating = new EventEmitter(false);
|
|
3653
3717
|
this.elementId = RandomHelper.randomHex();
|
|
3654
3718
|
}
|
|
@@ -3682,6 +3746,66 @@ class ModalComponent extends CoreComponent {
|
|
|
3682
3746
|
}
|
|
3683
3747
|
}, 1);
|
|
3684
3748
|
}
|
|
3749
|
+
get showOk() {
|
|
3750
|
+
return this._showOk;
|
|
3751
|
+
}
|
|
3752
|
+
set showOk(v) {
|
|
3753
|
+
this._showOk = Convert.toBoolean(v);
|
|
3754
|
+
}
|
|
3755
|
+
get disabledOk() {
|
|
3756
|
+
return this._disabledOk;
|
|
3757
|
+
}
|
|
3758
|
+
set disabledOk(v) {
|
|
3759
|
+
this._disabledOk = Convert.toBoolean(v);
|
|
3760
|
+
}
|
|
3761
|
+
get showCancel() {
|
|
3762
|
+
return this._showCancel;
|
|
3763
|
+
}
|
|
3764
|
+
set showCancel(v) {
|
|
3765
|
+
this._showCancel = Convert.toBoolean(v);
|
|
3766
|
+
}
|
|
3767
|
+
get autoHide() {
|
|
3768
|
+
return this._autoHide;
|
|
3769
|
+
}
|
|
3770
|
+
set autoHide(v) {
|
|
3771
|
+
this._autoHide = Convert.toBoolean(v);
|
|
3772
|
+
}
|
|
3773
|
+
get large() {
|
|
3774
|
+
return this._large;
|
|
3775
|
+
}
|
|
3776
|
+
set large(v) {
|
|
3777
|
+
this._large = Convert.toBoolean(v);
|
|
3778
|
+
}
|
|
3779
|
+
get xl() {
|
|
3780
|
+
return this._xl;
|
|
3781
|
+
}
|
|
3782
|
+
set xl(v) {
|
|
3783
|
+
this._xl = Convert.toBoolean(v);
|
|
3784
|
+
}
|
|
3785
|
+
get scrollable() {
|
|
3786
|
+
return this._scrollable;
|
|
3787
|
+
}
|
|
3788
|
+
set scrollable(v) {
|
|
3789
|
+
this._scrollable = Convert.toBoolean(v);
|
|
3790
|
+
}
|
|
3791
|
+
get fullscreen() {
|
|
3792
|
+
return this._fullscreen;
|
|
3793
|
+
}
|
|
3794
|
+
set fullscreen(v) {
|
|
3795
|
+
this._fullscreen = Convert.toBoolean(v);
|
|
3796
|
+
}
|
|
3797
|
+
get showHeader() {
|
|
3798
|
+
return this._showHeader;
|
|
3799
|
+
}
|
|
3800
|
+
set showHeader(v) {
|
|
3801
|
+
this._showHeader = Convert.toBoolean(v);
|
|
3802
|
+
}
|
|
3803
|
+
get showFooter() {
|
|
3804
|
+
return this._showFooter;
|
|
3805
|
+
}
|
|
3806
|
+
set showFooter(v) {
|
|
3807
|
+
this._showFooter = Convert.toBoolean(v);
|
|
3808
|
+
}
|
|
3685
3809
|
// public get modal(): any {
|
|
3686
3810
|
// if (!this._modal) {
|
|
3687
3811
|
// this.getModal();
|
|
@@ -4087,24 +4211,84 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
4087
4211
|
|
|
4088
4212
|
class GridToolbarComponent {
|
|
4089
4213
|
constructor() {
|
|
4090
|
-
this.
|
|
4091
|
-
this.
|
|
4092
|
-
this.
|
|
4093
|
-
this.
|
|
4094
|
-
this.
|
|
4095
|
-
this.
|
|
4214
|
+
this._showEdit = true;
|
|
4215
|
+
this._editEnabled = true;
|
|
4216
|
+
this._showDelete = true;
|
|
4217
|
+
this._deleteEnabled = true;
|
|
4218
|
+
this._showRestore = false;
|
|
4219
|
+
this._restoreEnabled = true;
|
|
4096
4220
|
this.approveText = 'Action.Approve';
|
|
4097
|
-
this.
|
|
4098
|
-
this.
|
|
4221
|
+
this._showApprove = false;
|
|
4222
|
+
this._approveEnabled = false;
|
|
4099
4223
|
this.disapproveText = 'Action.Disapprove';
|
|
4100
|
-
this.
|
|
4101
|
-
this.
|
|
4224
|
+
this._showDisapprove = false;
|
|
4225
|
+
this._disapproveEnabled = false;
|
|
4102
4226
|
this.onEdit = new EventEmitter();
|
|
4103
4227
|
this.onDelete = new EventEmitter();
|
|
4104
4228
|
this.onApprove = new EventEmitter();
|
|
4105
4229
|
this.onDisapprove = new EventEmitter();
|
|
4106
4230
|
this.onRestore = new EventEmitter();
|
|
4107
4231
|
}
|
|
4232
|
+
get showEdit() {
|
|
4233
|
+
return this._showEdit;
|
|
4234
|
+
}
|
|
4235
|
+
set showEdit(v) {
|
|
4236
|
+
this._showEdit = Convert.toBoolean(v);
|
|
4237
|
+
}
|
|
4238
|
+
get editEnabled() {
|
|
4239
|
+
return this._editEnabled;
|
|
4240
|
+
}
|
|
4241
|
+
set editEnabled(v) {
|
|
4242
|
+
this._editEnabled = Convert.toBoolean(v);
|
|
4243
|
+
}
|
|
4244
|
+
get showDelete() {
|
|
4245
|
+
return this._showDelete;
|
|
4246
|
+
}
|
|
4247
|
+
set showDelete(v) {
|
|
4248
|
+
this._showDelete = Convert.toBoolean(v);
|
|
4249
|
+
}
|
|
4250
|
+
get deleteEnabled() {
|
|
4251
|
+
return this._deleteEnabled;
|
|
4252
|
+
}
|
|
4253
|
+
set deleteEnabled(v) {
|
|
4254
|
+
this._deleteEnabled = Convert.toBoolean(v);
|
|
4255
|
+
}
|
|
4256
|
+
get showRestore() {
|
|
4257
|
+
return this._showRestore;
|
|
4258
|
+
}
|
|
4259
|
+
set showRestore(v) {
|
|
4260
|
+
this._showRestore = Convert.toBoolean(v);
|
|
4261
|
+
}
|
|
4262
|
+
get restoreEnabled() {
|
|
4263
|
+
return this._restoreEnabled;
|
|
4264
|
+
}
|
|
4265
|
+
set restoreEnabled(v) {
|
|
4266
|
+
this._restoreEnabled = Convert.toBoolean(v);
|
|
4267
|
+
}
|
|
4268
|
+
get showApprove() {
|
|
4269
|
+
return this._showApprove;
|
|
4270
|
+
}
|
|
4271
|
+
set showApprove(v) {
|
|
4272
|
+
this._showApprove = Convert.toBoolean(v);
|
|
4273
|
+
}
|
|
4274
|
+
get approveEnabled() {
|
|
4275
|
+
return this._approveEnabled;
|
|
4276
|
+
}
|
|
4277
|
+
set approveEnabled(v) {
|
|
4278
|
+
this._approveEnabled = Convert.toBoolean(v);
|
|
4279
|
+
}
|
|
4280
|
+
get showDisapprove() {
|
|
4281
|
+
return this._showDisapprove;
|
|
4282
|
+
}
|
|
4283
|
+
set showDisapprove(v) {
|
|
4284
|
+
this._showDisapprove = Convert.toBoolean(v);
|
|
4285
|
+
}
|
|
4286
|
+
get disapproveEnabled() {
|
|
4287
|
+
return this._disapproveEnabled;
|
|
4288
|
+
}
|
|
4289
|
+
set disapproveEnabled(v) {
|
|
4290
|
+
this._disapproveEnabled = Convert.toBoolean(v);
|
|
4291
|
+
}
|
|
4108
4292
|
edit() {
|
|
4109
4293
|
//this.router.navigate([this.router.url, this.model]);
|
|
4110
4294
|
this.onEdit.emit(this.model);
|
|
@@ -4205,18 +4389,54 @@ class ListToolbarComponent {
|
|
|
4205
4389
|
constructor(router) {
|
|
4206
4390
|
this.router = router;
|
|
4207
4391
|
this.printType = PrintType;
|
|
4208
|
-
this.
|
|
4209
|
-
this.
|
|
4210
|
-
this.
|
|
4211
|
-
this.
|
|
4212
|
-
this.
|
|
4213
|
-
this.
|
|
4392
|
+
this._isFiltered = false;
|
|
4393
|
+
this._showCreate = true;
|
|
4394
|
+
this._showFilter = true;
|
|
4395
|
+
this._showPrint = false;
|
|
4396
|
+
this._showSum = false;
|
|
4397
|
+
this._showExport = false;
|
|
4214
4398
|
this.onRefresh = new EventEmitter();
|
|
4215
4399
|
this.onFilter = new EventEmitter();
|
|
4216
4400
|
this.onPrint = new EventEmitter();
|
|
4217
4401
|
this.onSum = new EventEmitter();
|
|
4218
4402
|
this.onExport = new EventEmitter();
|
|
4219
4403
|
}
|
|
4404
|
+
get isFiltered() {
|
|
4405
|
+
return this._isFiltered;
|
|
4406
|
+
}
|
|
4407
|
+
set isFiltered(v) {
|
|
4408
|
+
this._isFiltered = Convert.toBoolean(v);
|
|
4409
|
+
}
|
|
4410
|
+
get showCreate() {
|
|
4411
|
+
return this._showCreate;
|
|
4412
|
+
}
|
|
4413
|
+
set showCreate(v) {
|
|
4414
|
+
this._showCreate = Convert.toBoolean(v);
|
|
4415
|
+
}
|
|
4416
|
+
get showFilter() {
|
|
4417
|
+
return this._showFilter;
|
|
4418
|
+
}
|
|
4419
|
+
set showFilter(v) {
|
|
4420
|
+
this._showFilter = Convert.toBoolean(v);
|
|
4421
|
+
}
|
|
4422
|
+
get showPrint() {
|
|
4423
|
+
return this._showPrint;
|
|
4424
|
+
}
|
|
4425
|
+
set showPrint(v) {
|
|
4426
|
+
this._showPrint = Convert.toBoolean(v);
|
|
4427
|
+
}
|
|
4428
|
+
get showSum() {
|
|
4429
|
+
return this._showSum;
|
|
4430
|
+
}
|
|
4431
|
+
set showSum(v) {
|
|
4432
|
+
this._showSum = Convert.toBoolean(v);
|
|
4433
|
+
}
|
|
4434
|
+
get showExport() {
|
|
4435
|
+
return this._showExport;
|
|
4436
|
+
}
|
|
4437
|
+
set showExport(v) {
|
|
4438
|
+
this._showExport = Convert.toBoolean(v);
|
|
4439
|
+
}
|
|
4220
4440
|
refresh() {
|
|
4221
4441
|
this.onRefresh.emit();
|
|
4222
4442
|
}
|
|
@@ -4420,6 +4640,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
4420
4640
|
// export * from './loading-interceptor';
|
|
4421
4641
|
|
|
4422
4642
|
class PageTitleComponent {
|
|
4643
|
+
constructor() {
|
|
4644
|
+
this._isEditPage = true;
|
|
4645
|
+
}
|
|
4646
|
+
get isEditPage() {
|
|
4647
|
+
return this._isEditPage;
|
|
4648
|
+
}
|
|
4649
|
+
set isEditPage(v) {
|
|
4650
|
+
this._isEditPage = Convert.toBoolean(v);
|
|
4651
|
+
}
|
|
4423
4652
|
}
|
|
4424
4653
|
PageTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: PageTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4425
4654
|
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\"> </ng-container>{{ title }} <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 +4689,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
4460
4689
|
class PagerComponent {
|
|
4461
4690
|
constructor() {
|
|
4462
4691
|
this.pager = new Pager();
|
|
4463
|
-
this.
|
|
4692
|
+
this._showPageSize = true;
|
|
4464
4693
|
this.pagerAlign = 'start';
|
|
4465
4694
|
this.onPageChange = new EventEmitter();
|
|
4466
4695
|
this.onPageSizeChange = new EventEmitter();
|
|
4467
4696
|
}
|
|
4697
|
+
get showPageSize() {
|
|
4698
|
+
return this._showPageSize;
|
|
4699
|
+
}
|
|
4700
|
+
set showPageSize(v) {
|
|
4701
|
+
this._showPageSize = Convert.toBoolean(v);
|
|
4702
|
+
}
|
|
4468
4703
|
setPage(page) {
|
|
4469
4704
|
// if (!this.pager) return;
|
|
4470
4705
|
if (page === this.pager.pageNumber)
|
|
@@ -4535,12 +4770,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
4535
4770
|
class PasswordComponent {
|
|
4536
4771
|
constructor() {
|
|
4537
4772
|
this.name = 'Password';
|
|
4538
|
-
this.
|
|
4773
|
+
this._required = false;
|
|
4539
4774
|
this.minlength = null;
|
|
4540
4775
|
this.maxlength = null;
|
|
4541
4776
|
this.onChange = new EventEmitter();
|
|
4542
4777
|
this._type = 'password';
|
|
4543
4778
|
}
|
|
4779
|
+
get required() {
|
|
4780
|
+
return this._required;
|
|
4781
|
+
}
|
|
4782
|
+
set required(v) {
|
|
4783
|
+
this._required = Convert.toBoolean(v);
|
|
4784
|
+
}
|
|
4544
4785
|
get type() {
|
|
4545
4786
|
return this._type;
|
|
4546
4787
|
}
|
|
@@ -4613,6 +4854,123 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
4613
4854
|
}]
|
|
4614
4855
|
}] });
|
|
4615
4856
|
|
|
4857
|
+
function toPercent(v) {
|
|
4858
|
+
let n = MathHelper.round(Convert.toNumber(v));
|
|
4859
|
+
if (n > 100) {
|
|
4860
|
+
return 100;
|
|
4861
|
+
}
|
|
4862
|
+
else if (n < 0) {
|
|
4863
|
+
return 0;
|
|
4864
|
+
}
|
|
4865
|
+
return n;
|
|
4866
|
+
}
|
|
4867
|
+
class ZekProgress {
|
|
4868
|
+
constructor() {
|
|
4869
|
+
this._max = 100;
|
|
4870
|
+
this._value = 0;
|
|
4871
|
+
this._normalizedValue = 0;
|
|
4872
|
+
this._showValue = false;
|
|
4873
|
+
this._striped = false;
|
|
4874
|
+
this._animated = false;
|
|
4875
|
+
this._label = null;
|
|
4876
|
+
this._height = null;
|
|
4877
|
+
}
|
|
4878
|
+
get max() {
|
|
4879
|
+
return this._max;
|
|
4880
|
+
}
|
|
4881
|
+
set max(v) {
|
|
4882
|
+
this._max = toPercent(v);
|
|
4883
|
+
}
|
|
4884
|
+
get value() {
|
|
4885
|
+
return this._value;
|
|
4886
|
+
}
|
|
4887
|
+
set value(v) {
|
|
4888
|
+
this._value = Convert.toNumber(v);
|
|
4889
|
+
this._normalizedValue = toPercent(this._value);
|
|
4890
|
+
}
|
|
4891
|
+
get showValue() {
|
|
4892
|
+
return this._showValue;
|
|
4893
|
+
}
|
|
4894
|
+
set showValue(v) {
|
|
4895
|
+
this._showValue = Convert.toBoolean(v);
|
|
4896
|
+
}
|
|
4897
|
+
get striped() {
|
|
4898
|
+
return this._striped;
|
|
4899
|
+
}
|
|
4900
|
+
set striped(v) {
|
|
4901
|
+
this._striped = Convert.toBoolean(v);
|
|
4902
|
+
}
|
|
4903
|
+
get animated() {
|
|
4904
|
+
return this._animated;
|
|
4905
|
+
}
|
|
4906
|
+
set animated(v) {
|
|
4907
|
+
this._animated = Convert.toBoolean(v);
|
|
4908
|
+
}
|
|
4909
|
+
get label() {
|
|
4910
|
+
return this._label;
|
|
4911
|
+
}
|
|
4912
|
+
set label(v) {
|
|
4913
|
+
if (this.label)
|
|
4914
|
+
this._label = v;
|
|
4915
|
+
}
|
|
4916
|
+
get height() {
|
|
4917
|
+
return this._height;
|
|
4918
|
+
}
|
|
4919
|
+
set height(v) {
|
|
4920
|
+
if (ObjectHelper.isDefined(v)) {
|
|
4921
|
+
this._height = Convert.toNumber(v);
|
|
4922
|
+
}
|
|
4923
|
+
else {
|
|
4924
|
+
this._height = null;
|
|
4925
|
+
}
|
|
4926
|
+
}
|
|
4927
|
+
get background() {
|
|
4928
|
+
return this._background;
|
|
4929
|
+
}
|
|
4930
|
+
set background(v) {
|
|
4931
|
+
this._background = v;
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
ZekProgress.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ZekProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4935
|
+
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"] }] });
|
|
4936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ZekProgress, decorators: [{
|
|
4937
|
+
type: Component,
|
|
4938
|
+
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"] }]
|
|
4939
|
+
}], propDecorators: { max: [{
|
|
4940
|
+
type: Input
|
|
4941
|
+
}], striped: [{
|
|
4942
|
+
type: Input
|
|
4943
|
+
}], animated: [{
|
|
4944
|
+
type: Input
|
|
4945
|
+
}], label: [{
|
|
4946
|
+
type: Input
|
|
4947
|
+
}], height: [{
|
|
4948
|
+
type: Input
|
|
4949
|
+
}], background: [{
|
|
4950
|
+
type: Input
|
|
4951
|
+
}] } });
|
|
4952
|
+
|
|
4953
|
+
class ProgressModule {
|
|
4954
|
+
}
|
|
4955
|
+
ProgressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4956
|
+
ProgressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: ProgressModule, declarations: [ZekProgress], imports: [CommonModule,
|
|
4957
|
+
TranslateModule], exports: [ZekProgress] });
|
|
4958
|
+
ProgressModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ProgressModule, imports: [CommonModule,
|
|
4959
|
+
TranslateModule] });
|
|
4960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ProgressModule, decorators: [{
|
|
4961
|
+
type: NgModule,
|
|
4962
|
+
args: [{
|
|
4963
|
+
imports: [
|
|
4964
|
+
CommonModule,
|
|
4965
|
+
TranslateModule
|
|
4966
|
+
],
|
|
4967
|
+
declarations: [
|
|
4968
|
+
ZekProgress,
|
|
4969
|
+
],
|
|
4970
|
+
exports: [ZekProgress]
|
|
4971
|
+
}]
|
|
4972
|
+
}] });
|
|
4973
|
+
|
|
4616
4974
|
let uniqueId$1 = 0;
|
|
4617
4975
|
/**
|
|
4618
4976
|
* Provider Expression that allows zek-radio to register as a ControlValueAccessor. This
|
|
@@ -4751,12 +5109,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
4751
5109
|
|
|
4752
5110
|
class ReadOnlyDirective {
|
|
4753
5111
|
constructor() {
|
|
4754
|
-
this.
|
|
5112
|
+
this._readonly = false;
|
|
4755
5113
|
}
|
|
4756
|
-
|
|
4757
|
-
this.
|
|
5114
|
+
readonly(v) {
|
|
5115
|
+
this._readonly = Convert.toBoolean(v);
|
|
4758
5116
|
}
|
|
4759
|
-
;
|
|
4760
5117
|
}
|
|
4761
5118
|
ReadOnlyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ReadOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4762
5119
|
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 });
|
|
@@ -6125,5 +6482,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
6125
6482
|
* Generated bundle index. Do not edit.
|
|
6126
6483
|
*/
|
|
6127
6484
|
|
|
6128
|
-
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 };
|
|
6485
|
+
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 };
|
|
6129
6486
|
//# sourceMappingURL=zek.mjs.map
|