@quadrel-enterprise-ui/framework 21.21.0 → 21.21.1
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.
|
@@ -2553,7 +2553,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2553
2553
|
}]
|
|
2554
2554
|
}] });
|
|
2555
2555
|
|
|
2556
|
-
// @ts-strict-ignore
|
|
2557
2556
|
class QdMockNavigationTileComponent {
|
|
2558
2557
|
title;
|
|
2559
2558
|
icon;
|
|
@@ -2599,7 +2598,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2599
2598
|
}]
|
|
2600
2599
|
}] });
|
|
2601
2600
|
|
|
2602
|
-
// @ts-strict-ignore
|
|
2603
2601
|
class QdMockNotificationComponent {
|
|
2604
2602
|
state = 'critical';
|
|
2605
2603
|
notification;
|
|
@@ -2656,7 +2654,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2656
2654
|
type: Input
|
|
2657
2655
|
}] } });
|
|
2658
2656
|
|
|
2659
|
-
// @ts-strict-ignore
|
|
2660
2657
|
class QdMockNotificationsService {
|
|
2661
2658
|
getNotificationsForContext(context) {
|
|
2662
2659
|
return { context };
|
|
@@ -2747,7 +2744,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2747
2744
|
}]
|
|
2748
2745
|
}], ctorParameters: () => [] });
|
|
2749
2746
|
|
|
2750
|
-
// @ts-strict-ignore
|
|
2751
2747
|
class QdDesktopNotificationsService {
|
|
2752
2748
|
injector = inject(Injector);
|
|
2753
2749
|
_destroyRef = inject(DestroyRef);
|
|
@@ -2853,7 +2849,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2853
2849
|
}]
|
|
2854
2850
|
}] });
|
|
2855
2851
|
|
|
2856
|
-
// @ts-strict-ignore
|
|
2857
2852
|
class QdNotificationsService {
|
|
2858
2853
|
snackbarService = inject(QdSnackbarService);
|
|
2859
2854
|
osNotificationsService = inject(QdOsNotificationsService);
|
|
@@ -2983,7 +2978,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2983
2978
|
}]
|
|
2984
2979
|
}] });
|
|
2985
2980
|
|
|
2986
|
-
// @ts-strict-ignore
|
|
2987
2981
|
class QdMockPageComponent {
|
|
2988
2982
|
config;
|
|
2989
2983
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3054,7 +3048,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3054
3048
|
}]
|
|
3055
3049
|
}] });
|
|
3056
3050
|
|
|
3057
|
-
// @ts-strict-ignore
|
|
3058
3051
|
class QdMockPercentageProgressBarComponent {
|
|
3059
3052
|
percentage;
|
|
3060
3053
|
testId = 'percentage-progress-bar';
|
|
@@ -3094,7 +3087,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3094
3087
|
}]
|
|
3095
3088
|
}] });
|
|
3096
3089
|
|
|
3097
|
-
// @ts-strict-ignore
|
|
3098
3090
|
class QdMockSearchComponent {
|
|
3099
3091
|
configData;
|
|
3100
3092
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3125,7 +3117,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3125
3117
|
}]
|
|
3126
3118
|
}] });
|
|
3127
3119
|
|
|
3128
|
-
// @ts-strict-ignore
|
|
3129
3120
|
class QdMockSectionComponent {
|
|
3130
3121
|
config;
|
|
3131
3122
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3142,7 +3133,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3142
3133
|
type: Input
|
|
3143
3134
|
}] } });
|
|
3144
3135
|
|
|
3145
|
-
// @ts-strict-ignore
|
|
3146
3136
|
class QdMockSectionToolbarComponent {
|
|
3147
3137
|
config;
|
|
3148
3138
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockSectionToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3173,7 +3163,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3173
3163
|
}]
|
|
3174
3164
|
}] });
|
|
3175
3165
|
|
|
3176
|
-
// @ts-strict-ignore
|
|
3177
3166
|
class QdMockShellComponent {
|
|
3178
3167
|
config;
|
|
3179
3168
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3203,7 +3192,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3203
3192
|
}]
|
|
3204
3193
|
}] });
|
|
3205
3194
|
|
|
3206
|
-
// @ts-strict-ignore
|
|
3207
3195
|
class QdMockShellHeaderComponent {
|
|
3208
3196
|
config;
|
|
3209
3197
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockShellHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3259,7 +3247,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3259
3247
|
}]
|
|
3260
3248
|
}] });
|
|
3261
3249
|
|
|
3262
|
-
// @ts-strict-ignore
|
|
3263
3250
|
class QdMockShellToolbarItemComponent {
|
|
3264
3251
|
item;
|
|
3265
3252
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockShellToolbarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3419,7 +3406,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3419
3406
|
}]
|
|
3420
3407
|
}] });
|
|
3421
3408
|
|
|
3422
|
-
// @ts-strict-ignore
|
|
3423
3409
|
class QdMockTableBodyComponent {
|
|
3424
3410
|
data;
|
|
3425
3411
|
config;
|
|
@@ -3444,7 +3430,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3444
3430
|
args: ['data-test-id']
|
|
3445
3431
|
}] } });
|
|
3446
3432
|
|
|
3447
|
-
// @ts-strict-ignore
|
|
3448
3433
|
class QdMockTableBodyTreeComponent {
|
|
3449
3434
|
config;
|
|
3450
3435
|
data;
|
|
@@ -3469,7 +3454,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3469
3454
|
args: ['data-test-id']
|
|
3470
3455
|
}] } });
|
|
3471
3456
|
|
|
3472
|
-
// @ts-strict-ignore
|
|
3473
3457
|
class QdMockTableComponent {
|
|
3474
3458
|
config;
|
|
3475
3459
|
data;
|
|
@@ -3514,7 +3498,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3514
3498
|
}]
|
|
3515
3499
|
}] });
|
|
3516
3500
|
|
|
3517
|
-
// @ts-strict-ignore
|
|
3518
3501
|
class QdMockTableDataBooleanComponent {
|
|
3519
3502
|
cellData;
|
|
3520
3503
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockTableDataBooleanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3532,7 +3515,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3532
3515
|
type: Input
|
|
3533
3516
|
}] } });
|
|
3534
3517
|
|
|
3535
|
-
// @ts-strict-ignore
|
|
3536
3518
|
class QdMockTableDataDateComponent {
|
|
3537
3519
|
columnOptions;
|
|
3538
3520
|
cellData;
|
|
@@ -3553,7 +3535,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3553
3535
|
type: Input
|
|
3554
3536
|
}] } });
|
|
3555
3537
|
|
|
3556
|
-
// @ts-strict-ignore
|
|
3557
3538
|
class QdMockTableDataIntegerComponent {
|
|
3558
3539
|
cellData;
|
|
3559
3540
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockTableDataIntegerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3571,7 +3552,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3571
3552
|
type: Input
|
|
3572
3553
|
}] } });
|
|
3573
3554
|
|
|
3574
|
-
// @ts-strict-ignore
|
|
3575
3555
|
class QdMockTableDataLinkComponent {
|
|
3576
3556
|
cellData;
|
|
3577
3557
|
rowIndex;
|
|
@@ -3598,7 +3578,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3598
3578
|
type: Input
|
|
3599
3579
|
}] } });
|
|
3600
3580
|
|
|
3601
|
-
// @ts-strict-ignore
|
|
3602
3581
|
class QdMockTableDataProgressComponent {
|
|
3603
3582
|
cellData;
|
|
3604
3583
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockTableDataProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3616,7 +3595,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3616
3595
|
type: Input
|
|
3617
3596
|
}] } });
|
|
3618
3597
|
|
|
3619
|
-
// @ts-strict-ignore
|
|
3620
3598
|
class QdMockTableDataTextComponent {
|
|
3621
3599
|
columnOptions;
|
|
3622
3600
|
cellData;
|
|
@@ -3667,7 +3645,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3667
3645
|
args: ['data-test-id']
|
|
3668
3646
|
}] } });
|
|
3669
3647
|
|
|
3670
|
-
// @ts-strict-ignore
|
|
3671
3648
|
class QdMockTableHeadComponent {
|
|
3672
3649
|
config;
|
|
3673
3650
|
testId;
|
|
@@ -3689,7 +3666,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3689
3666
|
args: ['data-test-id']
|
|
3690
3667
|
}] } });
|
|
3691
3668
|
|
|
3692
|
-
// @ts-strict-ignore
|
|
3693
3669
|
class QdMockTablePaginatorComponent {
|
|
3694
3670
|
config;
|
|
3695
3671
|
testId;
|
|
@@ -3711,7 +3687,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3711
3687
|
args: ['data-test-id']
|
|
3712
3688
|
}] } });
|
|
3713
3689
|
|
|
3714
|
-
// @ts-strict-ignore
|
|
3715
3690
|
class QdMockTablePaginatorPageSizeDirective {
|
|
3716
3691
|
qdTablePaginatorPageSize;
|
|
3717
3692
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockTablePaginatorPageSizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -3728,7 +3703,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3728
3703
|
type: Input
|
|
3729
3704
|
}] } });
|
|
3730
3705
|
|
|
3731
|
-
// @ts-strict-ignore
|
|
3732
3706
|
class QdMockTableSortComponent {
|
|
3733
3707
|
isSortable;
|
|
3734
3708
|
config;
|
|
@@ -3864,7 +3838,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3864
3838
|
}]
|
|
3865
3839
|
}] });
|
|
3866
3840
|
|
|
3867
|
-
// @ts-strict-ignore
|
|
3868
3841
|
class QdMockTileComponent {
|
|
3869
3842
|
name;
|
|
3870
3843
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3920,7 +3893,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3920
3893
|
}]
|
|
3921
3894
|
}] });
|
|
3922
3895
|
|
|
3923
|
-
// @ts-strict-ignore
|
|
3924
3896
|
class QdMockTilesContainerComponent {
|
|
3925
3897
|
name;
|
|
3926
3898
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMockTilesContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6045,7 +6017,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
6045
6017
|
type: Input
|
|
6046
6018
|
}] } });
|
|
6047
6019
|
|
|
6048
|
-
// @ts-strict-ignore
|
|
6049
6020
|
/**
|
|
6050
6021
|
* **QdStatusIndicatorItem** is an element of the**QdStatusIndicator** component.
|
|
6051
6022
|
*/
|
|
@@ -6065,13 +6036,13 @@ class QdStatusIndicatorItemComponent {
|
|
|
6065
6036
|
return this._state;
|
|
6066
6037
|
}
|
|
6067
6038
|
get isPositive() {
|
|
6068
|
-
return this.active && this._state === 'positive';
|
|
6039
|
+
return !!this.active && this._state === 'positive';
|
|
6069
6040
|
}
|
|
6070
6041
|
get isWarning() {
|
|
6071
|
-
return this.active && this._state === 'warning';
|
|
6042
|
+
return !!this.active && this._state === 'warning';
|
|
6072
6043
|
}
|
|
6073
6044
|
get isCritical() {
|
|
6074
|
-
return this.active && this._state === 'critical';
|
|
6045
|
+
return !!this.active && this._state === 'critical';
|
|
6075
6046
|
}
|
|
6076
6047
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdStatusIndicatorItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6077
6048
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: QdStatusIndicatorItemComponent, isStandalone: false, selector: "qd-status-indicator-item", inputs: { active: "active", state: "state" }, host: { properties: { "class.qd-status-indicator__item--positive": "this.isPositive", "class.qd-status-indicator__item--warning": "this.isWarning", "class.qd-status-indicator__item--critical": "this.isCritical" }, classAttribute: "qd-status-indicator__item" }, ngImport: i0, template: '', isInline: true, styles: [".qd-status-indicator__item{display:block;width:.75rem;height:.75rem;border-radius:50%;margin-right:.25rem;background:#b4b4b4}.qd-status-indicator__item--positive,.qd-status-indicator__item--success{background:#00813a}.qd-status-indicator__item--warning{background:#ff9b00}.qd-status-indicator__item--critical{background:#c70023}.qd-status-indicator__item:last-child{margin:0}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
@@ -6106,13 +6077,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
6106
6077
|
args: [{ selector: 'qd-status-indicator-caption', template: '<ng-content></ng-content>', host: { class: 'qd-status-indicator__caption' }, standalone: false, styles: [":host{display:block;margin-bottom:0;color:#757575;font-size:.875rem;margin-bottom:.375rem;line-height:1rem}\n"] }]
|
|
6107
6078
|
}] });
|
|
6108
6079
|
|
|
6109
|
-
// @ts-strict-ignore
|
|
6110
6080
|
/**
|
|
6111
6081
|
* With the **QdStatusIndicator** component you can combine a status with a progress indicator.
|
|
6112
6082
|
*/
|
|
6113
6083
|
class QdStatusIndicatorComponent {
|
|
6114
6084
|
indicatorCount = 5;
|
|
6115
|
-
items;
|
|
6085
|
+
items = [];
|
|
6116
6086
|
_state = 'positive';
|
|
6117
6087
|
/**
|
|
6118
6088
|
* State of the indicator.
|
|
@@ -17716,7 +17686,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
17716
17686
|
}]
|
|
17717
17687
|
}] });
|
|
17718
17688
|
|
|
17719
|
-
// @ts-strict-ignore
|
|
17720
17689
|
/**
|
|
17721
17690
|
* **QdNotification** displays a single notification item within a **QdNotifications** container.
|
|
17722
17691
|
*
|
|
@@ -18244,18 +18213,18 @@ class QdNotificationComponent {
|
|
|
18244
18213
|
this.notificationService.remove(this.notification.context, this.notification.uuid);
|
|
18245
18214
|
}
|
|
18246
18215
|
}
|
|
18247
|
-
handleLinkClick() {
|
|
18248
|
-
|
|
18216
|
+
handleLinkClick(link) {
|
|
18217
|
+
link.handler();
|
|
18249
18218
|
}
|
|
18250
18219
|
isNotificationInSnackbar() {
|
|
18251
18220
|
return !!this.element.nativeElement.closest('qd-snackbar');
|
|
18252
18221
|
}
|
|
18253
18222
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18254
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdNotificationComponent, isStandalone: false, selector: "qd-notification", inputs: { state: "state", notification: "notification" }, host: { properties: { "class": "this.typeClassName" }, classAttribute: "qd-notification" }, usesOnChanges: true, ngImport: i0, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n<ng-content select=\"qd-notification-content\"></ng-content>\n\n@if (notification?.title) {\n<div class=\"title\">{{ notification.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ notification?.i18n | translate }}</span>\n @if (notification?.link) {\n <a class=\"link\" (click)=\"handleLinkClick()\">{{ notification.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;line-height:1rem}:host.qd-notification-info{border-color:#069}:host.qd-notification-info .icon,:host.qd-notification-info .title{color:#069}:host.qd-notification-warning{border-color:#ff9b00}:host.qd-notification-warning .icon,:host.qd-notification-warning .title{color:#ff9b00}:host.qd-notification-urgent{border-color:#c70023}:host.qd-notification-urgent .icon,:host.qd-notification-urgent .title{color:#c70023}:host.qd-notification-critical{border-color:#c70023}:host.qd-notification-critical .icon,:host.qd-notification-critical .title{color:#c70023}:host.qd-notification-positive{border-color:#00813a}:host.qd-notification-positive .icon,:host.qd-notification-positive .title{color:#00813a}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .closer{position:absolute;top:1rem;right:.75rem;color:#171717;cursor:pointer;font-size:.8125rem;font-weight:600}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}:host:host-context(qd-snackbar){z-index:9999!important}:host:host-context(qd-snackbar) .link{display:block;margin-top:.375rem;margin-left:0}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
18223
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdNotificationComponent, isStandalone: false, selector: "qd-notification", inputs: { state: "state", notification: "notification" }, host: { properties: { "class": "this.typeClassName" }, classAttribute: "qd-notification" }, usesOnChanges: true, ngImport: i0, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n<ng-content select=\"qd-notification-content\"></ng-content>\n\n@if (notification?.title) {\n<div class=\"title\">{{ notification.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ notification?.i18n | translate }}</span>\n @if (notification?.link) {\n <a class=\"link\" (click)=\"handleLinkClick(notification.link)\">{{ notification.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;line-height:1rem}:host.qd-notification-info{border-color:#069}:host.qd-notification-info .icon,:host.qd-notification-info .title{color:#069}:host.qd-notification-warning{border-color:#ff9b00}:host.qd-notification-warning .icon,:host.qd-notification-warning .title{color:#ff9b00}:host.qd-notification-urgent{border-color:#c70023}:host.qd-notification-urgent .icon,:host.qd-notification-urgent .title{color:#c70023}:host.qd-notification-critical{border-color:#c70023}:host.qd-notification-critical .icon,:host.qd-notification-critical .title{color:#c70023}:host.qd-notification-positive{border-color:#00813a}:host.qd-notification-positive .icon,:host.qd-notification-positive .title{color:#00813a}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .closer{position:absolute;top:1rem;right:.75rem;color:#171717;cursor:pointer;font-size:.8125rem;font-weight:600}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}:host:host-context(qd-snackbar){z-index:9999!important}:host:host-context(qd-snackbar) .link{display:block;margin-top:.375rem;margin-left:0}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
18255
18224
|
}
|
|
18256
18225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdNotificationComponent, decorators: [{
|
|
18257
18226
|
type: Component,
|
|
18258
|
-
args: [{ selector: 'qd-notification', host: { class: 'qd-notification' }, standalone: false, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n<ng-content select=\"qd-notification-content\"></ng-content>\n\n@if (notification?.title) {\n<div class=\"title\">{{ notification.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ notification?.i18n | translate }}</span>\n @if (notification?.link) {\n <a class=\"link\" (click)=\"handleLinkClick()\">{{ notification.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;line-height:1rem}:host.qd-notification-info{border-color:#069}:host.qd-notification-info .icon,:host.qd-notification-info .title{color:#069}:host.qd-notification-warning{border-color:#ff9b00}:host.qd-notification-warning .icon,:host.qd-notification-warning .title{color:#ff9b00}:host.qd-notification-urgent{border-color:#c70023}:host.qd-notification-urgent .icon,:host.qd-notification-urgent .title{color:#c70023}:host.qd-notification-critical{border-color:#c70023}:host.qd-notification-critical .icon,:host.qd-notification-critical .title{color:#c70023}:host.qd-notification-positive{border-color:#00813a}:host.qd-notification-positive .icon,:host.qd-notification-positive .title{color:#00813a}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .closer{position:absolute;top:1rem;right:.75rem;color:#171717;cursor:pointer;font-size:.8125rem;font-weight:600}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}:host:host-context(qd-snackbar){z-index:9999!important}:host:host-context(qd-snackbar) .link{display:block;margin-top:.375rem;margin-left:0}\n"] }]
|
|
18227
|
+
args: [{ selector: 'qd-notification', host: { class: 'qd-notification' }, standalone: false, template: "@if (closeable) {\n<qd-icon [icon]=\"'timesLarge'\" class=\"closer\" (click)=\"remove()\"></qd-icon>\n}\n<qd-icon [icon]=\"this.getIcon()\" class=\"icon\"></qd-icon>\n\n<ng-content select=\"qd-notification-content\"></ng-content>\n\n@if (notification?.title) {\n<div class=\"title\">{{ notification.title.i18n | translate }}</div>\n}\n<div class=\"message\">\n <span>{{ notification?.i18n | translate }}</span>\n @if (notification?.link) {\n <a class=\"link\" (click)=\"handleLinkClick(notification.link)\">{{ notification.link.i18n | translate }}</a>\n }\n</div>\n", styles: [":host{position:relative;display:block;width:100%;padding:1rem 2rem .5rem 2.75rem;border-width:.0625rem;border-style:solid;border-left-width:.25rem;margin-bottom:.5rem;background:#fff;box-shadow:0 0 .625rem #979797;font-size:.875rem;line-height:1rem}:host.qd-notification-info{border-color:#069}:host.qd-notification-info .icon,:host.qd-notification-info .title{color:#069}:host.qd-notification-warning{border-color:#ff9b00}:host.qd-notification-warning .icon,:host.qd-notification-warning .title{color:#ff9b00}:host.qd-notification-urgent{border-color:#c70023}:host.qd-notification-urgent .icon,:host.qd-notification-urgent .title{color:#c70023}:host.qd-notification-critical{border-color:#c70023}:host.qd-notification-critical .icon,:host.qd-notification-critical .title{color:#c70023}:host.qd-notification-positive{border-color:#00813a}:host.qd-notification-positive .icon,:host.qd-notification-positive .title{color:#00813a}:host .icon{position:absolute;top:.9375rem;left:1rem;font-size:1.25rem}:host .closer{position:absolute;top:1rem;right:.75rem;color:#171717;cursor:pointer;font-size:.8125rem;font-weight:600}:host .title{margin-bottom:.375rem;font-weight:500}:host .message{margin-bottom:.25rem;white-space:pre-wrap}:host .link{margin-bottom:.375rem;margin-left:.375rem;color:#069;cursor:pointer}:host .link:hover{text-decoration:underline}:host:host-context(qd-snackbar){z-index:9999!important}:host:host-context(qd-snackbar) .link{display:block;margin-top:.375rem;margin-left:0}\n"] }]
|
|
18259
18228
|
}], propDecorators: { state: [{
|
|
18260
18229
|
type: Input
|
|
18261
18230
|
}], notification: [{
|
|
@@ -18284,14 +18253,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
18284
18253
|
args: [{ selector: 'qd-notification-content', standalone: false, template: "<ng-content></ng-content>\n" }]
|
|
18285
18254
|
}] });
|
|
18286
18255
|
|
|
18287
|
-
// @ts-strict-ignore
|
|
18288
18256
|
/**
|
|
18289
18257
|
* **QdNotifications** creates a container for the single **QdNotification** items.
|
|
18290
18258
|
*/
|
|
18291
18259
|
class QdNotificationsComponent {
|
|
18292
18260
|
notificationService = inject(QdNotificationsService);
|
|
18293
18261
|
_destroyRef = inject(DestroyRef);
|
|
18294
|
-
notifications;
|
|
18262
|
+
notifications = [];
|
|
18295
18263
|
/**
|
|
18296
18264
|
* The context can be assigned to control the positioning of the notifications.
|
|
18297
18265
|
*/
|
|
@@ -18463,7 +18431,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
18463
18431
|
}]
|
|
18464
18432
|
}] });
|
|
18465
18433
|
|
|
18466
|
-
// @ts-strict-ignore
|
|
18467
18434
|
/**
|
|
18468
18435
|
* **QdNotificationsSnackbar** provides a container for **QdNotification** items in the form of a snackbar. <br />
|
|
18469
18436
|
* Positioned at the bottom of the view port.
|
|
@@ -25633,7 +25600,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
25633
25600
|
args: [{ selector: 'qd-navigation-tiles', encapsulation: ViewEncapsulation.None, standalone: false, template: "<ng-content select=\"[qd-navigation-tile]\"></ng-content>\n", styles: ["qd-navigation-tiles{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}@media(min-width:600px){qd-navigation-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:960px){qd-navigation-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(min-width:1280px){qd-navigation-tiles{display:flex;flex-wrap:wrap}qd-navigation-tiles>[qd-navigation-tile]{width:15rem;max-width:15rem;flex:1}}\n"] }]
|
|
25634
25601
|
}] });
|
|
25635
25602
|
|
|
25636
|
-
// @ts-strict-ignore
|
|
25637
25603
|
/**
|
|
25638
25604
|
* **QdNavigationTile** represents a single tile within **QdNavigationTile**.<br />
|
|
25639
25605
|
* It is possible to bind it to an `a` tag.
|
|
@@ -25948,7 +25914,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
25948
25914
|
args: [{ selector: 'qd-indeterminate-progress-bar', template: '', encapsulation: ViewEncapsulation.None, host: { class: 'qd-progress-line' }, standalone: false, styles: [".qd-progress-line,.qd-progress-line:before{width:100%;height:.1875rem;margin:0}.qd-progress-line{display:flex;background-color:#d5d5d5}.qd-progress-line:before{animation:running-progress 2s cubic-bezier(.4,0,.2,1) infinite;background-color:#069;content:\"\"}@keyframes running-progress{0%{margin-right:100%;margin-left:0}50%{margin-right:0;margin-left:25%}to{margin-right:0;margin-left:100%}}\n"] }]
|
|
25949
25915
|
}] });
|
|
25950
25916
|
|
|
25951
|
-
// @ts-strict-ignore
|
|
25952
25917
|
/**
|
|
25953
25918
|
* **QdPercentageProgressBar** creates a ProgressBar with percentages.
|
|
25954
25919
|
*/
|
|
@@ -26036,7 +26001,6 @@ const QdSearchActions = {
|
|
|
26036
26001
|
updatePreSelect
|
|
26037
26002
|
};
|
|
26038
26003
|
|
|
26039
|
-
// @ts-strict-ignore
|
|
26040
26004
|
const initialState$1 = {};
|
|
26041
26005
|
const _searchReducer = createReducer(initialState$1, on(QdSearchActions.initSearchState, (state, { searchId, phrase, preSelect }) => updateStateWithNewSearch(state, searchId, { phrase, preSelect })), on(QdSearchActions.updatePhrase, (state, { searchId, phrase }) => updateStateWithNewPhrase(state, searchId, phrase)), on(QdSearchActions.updatePreSelect, (state, { searchId, preSelect }) => updateStateWithNewPreSelect(state, searchId, preSelect)));
|
|
26042
26006
|
function searchReducer(state, action) {
|
|
@@ -26152,14 +26116,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
26152
26116
|
type: Injectable
|
|
26153
26117
|
}], ctorParameters: () => [] });
|
|
26154
26118
|
|
|
26155
|
-
// @ts-strict-ignore
|
|
26156
26119
|
const selectFeature = (state) => state.qdSearch;
|
|
26157
26120
|
const selectSearchDataById = createSelector(selectFeature, (state, { searchId }) => state[searchId]);
|
|
26158
26121
|
const QdSearchSelector = {
|
|
26159
26122
|
selectSearchDataById
|
|
26160
26123
|
};
|
|
26161
26124
|
|
|
26162
|
-
// @ts-strict-ignore
|
|
26163
26125
|
class QdSearchStoreService {
|
|
26164
26126
|
store = inject(Store);
|
|
26165
26127
|
initSearchState(searchId, phrase, preSelect) {
|
|
@@ -26184,7 +26146,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
26184
26146
|
}]
|
|
26185
26147
|
}] });
|
|
26186
26148
|
|
|
26187
|
-
// @ts-strict-ignore
|
|
26188
26149
|
class QdSearchService {
|
|
26189
26150
|
search = '';
|
|
26190
26151
|
preSelect = '';
|
|
@@ -26217,12 +26178,12 @@ class QdSearchService {
|
|
|
26217
26178
|
static getDefaultOptions(searchOptions) {
|
|
26218
26179
|
const result = searchOptions;
|
|
26219
26180
|
if (searchOptions !== undefined && searchOptions.preSelect !== undefined) {
|
|
26220
|
-
|
|
26181
|
+
searchOptions.preSelect.disabled = !!searchOptions.preSelect.disabled || false;
|
|
26221
26182
|
}
|
|
26222
26183
|
if (searchOptions !== undefined &&
|
|
26223
26184
|
searchOptions.preSelect !== undefined &&
|
|
26224
26185
|
searchOptions.preSelect.globalSearch !== undefined) {
|
|
26225
|
-
|
|
26186
|
+
searchOptions.preSelect.globalSearch.disabled = !!searchOptions.preSelect.globalSearch.disabled;
|
|
26226
26187
|
}
|
|
26227
26188
|
return result;
|
|
26228
26189
|
}
|
|
@@ -27683,14 +27644,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
27683
27644
|
type: Injectable
|
|
27684
27645
|
}], ctorParameters: () => [] });
|
|
27685
27646
|
|
|
27686
|
-
// @ts-strict-ignore
|
|
27687
27647
|
class QdTableResponsiveRowService {
|
|
27688
27648
|
_config;
|
|
27689
27649
|
_breakpoints = breakpoints;
|
|
27690
27650
|
_currentBreakpoint = Object.keys(breakpoints)[0];
|
|
27691
27651
|
_defaultColumnMapping = { xs: 1, sm: 2, md: 4, lg: 6, xl: 8, xxl: 10 };
|
|
27692
27652
|
_headCellDefinitionsSubject = new ReplaySubject(1);
|
|
27693
|
-
_columnsDefinitions;
|
|
27653
|
+
_columnsDefinitions = [];
|
|
27694
27654
|
_columnsDefinitionsSubject = new ReplaySubject(1);
|
|
27695
27655
|
headCellDefinitions$ = this._headCellDefinitionsSubject.asObservable();
|
|
27696
27656
|
columnsDefinitions$ = this._columnsDefinitionsSubject.asObservable();
|
|
@@ -27709,17 +27669,18 @@ class QdTableResponsiveRowService {
|
|
|
27709
27669
|
return this._currentBreakpoint;
|
|
27710
27670
|
}
|
|
27711
27671
|
get mainColumn() {
|
|
27712
|
-
return this._config
|
|
27672
|
+
return this._config?.mainColumn || this._config?.columns[0]?.column;
|
|
27713
27673
|
}
|
|
27714
27674
|
get mainColumnIndex() {
|
|
27715
|
-
|
|
27675
|
+
const config = this._config;
|
|
27676
|
+
if (!config?.mainColumn)
|
|
27716
27677
|
return 0;
|
|
27717
|
-
return
|
|
27678
|
+
return config.columns.findIndex(column => column.column === config.mainColumn);
|
|
27718
27679
|
}
|
|
27719
27680
|
get columnMapping() {
|
|
27720
27681
|
return Object.keys(this._breakpoints).reduce((acc, cur) => ({
|
|
27721
27682
|
...acc,
|
|
27722
|
-
...{ [cur]: this._config
|
|
27683
|
+
...{ [cur]: this._config?.columnMapping?.[cur] || this._defaultColumnMapping[cur] }
|
|
27723
27684
|
}), {});
|
|
27724
27685
|
}
|
|
27725
27686
|
isMainColumn(column) {
|
|
@@ -27728,7 +27689,11 @@ class QdTableResponsiveRowService {
|
|
|
27728
27689
|
isLastColumn(column) {
|
|
27729
27690
|
const columnsDefinitions = this._columnsDefinitions;
|
|
27730
27691
|
const lastColumnDefinition = columnsDefinitions[columnsDefinitions.length - 1];
|
|
27731
|
-
|
|
27692
|
+
if (lastColumnDefinition === undefined)
|
|
27693
|
+
return false;
|
|
27694
|
+
if (qdIsDeepEqual(lastColumnDefinition, column))
|
|
27695
|
+
return true;
|
|
27696
|
+
return Array.isArray(lastColumnDefinition) && !Array.isArray(column) && lastColumnDefinition.includes(column);
|
|
27732
27697
|
}
|
|
27733
27698
|
updateDefinitions() {
|
|
27734
27699
|
this._headCellDefinitionsSubject.next(this.getHeadCellDefinitions());
|
|
@@ -27745,11 +27710,12 @@ class QdTableResponsiveRowService {
|
|
|
27745
27710
|
return [...Array(columnsLength - maxCurrentColumns).keys()].map(i => this.mainColumnIndex + i + 1);
|
|
27746
27711
|
}
|
|
27747
27712
|
getColumnsDefinitions() {
|
|
27748
|
-
|
|
27713
|
+
const config = this._config;
|
|
27714
|
+
if (!config || !this._currentBreakpoint)
|
|
27749
27715
|
return [];
|
|
27750
|
-
const columnsLength =
|
|
27716
|
+
const columnsLength = config.columns.length;
|
|
27751
27717
|
const maxCurrentColumns = this.columnMapping[this._currentBreakpoint];
|
|
27752
|
-
let columnsDefinitions =
|
|
27718
|
+
let columnsDefinitions = config.columns.map(column => column.column);
|
|
27753
27719
|
if (this.mainColumnIndex >= maxCurrentColumns) {
|
|
27754
27720
|
console.warn('Quadrel Framework | QdTable - The index of the "mainColumn" cannot be equal or greater than maximum columns for this breakpoint.');
|
|
27755
27721
|
return columnsDefinitions;
|
|
@@ -27760,22 +27726,19 @@ class QdTableResponsiveRowService {
|
|
|
27760
27726
|
const mergedColumns = [];
|
|
27761
27727
|
let alreadyMerged = false;
|
|
27762
27728
|
for (let i = 0; i <= columnsLength - maxCurrentColumns; i++) {
|
|
27763
|
-
mergedColumns.push(
|
|
27729
|
+
mergedColumns.push(config.columns[this.mainColumnIndex + i].column);
|
|
27764
27730
|
}
|
|
27765
27731
|
for (let i = 0; i < columnsLength; i++) {
|
|
27766
|
-
if (mergedColumns.includes(
|
|
27732
|
+
if (mergedColumns.includes(config.columns[i].column) && !alreadyMerged) {
|
|
27767
27733
|
columnsDefinitions.push(mergedColumns);
|
|
27768
27734
|
alreadyMerged = true;
|
|
27769
27735
|
}
|
|
27770
|
-
if (!mergedColumns.includes(
|
|
27771
|
-
columnsDefinitions.push(
|
|
27736
|
+
if (!mergedColumns.includes(config.columns[i].column)) {
|
|
27737
|
+
columnsDefinitions.push(config.columns[i].column);
|
|
27772
27738
|
}
|
|
27773
27739
|
}
|
|
27774
27740
|
return columnsDefinitions;
|
|
27775
27741
|
}
|
|
27776
|
-
getColumnByIndex(columnIndex) {
|
|
27777
|
-
return this._config.columns[columnIndex].column;
|
|
27778
|
-
}
|
|
27779
27742
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdTableResponsiveRowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27780
27743
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdTableResponsiveRowService });
|
|
27781
27744
|
}
|
|
@@ -27783,7 +27746,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
27783
27746
|
type: Injectable
|
|
27784
27747
|
}] });
|
|
27785
27748
|
|
|
27786
|
-
// @ts-strict-ignore
|
|
27787
27749
|
class QdTableRowSelectionService {
|
|
27788
27750
|
tableStoreService = inject(QdTableStoreService);
|
|
27789
27751
|
_destroyRef = inject(DestroyRef);
|
|
@@ -27802,7 +27764,7 @@ class QdTableRowSelectionService {
|
|
|
27802
27764
|
return this.tableStoreService.tableId;
|
|
27803
27765
|
}
|
|
27804
27766
|
get selectionType() {
|
|
27805
|
-
return this._config.selection
|
|
27767
|
+
return this._config.selection?.type;
|
|
27806
27768
|
}
|
|
27807
27769
|
get selectedRows$() {
|
|
27808
27770
|
return combineLatest([this.tableStoreService.selectedRows$(), this.tableStoreService.selectedRowsData$()]).pipe(auditTime(0), skip(this._config.selection?.emitOutputInitially ? 0 : 1), map(([ids, cache]) => ids
|
|
@@ -27815,7 +27777,7 @@ class QdTableRowSelectionService {
|
|
|
27815
27777
|
setRowSelected(rowIndex, rowData) {
|
|
27816
27778
|
const identifier = resolveRowIdentifier(rowData, rowIndex, this._config.trackRowBy);
|
|
27817
27779
|
const selectedRow = { ...rowData };
|
|
27818
|
-
if (this._config.selection
|
|
27780
|
+
if (this._config.selection?.type === 'singleSelect') {
|
|
27819
27781
|
this.tableStoreService.selectSingleRow(identifier, selectedRow);
|
|
27820
27782
|
}
|
|
27821
27783
|
else {
|
|
@@ -28194,7 +28156,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
28194
28156
|
type: Input
|
|
28195
28157
|
}] } });
|
|
28196
28158
|
|
|
28197
|
-
// @ts-strict-ignore
|
|
28198
28159
|
class QdTablePaginatorPageSizeComponent {
|
|
28199
28160
|
elementRef = inject(ElementRef);
|
|
28200
28161
|
tableDataResolver = inject(QD_TABLE_DATA_RESOLVER_TOKEN, { optional: true });
|
|
@@ -28845,7 +28806,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
28845
28806
|
type: Input
|
|
28846
28807
|
}] } });
|
|
28847
28808
|
|
|
28848
|
-
// @ts-strict-ignore
|
|
28849
28809
|
class QdTableRowSelectionComponent {
|
|
28850
28810
|
rowSelectionService = inject(QdTableRowSelectionService);
|
|
28851
28811
|
rowIndex;
|
|
@@ -29059,7 +29019,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
29059
29019
|
args: ['data-test-id']
|
|
29060
29020
|
}] } });
|
|
29061
29021
|
|
|
29062
|
-
// @ts-strict-ignore
|
|
29063
29022
|
class QdTableEmptyStateComponent {
|
|
29064
29023
|
emptyStateService = inject(QdTableEmptyStateService);
|
|
29065
29024
|
config;
|
|
@@ -29218,7 +29177,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
29218
29177
|
args: ['data-test-id']
|
|
29219
29178
|
}] } });
|
|
29220
29179
|
|
|
29221
|
-
// @ts-strict-ignore
|
|
29222
29180
|
class QdTableHeadComponent {
|
|
29223
29181
|
responsiveRowService = inject(QdTableResponsiveRowService);
|
|
29224
29182
|
config;
|
|
@@ -29257,7 +29215,7 @@ class QdTableHeadComponent {
|
|
|
29257
29215
|
return this.config.columns.some(column => column.column === columnName && column.sort !== undefined && !column.sort?.isDisabled);
|
|
29258
29216
|
}
|
|
29259
29217
|
getSortConfig(columnName) {
|
|
29260
|
-
return this.config.columns.find(column => column.column === columnName)
|
|
29218
|
+
return this.config.columns.find(column => column.column === columnName)?.sort;
|
|
29261
29219
|
}
|
|
29262
29220
|
getTooltip(columnName) {
|
|
29263
29221
|
return this.config.columns.find(column => column.column === columnName)?.tooltip;
|
|
@@ -29976,7 +29934,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
29976
29934
|
type: Injectable
|
|
29977
29935
|
}] });
|
|
29978
29936
|
|
|
29979
|
-
// @ts-strict-ignore
|
|
29980
29937
|
/**
|
|
29981
29938
|
* Directive for establishing a connection between **QdTableComponent** and the existing **QdFilterComponent** within **QdSection**.
|
|
29982
29939
|
*
|
|
@@ -30163,7 +30120,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
30163
30120
|
}]
|
|
30164
30121
|
}], ctorParameters: () => [] });
|
|
30165
30122
|
|
|
30166
|
-
// @ts-strict-ignore
|
|
30167
30123
|
/**
|
|
30168
30124
|
* Directive for establishing a connection between **QdTableComponent** and the existing **QdSearchComponent** within **QdSection**.
|
|
30169
30125
|
*
|
|
@@ -31071,12 +31027,11 @@ class QdGroupedIndicesNotConsecutiveError extends Error {
|
|
|
31071
31027
|
}
|
|
31072
31028
|
}
|
|
31073
31029
|
|
|
31074
|
-
// @ts-strict-ignore
|
|
31075
31030
|
class QdTreeGroupService {
|
|
31076
31031
|
config;
|
|
31077
31032
|
columnsDetails = [];
|
|
31078
31033
|
groupColumn;
|
|
31079
|
-
ungroupedColumns;
|
|
31034
|
+
ungroupedColumns = [];
|
|
31080
31035
|
/**
|
|
31081
31036
|
* Groups columns that matches the given function and returns resulting columns with details.
|
|
31082
31037
|
*
|
|
@@ -31087,7 +31042,7 @@ class QdTreeGroupService {
|
|
|
31087
31042
|
initialize(config, isColumnGrouped) {
|
|
31088
31043
|
this.config = config;
|
|
31089
31044
|
this.columnsDetails = this.getColumnsDetailsAfterGrouping(isColumnGrouped);
|
|
31090
|
-
this.groupColumn = this.columnsDetails.find(column => column.type === 'group');
|
|
31045
|
+
this.groupColumn = this.columnsDetails.find((column) => column.type === 'group');
|
|
31091
31046
|
this.ungroupedColumns = this.columnsDetails.filter(column => column.type !== 'group');
|
|
31092
31047
|
}
|
|
31093
31048
|
updateTableConfig(config, isColumnGrouped) {
|
|
@@ -31275,7 +31230,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
31275
31230
|
type: Injectable
|
|
31276
31231
|
}] });
|
|
31277
31232
|
|
|
31278
|
-
// @ts-strict-ignore
|
|
31279
31233
|
const RESERVED_ROW_PROPERTIES = ['uid', 'nestedRows', 'expanded', 'full'];
|
|
31280
31234
|
class QdTreeRowsService {
|
|
31281
31235
|
groupService = inject(QdTreeGroupService);
|
|
@@ -31283,7 +31237,7 @@ class QdTreeRowsService {
|
|
|
31283
31237
|
_destroyRef = inject(DestroyRef);
|
|
31284
31238
|
config;
|
|
31285
31239
|
treeRowSubject = new BehaviorSubject(null);
|
|
31286
|
-
treeRow$ = this.treeRowSubject.
|
|
31240
|
+
treeRow$ = this.treeRowSubject.pipe(filter$1((tree) => tree !== null));
|
|
31287
31241
|
toggledRows = new WeakMap();
|
|
31288
31242
|
get groupColumn() {
|
|
31289
31243
|
return this.groupService.groupColumn;
|
|
@@ -31306,7 +31260,7 @@ class QdTreeRowsService {
|
|
|
31306
31260
|
}
|
|
31307
31261
|
initializeConfig(config) {
|
|
31308
31262
|
this.config = config;
|
|
31309
|
-
this.expanderService
|
|
31263
|
+
this.expanderService?.init(this.config?.uid, this);
|
|
31310
31264
|
}
|
|
31311
31265
|
updateRows(data) {
|
|
31312
31266
|
this.treeRowSubject.next(data);
|
|
@@ -31332,8 +31286,9 @@ class QdTreeRowsService {
|
|
|
31332
31286
|
return this.toggledRows.get(row) ?? row.expanded ?? false;
|
|
31333
31287
|
}
|
|
31334
31288
|
getGroupValue(row) {
|
|
31335
|
-
const
|
|
31336
|
-
|
|
31289
|
+
const looseRow = row;
|
|
31290
|
+
const column = this.groupColumn?.groupedColumns.find(groupedColumn => looseRow[groupedColumn.column] !== undefined);
|
|
31291
|
+
return column ? `${column.column}:${String(looseRow[column.column])}` : '';
|
|
31337
31292
|
}
|
|
31338
31293
|
splitRowsByTree(rows) {
|
|
31339
31294
|
rows.forEach(row => {
|
|
@@ -31343,16 +31298,19 @@ class QdTreeRowsService {
|
|
|
31343
31298
|
});
|
|
31344
31299
|
return rows.map(this.splitRowByTree.bind(this));
|
|
31345
31300
|
}
|
|
31346
|
-
splitRowByTree(
|
|
31301
|
+
splitRowByTree(treeRow) {
|
|
31302
|
+
const row = treeRow;
|
|
31347
31303
|
const treeRows = [];
|
|
31348
|
-
|
|
31349
|
-
|
|
31350
|
-
|
|
31351
|
-
|
|
31304
|
+
const groupColumn = this.groupColumn;
|
|
31305
|
+
if (groupColumn) {
|
|
31306
|
+
groupColumn.groupedColumns.forEach(groupedColumn => {
|
|
31307
|
+
const column = groupedColumn.column;
|
|
31308
|
+
if (row[column]) {
|
|
31309
|
+
treeRows.push({ [column]: row[column] });
|
|
31352
31310
|
}
|
|
31353
31311
|
});
|
|
31354
31312
|
}
|
|
31355
|
-
if (treeRows.length === 0) {
|
|
31313
|
+
if (!groupColumn || treeRows.length === 0) {
|
|
31356
31314
|
treeRows.push(row);
|
|
31357
31315
|
}
|
|
31358
31316
|
else {
|
|
@@ -31360,20 +31318,20 @@ class QdTreeRowsService {
|
|
|
31360
31318
|
this.ungroupedColumns.forEach(column => {
|
|
31361
31319
|
lastTreeRow[column.column] = row[column.column];
|
|
31362
31320
|
});
|
|
31363
|
-
this.getMetadataProperties(
|
|
31321
|
+
this.getMetadataProperties(treeRow, groupColumn).forEach(property => {
|
|
31364
31322
|
lastTreeRow[property] = row[property];
|
|
31365
31323
|
});
|
|
31366
|
-
if (row
|
|
31367
|
-
lastTreeRow
|
|
31368
|
-
lastTreeRow
|
|
31369
|
-
if (!this.config?.group?.aggregation || !lastTreeRow
|
|
31370
|
-
lastTreeRow
|
|
31324
|
+
if (row['uid'])
|
|
31325
|
+
lastTreeRow['uid'] = row['uid'];
|
|
31326
|
+
lastTreeRow['nestedRows'] = row['nestedRows'];
|
|
31327
|
+
if (!this.config?.group?.aggregation || !lastTreeRow['nestedRows'])
|
|
31328
|
+
lastTreeRow['full'] = row;
|
|
31371
31329
|
}
|
|
31372
31330
|
return this.nestRowsIntoOneAnother(treeRows);
|
|
31373
31331
|
}
|
|
31374
|
-
getMetadataProperties(row) {
|
|
31332
|
+
getMetadataProperties(row, groupColumn) {
|
|
31375
31333
|
const configuredColumns = [
|
|
31376
|
-
...
|
|
31334
|
+
...groupColumn.groupedColumns.map(column => column.column),
|
|
31377
31335
|
...this.ungroupedColumns.map(column => column.column)
|
|
31378
31336
|
];
|
|
31379
31337
|
return Object.keys(row).filter(property => !configuredColumns.includes(property) && !RESERVED_ROW_PROPERTIES.includes(property));
|
|
@@ -31442,8 +31400,9 @@ class QdTreeRowsService {
|
|
|
31442
31400
|
}
|
|
31443
31401
|
});
|
|
31444
31402
|
const properties = this.getRowsProperties(rows);
|
|
31445
|
-
|
|
31446
|
-
|
|
31403
|
+
const looseRows = rows;
|
|
31404
|
+
if (properties.length === 1 && looseRows.every(row => typeof row[properties[0]] === 'number')) {
|
|
31405
|
+
looseRows.sort((rowA, rowB) => rowA[properties[0]] - rowB[properties[0]]);
|
|
31447
31406
|
}
|
|
31448
31407
|
}
|
|
31449
31408
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdTreeRowsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -31604,7 +31563,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
31604
31563
|
type: Input
|
|
31605
31564
|
}] } });
|
|
31606
31565
|
|
|
31607
|
-
// @ts-strict-ignore
|
|
31608
31566
|
class QdTreeBodyComponent {
|
|
31609
31567
|
groupService = inject(QdTreeGroupService);
|
|
31610
31568
|
treeRowsService = inject(QdTreeRowsService);
|
|
@@ -31630,7 +31588,7 @@ class QdTreeBodyComponent {
|
|
|
31630
31588
|
this.treeRowsService.updateRows(this.data);
|
|
31631
31589
|
}
|
|
31632
31590
|
get hasSeveralTreeColumns() {
|
|
31633
|
-
return this.groupService.groupColumn?.groupedColumns.length > 1;
|
|
31591
|
+
return (this.groupService.groupColumn?.groupedColumns.length ?? 0) > 1;
|
|
31634
31592
|
}
|
|
31635
31593
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdTreeBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31636
31594
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdTreeBodyComponent, isStandalone: false, selector: "[qd-tree-body]", inputs: { config: "config", data: "data", testId: ["data-test-id", "testId"] }, host: { classAttribute: "qd-tree-body" }, usesOnChanges: true, ngImport: i0, template: "@for (rowData of tree$ | async; track rowData; let rowIndex = $index) {\n<ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: 0 }\"\n></ng-container>\n}\n\n<ng-template #rowTemplate let-rowData=\"rowData\" let-rowIndex=\"rowIndex\" let-indentation=\"indentation\">\n <tr\n #row\n qd-tree-row\n [class]=\"'qd-tree-body-row'\"\n [columnsDetails]=\"columnsDetails\"\n [rowData]=\"rowData\"\n [rowIndex]=\"rowIndex\"\n [config]=\"config\"\n [indentation]=\"indentation\"\n [data-test-id]=\"testId + '-row-' + rowIndex\"\n ></tr>\n @if (row.expanded && rowData.nestedRows) { @for (rowData of rowData.nestedRows; track rowData; let rowIndex = $index)\n {\n <ng-container\n [ngTemplateOutlet]=\"rowTemplate\"\n [ngTemplateOutletContext]=\"{ rowData, rowIndex, indentation: indentation + 1 }\"\n ></ng-container>\n } }\n</ng-template>\n", styles: [".qd-tree-body .qd-tree-body-row{border:0 solid rgb(229,229,229);border-left-width:.0625rem}.qd-tree-body .qd-tree-body-row:hover{background-color:#f5f5f5}.qd-tree-body .qd-tree-body-cell{border:0 solid rgb(229,229,229);border-right-width:.0625rem;border-bottom-width:.0625rem}.qd-tree-body .qd-tree-body-cell:first-child{border-left-width:.0625rem}.qd-tree-body .qd-tree-body-cell-group span{margin-left:.25rem}.qd-tree-body .qd-tree-body-cell-group span+span:before{content:\"\\e002\";font-family:Quadrel-Icon,sans-serif}.qd-tree-body .qd-tree-body-cell-group.expandable{cursor:pointer}.qd-tree-body .qd-tree-body-cell-group-index-0{padding-left:1rem!important}.qd-tree-body .qd-tree-body-cell-group-index-1{padding-left:2rem!important}.qd-tree-body .qd-tree-body-cell-group-index-2{padding-left:3rem!important}.qd-tree-body .qd-tree-body-cell-group-index-3{padding-left:4rem!important}.qd-tree-body .qd-tree-body-cell-group-index-4{padding-left:5rem!important}.qd-tree-body .qd-tree-body-cell-group-index-5{padding-left:6rem!important}.qd-tree-body .qd-tree-body-cell-group-index-6{padding-left:7rem!important}.qd-tree-body .qd-tree-body-cell-group-index-7{padding-left:8rem!important}.qd-tree-body .qd-tree-body-cell-group-index-8{padding-left:9rem!important}.qd-tree-body .qd-tree-body-cell-group-index-9{padding-left:10rem!important}.qd-tree-body .qd-tree-body-cell-group-index-10{padding-left:11rem!important}.qd-tree-body .qd-tree-body-cell-group-index-11{padding-left:12rem!important}.qd-tree-body .qd-tree-body-cell-group-index-12{padding-left:13rem!important}.qd-tree-body .qd-tree-body-cell-group-index-13{padding-left:14rem!important}.qd-tree-body .qd-tree-body-cell-group-index-14{padding-left:15rem!important}.qd-tree-body .qd-tree-body-cell-group-index-15{padding-left:16rem!important}.qd-tree-body .qd-tree-body-cell-group-index-16{padding-left:17rem!important}.qd-tree-body .qd-tree-body-cell-group-index-17{padding-left:18rem!important}.qd-tree-body .qd-tree-body-cell-group-index-18{padding-left:19rem!important}.qd-tree-body .qd-tree-body-cell-group-index-19{padding-left:20rem!important}.qd-tree-body .qd-tree-body-cell-group-index-20{padding-left:21rem!important}.qd-tree-body .expander{width:0;cursor:pointer;transform:translate(-.75rem)}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: QdTreeRowComponent, selector: "[qd-tree-row]", inputs: ["columnsDetails", "indentation", "config", "data-test-id", "rowData", "rowIndex"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None });
|
|
@@ -31647,7 +31605,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
31647
31605
|
args: ['data-test-id']
|
|
31648
31606
|
}] } });
|
|
31649
31607
|
|
|
31650
|
-
// @ts-strict-ignore
|
|
31651
31608
|
class QdTreeEmptyStateComponent {
|
|
31652
31609
|
emptyStateService = inject(QdTableEmptyStateService);
|
|
31653
31610
|
config;
|
|
@@ -31670,7 +31627,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
31670
31627
|
type: Input
|
|
31671
31628
|
}] } });
|
|
31672
31629
|
|
|
31673
|
-
// @ts-strict-ignore
|
|
31674
31630
|
class QdTreeHeadComponent {
|
|
31675
31631
|
groupService = inject(QdTreeGroupService);
|
|
31676
31632
|
responsiveRowService = inject(QdTableResponsiveRowService);
|
|
@@ -31683,7 +31639,7 @@ class QdTreeHeadComponent {
|
|
|
31683
31639
|
return this.config.i18ns;
|
|
31684
31640
|
}
|
|
31685
31641
|
get headData() {
|
|
31686
|
-
return this.groupService.columnsDetails.map(column => column.type === 'group' ? column.groupedColumns[0].column : column.column);
|
|
31642
|
+
return this.groupService.columnsDetails.map(column => (column.type === 'group' ? column.groupedColumns[0].column : column.column));
|
|
31687
31643
|
}
|
|
31688
31644
|
ngOnInit() {
|
|
31689
31645
|
this.responsiveRowService.config = this.config;
|
|
@@ -32612,16 +32568,16 @@ class QdMultiSelectFacetComponent {
|
|
|
32612
32568
|
get options() {
|
|
32613
32569
|
return this.facet.options;
|
|
32614
32570
|
}
|
|
32615
|
-
handleAction(
|
|
32571
|
+
handleAction(action, event) {
|
|
32616
32572
|
event.stopPropagation();
|
|
32617
|
-
|
|
32573
|
+
action.handler();
|
|
32618
32574
|
}
|
|
32619
32575
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMultiSelectFacetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32620
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdMultiSelectFacetComponent, isStandalone: false, selector: "qd-multi-select-facet", inputs: { facet: "facet", data: "data" }, ngImport: i0, template: "@for (option of $any(data[facet.name]); track option) {\n<span>\n <span class=\"label\">{{ option.label }}:</span> {{ option.value }}\n</span>\n} @if (options.action) {\n<button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"handleAction(options, $event)\"\n data-test-id=\"multi-select-facet-button\"\n>\n {{ options.action.label.i18n }}\n</button>\n}\n", styles: [":host{font-size:.875rem}:host>*{display:block}:host>span{margin-bottom:.5rem}:host>span:last-child{margin-bottom:0}:host>span .label{color:#757575}:host button{height:auto;line-height:1rem}\n"], dependencies: [{ kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }] });
|
|
32576
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdMultiSelectFacetComponent, isStandalone: false, selector: "qd-multi-select-facet", inputs: { facet: "facet", data: "data" }, ngImport: i0, template: "@for (option of $any(data[facet.name]); track option) {\n<span>\n <span class=\"label\">{{ option.label }}:</span> {{ option.value }}\n</span>\n} @if (options.action) {\n<button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"handleAction(options.action, $event)\"\n data-test-id=\"multi-select-facet-button\"\n>\n {{ options.action.label.i18n }}\n</button>\n}\n", styles: [":host{font-size:.875rem}:host>*{display:block}:host>span{margin-bottom:.5rem}:host>span:last-child{margin-bottom:0}:host>span .label{color:#757575}:host button{height:auto;line-height:1rem}\n"], dependencies: [{ kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }] });
|
|
32621
32577
|
}
|
|
32622
32578
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdMultiSelectFacetComponent, decorators: [{
|
|
32623
32579
|
type: Component,
|
|
32624
|
-
args: [{ selector: 'qd-multi-select-facet', standalone: false, template: "@for (option of $any(data[facet.name]); track option) {\n<span>\n <span class=\"label\">{{ option.label }}:</span> {{ option.value }}\n</span>\n} @if (options.action) {\n<button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"handleAction(options, $event)\"\n data-test-id=\"multi-select-facet-button\"\n>\n {{ options.action.label.i18n }}\n</button>\n}\n", styles: [":host{font-size:.875rem}:host>*{display:block}:host>span{margin-bottom:.5rem}:host>span:last-child{margin-bottom:0}:host>span .label{color:#757575}:host button{height:auto;line-height:1rem}\n"] }]
|
|
32580
|
+
args: [{ selector: 'qd-multi-select-facet', standalone: false, template: "@for (option of $any(data[facet.name]); track option) {\n<span>\n <span class=\"label\">{{ option.label }}:</span> {{ option.value }}\n</span>\n} @if (options.action) {\n<button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"handleAction(options.action, $event)\"\n data-test-id=\"multi-select-facet-button\"\n>\n {{ options.action.label.i18n }}\n</button>\n}\n", styles: [":host{font-size:.875rem}:host>*{display:block}:host>span{margin-bottom:.5rem}:host>span:last-child{margin-bottom:0}:host>span .label{color:#757575}:host button{height:auto;line-height:1rem}\n"] }]
|
|
32625
32581
|
}], propDecorators: { facet: [{
|
|
32626
32582
|
type: Input
|
|
32627
32583
|
}], data: [{
|
|
@@ -32670,16 +32626,16 @@ class QdSingleSelectFacetComponent {
|
|
|
32670
32626
|
get options() {
|
|
32671
32627
|
return this.facet.options;
|
|
32672
32628
|
}
|
|
32673
|
-
handleAction(
|
|
32629
|
+
handleAction(action, event) {
|
|
32674
32630
|
event.stopPropagation();
|
|
32675
|
-
|
|
32631
|
+
action.handler();
|
|
32676
32632
|
}
|
|
32677
32633
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdSingleSelectFacetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32678
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdSingleSelectFacetComponent, isStandalone: false, selector: "qd-single-select-facet", inputs: { facet: "facet", data: "data" }, ngImport: i0, template: "@if (data[facet.name]) {\n<span>{{ data[facet.name] }}</span>\n} @if (options.action) {\n<button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"handleAction(options, $event)\"\n data-test-id=\"single-select-facet-button\"\n>\n {{ options.action.label.i18n }}\n</button>\n}\n", styles: [":host{font-size:.875rem}:host span{display:block;margin-bottom:.5rem}:host span:last-child{margin-bottom:0}:host button{display:block;height:auto;line-height:1rem}\n"], dependencies: [{ kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }] });
|
|
32634
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdSingleSelectFacetComponent, isStandalone: false, selector: "qd-single-select-facet", inputs: { facet: "facet", data: "data" }, ngImport: i0, template: "@if (data[facet.name]) {\n<span>{{ data[facet.name] }}</span>\n} @if (options.action) {\n<button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"handleAction(options.action, $event)\"\n data-test-id=\"single-select-facet-button\"\n>\n {{ options.action.label.i18n }}\n</button>\n}\n", styles: [":host{font-size:.875rem}:host span{display:block;margin-bottom:.5rem}:host span:last-child{margin-bottom:0}:host button{display:block;height:auto;line-height:1rem}\n"], dependencies: [{ kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }] });
|
|
32679
32635
|
}
|
|
32680
32636
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdSingleSelectFacetComponent, decorators: [{
|
|
32681
32637
|
type: Component,
|
|
32682
|
-
args: [{ selector: 'qd-single-select-facet', standalone: false, template: "@if (data[facet.name]) {\n<span>{{ data[facet.name] }}</span>\n} @if (options.action) {\n<button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"handleAction(options, $event)\"\n data-test-id=\"single-select-facet-button\"\n>\n {{ options.action.label.i18n }}\n</button>\n}\n", styles: [":host{font-size:.875rem}:host span{display:block;margin-bottom:.5rem}:host span:last-child{margin-bottom:0}:host button{display:block;height:auto;line-height:1rem}\n"] }]
|
|
32638
|
+
args: [{ selector: 'qd-single-select-facet', standalone: false, template: "@if (data[facet.name]) {\n<span>{{ data[facet.name] }}</span>\n} @if (options.action) {\n<button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"handleAction(options.action, $event)\"\n data-test-id=\"single-select-facet-button\"\n>\n {{ options.action.label.i18n }}\n</button>\n}\n", styles: [":host{font-size:.875rem}:host span{display:block;margin-bottom:.5rem}:host span:last-child{margin-bottom:0}:host button{display:block;height:auto;line-height:1rem}\n"] }]
|
|
32683
32639
|
}], propDecorators: { facet: [{
|
|
32684
32640
|
type: Input
|
|
32685
32641
|
}], data: [{
|
|
@@ -32903,6 +32859,8 @@ class QdDynamicFacetComponent {
|
|
|
32903
32859
|
this.setFacetValue('testId', changes['testId'].currentValue);
|
|
32904
32860
|
}
|
|
32905
32861
|
setFacetValue(name, value) {
|
|
32862
|
+
if (!this.ref)
|
|
32863
|
+
return;
|
|
32906
32864
|
if (this.inputNames.has(name)) {
|
|
32907
32865
|
this.ref.setInput(name, value);
|
|
32908
32866
|
return;
|
|
@@ -33628,6 +33586,8 @@ class QdPageObjectHeaderComponent {
|
|
|
33628
33586
|
injector = inject(Injector);
|
|
33629
33587
|
pageStoreService = inject(QdPageStoreService);
|
|
33630
33588
|
_destroyRef = inject(DestroyRef);
|
|
33589
|
+
_zone = inject(NgZone);
|
|
33590
|
+
_host = inject(ElementRef);
|
|
33631
33591
|
_pageObjectDataSubject = new BehaviorSubject({});
|
|
33632
33592
|
_isLoadingSubject = new BehaviorSubject(false);
|
|
33633
33593
|
_customActionsSubject = new BehaviorSubject({ actions: [] });
|
|
@@ -33722,6 +33682,9 @@ class QdPageObjectHeaderComponent {
|
|
|
33722
33682
|
this.formGroupManagerService.$hasValuesChanged()
|
|
33723
33683
|
]).pipe(map(([isValid, hasChanges]) => isValid && hasChanges));
|
|
33724
33684
|
}
|
|
33685
|
+
constructor() {
|
|
33686
|
+
afterNextRender(() => this._zone.runOutsideAngular(() => this.observeTitleWidth()));
|
|
33687
|
+
}
|
|
33725
33688
|
ngOnInit() {
|
|
33726
33689
|
if (this.pageObjectResolver)
|
|
33727
33690
|
this.setupResolverTrigger(this.pageObjectResolver);
|
|
@@ -33746,6 +33709,13 @@ class QdPageObjectHeaderComponent {
|
|
|
33746
33709
|
handleAction(facet) {
|
|
33747
33710
|
facet?.action?.handler();
|
|
33748
33711
|
}
|
|
33712
|
+
/**
|
|
33713
|
+
* Returns the custom actions that are not hidden.
|
|
33714
|
+
* The icon menu on narrow headers lists only these.
|
|
33715
|
+
*/
|
|
33716
|
+
visibleCustomActions(customActions) {
|
|
33717
|
+
return customActions.actions.filter(action => !action.isHidden);
|
|
33718
|
+
}
|
|
33749
33719
|
hasHeaderFacets(config) {
|
|
33750
33720
|
return this.config.headerFacets != null;
|
|
33751
33721
|
}
|
|
@@ -33876,6 +33846,23 @@ class QdPageObjectHeaderComponent {
|
|
|
33876
33846
|
this._customActionsSubject.next(this.getCustomActionsByMode(actions, mode));
|
|
33877
33847
|
});
|
|
33878
33848
|
}
|
|
33849
|
+
observeTitleWidth() {
|
|
33850
|
+
const title = this._host.nativeElement.querySelector('.object-header-title');
|
|
33851
|
+
const titleRow = title.parentElement;
|
|
33852
|
+
const measure = () => {
|
|
33853
|
+
const width = Math.ceil(qdMeasureNaturalSize(title, titleRow).outerWidth);
|
|
33854
|
+
if (width > 0)
|
|
33855
|
+
title.style.setProperty('--qd-title-natural-width', `${width}px`);
|
|
33856
|
+
};
|
|
33857
|
+
const mutationObserver = new MutationObserver(measure);
|
|
33858
|
+
mutationObserver.observe(title, { childList: true, characterData: true, subtree: true });
|
|
33859
|
+
document.fonts?.addEventListener('loadingdone', measure);
|
|
33860
|
+
measure();
|
|
33861
|
+
this._destroyRef.onDestroy(() => {
|
|
33862
|
+
mutationObserver.disconnect();
|
|
33863
|
+
document.fonts?.removeEventListener('loadingdone', measure);
|
|
33864
|
+
});
|
|
33865
|
+
}
|
|
33879
33866
|
getCustomActionsByMode(customActions, mode) {
|
|
33880
33867
|
const actions = customActions
|
|
33881
33868
|
.filter(action => !action.operationMode || action.operationMode === mode)
|
|
@@ -33900,12 +33887,12 @@ class QdPageObjectHeaderComponent {
|
|
|
33900
33887
|
});
|
|
33901
33888
|
}
|
|
33902
33889
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdPageObjectHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33903
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdPageObjectHeaderComponent, isStandalone: false, selector: "qd-page-object-header", inputs: { config: "config", hasNavigation: "hasNavigation", testId: ["data-test-id", "testId"] }, host: { listeners: { "click": "toggleFacets()" }, properties: { "style.borderBottom": "borderBottomStyle", "class.in-dialog": "this.isInDialog" } }, usesOnChanges: true, ngImport: i0, template: "@if (isLoading$ | async) {\n<div class=\"loading-overlay\"><qd-spinner></qd-spinner></div>\n}\n\n<div class=\"object-header-top\">\n <header class=\"object-header-title\" [attr.data-test-id]=\"titleTestId\">{{ config.title.i18n | translate }}</header>\n <div class=\"object-header-toolbar\">\n <ng-content></ng-content>\n\n <button class=\"button-icon\" data-test-id=\"archive-button\">\n @if (showArchive$ | async) {\n <qd-icon (click)=\"archiveButton?.handler()\" class=\"header-action-icon\" [icon]=\"'resultNew'\"></qd-icon>\n }\n </button>\n\n <button class=\"button-icon\" data-test-id=\"delete-button\">\n @if (showDelete$ | async) {\n <qd-icon class=\"header-action-icon\" (click)=\"deleteButton?.handler()\" [icon]=\"'trash'\"></qd-icon>\n }\n </button>\n\n @if (showEdit$ | async) {\n <button qdButton (click)=\"edit()\" data-test-id=\"edit-button\">\n {{ editButton?.label?.i18n || \"i18n.qd.page.header.edit\" | translate }}\n </button>\n } @if (showCancel$ | async) {\n <button qdButton qdButtonGhost (click)=\"cancel()\" data-test-id=\"cancel-button\">\n {{ cancelButton.label?.i18n || \"i18n.qd.page.header.cancel\" | translate }}\n </button>\n } @if (showSave$ | async) {\n <button qdButton (click)=\"save()\" data-test-id=\"save-button\" [disabled]=\"($canSave | async) === false\">\n {{ saveButton.label?.i18n || \"i18n.qd.page.header.save\" | translate }}\n </button>\n } @if (customActions$ | async; as customActions) { @if (!adaptiveMode) { @if (customActions.actions.length > 1) {\n <button [qdMenuButton]=\"customActions\" [autoSize]=\"false\" [data-test-id]=\"'page-'\" data-test-id=\"custom-button\">\n {{ config?.customActionsLabel?.i18n || \"i18n.qd.page.header.actions\" | translate }}\n </button>\n } @else { @if ((customActions$ | async).actions[0]; as singleAction) { @if (singleAction.handler &&\n !singleAction.isHidden) {\n <button qdButton [disabled]=\"singleAction.isDisabled\" (click)=\"singleAction.handler()\" data-test-id=\"custom-button\">\n {{ singleAction.label?.i18n | translate }}\n </button>\n } } } } @else { @if ((customActions$ | async)?.actions.length >= 1) {\n <button\n type=\"button\"\n class=\"adaptive-menu-button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"160\"\n >\n <qd-icon icon=\"overflowMenuVertical\"></qd-icon>\n </button>\n }\n <ng-template #menu>\n @for (action of customActions.actions; track action; let i = $index) {\n <button class=\"adaptive-menu-entry\" type=\"button\" [disabled]=\"action.isDisabled\" (click)=\"action.handler()\">\n {{ action.label.i18n | translate }}\n </button>\n }\n </ng-template>\n } }\n </div>\n</div>\n\n<div class=\"object-header-facets\" [ngClass]=\"{ amongThemselves: adaptiveMode && !facetsCollapsed }\">\n @if (pageObjectData$ | async; as data) { @for (facet of headerFacets | slice : 0 : (adaptiveMode && facetsCollapsed ?\n 2 : headerFacets?.length ?? 0); track facet) {\n <div class=\"object-header-facet\" [attr.data-test-id]=\"testId + '-facet-' + facet.name\">\n <div class=\"facet-label\">{{ facet.label.i18n | translate }}</div>\n <qd-dynamic-facet\n class=\"dynamic-facet\"\n [facet]=\"facet\"\n [data]=\"data\"\n [testId]=\"testId + '-facet-' + facet.name\"\n ></qd-dynamic-facet>\n </div>\n } } @if (!config.hideContexts && contexts$ | async; as contexts) { @for ( context of contexts | slice : 0 :\n (adaptiveMode && facetsCollapsed ? 2 - (headerFacets?.length ?? 0) : contexts?.length); track context; let index =\n $index; let first = $first) {\n <div\n class=\"object-header-facet qd-context-facet\"\n [ngClass]=\"{ hasDivider: headerFacets && first, adaptiveFirst: headerFacets && adaptiveMode && first }\"\n [attr.data-test-id]=\"testId + '-context-facet-' + context.context.id\"\n >\n <div class=\"facet-label\">{{ context.label | translate }}</div>\n @if (context.value.length === 0) {\n <span class=\"no-selected-context\">{{ \"i18n.qd.page.context.noSelectionPlaceholder\" | translate }}</span>\n } @if (context.value.length !== 0) {\n <qd-context-selection-chip\n [selection]=\"context.value\"\n [removable]=\"isContextSelectable\"\n [testId]=\"testId + '-context-selection-' + context.context.id\"\n (selectionCleared)=\"clearContext(context.context)\"\n ></qd-context-selection-chip>\n } @if (isContextSelectable && (!facetsCollapsed || !adaptiveMode)) {\n <span class=\"select-button\">\n <button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"changeContext(context.context, context.selection, $event)\"\n [data-test-id]=\"'object-header-select-context-' + context.context.id\"\n >\n {{\n context.value.length !== 0\n ? (\"i18n.qd.page.context.button.change\" | translate)\n : (\"i18n.qd.page.context.button.select\" | translate)\n }}\n </button>\n </span>\n }\n </div>\n } } @if (contexts$ | async; as togglerContexts) { @if (adaptiveMode && headerFacets?.length + togglerContexts.length >\n 2) {\n <span class=\"facets-toggler\" [attr.data-test-id]=\"testId + '-facets-toggler'\">\n @if (facetsCollapsed) {\n <span [attr.data-test-id]=\"testId + '-facets-toggler-count'\"\n >+{{ headerFacets.length + togglerContexts.length - 2 }}</span\n >\n }\n <button qdIconButton [data-test-id]=\"'toggle-button'\">\n <qd-icon [icon]=\"facetsCollapsed ? 'ctrlDown' : 'ctrlTop'\"></qd-icon>\n </button>\n </span>\n } }\n</div>\n", styles: [":host{display:flex;flex-direction:column;justify-content:space-between;padding:1.25rem;border-bottom:.125rem solid rgb(213,213,213);background:#fff;gap:1.25rem}@media(max-width:599.98px){:host{padding:1.25rem .9375rem}}:host .object-header-top{display:flex;align-items:flex-start;justify-content:space-between}:host .object-header-top .object-header-title{padding:2px;color:#171717;font-size:1.3125rem;font-weight:500}:host .object-header-top .object-header-toolbar{display:flex;align-items:center;column-gap:.5rem}:host .object-header-top .object-header-toolbar .button-icon{background:none}:host .object-header-top .object-header-toolbar .button-icon+.button-icon{margin-left:-.5rem}:host .object-header-top .object-header-toolbar .header-action-icon{color:#14516f;cursor:pointer;font-size:1.5rem}:host.in-dialog .object-header-toolbar{padding-right:2.5rem}:host .object-header-facets{position:relative;display:flex;flex-wrap:wrap;font-size:1.125rem;gap:1.25rem}:host .object-header-facets .object-header-facet{display:flex;min-width:3.75rem;flex-direction:column}:host .object-header-facets .object-header-facet.hasDivider{padding-left:1.25rem;border-left:.0625rem solid rgb(117,117,117)}:host .object-header-facets .object-header-facet.adaptiveFirst{padding-top:1.25rem}:host .object-header-facets .object-header-facet .facet-label{display:block;margin-bottom:0;color:#757575;font-size:.875rem;padding-bottom:.375rem;font-weight:500}:host .object-header-facets .facets-toggler{position:absolute;top:0;right:0;display:flex;align-items:center;padding-right:.3125rem;font-size:.625rem;line-height:.625rem}:host .object-header-facets.amongThemselves{display:grid}:host .object-header-facets.amongThemselves .object-header-facet.hasDivider{padding-left:0;border-top:.0625rem solid rgb(117,117,117);border-left:none}.loading-overlay{position:absolute;z-index:10000;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}.no-selected-context{height:1.625rem;color:#979797;font-size:.875rem;line-height:1.625rem}.select-button{margin-top:.25rem}.adaptive-menu-button{display:flex;background:unset;color:#454545;font-size:2rem}.adaptive-menu-button:hover,.adaptive-menu-button:focus{color:#000}.adaptive-menu-entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap}.adaptive-menu-entry:focus-visible{box-shadow:inset 0 0 0 2px #069;outline:none}.object-header-facets .object-header-facet{max-width:100%}@media(min-width:600px){.object-header-facets:not(.amongThemselves) .object-header-facet.qd-context-facet{max-width:max-content;flex:1 1 0}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonGhostDirective, selector: "button[qdButtonGhost], a[qdButtonGhost]" }, { kind: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }, { kind: "component", type: QdIconButtonComponent, selector: "button[qdIconButton], a[qdIconButton]", inputs: ["color", "data-test-id"] }, { kind: "component", type: QdMenuButtonComponent, selector: "button[qdMenuButton], a[qdMenuButton]", inputs: ["qdMenuButton", "data-test-id", "autoSize"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdSpinnerComponent, selector: "qd-spinner" }, { kind: "directive", type: QdPopoverOnClickDirective, selector: "[qdPopoverOnClick]", inputs: ["qdPopoverOnClick", "qdPopoverPlacement", "qdPopoverOffsetX", "qdPopoverOffsetY", "qdPopoverCloseStrategy", "qdPopoverDisabled", "qdPopoverStopPropagation", "qdPopoverBackgroundColor", "qdPopoverMaxHeight", "qdPopoverMinWidth", "qdPopoverMaxWidth", "qdPopoverAutoSize", "qdPopoverEnableKeyControl", "qdPopoverRestoreFocus", "qdPopoverFlipIntoViewport"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "component", type: QdDynamicFacetComponent, selector: "qd-dynamic-facet", inputs: ["facet", "data", "testId"] }, { kind: "component", type: QdContextSelectionChipComponent, selector: "qd-context-selection-chip", inputs: ["selection", "removable", "testId"], outputs: ["selectionCleared"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
33890
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdPageObjectHeaderComponent, isStandalone: false, selector: "qd-page-object-header", inputs: { config: "config", hasNavigation: "hasNavigation", testId: ["data-test-id", "testId"] }, host: { listeners: { "click": "toggleFacets()" }, properties: { "style.borderBottom": "borderBottomStyle", "class.in-dialog": "this.isInDialog" } }, usesOnChanges: true, ngImport: i0, template: "@if (isLoading$ | async) {\n<div class=\"loading-overlay\"><qd-spinner></qd-spinner></div>\n}\n\n<div class=\"object-header-top\">\n <header class=\"object-header-title\" [attr.data-test-id]=\"titleTestId\">{{ config.title.i18n | translate }}</header>\n <div class=\"object-header-toolbar\">\n <ng-content></ng-content>\n\n @if (showArchive$ | async) {\n <button class=\"button-icon\" data-test-id=\"archive-button\">\n <qd-icon (click)=\"archiveButton?.handler()\" class=\"header-action-icon\" [icon]=\"'resultNew'\"></qd-icon>\n </button>\n } @if (showDelete$ | async) {\n <button class=\"button-icon\" data-test-id=\"delete-button\">\n <qd-icon class=\"header-action-icon\" (click)=\"deleteButton?.handler()\" [icon]=\"'trash'\"></qd-icon>\n </button>\n } @if (showEdit$ | async) {\n <button qdButton (click)=\"edit()\" data-test-id=\"edit-button\">\n {{ editButton?.label?.i18n || \"i18n.qd.page.header.edit\" | translate }}\n </button>\n } @if (showCancel$ | async) {\n <button qdButton qdButtonGhost (click)=\"cancel()\" data-test-id=\"cancel-button\">\n {{ cancelButton.label?.i18n || \"i18n.qd.page.header.cancel\" | translate }}\n </button>\n } @if (showSave$ | async) {\n <button qdButton (click)=\"save()\" data-test-id=\"save-button\" [disabled]=\"($canSave | async) === false\">\n {{ saveButton.label?.i18n || \"i18n.qd.page.header.save\" | translate }}\n </button>\n } @if (customActions$ | async; as customActions) { @if (!adaptiveMode) { @if (customActions.actions.length > 1) {\n <button\n class=\"qd-desktop-actions\"\n [qdMenuButton]=\"customActions\"\n [autoSize]=\"false\"\n [data-test-id]=\"'page-'\"\n data-test-id=\"custom-button\"\n >\n {{ config?.customActionsLabel?.i18n || \"i18n.qd.page.header.actions\" | translate }}\n </button>\n } @else { @if ((customActions$ | async).actions[0]; as singleAction) { @if (singleAction.handler &&\n !singleAction.isHidden) {\n <button\n qdButton\n class=\"qd-desktop-actions\"\n [disabled]=\"singleAction.isDisabled\"\n (click)=\"singleAction.handler()\"\n data-test-id=\"custom-button\"\n >\n {{ singleAction.label?.i18n | translate }}\n </button>\n } } } @if (customActions.actions.length > 1 || visibleCustomActions(customActions).length > 0) { @let mobileLabel =\n (customActions.actions.length > 1 ? config?.customActionsLabel?.i18n || \"i18n.qd.page.header.actions\" :\n customActions.actions[0].label.i18n) | translate;\n <button\n type=\"button\"\n class=\"qd-mobile-actions\"\n data-test-id=\"custom-mobile-button\"\n [attr.aria-label]=\"mobileLabel\"\n [attr.title]=\"mobileLabel\"\n [disabled]=\"visibleCustomActions(customActions).length === 0\"\n [qdPopoverOnClick]=\"mobileMenu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverMinWidth]=\"200\"\n [qdPopoverMaxWidth]=\"300\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n >\n <qd-icon icon=\"ctrlDown\"></qd-icon>\n </button>\n <ng-template #mobileMenu>\n @for (action of visibleCustomActions(customActions); track action) {\n <button class=\"adaptive-menu-entry\" type=\"button\" [disabled]=\"action.isDisabled\" (click)=\"action.handler()\">\n {{ action.label.i18n | translate }}\n </button>\n }\n </ng-template>\n } } @else { @if ((customActions$ | async)?.actions.length >= 1) {\n <button\n type=\"button\"\n class=\"adaptive-menu-button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"160\"\n >\n <qd-icon icon=\"overflowMenuVertical\"></qd-icon>\n </button>\n }\n <ng-template #menu>\n @for (action of customActions.actions; track action; let i = $index) {\n <button class=\"adaptive-menu-entry\" type=\"button\" [disabled]=\"action.isDisabled\" (click)=\"action.handler()\">\n {{ action.label.i18n | translate }}\n </button>\n }\n </ng-template>\n } }\n </div>\n</div>\n\n<div class=\"object-header-facets\" [ngClass]=\"{ amongThemselves: adaptiveMode && !facetsCollapsed }\">\n @if (pageObjectData$ | async; as data) { @for (facet of headerFacets | slice : 0 : (adaptiveMode && facetsCollapsed ?\n 2 : headerFacets?.length ?? 0); track facet) {\n <div class=\"object-header-facet\" [attr.data-test-id]=\"testId + '-facet-' + facet.name\">\n <div class=\"facet-label\">{{ facet.label.i18n | translate }}</div>\n <qd-dynamic-facet\n class=\"dynamic-facet\"\n [facet]=\"facet\"\n [data]=\"data\"\n [testId]=\"testId + '-facet-' + facet.name\"\n ></qd-dynamic-facet>\n </div>\n } } @if (!config.hideContexts && contexts$ | async; as contexts) { @for ( context of contexts | slice : 0 :\n (adaptiveMode && facetsCollapsed ? 2 - (headerFacets?.length ?? 0) : contexts?.length); track context; let index =\n $index; let first = $first) {\n <div\n class=\"object-header-facet qd-context-facet\"\n [ngClass]=\"{ hasDivider: headerFacets && first, adaptiveFirst: headerFacets && adaptiveMode && first }\"\n [attr.data-test-id]=\"testId + '-context-facet-' + context.context.id\"\n >\n <div class=\"facet-label\">{{ context.label | translate }}</div>\n @if (context.value.length === 0) {\n <span class=\"no-selected-context\">{{ \"i18n.qd.page.context.noSelectionPlaceholder\" | translate }}</span>\n } @if (context.value.length !== 0) {\n <qd-context-selection-chip\n [selection]=\"context.value\"\n [removable]=\"isContextSelectable\"\n [testId]=\"testId + '-context-selection-' + context.context.id\"\n (selectionCleared)=\"clearContext(context.context)\"\n ></qd-context-selection-chip>\n } @if (isContextSelectable && (!facetsCollapsed || !adaptiveMode)) {\n <span class=\"select-button\">\n <button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"changeContext(context.context, context.selection, $event)\"\n [data-test-id]=\"'object-header-select-context-' + context.context.id\"\n >\n {{\n context.value.length !== 0\n ? (\"i18n.qd.page.context.button.change\" | translate)\n : (\"i18n.qd.page.context.button.select\" | translate)\n }}\n </button>\n </span>\n }\n </div>\n } } @if (contexts$ | async; as togglerContexts) { @if (adaptiveMode && headerFacets?.length + togglerContexts.length >\n 2) {\n <span class=\"facets-toggler\" [attr.data-test-id]=\"testId + '-facets-toggler'\">\n @if (facetsCollapsed) {\n <span [attr.data-test-id]=\"testId + '-facets-toggler-count'\"\n >+{{ headerFacets.length + togglerContexts.length - 2 }}</span\n >\n }\n <button qdIconButton [data-test-id]=\"'toggle-button'\">\n <qd-icon [icon]=\"facetsCollapsed ? 'ctrlDown' : 'ctrlTop'\"></qd-icon>\n </button>\n </span>\n } }\n</div>\n", styles: [":host{display:flex;flex-direction:column;justify-content:space-between;padding:1.25rem;border-bottom:.125rem solid rgb(213,213,213);background:#fff;container-type:inline-size;gap:1.25rem}@media(max-width:599.98px){:host{padding:1.25rem .9375rem}}:host .object-header-top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;column-gap:1.5rem;row-gap:.75rem}:host .object-header-top .object-header-title{min-width:0;flex:1 1 min(var(--qd-title-natural-width, 16rem),16rem);padding:.125rem 0;margin-left:.125rem;color:#171717;font-size:1.3125rem;font-weight:500;line-height:1.509375rem;overflow-wrap:break-word}:host .object-header-top:has(>.object-header-toolbar>*) .object-header-title{padding:calc((2.25rem - 1.509375rem) / 2) 0}:host .object-header-top .object-header-toolbar{display:flex;min-width:0;max-width:100%;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;margin-left:auto;gap:.5rem}:host .object-header-top .object-header-toolbar>*{max-width:100%;flex:none;white-space:nowrap}:host .object-header-top .object-header-toolbar .button-icon{background:none}:host .object-header-top .object-header-toolbar .button-icon+.button-icon{margin-left:-.5rem}:host .object-header-top .object-header-toolbar .header-action-icon{color:#14516f;cursor:pointer;font-size:1.5rem}:host .object-header-top .object-header-toolbar .qd-mobile-actions{display:flex;width:3.125rem;height:2.25rem;align-items:center;justify-content:center;padding:0;background:#069;color:#fff;cursor:pointer;font-size:1.125rem}:host .object-header-top .object-header-toolbar .qd-mobile-actions:hover{background:#14516f}:host .object-header-top .object-header-toolbar .qd-mobile-actions[disabled]{background:#d5d5d5;color:#979797;cursor:default}:host .object-header-top .object-header-toolbar .qd-mobile-actions qd-icon{line-height:1}:host.in-dialog .object-header-top{padding-right:2.5rem}:host .object-header-facets{position:relative;display:flex;flex-wrap:wrap;font-size:1.125rem;gap:1.25rem}:host .object-header-facets .object-header-facet{display:flex;min-width:3.75rem;flex-direction:column}:host .object-header-facets .object-header-facet.hasDivider{padding-left:1.25rem;border-left:.0625rem solid rgb(117,117,117)}:host .object-header-facets .object-header-facet.adaptiveFirst{padding-top:1.25rem}:host .object-header-facets .object-header-facet .facet-label{display:block;margin-bottom:0;color:#757575;font-size:.875rem;padding-bottom:.375rem;font-weight:500}:host .object-header-facets .facets-toggler{position:absolute;top:0;right:0;display:flex;align-items:center;padding-right:.3125rem;font-size:.625rem;line-height:.625rem}:host .object-header-facets.amongThemselves{display:grid}:host .object-header-facets.amongThemselves .object-header-facet.hasDivider{padding-left:0;border-top:.0625rem solid rgb(117,117,117);border-left:none}.loading-overlay{position:absolute;z-index:10000;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}.no-selected-context{height:1.625rem;color:#979797;font-size:.875rem;line-height:1.625rem}.select-button{margin-top:.25rem}.adaptive-menu-button{display:flex;background:unset;color:#454545;font-size:2rem}.adaptive-menu-button:hover,.adaptive-menu-button:focus{color:#000}.adaptive-menu-entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap}.adaptive-menu-entry:focus-visible{box-shadow:inset 0 0 0 2px #069;outline:none}.object-header-facets .object-header-facet{max-width:100%}@media(min-width:600px){.object-header-facets:not(.amongThemselves) .object-header-facet.qd-context-facet{max-width:max-content;flex:1 1 0}}@media(min-width:600px){@container (max-width: 559.98px){:host .object-header-top .object-header-toolbar .qd-desktop-actions{display:none}}@container (min-width: 560px){:host .object-header-top .object-header-toolbar .qd-mobile-actions{display:none}}}@media(max-width:599.98px){@container (max-width: 569.98px){:host .object-header-top .object-header-toolbar .qd-desktop-actions{display:none}}@container (min-width: 570px){:host .object-header-top .object-header-toolbar .qd-mobile-actions{display:none}}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: QdButtonComponent, selector: "button[qdButton], a[qdButton]", inputs: ["disabled", "color", "icon", "data-test-id", "additionalInfo"] }, { kind: "directive", type: QdButtonGhostDirective, selector: "button[qdButtonGhost], a[qdButtonGhost]" }, { kind: "directive", type: QdButtonLinkDirective, selector: "button[qdButtonLink], a[qdButtonLink]" }, { kind: "component", type: QdIconButtonComponent, selector: "button[qdIconButton], a[qdIconButton]", inputs: ["color", "data-test-id"] }, { kind: "component", type: QdMenuButtonComponent, selector: "button[qdMenuButton], a[qdMenuButton]", inputs: ["qdMenuButton", "data-test-id", "autoSize"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdSpinnerComponent, selector: "qd-spinner" }, { kind: "directive", type: QdPopoverOnClickDirective, selector: "[qdPopoverOnClick]", inputs: ["qdPopoverOnClick", "qdPopoverPlacement", "qdPopoverOffsetX", "qdPopoverOffsetY", "qdPopoverCloseStrategy", "qdPopoverDisabled", "qdPopoverStopPropagation", "qdPopoverBackgroundColor", "qdPopoverMaxHeight", "qdPopoverMinWidth", "qdPopoverMaxWidth", "qdPopoverAutoSize", "qdPopoverEnableKeyControl", "qdPopoverRestoreFocus", "qdPopoverFlipIntoViewport"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "component", type: QdDynamicFacetComponent, selector: "qd-dynamic-facet", inputs: ["facet", "data", "testId"] }, { kind: "component", type: QdContextSelectionChipComponent, selector: "qd-context-selection-chip", inputs: ["selection", "removable", "testId"], outputs: ["selectionCleared"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
33904
33891
|
}
|
|
33905
33892
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdPageObjectHeaderComponent, decorators: [{
|
|
33906
33893
|
type: Component,
|
|
33907
|
-
args: [{ selector: 'qd-page-object-header', changeDetection: ChangeDetectionStrategy.OnPush, host: { '[style.borderBottom]': 'borderBottomStyle' }, standalone: false, template: "@if (isLoading$ | async) {\n<div class=\"loading-overlay\"><qd-spinner></qd-spinner></div>\n}\n\n<div class=\"object-header-top\">\n <header class=\"object-header-title\" [attr.data-test-id]=\"titleTestId\">{{ config.title.i18n | translate }}</header>\n <div class=\"object-header-toolbar\">\n <ng-content></ng-content>\n\n <button class=\"button-icon\" data-test-id=\"archive-button\">\n @if (showArchive$ | async) {\n <qd-icon (click)=\"archiveButton?.handler()\" class=\"header-action-icon\" [icon]=\"'resultNew'\"></qd-icon>\n }\n </button>\n\n <button class=\"button-icon\" data-test-id=\"delete-button\">\n @if (showDelete$ | async) {\n <qd-icon class=\"header-action-icon\" (click)=\"deleteButton?.handler()\" [icon]=\"'trash'\"></qd-icon>\n }\n </button>\n\n @if (showEdit$ | async) {\n <button qdButton (click)=\"edit()\" data-test-id=\"edit-button\">\n {{ editButton?.label?.i18n || \"i18n.qd.page.header.edit\" | translate }}\n </button>\n } @if (showCancel$ | async) {\n <button qdButton qdButtonGhost (click)=\"cancel()\" data-test-id=\"cancel-button\">\n {{ cancelButton.label?.i18n || \"i18n.qd.page.header.cancel\" | translate }}\n </button>\n } @if (showSave$ | async) {\n <button qdButton (click)=\"save()\" data-test-id=\"save-button\" [disabled]=\"($canSave | async) === false\">\n {{ saveButton.label?.i18n || \"i18n.qd.page.header.save\" | translate }}\n </button>\n } @if (customActions$ | async; as customActions) { @if (!adaptiveMode) { @if (customActions.actions.length > 1) {\n <button [qdMenuButton]=\"customActions\" [autoSize]=\"false\" [data-test-id]=\"'page-'\" data-test-id=\"custom-button\">\n {{ config?.customActionsLabel?.i18n || \"i18n.qd.page.header.actions\" | translate }}\n </button>\n } @else { @if ((customActions$ | async).actions[0]; as singleAction) { @if (singleAction.handler &&\n !singleAction.isHidden) {\n <button qdButton [disabled]=\"singleAction.isDisabled\" (click)=\"singleAction.handler()\" data-test-id=\"custom-button\">\n {{ singleAction.label?.i18n | translate }}\n </button>\n } } } } @else { @if ((customActions$ | async)?.actions.length >= 1) {\n <button\n type=\"button\"\n class=\"adaptive-menu-button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"160\"\n >\n <qd-icon icon=\"overflowMenuVertical\"></qd-icon>\n </button>\n }\n <ng-template #menu>\n @for (action of customActions.actions; track action; let i = $index) {\n <button class=\"adaptive-menu-entry\" type=\"button\" [disabled]=\"action.isDisabled\" (click)=\"action.handler()\">\n {{ action.label.i18n | translate }}\n </button>\n }\n </ng-template>\n } }\n </div>\n</div>\n\n<div class=\"object-header-facets\" [ngClass]=\"{ amongThemselves: adaptiveMode && !facetsCollapsed }\">\n @if (pageObjectData$ | async; as data) { @for (facet of headerFacets | slice : 0 : (adaptiveMode && facetsCollapsed ?\n 2 : headerFacets?.length ?? 0); track facet) {\n <div class=\"object-header-facet\" [attr.data-test-id]=\"testId + '-facet-' + facet.name\">\n <div class=\"facet-label\">{{ facet.label.i18n | translate }}</div>\n <qd-dynamic-facet\n class=\"dynamic-facet\"\n [facet]=\"facet\"\n [data]=\"data\"\n [testId]=\"testId + '-facet-' + facet.name\"\n ></qd-dynamic-facet>\n </div>\n } } @if (!config.hideContexts && contexts$ | async; as contexts) { @for ( context of contexts | slice : 0 :\n (adaptiveMode && facetsCollapsed ? 2 - (headerFacets?.length ?? 0) : contexts?.length); track context; let index =\n $index; let first = $first) {\n <div\n class=\"object-header-facet qd-context-facet\"\n [ngClass]=\"{ hasDivider: headerFacets && first, adaptiveFirst: headerFacets && adaptiveMode && first }\"\n [attr.data-test-id]=\"testId + '-context-facet-' + context.context.id\"\n >\n <div class=\"facet-label\">{{ context.label | translate }}</div>\n @if (context.value.length === 0) {\n <span class=\"no-selected-context\">{{ \"i18n.qd.page.context.noSelectionPlaceholder\" | translate }}</span>\n } @if (context.value.length !== 0) {\n <qd-context-selection-chip\n [selection]=\"context.value\"\n [removable]=\"isContextSelectable\"\n [testId]=\"testId + '-context-selection-' + context.context.id\"\n (selectionCleared)=\"clearContext(context.context)\"\n ></qd-context-selection-chip>\n } @if (isContextSelectable && (!facetsCollapsed || !adaptiveMode)) {\n <span class=\"select-button\">\n <button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"changeContext(context.context, context.selection, $event)\"\n [data-test-id]=\"'object-header-select-context-' + context.context.id\"\n >\n {{\n context.value.length !== 0\n ? (\"i18n.qd.page.context.button.change\" | translate)\n : (\"i18n.qd.page.context.button.select\" | translate)\n }}\n </button>\n </span>\n }\n </div>\n } } @if (contexts$ | async; as togglerContexts) { @if (adaptiveMode && headerFacets?.length + togglerContexts.length >\n 2) {\n <span class=\"facets-toggler\" [attr.data-test-id]=\"testId + '-facets-toggler'\">\n @if (facetsCollapsed) {\n <span [attr.data-test-id]=\"testId + '-facets-toggler-count'\"\n >+{{ headerFacets.length + togglerContexts.length - 2 }}</span\n >\n }\n <button qdIconButton [data-test-id]=\"'toggle-button'\">\n <qd-icon [icon]=\"facetsCollapsed ? 'ctrlDown' : 'ctrlTop'\"></qd-icon>\n </button>\n </span>\n } }\n</div>\n", styles: [":host{display:flex;flex-direction:column;justify-content:space-between;padding:1.25rem;border-bottom:.125rem solid rgb(213,213,213);background:#fff;gap:1.25rem}@media(max-width:599.98px){:host{padding:1.25rem .9375rem}}:host .object-header-top{display:flex;align-items:flex-start;justify-content:space-between}:host .object-header-top .object-header-title{padding:2px;color:#171717;font-size:1.3125rem;font-weight:500}:host .object-header-top .object-header-toolbar{display:flex;align-items:center;column-gap:.5rem}:host .object-header-top .object-header-toolbar .button-icon{background:none}:host .object-header-top .object-header-toolbar .button-icon+.button-icon{margin-left:-.5rem}:host .object-header-top .object-header-toolbar .header-action-icon{color:#14516f;cursor:pointer;font-size:1.5rem}:host.in-dialog .object-header-toolbar{padding-right:2.5rem}:host .object-header-facets{position:relative;display:flex;flex-wrap:wrap;font-size:1.125rem;gap:1.25rem}:host .object-header-facets .object-header-facet{display:flex;min-width:3.75rem;flex-direction:column}:host .object-header-facets .object-header-facet.hasDivider{padding-left:1.25rem;border-left:.0625rem solid rgb(117,117,117)}:host .object-header-facets .object-header-facet.adaptiveFirst{padding-top:1.25rem}:host .object-header-facets .object-header-facet .facet-label{display:block;margin-bottom:0;color:#757575;font-size:.875rem;padding-bottom:.375rem;font-weight:500}:host .object-header-facets .facets-toggler{position:absolute;top:0;right:0;display:flex;align-items:center;padding-right:.3125rem;font-size:.625rem;line-height:.625rem}:host .object-header-facets.amongThemselves{display:grid}:host .object-header-facets.amongThemselves .object-header-facet.hasDivider{padding-left:0;border-top:.0625rem solid rgb(117,117,117);border-left:none}.loading-overlay{position:absolute;z-index:10000;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}.no-selected-context{height:1.625rem;color:#979797;font-size:.875rem;line-height:1.625rem}.select-button{margin-top:.25rem}.adaptive-menu-button{display:flex;background:unset;color:#454545;font-size:2rem}.adaptive-menu-button:hover,.adaptive-menu-button:focus{color:#000}.adaptive-menu-entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap}.adaptive-menu-entry:focus-visible{box-shadow:inset 0 0 0 2px #069;outline:none}.object-header-facets .object-header-facet{max-width:100%}@media(min-width:600px){.object-header-facets:not(.amongThemselves) .object-header-facet.qd-context-facet{max-width:max-content;flex:1 1 0}}\n"] }]
|
|
33908
|
-
}], propDecorators: { config: [{
|
|
33894
|
+
args: [{ selector: 'qd-page-object-header', changeDetection: ChangeDetectionStrategy.OnPush, host: { '[style.borderBottom]': 'borderBottomStyle' }, standalone: false, template: "@if (isLoading$ | async) {\n<div class=\"loading-overlay\"><qd-spinner></qd-spinner></div>\n}\n\n<div class=\"object-header-top\">\n <header class=\"object-header-title\" [attr.data-test-id]=\"titleTestId\">{{ config.title.i18n | translate }}</header>\n <div class=\"object-header-toolbar\">\n <ng-content></ng-content>\n\n @if (showArchive$ | async) {\n <button class=\"button-icon\" data-test-id=\"archive-button\">\n <qd-icon (click)=\"archiveButton?.handler()\" class=\"header-action-icon\" [icon]=\"'resultNew'\"></qd-icon>\n </button>\n } @if (showDelete$ | async) {\n <button class=\"button-icon\" data-test-id=\"delete-button\">\n <qd-icon class=\"header-action-icon\" (click)=\"deleteButton?.handler()\" [icon]=\"'trash'\"></qd-icon>\n </button>\n } @if (showEdit$ | async) {\n <button qdButton (click)=\"edit()\" data-test-id=\"edit-button\">\n {{ editButton?.label?.i18n || \"i18n.qd.page.header.edit\" | translate }}\n </button>\n } @if (showCancel$ | async) {\n <button qdButton qdButtonGhost (click)=\"cancel()\" data-test-id=\"cancel-button\">\n {{ cancelButton.label?.i18n || \"i18n.qd.page.header.cancel\" | translate }}\n </button>\n } @if (showSave$ | async) {\n <button qdButton (click)=\"save()\" data-test-id=\"save-button\" [disabled]=\"($canSave | async) === false\">\n {{ saveButton.label?.i18n || \"i18n.qd.page.header.save\" | translate }}\n </button>\n } @if (customActions$ | async; as customActions) { @if (!adaptiveMode) { @if (customActions.actions.length > 1) {\n <button\n class=\"qd-desktop-actions\"\n [qdMenuButton]=\"customActions\"\n [autoSize]=\"false\"\n [data-test-id]=\"'page-'\"\n data-test-id=\"custom-button\"\n >\n {{ config?.customActionsLabel?.i18n || \"i18n.qd.page.header.actions\" | translate }}\n </button>\n } @else { @if ((customActions$ | async).actions[0]; as singleAction) { @if (singleAction.handler &&\n !singleAction.isHidden) {\n <button\n qdButton\n class=\"qd-desktop-actions\"\n [disabled]=\"singleAction.isDisabled\"\n (click)=\"singleAction.handler()\"\n data-test-id=\"custom-button\"\n >\n {{ singleAction.label?.i18n | translate }}\n </button>\n } } } @if (customActions.actions.length > 1 || visibleCustomActions(customActions).length > 0) { @let mobileLabel =\n (customActions.actions.length > 1 ? config?.customActionsLabel?.i18n || \"i18n.qd.page.header.actions\" :\n customActions.actions[0].label.i18n) | translate;\n <button\n type=\"button\"\n class=\"qd-mobile-actions\"\n data-test-id=\"custom-mobile-button\"\n [attr.aria-label]=\"mobileLabel\"\n [attr.title]=\"mobileLabel\"\n [disabled]=\"visibleCustomActions(customActions).length === 0\"\n [qdPopoverOnClick]=\"mobileMenu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverMinWidth]=\"200\"\n [qdPopoverMaxWidth]=\"300\"\n [qdPopoverFlipIntoViewport]=\"true\"\n [qdPopoverEnableKeyControl]=\"true\"\n [qdPopoverRestoreFocus]=\"true\"\n >\n <qd-icon icon=\"ctrlDown\"></qd-icon>\n </button>\n <ng-template #mobileMenu>\n @for (action of visibleCustomActions(customActions); track action) {\n <button class=\"adaptive-menu-entry\" type=\"button\" [disabled]=\"action.isDisabled\" (click)=\"action.handler()\">\n {{ action.label.i18n | translate }}\n </button>\n }\n </ng-template>\n } } @else { @if ((customActions$ | async)?.actions.length >= 1) {\n <button\n type=\"button\"\n class=\"adaptive-menu-button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"160\"\n >\n <qd-icon icon=\"overflowMenuVertical\"></qd-icon>\n </button>\n }\n <ng-template #menu>\n @for (action of customActions.actions; track action; let i = $index) {\n <button class=\"adaptive-menu-entry\" type=\"button\" [disabled]=\"action.isDisabled\" (click)=\"action.handler()\">\n {{ action.label.i18n | translate }}\n </button>\n }\n </ng-template>\n } }\n </div>\n</div>\n\n<div class=\"object-header-facets\" [ngClass]=\"{ amongThemselves: adaptiveMode && !facetsCollapsed }\">\n @if (pageObjectData$ | async; as data) { @for (facet of headerFacets | slice : 0 : (adaptiveMode && facetsCollapsed ?\n 2 : headerFacets?.length ?? 0); track facet) {\n <div class=\"object-header-facet\" [attr.data-test-id]=\"testId + '-facet-' + facet.name\">\n <div class=\"facet-label\">{{ facet.label.i18n | translate }}</div>\n <qd-dynamic-facet\n class=\"dynamic-facet\"\n [facet]=\"facet\"\n [data]=\"data\"\n [testId]=\"testId + '-facet-' + facet.name\"\n ></qd-dynamic-facet>\n </div>\n } } @if (!config.hideContexts && contexts$ | async; as contexts) { @for ( context of contexts | slice : 0 :\n (adaptiveMode && facetsCollapsed ? 2 - (headerFacets?.length ?? 0) : contexts?.length); track context; let index =\n $index; let first = $first) {\n <div\n class=\"object-header-facet qd-context-facet\"\n [ngClass]=\"{ hasDivider: headerFacets && first, adaptiveFirst: headerFacets && adaptiveMode && first }\"\n [attr.data-test-id]=\"testId + '-context-facet-' + context.context.id\"\n >\n <div class=\"facet-label\">{{ context.label | translate }}</div>\n @if (context.value.length === 0) {\n <span class=\"no-selected-context\">{{ \"i18n.qd.page.context.noSelectionPlaceholder\" | translate }}</span>\n } @if (context.value.length !== 0) {\n <qd-context-selection-chip\n [selection]=\"context.value\"\n [removable]=\"isContextSelectable\"\n [testId]=\"testId + '-context-selection-' + context.context.id\"\n (selectionCleared)=\"clearContext(context.context)\"\n ></qd-context-selection-chip>\n } @if (isContextSelectable && (!facetsCollapsed || !adaptiveMode)) {\n <span class=\"select-button\">\n <button\n qdButton\n qdButtonLink\n type=\"button\"\n (click)=\"changeContext(context.context, context.selection, $event)\"\n [data-test-id]=\"'object-header-select-context-' + context.context.id\"\n >\n {{\n context.value.length !== 0\n ? (\"i18n.qd.page.context.button.change\" | translate)\n : (\"i18n.qd.page.context.button.select\" | translate)\n }}\n </button>\n </span>\n }\n </div>\n } } @if (contexts$ | async; as togglerContexts) { @if (adaptiveMode && headerFacets?.length + togglerContexts.length >\n 2) {\n <span class=\"facets-toggler\" [attr.data-test-id]=\"testId + '-facets-toggler'\">\n @if (facetsCollapsed) {\n <span [attr.data-test-id]=\"testId + '-facets-toggler-count'\"\n >+{{ headerFacets.length + togglerContexts.length - 2 }}</span\n >\n }\n <button qdIconButton [data-test-id]=\"'toggle-button'\">\n <qd-icon [icon]=\"facetsCollapsed ? 'ctrlDown' : 'ctrlTop'\"></qd-icon>\n </button>\n </span>\n } }\n</div>\n", styles: [":host{display:flex;flex-direction:column;justify-content:space-between;padding:1.25rem;border-bottom:.125rem solid rgb(213,213,213);background:#fff;container-type:inline-size;gap:1.25rem}@media(max-width:599.98px){:host{padding:1.25rem .9375rem}}:host .object-header-top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;column-gap:1.5rem;row-gap:.75rem}:host .object-header-top .object-header-title{min-width:0;flex:1 1 min(var(--qd-title-natural-width, 16rem),16rem);padding:.125rem 0;margin-left:.125rem;color:#171717;font-size:1.3125rem;font-weight:500;line-height:1.509375rem;overflow-wrap:break-word}:host .object-header-top:has(>.object-header-toolbar>*) .object-header-title{padding:calc((2.25rem - 1.509375rem) / 2) 0}:host .object-header-top .object-header-toolbar{display:flex;min-width:0;max-width:100%;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;margin-left:auto;gap:.5rem}:host .object-header-top .object-header-toolbar>*{max-width:100%;flex:none;white-space:nowrap}:host .object-header-top .object-header-toolbar .button-icon{background:none}:host .object-header-top .object-header-toolbar .button-icon+.button-icon{margin-left:-.5rem}:host .object-header-top .object-header-toolbar .header-action-icon{color:#14516f;cursor:pointer;font-size:1.5rem}:host .object-header-top .object-header-toolbar .qd-mobile-actions{display:flex;width:3.125rem;height:2.25rem;align-items:center;justify-content:center;padding:0;background:#069;color:#fff;cursor:pointer;font-size:1.125rem}:host .object-header-top .object-header-toolbar .qd-mobile-actions:hover{background:#14516f}:host .object-header-top .object-header-toolbar .qd-mobile-actions[disabled]{background:#d5d5d5;color:#979797;cursor:default}:host .object-header-top .object-header-toolbar .qd-mobile-actions qd-icon{line-height:1}:host.in-dialog .object-header-top{padding-right:2.5rem}:host .object-header-facets{position:relative;display:flex;flex-wrap:wrap;font-size:1.125rem;gap:1.25rem}:host .object-header-facets .object-header-facet{display:flex;min-width:3.75rem;flex-direction:column}:host .object-header-facets .object-header-facet.hasDivider{padding-left:1.25rem;border-left:.0625rem solid rgb(117,117,117)}:host .object-header-facets .object-header-facet.adaptiveFirst{padding-top:1.25rem}:host .object-header-facets .object-header-facet .facet-label{display:block;margin-bottom:0;color:#757575;font-size:.875rem;padding-bottom:.375rem;font-weight:500}:host .object-header-facets .facets-toggler{position:absolute;top:0;right:0;display:flex;align-items:center;padding-right:.3125rem;font-size:.625rem;line-height:.625rem}:host .object-header-facets.amongThemselves{display:grid}:host .object-header-facets.amongThemselves .object-header-facet.hasDivider{padding-left:0;border-top:.0625rem solid rgb(117,117,117);border-left:none}.loading-overlay{position:absolute;z-index:10000;inset:0;display:flex;align-items:center;justify-content:center;background-color:#0003}.no-selected-context{height:1.625rem;color:#979797;font-size:.875rem;line-height:1.625rem}.select-button{margin-top:.25rem}.adaptive-menu-button{display:flex;background:unset;color:#454545;font-size:2rem}.adaptive-menu-button:hover,.adaptive-menu-button:focus{color:#000}.adaptive-menu-entry{display:block;overflow:hidden;width:100%;min-height:2.25rem;padding:0 1rem;background:#fff0;text-align:left;text-overflow:ellipsis;white-space:nowrap}.adaptive-menu-entry:focus-visible{box-shadow:inset 0 0 0 2px #069;outline:none}.object-header-facets .object-header-facet{max-width:100%}@media(min-width:600px){.object-header-facets:not(.amongThemselves) .object-header-facet.qd-context-facet{max-width:max-content;flex:1 1 0}}@media(min-width:600px){@container (max-width: 559.98px){:host .object-header-top .object-header-toolbar .qd-desktop-actions{display:none}}@container (min-width: 560px){:host .object-header-top .object-header-toolbar .qd-mobile-actions{display:none}}}@media(max-width:599.98px){@container (max-width: 569.98px){:host .object-header-top .object-header-toolbar .qd-desktop-actions{display:none}}@container (min-width: 570px){:host .object-header-top .object-header-toolbar .qd-mobile-actions{display:none}}}\n"] }]
|
|
33895
|
+
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
33909
33896
|
type: Input,
|
|
33910
33897
|
args: [{ required: true }]
|
|
33911
33898
|
}], hasNavigation: [{
|
|
@@ -34024,7 +34011,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
34024
34011
|
}]
|
|
34025
34012
|
}] });
|
|
34026
34013
|
|
|
34027
|
-
// @ts-strict-ignore
|
|
34028
34014
|
/**
|
|
34029
34015
|
* **QdPageStepHeader** renders the header of a single step. It is used quadrel-internally.
|
|
34030
34016
|
*/
|
|
@@ -34096,7 +34082,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
34096
34082
|
|
|
34097
34083
|
const QD_PAGE_STEP_RESOLVER_TOKEN = new InjectionToken('QD_PAGE_STEP_RESOLVER_TOKEN');
|
|
34098
34084
|
|
|
34099
|
-
// @ts-strict-ignore
|
|
34100
34085
|
/**
|
|
34101
34086
|
* The **QdPageStepper** allows linear navigation through process steps within a **QdPage**.
|
|
34102
34087
|
*
|
|
@@ -34148,10 +34133,11 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
34148
34133
|
if (this.footerService && (this.config?.submit || this.config?.cancel)) {
|
|
34149
34134
|
throw new Error('Quadrel Framework | QdPageStepper - When using <qd-page-stepper> inside <qd-page>, don\'t use the "submit" and "cancel" attributes. Instead, use the QdPageConfig.');
|
|
34150
34135
|
}
|
|
34151
|
-
|
|
34136
|
+
const footerService = this.footerService;
|
|
34137
|
+
if (footerService) {
|
|
34152
34138
|
this.selectedIndexChange
|
|
34153
34139
|
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
34154
|
-
.subscribe(() => this.updateFooterActionsVisibility());
|
|
34140
|
+
.subscribe(() => this.updateFooterActionsVisibility(footerService));
|
|
34155
34141
|
}
|
|
34156
34142
|
this.selectedStepValid$ = this.isSelectedStepValid$();
|
|
34157
34143
|
this.allStepsValid$ = this.areAllStepsValid$();
|
|
@@ -34164,9 +34150,9 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
34164
34150
|
ngAfterContentInit() {
|
|
34165
34151
|
super.ngAfterContentInit();
|
|
34166
34152
|
if (this.footerService) {
|
|
34167
|
-
this.setFooterActions();
|
|
34168
|
-
this.updateFooterActionsDisabledState();
|
|
34169
|
-
this.updateFooterActionsVisibility();
|
|
34153
|
+
this.setFooterActions(this.footerService);
|
|
34154
|
+
this.updateFooterActionsDisabledState(this.footerService);
|
|
34155
|
+
this.updateFooterActionsVisibility(this.footerService);
|
|
34170
34156
|
}
|
|
34171
34157
|
// Mark component for change detection whenever the content children query changes
|
|
34172
34158
|
this.steps.changes.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(() => this._stateChanged());
|
|
@@ -34174,9 +34160,9 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
34174
34160
|
handleClickHeader(step, clickedIndex) {
|
|
34175
34161
|
if (this.selectedIndex === clickedIndex)
|
|
34176
34162
|
return;
|
|
34177
|
-
if (this.selected
|
|
34163
|
+
if (this.selected?.stepControl && !this.selected.optional)
|
|
34178
34164
|
this.selected.stepControl.markAllAsTouched();
|
|
34179
|
-
if (this.selectedIndex < clickedIndex && !this.selected
|
|
34165
|
+
if (this.selectedIndex < clickedIndex && !this.selected?.optional && this.selected?.stepControl?.invalid)
|
|
34180
34166
|
return;
|
|
34181
34167
|
if (this.selectedIndex < clickedIndex) {
|
|
34182
34168
|
this.config?.next?.handler?.({ fromIndex: this.selectedIndex, toIndex: clickedIndex });
|
|
@@ -34191,9 +34177,9 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
34191
34177
|
this.previous();
|
|
34192
34178
|
}
|
|
34193
34179
|
nextStep() {
|
|
34194
|
-
if (this.selected
|
|
34180
|
+
if (this.selected?.stepControl && !this.selected.optional)
|
|
34195
34181
|
this.selected.stepControl.markAllAsTouched();
|
|
34196
|
-
if (!this.selected
|
|
34182
|
+
if (!this.selected?.optional && this.selected?.stepControl?.invalid)
|
|
34197
34183
|
return;
|
|
34198
34184
|
if (this.isGoingToNextStep)
|
|
34199
34185
|
return;
|
|
@@ -34296,7 +34282,7 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
34296
34282
|
return step.stepControl.statusChanges.pipe(startWith(step.stepControl.status), map(status => step.optional || status === 'VALID'));
|
|
34297
34283
|
}))), map(validities => validities.every(isValid => isValid)));
|
|
34298
34284
|
}
|
|
34299
|
-
setFooterActions() {
|
|
34285
|
+
setFooterActions(footerService) {
|
|
34300
34286
|
const actionsArray = [
|
|
34301
34287
|
{
|
|
34302
34288
|
key: 'previous',
|
|
@@ -34339,22 +34325,22 @@ class QdPageStepperComponent extends CdkStepper {
|
|
|
34339
34325
|
}
|
|
34340
34326
|
}
|
|
34341
34327
|
];
|
|
34342
|
-
|
|
34328
|
+
footerService.setActions(actionsArray);
|
|
34343
34329
|
}
|
|
34344
|
-
updateFooterActionsVisibility() {
|
|
34345
|
-
|
|
34330
|
+
updateFooterActionsVisibility(footerService) {
|
|
34331
|
+
footerService.updateActions([
|
|
34346
34332
|
{ actionKey: 'previous', partialAction: { isVisible: this.showPreviousButton(this.selectedIndex) } },
|
|
34347
34333
|
{ actionKey: 'next', partialAction: { isVisible: this.showNextButton(this.selectedIndex) } },
|
|
34348
34334
|
{ actionKey: 'submit', partialAction: { isVisible: this.showSubmitButton(this.selectedIndex) } }
|
|
34349
34335
|
]);
|
|
34350
34336
|
}
|
|
34351
|
-
updateFooterActionsDisabledState() {
|
|
34337
|
+
updateFooterActionsDisabledState(footerService) {
|
|
34352
34338
|
this.isSelectedStepValid$()
|
|
34353
34339
|
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
34354
|
-
.subscribe(isValid =>
|
|
34340
|
+
.subscribe(isValid => footerService.updateActions([{ actionKey: 'next', partialAction: { isDisabled: !isValid } }]));
|
|
34355
34341
|
this.areAllStepsValid$()
|
|
34356
34342
|
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
34357
|
-
.subscribe(isValid =>
|
|
34343
|
+
.subscribe(isValid => footerService.updateActions([{ actionKey: 'submit', partialAction: { isDisabled: !isValid } }]));
|
|
34358
34344
|
}
|
|
34359
34345
|
blockCdkInput(inputName) {
|
|
34360
34346
|
throw new Error(`Quadrel Framework | QdPageStepper - The "${inputName}" attribute is not allowed. Please use QdPageStepperConfig instead.`);
|
|
@@ -36418,13 +36404,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
36418
36404
|
}]
|
|
36419
36405
|
}] });
|
|
36420
36406
|
|
|
36421
|
-
// @ts-strict-ignore
|
|
36422
36407
|
class QdShellFooterComponent {
|
|
36423
36408
|
copyrightInfo;
|
|
36424
36409
|
isSticky;
|
|
36425
36410
|
currentYear = new Date().getFullYear();
|
|
36426
36411
|
get shouldShowYear() {
|
|
36427
|
-
return this.copyrightInfo && this.copyrightInfo.showYear !== false;
|
|
36412
|
+
return !!this.copyrightInfo && this.copyrightInfo.showYear !== false;
|
|
36428
36413
|
}
|
|
36429
36414
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdShellFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36430
36415
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: QdShellFooterComponent, isStandalone: false, selector: "[qd-shell-footer]", inputs: { copyrightInfo: "copyrightInfo", isSticky: "isSticky" }, host: { properties: { "class.sticky": "isSticky" } }, ngImport: i0, template: "@if (copyrightInfo?.i18n) { ©@if (shouldShowYear) {\n<span> {{ currentYear }}</span>\n} {{ copyrightInfo?.i18n | translate }}\n} @if (!copyrightInfo?.i18n) { © Created with ☕ by Quadrel }\n", styles: [":host{color:#757575;font-size:.875rem;font-weight:400;line-height:1.3125rem;z-index:999;display:block;height:2.5rem;align-self:end;padding:.625rem 1.25rem;border-top:.0625rem solid rgb(213,213,213);border-bottom:.0625rem solid rgb(213,213,213);background-color:#fff;grid-area:footer}:host.sticky{position:sticky;bottom:0}\n"], dependencies: [{ kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
@@ -36470,7 +36455,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
36470
36455
|
type: Injectable
|
|
36471
36456
|
}] });
|
|
36472
36457
|
|
|
36473
|
-
// @ts-strict-ignore
|
|
36474
36458
|
class QdShellHeaderBannerComponent {
|
|
36475
36459
|
bannerService = inject(QdShellBannerService);
|
|
36476
36460
|
get colorClassName() {
|
|
@@ -36495,7 +36479,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
36495
36479
|
args: ['class']
|
|
36496
36480
|
}] } });
|
|
36497
36481
|
|
|
36498
|
-
// @ts-strict-ignore
|
|
36499
36482
|
class QdCounterBadgeComponent {
|
|
36500
36483
|
/**
|
|
36501
36484
|
* A number that is displayed as a badge. Used by the shell toolbar.
|
|
@@ -36533,7 +36516,6 @@ const loadJavascriptAsset = (path, scriptElementAttributes = {}) => {
|
|
|
36533
36516
|
document.body.append(scriptElement);
|
|
36534
36517
|
};
|
|
36535
36518
|
|
|
36536
|
-
// @ts-strict-ignore
|
|
36537
36519
|
const LANG_PARAM_NAME = 'lang';
|
|
36538
36520
|
const FEATURE_LABEL = { name: 'Shell', plural: 'shells', isViewState: false };
|
|
36539
36521
|
class QdLanguageFromUrlService {
|
|
@@ -36564,15 +36546,17 @@ class QdLanguageFromUrlService {
|
|
|
36564
36546
|
});
|
|
36565
36547
|
}
|
|
36566
36548
|
getLanguageFromUrl() {
|
|
36567
|
-
|
|
36549
|
+
const activatedRoute = this.activatedRoute;
|
|
36550
|
+
if (!this.router || !activatedRoute)
|
|
36568
36551
|
return EMPTY;
|
|
36569
|
-
return this._navigationEnded$.pipe(switchMap$1(() =>
|
|
36552
|
+
return this._navigationEnded$.pipe(switchMap$1(() => activatedRoute.queryParams), filter(queryParams => queryParams.hasOwnProperty('lang')), map(queryParams => queryParams['lang']));
|
|
36570
36553
|
}
|
|
36571
36554
|
removeLangParameterFromUrlAfterNavigation() {
|
|
36572
|
-
|
|
36555
|
+
const activatedRoute = this.activatedRoute;
|
|
36556
|
+
if (!this.router || !activatedRoute)
|
|
36573
36557
|
return;
|
|
36574
36558
|
this._navigationPending$
|
|
36575
|
-
.pipe(debounceTime(300), filter(navigationPending => !navigationPending), switchMap$1(() =>
|
|
36559
|
+
.pipe(debounceTime(300), filter(navigationPending => !navigationPending), switchMap$1(() => activatedRoute.queryParams), take(1))
|
|
36576
36560
|
.subscribe(queryParams => {
|
|
36577
36561
|
if (!queryParams[LANG_PARAM_NAME] || !this._ownsLangParam)
|
|
36578
36562
|
return;
|
|
@@ -36886,7 +36870,8 @@ class QdShellServiceNavigationComponent {
|
|
|
36886
36870
|
.getLanguageFromUrl()
|
|
36887
36871
|
.pipe(delayWhen(() => this._attributesHaveBeenSet$), filter(languageFromUrl => this.languageList.includes(languageFromUrl)), takeUntilDestroyed(this._destroyRef))
|
|
36888
36872
|
.subscribe(languageFromUrl => {
|
|
36889
|
-
this.serviceNavigationService.config
|
|
36873
|
+
if (this.serviceNavigationService.config)
|
|
36874
|
+
this.serviceNavigationService.config.defaultLanguage = languageFromUrl;
|
|
36890
36875
|
this.translateService.setDefaultLang(languageFromUrl);
|
|
36891
36876
|
this.serviceNavigation.nativeElement.setAttribute('default-language', languageFromUrl);
|
|
36892
36877
|
this.serviceNavigation.nativeElement.setAttribute('language', languageFromUrl);
|
|
@@ -36988,7 +36973,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
36988
36973
|
}]
|
|
36989
36974
|
}] });
|
|
36990
36975
|
|
|
36991
|
-
// @ts-strict-ignore
|
|
36992
36976
|
class QdNavigationService {
|
|
36993
36977
|
router = inject(Router);
|
|
36994
36978
|
activatedRoute = inject(ActivatedRoute);
|
|
@@ -37040,7 +37024,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
37040
37024
|
type: Injectable
|
|
37041
37025
|
}], ctorParameters: () => [] });
|
|
37042
37026
|
|
|
37043
|
-
// @ts-strict-ignore
|
|
37044
37027
|
class QdShellLeftService {
|
|
37045
37028
|
_hasNavigation = new BehaviorSubject(false);
|
|
37046
37029
|
_isNavigationPinned = new BehaviorSubject(false);
|
|
@@ -37049,7 +37032,7 @@ class QdShellLeftService {
|
|
|
37049
37032
|
isNavigationPinned$ = this._isNavigationPinned.asObservable();
|
|
37050
37033
|
isNavigationRolledOver$ = this._isNavigationRolledOver.asObservable();
|
|
37051
37034
|
set config(config) {
|
|
37052
|
-
this._hasNavigation.next(config.navigation?.length > 0);
|
|
37035
|
+
this._hasNavigation.next((config.navigation?.length ?? 0) > 0);
|
|
37053
37036
|
}
|
|
37054
37037
|
set isNavigationRolledOver(value) {
|
|
37055
37038
|
this._isNavigationRolledOver.next(value);
|
|
@@ -37104,7 +37087,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
37104
37087
|
type: Injectable
|
|
37105
37088
|
}], ctorParameters: () => [] });
|
|
37106
37089
|
|
|
37107
|
-
// @ts-strict-ignore
|
|
37108
37090
|
class QdShellHeaderMinimizationService {
|
|
37109
37091
|
navigationService = inject(QdNavigationService);
|
|
37110
37092
|
breakpointService = inject(QdBreakpointService);
|
|
@@ -37150,7 +37132,6 @@ function qdRestoresOverviewAddress(previousHref) {
|
|
|
37150
37132
|
return typeof previousHref === 'function' && previousHref[MARKER] === true;
|
|
37151
37133
|
}
|
|
37152
37134
|
|
|
37153
|
-
// @ts-strict-ignore
|
|
37154
37135
|
class QdShellToolbarItemComponent {
|
|
37155
37136
|
/**
|
|
37156
37137
|
* Configuration of a single item for the shell toolbar.
|
|
@@ -37170,7 +37151,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
37170
37151
|
type: Input
|
|
37171
37152
|
}] } });
|
|
37172
37153
|
|
|
37173
|
-
// @ts-strict-ignore
|
|
37174
37154
|
class QdShellToolbarComponent {
|
|
37175
37155
|
/**
|
|
37176
37156
|
* The configuration of the shell toolbar.
|
|
@@ -37352,7 +37332,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
37352
37332
|
args: ['class.expanded']
|
|
37353
37333
|
}] } });
|
|
37354
37334
|
|
|
37355
|
-
// @ts-strict-ignore
|
|
37356
37335
|
class QdShellNavigationLinkComponent {
|
|
37357
37336
|
config;
|
|
37358
37337
|
handleClick() {
|
|
@@ -37375,7 +37354,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
37375
37354
|
type: Input
|
|
37376
37355
|
}] } });
|
|
37377
37356
|
|
|
37378
|
-
// @ts-strict-ignore
|
|
37379
37357
|
class QdShellNavigationComponent {
|
|
37380
37358
|
config;
|
|
37381
37359
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: QdShellNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -37410,7 +37388,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
37410
37388
|
type: Input
|
|
37411
37389
|
}] } });
|
|
37412
37390
|
|
|
37413
|
-
// @ts-strict-ignore
|
|
37414
37391
|
/**
|
|
37415
37392
|
* **QdShellNotificationComponent** displays a single notification item within a **qd-shell-notifications** container.
|
|
37416
37393
|
*/
|
|
@@ -37494,7 +37471,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
37494
37471
|
args: ['class']
|
|
37495
37472
|
}] } });
|
|
37496
37473
|
|
|
37497
|
-
// @ts-strict-ignore
|
|
37498
37474
|
class QdShellNotificationsComponent {
|
|
37499
37475
|
notificationService = inject(QdNotificationsService);
|
|
37500
37476
|
notifications$;
|
|
@@ -38432,7 +38408,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
38432
38408
|
}]
|
|
38433
38409
|
}] });
|
|
38434
38410
|
|
|
38435
|
-
// @ts-strict-ignore
|
|
38436
38411
|
/**
|
|
38437
38412
|
* The **QdPageStep** is a single step inside the **QdPageStepper** within a **QdPage**.
|
|
38438
38413
|
*
|
|
@@ -38475,7 +38450,7 @@ class QdPageStepComponent extends CdkStep {
|
|
|
38475
38450
|
ngOnChanges(changes) {
|
|
38476
38451
|
super.ngOnChanges();
|
|
38477
38452
|
['label', 'editable', 'optional', 'errorMessage', 'state', 'completed', 'hasError']
|
|
38478
|
-
.filter(input => changes[input])
|
|
38453
|
+
.filter(input => changes?.[input])
|
|
38479
38454
|
.forEach(input => this.blockCdkInput(input));
|
|
38480
38455
|
}
|
|
38481
38456
|
blockCdkInput(inputName) {
|