@quadrel-enterprise-ui/framework 20.32.0 → 20.32.1-beta.277.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.
|
@@ -5796,19 +5796,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
5796
5796
|
}] } });
|
|
5797
5797
|
|
|
5798
5798
|
/**
|
|
5799
|
-
* @description Renders a checkmark icon
|
|
5799
|
+
* @description Renders a checkmark icon when the value is `true` and a "x" icon when it is `false`.
|
|
5800
5800
|
*
|
|
5801
|
-
*
|
|
5801
|
+
* #### Notes & Best Practices:
|
|
5802
|
+
*
|
|
5803
|
+
* * The icon is only rendered when a value exists. `null` and `undefined` mean "no value"
|
|
5804
|
+
* and render nothing, so a cell without a value stays empty instead of showing a "x" icon.
|
|
5805
|
+
* * In a table or tree, group rows have no value of their own and therefore show no icon.
|
|
5806
|
+
* * This is a base component for all potentially derived components and classes.
|
|
5802
5807
|
*/
|
|
5803
5808
|
class QdDataFacetsBooleanComponent {
|
|
5804
5809
|
data;
|
|
5805
5810
|
testId;
|
|
5811
|
+
hasValue = false;
|
|
5812
|
+
ngOnChanges() {
|
|
5813
|
+
this.hasValue = this.data !== null && this.data !== undefined;
|
|
5814
|
+
}
|
|
5806
5815
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdDataFacetsBooleanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5807
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdDataFacetsBooleanComponent, isStandalone: false, selector: "qd-data-facets-boolean", inputs: { data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, ngImport: i0, template: "<qd-icon [icon]=\"data ? 'checkmark' : 'timesLarge'\"></qd-icon>\n", styles: [":host{font-size:1.25rem;text-align:center}\n"], dependencies: [{ kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5816
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdDataFacetsBooleanComponent, isStandalone: false, selector: "qd-data-facets-boolean", inputs: { data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "<qd-icon\n *ngIf=\"hasValue\"\n [attr.data-test-id]=\"testId ? testId + '-icon' : null\"\n [icon]=\"data ? 'checkmark' : 'timesLarge'\"\n></qd-icon>\n", styles: [":host{font-size:1.25rem;text-align:center}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5808
5817
|
}
|
|
5809
5818
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdDataFacetsBooleanComponent, decorators: [{
|
|
5810
5819
|
type: Component,
|
|
5811
|
-
args: [{ selector: 'qd-data-facets-boolean', host: { class: 'qd-data-facets', '[attr.data-test-id]': 'testId' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<qd-icon [icon]=\"data ? 'checkmark' : 'timesLarge'\"></qd-icon>\n", styles: [":host{font-size:1.25rem;text-align:center}\n"] }]
|
|
5820
|
+
args: [{ selector: 'qd-data-facets-boolean', host: { class: 'qd-data-facets', '[attr.data-test-id]': 'testId' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<qd-icon\n *ngIf=\"hasValue\"\n [attr.data-test-id]=\"testId ? testId + '-icon' : null\"\n [icon]=\"data ? 'checkmark' : 'timesLarge'\"\n></qd-icon>\n", styles: [":host{font-size:1.25rem;text-align:center}\n"] }]
|
|
5812
5821
|
}], propDecorators: { data: [{
|
|
5813
5822
|
type: Input
|
|
5814
5823
|
}], testId: [{
|
|
@@ -6453,15 +6462,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
6453
6462
|
/**
|
|
6454
6463
|
* @description Renders a progress bar.
|
|
6455
6464
|
*
|
|
6456
|
-
*
|
|
6457
|
-
*
|
|
6458
|
-
*
|
|
6465
|
+
* #### Features:
|
|
6466
|
+
*
|
|
6467
|
+
* * The displayed text and the bar width both come from {@link normalizedValue}.
|
|
6468
|
+
* * Values are clamped to the inclusive range `[0, 100]`. `NaN` falls back to `0`.
|
|
6469
|
+
* * A value of `0` is a real value and renders a bar with `0%`.
|
|
6470
|
+
*
|
|
6471
|
+
* #### Notes & Best Practices:
|
|
6472
|
+
*
|
|
6473
|
+
* * The bar is only rendered when a value exists. `null` and `undefined` mean "no value"
|
|
6474
|
+
* and render nothing at all, so rows without a value stay empty instead of showing `0%`.
|
|
6475
|
+
* * In a table or tree, a cell without a value keeps the column empty. Group rows of a tree
|
|
6476
|
+
* have no progress of their own and therefore show no bar.
|
|
6459
6477
|
*/
|
|
6460
6478
|
class QdDataFacetsProgressComponent {
|
|
6461
6479
|
data;
|
|
6462
6480
|
testId;
|
|
6463
6481
|
normalizedValue = 0;
|
|
6482
|
+
hasValue = false;
|
|
6464
6483
|
ngOnChanges() {
|
|
6484
|
+
this.hasValue = this.data !== null && this.data !== undefined;
|
|
6465
6485
|
this.normalizedValue = this.normalize(this.data);
|
|
6466
6486
|
}
|
|
6467
6487
|
normalize(value) {
|
|
@@ -6478,11 +6498,11 @@ class QdDataFacetsProgressComponent {
|
|
|
6478
6498
|
return value;
|
|
6479
6499
|
}
|
|
6480
6500
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdDataFacetsProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6481
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdDataFacetsProgressComponent, isStandalone: false, selector: "qd-data-facets-progress", inputs: { data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "<span class=\"qd-data-facets-progress-container\" *ngIf=\"
|
|
6501
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdDataFacetsProgressComponent, isStandalone: false, selector: "qd-data-facets-progress", inputs: { data: "data", testId: "testId" }, host: { properties: { "attr.data-test-id": "testId" }, classAttribute: "qd-data-facets" }, usesOnChanges: true, ngImport: i0, template: "<span class=\"qd-data-facets-progress-container\" *ngIf=\"hasValue\">\n <span class=\"qd-data-facets-progress-bar-container\">\n <span class=\"qd-data-facets-progress-bar-progress\" [style.width.%]=\"normalizedValue\"> </span>\n </span>\n\n <span class=\"qd-data-facets-progress-value\"> {{ normalizedValue }}% </span>\n</span>\n", styles: [":host{display:flex}:host .qd-data-facets-progress-container{position:relative;display:inline-flex;align-items:center}:host .qd-data-facets-progress-bar-container,:host .qd-data-facets-progress-bar-progress{display:block;height:1rem}:host .qd-data-facets-progress-bar-container{width:100%;min-width:6.25rem;flex-grow:1;background:#6ebee6}:host .qd-data-facets-progress-bar-progress{max-width:100%;background:#069}:host .qd-data-facets-progress-value{position:absolute;display:flex;width:100%;min-width:6.25rem;justify-content:center;margin:0 auto;color:#fff;font-size:.8125rem;font-weight:500}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6482
6502
|
}
|
|
6483
6503
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdDataFacetsProgressComponent, decorators: [{
|
|
6484
6504
|
type: Component,
|
|
6485
|
-
args: [{ selector: 'qd-data-facets-progress', host: { class: 'qd-data-facets', '[attr.data-test-id]': 'testId' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<span class=\"qd-data-facets-progress-container\" *ngIf=\"
|
|
6505
|
+
args: [{ selector: 'qd-data-facets-progress', host: { class: 'qd-data-facets', '[attr.data-test-id]': 'testId' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<span class=\"qd-data-facets-progress-container\" *ngIf=\"hasValue\">\n <span class=\"qd-data-facets-progress-bar-container\">\n <span class=\"qd-data-facets-progress-bar-progress\" [style.width.%]=\"normalizedValue\"> </span>\n </span>\n\n <span class=\"qd-data-facets-progress-value\"> {{ normalizedValue }}% </span>\n</span>\n", styles: [":host{display:flex}:host .qd-data-facets-progress-container{position:relative;display:inline-flex;align-items:center}:host .qd-data-facets-progress-bar-container,:host .qd-data-facets-progress-bar-progress{display:block;height:1rem}:host .qd-data-facets-progress-bar-container{width:100%;min-width:6.25rem;flex-grow:1;background:#6ebee6}:host .qd-data-facets-progress-bar-progress{max-width:100%;background:#069}:host .qd-data-facets-progress-value{position:absolute;display:flex;width:100%;min-width:6.25rem;justify-content:center;margin:0 auto;color:#fff;font-size:.8125rem;font-weight:500}\n"] }]
|
|
6486
6506
|
}], propDecorators: { data: [{
|
|
6487
6507
|
type: Input
|
|
6488
6508
|
}], testId: [{
|
|
@@ -26145,6 +26165,9 @@ class QdTableHeadComponent {
|
|
|
26145
26165
|
isLastColumn(column) {
|
|
26146
26166
|
return this.responsiveRowService.isLastColumn(column);
|
|
26147
26167
|
}
|
|
26168
|
+
isRightAligned(columnName) {
|
|
26169
|
+
return this.config.columns.find(column => column.column === columnName)?.type === 'integer';
|
|
26170
|
+
}
|
|
26148
26171
|
isHeadRendered$(i) {
|
|
26149
26172
|
return this.responsiveRowService.headCellDefinitions$.pipe(map$1(headCellDefinitions => !headCellDefinitions.includes(i)));
|
|
26150
26173
|
}
|
|
@@ -26164,11 +26187,11 @@ class QdTableHeadComponent {
|
|
|
26164
26187
|
return this.config.columns.find(column => column.column === columnName)?.tooltip;
|
|
26165
26188
|
}
|
|
26166
26189
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdTableHeadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26167
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdTableHeadComponent, isStandalone: false, selector: "[qd-table-head]", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-table__head" }, ngImport: i0, template: "<th\n *ngIf=\"this.config.selection\"\n class=\"qd-table__head-cell qd-table__head-cell--selection\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-selection'\"\n></th>\n\n<ng-container *ngFor=\"let head of headData; let i = index; let l = last\">\n <th\n *ngIf=\"isHeadRendered$(i) | async\"\n [ngClass]=\"{\n 'qd-table__head-cell': true,\n 'main-column': isMainColumn(head),\n 'last-column': isLastColumn(head)\n }\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-' + head\"\n >\n <qd-table-sort\n [isSortable]=\"getSortableByColumn(head)\"\n [config]=\"getSortConfig(head)\"\n [column]=\"head\"\n [data-test-id]=\"testId + '-sort'\"\n >\n <ng-container *ngIf=\"translations\">\n {{ getI18n(head) | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"!translations\">\n {{ capitalize(head) }}\n </ng-container>\n\n <qd-tooltip-icon [tooltip]=\"getTooltip(head)\"></qd-tooltip-icon>\n </qd-table-sort>\n </th>\n</ng-container>\n\n<th\n *ngIf=\"config.secondaryActions?.length > 0\"\n class=\"qd-table__head-cell qd-table__head-cell--secondaryActions\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-secondary-actions'\"\n></th>\n", styles: [":host .qd-table__head-cell{white-space:nowrap}:host .qd-table__head-cell--filling-width{width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: QdTooltipIconComponent, selector: "qd-tooltip-icon", inputs: ["tooltip"] }, { kind: "component", type: QdTableSortComponent, selector: "qd-table-sort", inputs: ["isSortable", "config", "column", "data-test-id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26190
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdTableHeadComponent, isStandalone: false, selector: "[qd-table-head]", inputs: { config: "config", testId: ["data-test-id", "testId"] }, host: { properties: { "attr.data-test-id": "this.dataTestId" }, classAttribute: "qd-table__head" }, ngImport: i0, template: "<th\n *ngIf=\"this.config.selection\"\n class=\"qd-table__head-cell qd-table__head-cell--selection\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-selection'\"\n></th>\n\n<ng-container *ngFor=\"let head of headData; let i = index; let l = last\">\n <th\n *ngIf=\"isHeadRendered$(i) | async\"\n [ngClass]=\"{\n 'qd-table__head-cell': true,\n 'qd-right-aligned': isRightAligned(head),\n 'main-column': isMainColumn(head),\n 'last-column': isLastColumn(head)\n }\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-' + head\"\n >\n <qd-table-sort\n [isSortable]=\"getSortableByColumn(head)\"\n [config]=\"getSortConfig(head)\"\n [column]=\"head\"\n [data-test-id]=\"testId + '-sort'\"\n >\n <ng-container *ngIf=\"translations\">\n {{ getI18n(head) | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"!translations\">\n {{ capitalize(head) }}\n </ng-container>\n\n <qd-tooltip-icon [tooltip]=\"getTooltip(head)\"></qd-tooltip-icon>\n </qd-table-sort>\n </th>\n</ng-container>\n\n<th\n *ngIf=\"config.secondaryActions?.length > 0\"\n class=\"qd-table__head-cell qd-table__head-cell--secondaryActions\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-secondary-actions'\"\n></th>\n", styles: [":host .qd-table__head-cell{white-space:nowrap}:host .qd-table__head-cell--filling-width{width:100%}:host .qd-right-aligned{text-align:right}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: QdTooltipIconComponent, selector: "qd-tooltip-icon", inputs: ["tooltip"] }, { kind: "component", type: QdTableSortComponent, selector: "qd-table-sort", inputs: ["isSortable", "config", "column", "data-test-id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26168
26191
|
}
|
|
26169
26192
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdTableHeadComponent, decorators: [{
|
|
26170
26193
|
type: Component,
|
|
26171
|
-
args: [{ selector: '[qd-table-head]', host: { class: 'qd-table__head' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<th\n *ngIf=\"this.config.selection\"\n class=\"qd-table__head-cell qd-table__head-cell--selection\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-selection'\"\n></th>\n\n<ng-container *ngFor=\"let head of headData; let i = index; let l = last\">\n <th\n *ngIf=\"isHeadRendered$(i) | async\"\n [ngClass]=\"{\n 'qd-table__head-cell': true,\n 'main-column': isMainColumn(head),\n 'last-column': isLastColumn(head)\n }\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-' + head\"\n >\n <qd-table-sort\n [isSortable]=\"getSortableByColumn(head)\"\n [config]=\"getSortConfig(head)\"\n [column]=\"head\"\n [data-test-id]=\"testId + '-sort'\"\n >\n <ng-container *ngIf=\"translations\">\n {{ getI18n(head) | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"!translations\">\n {{ capitalize(head) }}\n </ng-container>\n\n <qd-tooltip-icon [tooltip]=\"getTooltip(head)\"></qd-tooltip-icon>\n </qd-table-sort>\n </th>\n</ng-container>\n\n<th\n *ngIf=\"config.secondaryActions?.length > 0\"\n class=\"qd-table__head-cell qd-table__head-cell--secondaryActions\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-secondary-actions'\"\n></th>\n", styles: [":host .qd-table__head-cell{white-space:nowrap}:host .qd-table__head-cell--filling-width{width:100%}\n"] }]
|
|
26194
|
+
args: [{ selector: '[qd-table-head]', host: { class: 'qd-table__head' }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<th\n *ngIf=\"this.config.selection\"\n class=\"qd-table__head-cell qd-table__head-cell--selection\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-selection'\"\n></th>\n\n<ng-container *ngFor=\"let head of headData; let i = index; let l = last\">\n <th\n *ngIf=\"isHeadRendered$(i) | async\"\n [ngClass]=\"{\n 'qd-table__head-cell': true,\n 'qd-right-aligned': isRightAligned(head),\n 'main-column': isMainColumn(head),\n 'last-column': isLastColumn(head)\n }\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-' + head\"\n >\n <qd-table-sort\n [isSortable]=\"getSortableByColumn(head)\"\n [config]=\"getSortConfig(head)\"\n [column]=\"head\"\n [data-test-id]=\"testId + '-sort'\"\n >\n <ng-container *ngIf=\"translations\">\n {{ getI18n(head) | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"!translations\">\n {{ capitalize(head) }}\n </ng-container>\n\n <qd-tooltip-icon [tooltip]=\"getTooltip(head)\"></qd-tooltip-icon>\n </qd-table-sort>\n </th>\n</ng-container>\n\n<th\n *ngIf=\"config.secondaryActions?.length > 0\"\n class=\"qd-table__head-cell qd-table__head-cell--secondaryActions\"\n scope=\"col\"\n [attr.data-test-id]=\"testId + '-header-secondary-actions'\"\n></th>\n", styles: [":host .qd-table__head-cell{white-space:nowrap}:host .qd-table__head-cell--filling-width{width:100%}:host .qd-right-aligned{text-align:right}\n"] }]
|
|
26172
26195
|
}], propDecorators: { config: [{
|
|
26173
26196
|
type: Input
|
|
26174
26197
|
}], testId: [{
|
|
@@ -28235,21 +28258,21 @@ class QdTreeRowComponent {
|
|
|
28235
28258
|
const i18n = item.i18n;
|
|
28236
28259
|
const config = item.options;
|
|
28237
28260
|
const data = item.column ? this.rowData[item.column] : undefined;
|
|
28238
|
-
const testId = this.testId + '-cell-' + item.index;
|
|
28261
|
+
const testId = this.testId + '-cell-' + (item.column || item.index) + '-value';
|
|
28239
28262
|
const isTranslated = item.options && item.options.isTranslated !== undefined;
|
|
28240
28263
|
return {
|
|
28241
|
-
...(data && { data }),
|
|
28264
|
+
...(data !== undefined && { data }),
|
|
28242
28265
|
...(config && { config }),
|
|
28243
28266
|
...(i18n && isTranslated && { i18n }),
|
|
28244
28267
|
...(testId && { testId })
|
|
28245
28268
|
};
|
|
28246
28269
|
}
|
|
28247
28270
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdTreeRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28248
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdTreeRowComponent, isStandalone: false, selector: "[qd-tree-row]", inputs: { columnsDetails: "columnsDetails", indentation: "indentation", config: "config", testId: ["data-test-id", "testId"], rowData: "rowData", rowIndex: "rowIndex" }, host: { properties: { "attr.data-test-id": "this.testId" } }, providers: [QdDataFacetsContextService], ngImport: i0, template: "<ng-container *ngFor=\"let column of columnsDetails\">\n <ng-container [ngSwitch]=\"column.type\">\n <ng-container *ngSwitchCase=\"'group'\">\n <td\n (click)=\"onExpanderClick()\"\n [class]=\"\n [\n 'qd-tree-body-cell',\n 'qd-tree-body-cell-group',\n 'qd-tree-body-cell-group-index-' + indentation,\n getCellClass(column),\n rowData?.nestedRows ? ' expandable' : ''\n ].join(' ')\n \"\n [attr.data-test-id]=\"testId + '-cell-' + indentation\"\n >\n <ng-container *ngIf=\"rowData?.nestedRows\">\n <qd-icon\n *ngIf=\"!expanded\"\n class=\"expander\"\n [attr.data-test-id]=\"testId + '-opening-expander'\"\n [icon]=\"'ctrlRight'\"\n ></qd-icon>\n <qd-icon *ngIf=\"expanded\" class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n </ng-container>\n\n <ng-container *ngFor=\"let groupedColumn of $any(column).groupedColumns; let itemIndex = index\">\n <span *ngIf=\"rowData[groupedColumn.column]\">{{ rowData[groupedColumn.column] }}</span>\n </ng-container>\n </td>\n </ng-container>\n\n <ng-container *ngIf=\"column.type !== 'group'\">\n <td
|
|
28271
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdTreeRowComponent, isStandalone: false, selector: "[qd-tree-row]", inputs: { columnsDetails: "columnsDetails", indentation: "indentation", config: "config", testId: ["data-test-id", "testId"], rowData: "rowData", rowIndex: "rowIndex" }, host: { properties: { "attr.data-test-id": "this.testId" } }, providers: [QdDataFacetsContextService], ngImport: i0, template: "<ng-container *ngFor=\"let column of columnsDetails\">\n <ng-container [ngSwitch]=\"column.type\">\n <ng-container *ngSwitchCase=\"'group'\">\n <td\n (click)=\"onExpanderClick()\"\n [class]=\"\n [\n 'qd-tree-body-cell',\n 'qd-tree-body-cell-group',\n 'qd-tree-body-cell-group-index-' + indentation,\n getCellClass(column),\n rowData?.nestedRows ? ' expandable' : ''\n ].join(' ')\n \"\n [attr.data-test-id]=\"testId + '-cell-' + indentation\"\n >\n <ng-container *ngIf=\"rowData?.nestedRows\">\n <qd-icon\n *ngIf=\"!expanded\"\n class=\"expander\"\n [attr.data-test-id]=\"testId + '-opening-expander'\"\n [icon]=\"'ctrlRight'\"\n ></qd-icon>\n <qd-icon *ngIf=\"expanded\" class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n </ng-container>\n\n <ng-container *ngFor=\"let groupedColumn of $any(column).groupedColumns; let itemIndex = index\">\n <span *ngIf=\"rowData[groupedColumn.column]\">{{ rowData[groupedColumn.column] }}</span>\n </ng-container>\n </td>\n </ng-container>\n\n <ng-container *ngIf=\"column.type !== 'group'\">\n <td\n [class]=\"'qd-tree-body-cell ' + getCellClass(column)\"\n [attr.data-test-id]=\"testId + '-cell-' + (column.column || column.index)\"\n >\n <ng-container *ngComponentOutlet=\"getComponentType(column); inputs: getComponentInputs(column)\"></ng-container>\n </td>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<td\n *ngIf=\"config.secondaryActions?.length > 0\"\n class=\"qd-tree-body-cell\"\n [attr.data-test-id]=\"testId + '-cell-inline-actions'\"\n qd-tree-row-actions-secondary-menu\n [config]=\"config\"\n [rowIndex]=\"columnsDetails[0].index\"\n [rowData]=\"rowData\"\n [testId]=\"testId + '-secondary-actions'\"\n></td>\n", styles: ["[qd-tree-row] .qd-data-facets{display:block}[qd-tree-row] qd-data-facets-progress.qd-data-facets{transform:translateY(.1875rem)}[qd-tree-row] qd-data-facets-chip.qd-data-facets{display:contents}[qd-tree-row] qd-data-facets-text.qd-data-facets{margin:.625rem 0}\n"], dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon", "status"] }, { kind: "component", type: QdTreeRowActionsSecondaryMenuComponent, selector: "[qd-tree-row-actions-secondary-menu]", inputs: ["rowIndex", "rowData", "config", "testId"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
28249
28272
|
}
|
|
28250
28273
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdTreeRowComponent, decorators: [{
|
|
28251
28274
|
type: Component,
|
|
28252
|
-
args: [{ selector: '[qd-tree-row]', encapsulation: ViewEncapsulation.None, providers: [QdDataFacetsContextService], standalone: false, template: "<ng-container *ngFor=\"let column of columnsDetails\">\n <ng-container [ngSwitch]=\"column.type\">\n <ng-container *ngSwitchCase=\"'group'\">\n <td\n (click)=\"onExpanderClick()\"\n [class]=\"\n [\n 'qd-tree-body-cell',\n 'qd-tree-body-cell-group',\n 'qd-tree-body-cell-group-index-' + indentation,\n getCellClass(column),\n rowData?.nestedRows ? ' expandable' : ''\n ].join(' ')\n \"\n [attr.data-test-id]=\"testId + '-cell-' + indentation\"\n >\n <ng-container *ngIf=\"rowData?.nestedRows\">\n <qd-icon\n *ngIf=\"!expanded\"\n class=\"expander\"\n [attr.data-test-id]=\"testId + '-opening-expander'\"\n [icon]=\"'ctrlRight'\"\n ></qd-icon>\n <qd-icon *ngIf=\"expanded\" class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n </ng-container>\n\n <ng-container *ngFor=\"let groupedColumn of $any(column).groupedColumns; let itemIndex = index\">\n <span *ngIf=\"rowData[groupedColumn.column]\">{{ rowData[groupedColumn.column] }}</span>\n </ng-container>\n </td>\n </ng-container>\n\n <ng-container *ngIf=\"column.type !== 'group'\">\n <td
|
|
28275
|
+
args: [{ selector: '[qd-tree-row]', encapsulation: ViewEncapsulation.None, providers: [QdDataFacetsContextService], standalone: false, template: "<ng-container *ngFor=\"let column of columnsDetails\">\n <ng-container [ngSwitch]=\"column.type\">\n <ng-container *ngSwitchCase=\"'group'\">\n <td\n (click)=\"onExpanderClick()\"\n [class]=\"\n [\n 'qd-tree-body-cell',\n 'qd-tree-body-cell-group',\n 'qd-tree-body-cell-group-index-' + indentation,\n getCellClass(column),\n rowData?.nestedRows ? ' expandable' : ''\n ].join(' ')\n \"\n [attr.data-test-id]=\"testId + '-cell-' + indentation\"\n >\n <ng-container *ngIf=\"rowData?.nestedRows\">\n <qd-icon\n *ngIf=\"!expanded\"\n class=\"expander\"\n [attr.data-test-id]=\"testId + '-opening-expander'\"\n [icon]=\"'ctrlRight'\"\n ></qd-icon>\n <qd-icon *ngIf=\"expanded\" class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n </ng-container>\n\n <ng-container *ngFor=\"let groupedColumn of $any(column).groupedColumns; let itemIndex = index\">\n <span *ngIf=\"rowData[groupedColumn.column]\">{{ rowData[groupedColumn.column] }}</span>\n </ng-container>\n </td>\n </ng-container>\n\n <ng-container *ngIf=\"column.type !== 'group'\">\n <td\n [class]=\"'qd-tree-body-cell ' + getCellClass(column)\"\n [attr.data-test-id]=\"testId + '-cell-' + (column.column || column.index)\"\n >\n <ng-container *ngComponentOutlet=\"getComponentType(column); inputs: getComponentInputs(column)\"></ng-container>\n </td>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<td\n *ngIf=\"config.secondaryActions?.length > 0\"\n class=\"qd-tree-body-cell\"\n [attr.data-test-id]=\"testId + '-cell-inline-actions'\"\n qd-tree-row-actions-secondary-menu\n [config]=\"config\"\n [rowIndex]=\"columnsDetails[0].index\"\n [rowData]=\"rowData\"\n [testId]=\"testId + '-secondary-actions'\"\n></td>\n", styles: ["[qd-tree-row] .qd-data-facets{display:block}[qd-tree-row] qd-data-facets-progress.qd-data-facets{transform:translateY(.1875rem)}[qd-tree-row] qd-data-facets-chip.qd-data-facets{display:contents}[qd-tree-row] qd-data-facets-text.qd-data-facets{margin:.625rem 0}\n"] }]
|
|
28253
28276
|
}], propDecorators: { columnsDetails: [{
|
|
28254
28277
|
type: Input
|
|
28255
28278
|
}], indentation: [{
|
|
@@ -30929,7 +30952,7 @@ class QdPageTabHeaderComponent {
|
|
|
30929
30952
|
*/
|
|
30930
30953
|
testId;
|
|
30931
30954
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdPageTabHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30932
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdPageTabHeaderComponent, isStandalone: true, selector: "qd-page-tab-header", inputs: { state: "state", label: "label", counters: "counters", index: "index", isSelected: "isSelected", isDisabled: "isDisabled", testId: ["data-test-id", "testId"] }, host: { attributes: { "role": "tab" }, properties: { "attr.data-test-id": "testId", "class.qd-tab-current": "isSelected && !isDisabled", "class.qd-tab-disabled": "isDisabled", "class.qd-tab-done": "state === 'done'", "class.qd-tab-edit": "state === 'edit'", "class.qd-tab-error": "state === 'error'" } }, ngImport: i0, template: "<span class=\"qd-tab-caption\">\n {{ label }}\n <qd-page-tab-header-counters [counters]=\"counters\" [data-test-id]=\"testId + '-counters'\" />\n</span>\n", styles: [":host{position:relative;display:inline-flex;height:2.5rem;padding:.625rem 0;cursor:pointer;color:#
|
|
30955
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.18", type: QdPageTabHeaderComponent, isStandalone: true, selector: "qd-page-tab-header", inputs: { state: "state", label: "label", counters: "counters", index: "index", isSelected: "isSelected", isDisabled: "isDisabled", testId: ["data-test-id", "testId"] }, host: { attributes: { "role": "tab" }, properties: { "attr.data-test-id": "testId", "class.qd-tab-current": "isSelected && !isDisabled", "class.qd-tab-disabled": "isDisabled", "class.qd-tab-done": "state === 'done'", "class.qd-tab-edit": "state === 'edit'", "class.qd-tab-error": "state === 'error'" } }, ngImport: i0, template: "<span class=\"qd-tab-caption\">\n {{ label }}\n <qd-page-tab-header-counters [counters]=\"counters\" [data-test-id]=\"testId + '-counters'\" />\n</span>\n", styles: [":host{position:relative;display:inline-flex;height:2.5rem;padding:.625rem 0;cursor:pointer;color:#171717;font-size:14px;font-weight:400;line-height:18px}:host .qd-tab-caption{font-weight:500;white-space:nowrap}:host:hover,:host.qd-tab-current{color:#069}:host.qd-tab-current .qd-tab-caption{position:relative}:host.qd-tab-current .qd-tab-caption:after{position:absolute;bottom:-.6875rem;left:0;display:inline-block;width:100%;height:.25rem;background-color:#069;content:\"\"}:host.qd-tab-done,:host.qd-tab-edit{color:#171717}:host.qd-tab-error{color:#c70023}:host.qd-tab-disabled{color:#b4b4b4;cursor:default}:host.qd-tab-disabled:hover{color:#b4b4b4}\n"], dependencies: [{ kind: "component", type: QdPageTabHeaderCountersComponent, selector: "qd-page-tab-header-counters", inputs: ["counters", "data-test-id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
30933
30956
|
}
|
|
30934
30957
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: QdPageTabHeaderComponent, decorators: [{
|
|
30935
30958
|
type: Component,
|
|
@@ -30941,7 +30964,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
30941
30964
|
'[class.qd-tab-done]': "state === 'done'",
|
|
30942
30965
|
'[class.qd-tab-edit]': "state === 'edit'",
|
|
30943
30966
|
'[class.qd-tab-error]': "state === 'error'"
|
|
30944
|
-
}, standalone: true, imports: [QdPageTabHeaderCountersComponent], template: "<span class=\"qd-tab-caption\">\n {{ label }}\n <qd-page-tab-header-counters [counters]=\"counters\" [data-test-id]=\"testId + '-counters'\" />\n</span>\n", styles: [":host{position:relative;display:inline-flex;height:2.5rem;padding:.625rem 0;cursor:pointer;color:#
|
|
30967
|
+
}, standalone: true, imports: [QdPageTabHeaderCountersComponent], template: "<span class=\"qd-tab-caption\">\n {{ label }}\n <qd-page-tab-header-counters [counters]=\"counters\" [data-test-id]=\"testId + '-counters'\" />\n</span>\n", styles: [":host{position:relative;display:inline-flex;height:2.5rem;padding:.625rem 0;cursor:pointer;color:#171717;font-size:14px;font-weight:400;line-height:18px}:host .qd-tab-caption{font-weight:500;white-space:nowrap}:host:hover,:host.qd-tab-current{color:#069}:host.qd-tab-current .qd-tab-caption{position:relative}:host.qd-tab-current .qd-tab-caption:after{position:absolute;bottom:-.6875rem;left:0;display:inline-block;width:100%;height:.25rem;background-color:#069;content:\"\"}:host.qd-tab-done,:host.qd-tab-edit{color:#171717}:host.qd-tab-error{color:#c70023}:host.qd-tab-disabled{color:#b4b4b4;cursor:default}:host.qd-tab-disabled:hover{color:#b4b4b4}\n"] }]
|
|
30945
30968
|
}], propDecorators: { state: [{
|
|
30946
30969
|
type: Input
|
|
30947
30970
|
}], label: [{
|
|
@@ -30965,7 +30988,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
30965
30988
|
*/
|
|
30966
30989
|
class QdPageTabComponent {
|
|
30967
30990
|
_pageTabs = inject(forwardRef(() => QdPageTabsComponent));
|
|
30968
|
-
translate = inject(TranslateService);
|
|
30969
30991
|
/**
|
|
30970
30992
|
* Configuration of QdPageTabComponent.
|
|
30971
30993
|
*
|