zek 16.0.3 → 16.0.4
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/esm2022/lib/components/edit-base.component.mjs +9 -9
- package/esm2022/lib/components/list-base.component.mjs +5 -5
- package/esm2022/lib/modules/alert/validation/validation.mjs +4 -4
- package/esm2022/lib/modules/bb/bb-modal-toolbar.mjs +3 -3
- package/esm2022/lib/modules/grid-toolbar/grid-toolbar-bar/grid-toolbar-bar.component.mjs +3 -3
- package/esm2022/lib/modules/modal/modal/modal.component.mjs +6 -6
- package/esm2022/lib/modules/select2-multiple/index.mjs +3 -3
- package/esm2022/lib/modules/select2-multiple/module.mjs +29 -0
- package/esm2022/lib/modules/select2-multiple/select2-multiple.mjs +133 -0
- package/esm2022/lib/modules/sort/sort-button-group/sort-button-group.component.mjs +3 -3
- package/esm2022/lib/modules/sort/sort.directive.mjs +4 -4
- package/esm2022/lib/utils/bootstrap.helper.mjs +5 -5
- package/fesm2022/zek.mjs +47 -47
- package/fesm2022/zek.mjs.map +1 -1
- package/lib/modules/select2-multiple/index.d.ts +2 -2
- package/lib/modules/select2-multiple/module.d.ts +9 -0
- package/lib/modules/select2-multiple/{select2-multiple.component.d.ts → select2-multiple.d.ts} +3 -3
- package/package.json +1 -1
- package/esm2022/lib/modules/select2-multiple/select2-multiple.component.mjs +0 -133
- package/esm2022/lib/modules/select2-multiple/select2-multiple.module.mjs +0 -29
- package/lib/modules/select2-multiple/select2-multiple.module.d.ts +0 -9
package/fesm2022/zek.mjs
CHANGED
|
@@ -244,14 +244,14 @@ class BootstrapHelper {
|
|
|
244
244
|
}
|
|
245
245
|
switch (type) {
|
|
246
246
|
case ComponentType.Delete:
|
|
247
|
-
return '
|
|
247
|
+
return 'fa-solid fa-trash';
|
|
248
248
|
// case ComponentType.Danger:
|
|
249
249
|
case ComponentType.Warning:
|
|
250
|
-
return '
|
|
250
|
+
return 'fa-solid fa-triangle-exclamation';
|
|
251
251
|
case ComponentType.Info:
|
|
252
|
-
return '
|
|
252
|
+
return 'fa-solid fa-circle-info';
|
|
253
253
|
default:
|
|
254
|
-
return '
|
|
254
|
+
return 'fa-solid fa-check';
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
static cssButton(type) {
|
|
@@ -2326,7 +2326,7 @@ class EditBaseComponent extends EditFormComponent {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
if (success) {
|
|
2328
2328
|
let message = await firstValueFrom(this.translate.get('Alert.SaveSuccess'));
|
|
2329
|
-
this.alert.success(message, null, '
|
|
2329
|
+
this.alert.success(message, null, 'fa-solid fa-floppy-disk');
|
|
2330
2330
|
if (navigateToReturnUrl === true) {
|
|
2331
2331
|
this.navigateReturnUrl();
|
|
2332
2332
|
}
|
|
@@ -2339,7 +2339,7 @@ class EditBaseComponent extends EditFormComponent {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
else {
|
|
2341
2341
|
let message = await firstValueFrom(this.translate.get('Alert.SaveError'));
|
|
2342
|
-
this.alert.error(message, null, '
|
|
2342
|
+
this.alert.error(message, null, 'fa-solid fa-floppy-disk');
|
|
2343
2343
|
return false;
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
@@ -2347,12 +2347,12 @@ class EditBaseComponent extends EditFormComponent {
|
|
|
2347
2347
|
let data = await firstValueFrom(this.service.approve(model));
|
|
2348
2348
|
if (data && data.length > 0) {
|
|
2349
2349
|
let message = await firstValueFrom(this.translate.get('Alert.Approved'));
|
|
2350
|
-
this.alert.success(message, null, '
|
|
2350
|
+
this.alert.success(message, null, 'fa-solid fa-floppy-disk');
|
|
2351
2351
|
return true;
|
|
2352
2352
|
}
|
|
2353
2353
|
else {
|
|
2354
2354
|
let message = await firstValueFrom(this.translate.get('Alert.ApproveError'));
|
|
2355
|
-
this.alert.error(message, null, '
|
|
2355
|
+
this.alert.error(message, null, 'fa-solid fa-floppy-disk');
|
|
2356
2356
|
return false;
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
@@ -2360,12 +2360,12 @@ class EditBaseComponent extends EditFormComponent {
|
|
|
2360
2360
|
let data = await firstValueFrom(this.service.disapprove(model));
|
|
2361
2361
|
if (data && data.length > 0) {
|
|
2362
2362
|
let message = await firstValueFrom(this.translate.get('Alert.Disapproved'));
|
|
2363
|
-
this.alert.success(message, null, '
|
|
2363
|
+
this.alert.success(message, null, 'fa-solid fa-floppy-disk');
|
|
2364
2364
|
return true;
|
|
2365
2365
|
}
|
|
2366
2366
|
else {
|
|
2367
2367
|
let message = await firstValueFrom(this.translate.get('Alert.DisapproveError'));
|
|
2368
|
-
this.alert.error(message, null, '
|
|
2368
|
+
this.alert.error(message, null, 'fa-solid fa-floppy-disk');
|
|
2369
2369
|
return false;
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
@@ -2373,12 +2373,12 @@ class EditBaseComponent extends EditFormComponent {
|
|
|
2373
2373
|
let data = await firstValueFrom(this.service.approve(model));
|
|
2374
2374
|
if (data && data.length > 0) {
|
|
2375
2375
|
let message = await firstValueFrom(this.translate.get('Alert.Submitted'));
|
|
2376
|
-
this.alert.success(message, null, '
|
|
2376
|
+
this.alert.success(message, null, 'fa-solid fa-floppy-disk');
|
|
2377
2377
|
return true;
|
|
2378
2378
|
}
|
|
2379
2379
|
else {
|
|
2380
2380
|
let message = await firstValueFrom(this.translate.get('Alert.SubmitError'));
|
|
2381
|
-
this.alert.error(message, null, '
|
|
2381
|
+
this.alert.error(message, null, 'fa-solid fa-floppy-disk');
|
|
2382
2382
|
return false;
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
@@ -2535,7 +2535,7 @@ class ListBaseComponent extends BaseComponent {
|
|
|
2535
2535
|
let data = await firstValueFrom(this.service.delete(id));
|
|
2536
2536
|
if (data?.success) {
|
|
2537
2537
|
let message = await firstValueFrom(this.translate.get('Alert.Deleted'));
|
|
2538
|
-
this.alert.error(message, null, '
|
|
2538
|
+
this.alert.error(message, null, 'fa-solid fa-trash');
|
|
2539
2539
|
this.refresh();
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
@@ -2544,7 +2544,7 @@ class ListBaseComponent extends BaseComponent {
|
|
|
2544
2544
|
let data = await firstValueFrom(this.service.delete2(id, id2));
|
|
2545
2545
|
if (data?.success) {
|
|
2546
2546
|
let message = await firstValueFrom(this.translate.get('Alert.Deleted'));
|
|
2547
|
-
this.alert.error(message, null, '
|
|
2547
|
+
this.alert.error(message, null, 'fa-solid fa-trash');
|
|
2548
2548
|
this.refresh();
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
@@ -2592,7 +2592,7 @@ class ListBaseComponent extends BaseComponent {
|
|
|
2592
2592
|
if (!data || data.length === 0)
|
|
2593
2593
|
return;
|
|
2594
2594
|
let message = await firstValueFrom(this.translate.get('Alert.Approved'));
|
|
2595
|
-
this.alert.success(message, undefined, '
|
|
2595
|
+
this.alert.success(message, undefined, 'fa-solid fa-thumbs-up');
|
|
2596
2596
|
this.refresh();
|
|
2597
2597
|
}
|
|
2598
2598
|
showDisapproveModal(id) {
|
|
@@ -2622,7 +2622,7 @@ class ListBaseComponent extends BaseComponent {
|
|
|
2622
2622
|
if (!data || data.length === 0)
|
|
2623
2623
|
return;
|
|
2624
2624
|
let message = await firstValueFrom(this.translate.get('Alert.Disapproved'));
|
|
2625
|
-
this.alert.success(message, undefined, '
|
|
2625
|
+
this.alert.success(message, undefined, 'fa-solid fa-thumbs-down');
|
|
2626
2626
|
this.refresh();
|
|
2627
2627
|
}
|
|
2628
2628
|
getSelectedIds() {
|
|
@@ -2900,12 +2900,12 @@ class ZekValidation {
|
|
|
2900
2900
|
}
|
|
2901
2901
|
switch (alert.type) {
|
|
2902
2902
|
case AlertType.Success:
|
|
2903
|
-
return '
|
|
2903
|
+
return 'fa-solid fa-check';
|
|
2904
2904
|
case AlertType.Danger:
|
|
2905
2905
|
case AlertType.Warning:
|
|
2906
|
-
return '
|
|
2906
|
+
return 'fa-solid fa-triangle-exclamation';
|
|
2907
2907
|
case AlertType.Info:
|
|
2908
|
-
return '
|
|
2908
|
+
return 'fa-solid fa-circle-info';
|
|
2909
2909
|
default:
|
|
2910
2910
|
return;
|
|
2911
2911
|
}
|
|
@@ -3217,11 +3217,11 @@ class ButtonBrowseModalToolbarComponent {
|
|
|
3217
3217
|
this.onChooseAll.emit();
|
|
3218
3218
|
}
|
|
3219
3219
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ButtonBrowseModalToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3220
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: ButtonBrowseModalToolbarComponent, selector: "zek-bb-modal-toolbar", inputs: { multiSelect: "multiSelect" }, outputs: { onSearch: "onSearch", onReset: "onReset", onChooseAll: "onChooseAll" }, ngImport: i0, template: "<ng-content select=\"[left]\"></ng-content>\r\n<button type=\"button\" (click)=\"search()\" class=\"btn btn-primary me-2\" id=\"bb-filter-button\" title=\"Filter\">\r\n <i class=\"fa fa-filter\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button type=\"button\" (click)=\"reset()\" class=\"btn btn-secondary me-2\" title=\"Reset\">\r\n <i class=\"fa fa-
|
|
3220
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: ButtonBrowseModalToolbarComponent, selector: "zek-bb-modal-toolbar", inputs: { multiSelect: "multiSelect" }, outputs: { onSearch: "onSearch", onReset: "onReset", onChooseAll: "onChooseAll" }, ngImport: i0, template: "<ng-content select=\"[left]\"></ng-content>\r\n<button type=\"button\" (click)=\"search()\" class=\"btn btn-primary me-2\" id=\"bb-filter-button\" title=\"Filter\">\r\n <i class=\"fa-solid fa-filter\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button type=\"button\" (click)=\"reset()\" class=\"btn btn-secondary me-2\" title=\"Reset\">\r\n <i class=\"fa-solid fa-xmark\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button *ngIf=\"multiSelect\" type=\"button\" (click)=\"chooseAll()\" class=\"btn btn-secondary me-2\" title=\"Choose All\">\r\n <i class=\"fa-solid fa-hand-point-up\" aria-hidden=\"true\"></i>\r\n</button>\r\n<ng-content></ng-content>", dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
3221
3221
|
}
|
|
3222
3222
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ButtonBrowseModalToolbarComponent, decorators: [{
|
|
3223
3223
|
type: Component,
|
|
3224
|
-
args: [{ selector: 'zek-bb-modal-toolbar', template: "<ng-content select=\"[left]\"></ng-content>\r\n<button type=\"button\" (click)=\"search()\" class=\"btn btn-primary me-2\" id=\"bb-filter-button\" title=\"Filter\">\r\n <i class=\"fa fa-filter\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button type=\"button\" (click)=\"reset()\" class=\"btn btn-secondary me-2\" title=\"Reset\">\r\n <i class=\"fa fa-
|
|
3224
|
+
args: [{ selector: 'zek-bb-modal-toolbar', template: "<ng-content select=\"[left]\"></ng-content>\r\n<button type=\"button\" (click)=\"search()\" class=\"btn btn-primary me-2\" id=\"bb-filter-button\" title=\"Filter\">\r\n <i class=\"fa-solid fa-filter\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button type=\"button\" (click)=\"reset()\" class=\"btn btn-secondary me-2\" title=\"Reset\">\r\n <i class=\"fa-solid fa-xmark\" aria-hidden=\"true\"></i>\r\n</button>\r\n<button *ngIf=\"multiSelect\" type=\"button\" (click)=\"chooseAll()\" class=\"btn btn-secondary me-2\" title=\"Choose All\">\r\n <i class=\"fa-solid fa-hand-point-up\" aria-hidden=\"true\"></i>\r\n</button>\r\n<ng-content></ng-content>" }]
|
|
3225
3225
|
}], propDecorators: { onSearch: [{
|
|
3226
3226
|
type: Output
|
|
3227
3227
|
}], onReset: [{
|
|
@@ -4078,7 +4078,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
4078
4078
|
class ZekDeleteModal extends ZekModal {
|
|
4079
4079
|
constructor(translate) {
|
|
4080
4080
|
super(translate);
|
|
4081
|
-
this.icon = '
|
|
4081
|
+
this.icon = 'fa-solid fa-trash';
|
|
4082
4082
|
translate.get('Action.Delete').subscribe((res) => this.title = res);
|
|
4083
4083
|
translate.get('Alert.DeleteQuestion').subscribe((res) => this.text = res);
|
|
4084
4084
|
this.componentType = ComponentType.Delete;
|
|
@@ -4093,7 +4093,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
4093
4093
|
class ZekApproveModal extends ZekModal {
|
|
4094
4094
|
constructor(translate) {
|
|
4095
4095
|
super(translate);
|
|
4096
|
-
this.icon = '
|
|
4096
|
+
this.icon = 'fa-solid fa-thumbs-up';
|
|
4097
4097
|
translate.get('Action.Approve').subscribe((res) => this.title = res);
|
|
4098
4098
|
translate.get('Alert.ApproveQuestion').subscribe((res) => this.text = res);
|
|
4099
4099
|
this.componentType = ComponentType.Success;
|
|
@@ -4108,7 +4108,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
4108
4108
|
class ZekSubmitModal extends ZekModal {
|
|
4109
4109
|
constructor(translate) {
|
|
4110
4110
|
super(translate);
|
|
4111
|
-
this.icon = '
|
|
4111
|
+
this.icon = 'fa-solid fa-thumbs-up';
|
|
4112
4112
|
translate.get('Action.Submit').subscribe((res) => this.title = res);
|
|
4113
4113
|
translate.get('Alert.SubmitQuestion').subscribe((res) => this.text = res);
|
|
4114
4114
|
this.componentType = ComponentType.Success;
|
|
@@ -4123,7 +4123,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
4123
4123
|
class ZekDisapproveModal extends ZekModal {
|
|
4124
4124
|
constructor(translate) {
|
|
4125
4125
|
super(translate);
|
|
4126
|
-
this.icon = '
|
|
4126
|
+
this.icon = 'fa-solid fa-thumbs-down';
|
|
4127
4127
|
translate.get('Action.Disapprove').subscribe((res) => this.title = res);
|
|
4128
4128
|
translate.get('Alert.DisapproveQuestion').subscribe((res) => this.text = res);
|
|
4129
4129
|
this.componentType = ComponentType.Delete;
|
|
@@ -4138,7 +4138,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
4138
4138
|
class ZekRestoreModal extends ZekModal {
|
|
4139
4139
|
constructor(translate) {
|
|
4140
4140
|
super(translate);
|
|
4141
|
-
this.icon = '
|
|
4141
|
+
this.icon = 'fa-solid fa-rotate-right';
|
|
4142
4142
|
translate.get('Action.Restore').subscribe((res) => this.title = res);
|
|
4143
4143
|
translate.get('Action.RestoreQuestion').subscribe((res) => this.text = res);
|
|
4144
4144
|
this.componentType = ComponentType.Success;
|
|
@@ -4508,11 +4508,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
4508
4508
|
|
|
4509
4509
|
class GridToolbarBarComponent extends GridToolbarComponent {
|
|
4510
4510
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: GridToolbarBarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4511
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: GridToolbarBarComponent, selector: "zek-grid-toolbar-bar", usesInheritance: true, ngImport: i0, template: "<button type=\"button\" class=\"btn btn-light btn-sm\" data-bs-toggle=\"dropdown\">\r\n <i class=\"
|
|
4511
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: GridToolbarBarComponent, selector: "zek-grid-toolbar-bar", usesInheritance: true, ngImport: i0, template: "<button type=\"button\" class=\"btn btn-light btn-sm\" data-bs-toggle=\"dropdown\">\r\n <i class=\"fa-solid fa-ellipsis\"></i>\r\n</button>\r\n<ul class=\"dropdown-menu\">\r\n <li><button *ngIf=\"showEdit\" (click)=\"edit()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!editEnabled\">\r\n <i class=\"fa-solid fa-pencil\"></i> {{ 'Action.Edit' | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showApprove\" (click)=\"approve()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!approveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-up\"></i> {{ approveText | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showDisapprove\" (click)=\"disapprove()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!disapproveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-down\"></i> {{ disapproveText | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showDelete\" (click)=\"delete()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!deleteEnabled\">\r\n <i class=\"fa-solid fa-trash\"></i> {{ 'Action.Delete' | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showRestore\" (click)=\"restore()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!restoreEnabled\">\r\n <i class=\"fa-solid fa-clock-rotate-left\"></i> {{ 'Action.Restore' | translate }}\r\n </button></li>\r\n <ng-content></ng-content>\r\n</ul>", dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] }); }
|
|
4512
4512
|
}
|
|
4513
4513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: GridToolbarBarComponent, decorators: [{
|
|
4514
4514
|
type: Component,
|
|
4515
|
-
args: [{ selector: 'zek-grid-toolbar-bar', template: "<button type=\"button\" class=\"btn btn-light btn-sm\" data-bs-toggle=\"dropdown\">\r\n <i class=\"
|
|
4515
|
+
args: [{ selector: 'zek-grid-toolbar-bar', template: "<button type=\"button\" class=\"btn btn-light btn-sm\" data-bs-toggle=\"dropdown\">\r\n <i class=\"fa-solid fa-ellipsis\"></i>\r\n</button>\r\n<ul class=\"dropdown-menu\">\r\n <li><button *ngIf=\"showEdit\" (click)=\"edit()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!editEnabled\">\r\n <i class=\"fa-solid fa-pencil\"></i> {{ 'Action.Edit' | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showApprove\" (click)=\"approve()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!approveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-up\"></i> {{ approveText | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showDisapprove\" (click)=\"disapprove()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!disapproveEnabled\">\r\n <i class=\"fa-solid fa-thumbs-down\"></i> {{ disapproveText | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showDelete\" (click)=\"delete()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!deleteEnabled\">\r\n <i class=\"fa-solid fa-trash\"></i> {{ 'Action.Delete' | translate }}\r\n </button></li>\r\n <li><button *ngIf=\"showRestore\" (click)=\"restore()\" type=\"button\" class=\"dropdown-item\" [disabled]=\"!restoreEnabled\">\r\n <i class=\"fa-solid fa-clock-rotate-left\"></i> {{ 'Action.Restore' | translate }}\r\n </button></li>\r\n <ng-content></ng-content>\r\n</ul>" }]
|
|
4516
4516
|
}] });
|
|
4517
4517
|
|
|
4518
4518
|
class GridToolbarModule {
|
|
@@ -5871,7 +5871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
5871
5871
|
}] });
|
|
5872
5872
|
|
|
5873
5873
|
//declare let bootstrap: any;
|
|
5874
|
-
class
|
|
5874
|
+
class ZekSelect2Multiple {
|
|
5875
5875
|
constructor() {
|
|
5876
5876
|
this.elementId = RandomHelper.randomHex();
|
|
5877
5877
|
this._data = [];
|
|
@@ -5975,12 +5975,12 @@ class Select2MultipleComponent {
|
|
|
5975
5975
|
this._value = v;
|
|
5976
5976
|
this.valueChange.emit(v);
|
|
5977
5977
|
}
|
|
5978
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type:
|
|
5979
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type:
|
|
5978
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ZekSelect2Multiple, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5979
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: ZekSelect2Multiple, selector: "zek-select2-multiple,[zek-select2-multiple]", inputs: { data: "data", textField: "textField", valueField: "valueField", placeholder: "placeholder", value: "value" }, outputs: { selectedItemChange: "selectedItemChange", valueChange: "valueChange" }, ngImport: i0, template: "<div class=\"input-group position-relative\" id=\"dropdown-menu-container-{{elementId}}\">\r\n <input type=\"text\" class=\"form-control\" placeholder=\"{{placeholder}}\" data-bs-toggle=\"dropdown\" data-bs-auto-close=\"outside\" id=\"input-{{elementId}}\" [(ngModel)]=\"text\" (ngModelChange)=\"onTextChange($event)\" (focus)=\"onFocus($event)\" (blur)=\"inputUnfocused()\">\r\n <button class=\"btn btn-outline-secondary dropdown-toggle\" id=\"btn-{{elementId}}\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" data-bs-reference=\"parent\"></button>\r\n <ul class=\"dropdown-menu dropdown-menu-start w-100 scrollable-menu\" id=\"dropdown-menu-{{elementId}}\">\r\n <ng-container *ngIf=\"textField\">\r\n <li *ngFor=\"let item of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(item)\" class=\"dropdown-item\">\r\n <span *ngIf=\"item.selected\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.selected\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item[textField]}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"!textField\">\r\n <li *ngFor=\"let item of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(item)\" class=\"dropdown-item\">\r\n <span *ngIf=\"item.selected\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.selected\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</div>", dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
5980
5980
|
}
|
|
5981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type:
|
|
5981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ZekSelect2Multiple, decorators: [{
|
|
5982
5982
|
type: Component,
|
|
5983
|
-
args: [{ selector: 'zek-select2-multiple,[zek-select2-multiple]', template: "<div class=\"input-group position-relative\" id=\"dropdown-menu-container-{{elementId}}\">\r\n <input type=\"text\" class=\"form-control\" placeholder=\"{{placeholder}}\" data-bs-toggle=\"dropdown\" data-bs-auto-close=\"outside\" id=\"input-{{elementId}}\" [(ngModel)]=\"text\" (ngModelChange)=\"onTextChange($event)\" (focus)=\"onFocus($event)\" (blur)=\"inputUnfocused()\">\r\n <button class=\"btn btn-outline-secondary dropdown-toggle\" id=\"btn-{{elementId}}\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" data-bs-reference=\"parent\"></button>\r\n <ul class=\"dropdown-menu dropdown-menu-start w-100 scrollable-menu\" id=\"dropdown-menu-{{elementId}}\">\r\n <ng-container *ngIf=\"textField\">\r\n <li *ngFor=\"let item of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(item)\" class=\"dropdown-item\">\r\n <span *ngIf=\"item.selected\"><i class=\"
|
|
5983
|
+
args: [{ selector: 'zek-select2-multiple,[zek-select2-multiple]', template: "<div class=\"input-group position-relative\" id=\"dropdown-menu-container-{{elementId}}\">\r\n <input type=\"text\" class=\"form-control\" placeholder=\"{{placeholder}}\" data-bs-toggle=\"dropdown\" data-bs-auto-close=\"outside\" id=\"input-{{elementId}}\" [(ngModel)]=\"text\" (ngModelChange)=\"onTextChange($event)\" (focus)=\"onFocus($event)\" (blur)=\"inputUnfocused()\">\r\n <button class=\"btn btn-outline-secondary dropdown-toggle\" id=\"btn-{{elementId}}\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" data-bs-reference=\"parent\"></button>\r\n <ul class=\"dropdown-menu dropdown-menu-start w-100 scrollable-menu\" id=\"dropdown-menu-{{elementId}}\">\r\n <ng-container *ngIf=\"textField\">\r\n <li *ngFor=\"let item of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(item)\" class=\"dropdown-item\">\r\n <span *ngIf=\"item.selected\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.selected\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item[textField]}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"!textField\">\r\n <li *ngFor=\"let item of filteredData\">\r\n <a href=\"javascript:void(0)\" (click)=\"selectItem(item)\" class=\"dropdown-item\">\r\n <span *ngIf=\"item.selected\"><i class=\"fa-regular fa-square-check\"></i></span>\r\n <span *ngIf=\"!item.selected\"><i class=\"fa-regular fa-square\"></i></span>\r\n {{item}}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</div>" }]
|
|
5984
5984
|
}], propDecorators: { data: [{
|
|
5985
5985
|
type: Input
|
|
5986
5986
|
}], textField: [{
|
|
@@ -5997,14 +5997,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
5997
5997
|
type: Input
|
|
5998
5998
|
}] } });
|
|
5999
5999
|
|
|
6000
|
-
class
|
|
6001
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type:
|
|
6002
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type:
|
|
6003
|
-
FormsModule], exports: [
|
|
6004
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type:
|
|
6000
|
+
class ZekSelect2MultipleModule {
|
|
6001
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ZekSelect2MultipleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6002
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: ZekSelect2MultipleModule, declarations: [ZekSelect2Multiple], imports: [CommonModule,
|
|
6003
|
+
FormsModule], exports: [ZekSelect2Multiple] }); }
|
|
6004
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ZekSelect2MultipleModule, imports: [CommonModule,
|
|
6005
6005
|
FormsModule] }); }
|
|
6006
6006
|
}
|
|
6007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type:
|
|
6007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ZekSelect2MultipleModule, decorators: [{
|
|
6008
6008
|
type: NgModule,
|
|
6009
6009
|
args: [{
|
|
6010
6010
|
imports: [
|
|
@@ -6012,10 +6012,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
6012
6012
|
FormsModule
|
|
6013
6013
|
],
|
|
6014
6014
|
declarations: [
|
|
6015
|
-
|
|
6015
|
+
ZekSelect2Multiple
|
|
6016
6016
|
],
|
|
6017
6017
|
exports: [
|
|
6018
|
-
|
|
6018
|
+
ZekSelect2Multiple
|
|
6019
6019
|
],
|
|
6020
6020
|
}]
|
|
6021
6021
|
}] });
|
|
@@ -6073,9 +6073,9 @@ class SortDirective {
|
|
|
6073
6073
|
}
|
|
6074
6074
|
this.el.nativeElement.innerHTML = (this.innerHtml || '')
|
|
6075
6075
|
+ '<span class="float-end' + (tmpAsc === 1 ? ' text-muted' : '') + '">'
|
|
6076
|
-
+ (tmpAsc === 1 ? '<i class="
|
|
6077
|
-
+ (tmpAsc === 2 ? '<i class="
|
|
6078
|
-
+ (tmpAsc === 3 ? '<i class="
|
|
6076
|
+
+ (tmpAsc === 1 ? '<i class="fa-solid fa-sort"></i>' : '')
|
|
6077
|
+
+ (tmpAsc === 2 ? '<i class="fa-solid fa-sort-up"></i>' : '')
|
|
6078
|
+
+ (tmpAsc === 3 ? '<i class="fa-solid fa-sort-down"></i>' : '')
|
|
6079
6079
|
+ '</span>';
|
|
6080
6080
|
}
|
|
6081
6081
|
// @HostListener('click', ['$event.target']) onClick(btn) {
|
|
@@ -6190,11 +6190,11 @@ class SortButtonGroupComponent {
|
|
|
6190
6190
|
this.onChange.emit();
|
|
6191
6191
|
}
|
|
6192
6192
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SortButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6193
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: SortButtonGroupComponent, selector: "zek-sort-button-group", inputs: { sort: "sort", asc: "asc", sortFields: "sortFields" }, outputs: { sortChange: "sortChange", ascChange: "ascChange", onChange: "onChange" }, ngImport: i0, template: "<div class=\"btn-group me-3\" role=\"group\" aria-label=\"Sort group\">\r\n <button type=\"button\" class=\"btn btn-light\" (click)=\"ascDescClick()\">\r\n <span *ngIf=\"asc === undefined || asc === null\"><i class=\"
|
|
6193
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: SortButtonGroupComponent, selector: "zek-sort-button-group", inputs: { sort: "sort", asc: "asc", sortFields: "sortFields" }, outputs: { sortChange: "sortChange", ascChange: "ascChange", onChange: "onChange" }, ngImport: i0, template: "<div class=\"btn-group me-3\" role=\"group\" aria-label=\"Sort group\">\r\n <button type=\"button\" class=\"btn btn-light\" (click)=\"ascDescClick()\">\r\n <span *ngIf=\"asc === undefined || asc === null\"><i class=\"fa-solid fa-sort fa-fw\"></i></span>\r\n <span *ngIf=\"asc === true\"><i class=\"fa-solid fa-arrow-down-z-a fa-fw\"></i></span>\r\n <span *ngIf=\"asc === false\"><i class=\"fa-solid fa-arrow-up-z-a fa-fw\"></i></span>\r\n </button>\r\n <button *ngIf=\"sortFields && sortFields.length > 0\" class=\"btn btn-light dropdown-toggle\" type=\"button\" id=\"{{elementName}}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <ng-container *ngIf=\"sortField; else elseFieldBlock\">{{ sortField.value | translate }}</ng-container>\r\n <ng-template #elseFieldBlock>{{ 'Action.Sort' | translate }}</ng-template>\r\n </button>\r\n <ul *ngIf=\"sortFields && sortFields.length > 0\" class=\"dropdown-menu\" [attr.aria-labelledby]=\"elementName\">\r\n <li><a *ngFor=\"let item of sortFields\" class=\"dropdown-item\" href=\"javascript:void(0)\" (click)=\"sortFieldClick(item)\">{{ (item.value) | translate }}</a></li>\r\n </ul>\r\n</div><i class=\"\"></i>", dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] }); }
|
|
6194
6194
|
}
|
|
6195
6195
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SortButtonGroupComponent, decorators: [{
|
|
6196
6196
|
type: Component,
|
|
6197
|
-
args: [{ selector: 'zek-sort-button-group', template: "<div class=\"btn-group me-3\" role=\"group\" aria-label=\"Sort group\">\r\n <button type=\"button\" class=\"btn btn-light\" (click)=\"ascDescClick()\">\r\n <span *ngIf=\"asc === undefined || asc === null\"><i class=\"
|
|
6197
|
+
args: [{ selector: 'zek-sort-button-group', template: "<div class=\"btn-group me-3\" role=\"group\" aria-label=\"Sort group\">\r\n <button type=\"button\" class=\"btn btn-light\" (click)=\"ascDescClick()\">\r\n <span *ngIf=\"asc === undefined || asc === null\"><i class=\"fa-solid fa-sort fa-fw\"></i></span>\r\n <span *ngIf=\"asc === true\"><i class=\"fa-solid fa-arrow-down-z-a fa-fw\"></i></span>\r\n <span *ngIf=\"asc === false\"><i class=\"fa-solid fa-arrow-up-z-a fa-fw\"></i></span>\r\n </button>\r\n <button *ngIf=\"sortFields && sortFields.length > 0\" class=\"btn btn-light dropdown-toggle\" type=\"button\" id=\"{{elementName}}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n <ng-container *ngIf=\"sortField; else elseFieldBlock\">{{ sortField.value | translate }}</ng-container>\r\n <ng-template #elseFieldBlock>{{ 'Action.Sort' | translate }}</ng-template>\r\n </button>\r\n <ul *ngIf=\"sortFields && sortFields.length > 0\" class=\"dropdown-menu\" [attr.aria-labelledby]=\"elementName\">\r\n <li><a *ngFor=\"let item of sortFields\" class=\"dropdown-item\" href=\"javascript:void(0)\" (click)=\"sortFieldClick(item)\">{{ (item.value) | translate }}</a></li>\r\n </ul>\r\n</div><i class=\"\"></i>" }]
|
|
6198
6198
|
}], ctorParameters: function () { return []; }, propDecorators: { sortChange: [{
|
|
6199
6199
|
type: Output
|
|
6200
6200
|
}], ascChange: [{
|
|
@@ -6648,5 +6648,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
6648
6648
|
* Generated bundle index. Do not edit.
|
|
6649
6649
|
*/
|
|
6650
6650
|
|
|
6651
|
-
export { API_BASE_URL, AgeModule, AgePipe, Alert, AlertModule, AlertService, AlertType, AppBaseModule, 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, EditBase, EditBaseComponent, EditComponent, EditFormComponent, EditToolbarComponent, EditToolbarModule, FileBase, FileBytes, FileHelper, FileModule, FileSizePipe, FileString, FileViewerModule, FilterBase, FilterHelper, Gender, GridToolbarBarComponent, GridToolbarComponent, GridToolbarModule, HtmlHelper, HttpErrorHandler, KeyPair, KeyPairChecked, KeyPairEx, KeyPairRequired, LANGUAGE, ListBase, ListBaseComponent, ListToolbarComponent, ListToolbarModule, MathHelper, Month, ObjectHelper, OverlapHelper, PageTitleComponent, PageTitleModule, PagedList, PagedListBase, Pager, PagerBase, PagerHelper, PasswordComponent, PasswordModule, PeriodRelation, PrintType, ProgressModule, RECAPTCHA_SITE_KEY, RadioComponent, RadioModule, RandomHelper, RangeValidator, ReCaptchaService, ReadOnlyDirective, ReadOnlyModule, RecaptchaModule, SafeModule, SafePipe, Select2Component, Select2Module,
|
|
6651
|
+
export { API_BASE_URL, AgeModule, AgePipe, Alert, AlertModule, AlertService, AlertType, AppBaseModule, 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, EditBase, EditBaseComponent, EditComponent, EditFormComponent, EditToolbarComponent, EditToolbarModule, FileBase, FileBytes, FileHelper, FileModule, FileSizePipe, FileString, FileViewerModule, FilterBase, FilterHelper, Gender, GridToolbarBarComponent, GridToolbarComponent, GridToolbarModule, HtmlHelper, HttpErrorHandler, KeyPair, KeyPairChecked, KeyPairEx, KeyPairRequired, LANGUAGE, ListBase, ListBaseComponent, ListToolbarComponent, ListToolbarModule, MathHelper, Month, ObjectHelper, OverlapHelper, PageTitleComponent, PageTitleModule, PagedList, PagedListBase, Pager, PagerBase, PagerHelper, PasswordComponent, PasswordModule, PeriodRelation, PrintType, ProgressModule, RECAPTCHA_SITE_KEY, RadioComponent, RadioModule, RandomHelper, RangeValidator, ReCaptchaService, ReadOnlyDirective, ReadOnlyModule, RecaptchaModule, SafeModule, SafePipe, Select2Component, Select2Module, SortButtonGroupComponent, SortDirective, SortModule, StorageHelper, StringHelper, TimeHelper, TimeModule, TimePipe, TimerService, Toast, Tree, UrlHelper, ValidEventArgs, ValidationHelper, ValidatorModule, Validators, ValidatorsModule, WebApiClient, WebApiModule, WizardComponent, WizardComponent2, WizardModule, ZekAlert, ZekApproveModal, ZekDeleteModal, ZekDisapproveModal, ZekFieldValidator, ZekFileViewer, ZekFilterModal, ZekLoading, ZekLoadingModule, ZekModal, ZekModalModule, ZekPager, ZekPagerModule, ZekProgress, ZekRestoreModal, ZekSelect2Multiple, ZekSelect2MultipleModule, ZekSelectModule, ZekSelectMultiple, ZekSubmitModal, ZekSumModal, ZekToast, ZekValidation, firstBy, handler, nullValidator, rangeValidator };
|
|
6652
6652
|
//# sourceMappingURL=zek.mjs.map
|