@quadrel-enterprise-ui/framework 21.12.4 → 21.12.5
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.
|
@@ -31014,11 +31014,11 @@ class QdTreeRowComponent {
|
|
|
31014
31014
|
};
|
|
31015
31015
|
}
|
|
31016
31016
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31017
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", 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: "@for (column of columnsDetails; track column) { @if (column.type === '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 @if (rowData?.nestedRows) { @if (!expanded) {\n <qd-icon class=\"expander\" [attr.data-test-id]=\"testId + '-opening-expander'\" [icon]=\"'ctrlRight'\"></qd-icon>\n } @if (expanded) {\n <qd-icon class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n } } @for (groupedColumn of $any(column).groupedColumns; track groupedColumn) { @if (rowData[groupedColumn.column]) {\n <span>{{ rowData[groupedColumn.column] }}</span>\n } }\n</td>\n} @else {\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} } @if (config.secondaryActions?.length > 0) {\n<td\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]=\"
|
|
31017
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", 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: "@for (column of columnsDetails; track column) { @if (column.type === '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 @if (rowData?.nestedRows) { @if (!expanded) {\n <qd-icon class=\"expander\" [attr.data-test-id]=\"testId + '-opening-expander'\" [icon]=\"'ctrlRight'\"></qd-icon>\n } @if (expanded) {\n <qd-icon class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n } } @for (groupedColumn of $any(column).groupedColumns; track groupedColumn) { @if (rowData[groupedColumn.column]) {\n <span>{{ rowData[groupedColumn.column] }}</span>\n } }\n</td>\n} @else {\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} } @if (config.secondaryActions?.length > 0) {\n<td\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]=\"rowIndex\"\n [rowData]=\"rowData\"\n [testId]=\"testId + '-secondary-actions'\"\n></td>\n}\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$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { 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 });
|
|
31018
31018
|
}
|
|
31019
31019
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeRowComponent, decorators: [{
|
|
31020
31020
|
type: Component,
|
|
31021
|
-
args: [{ selector: '[qd-tree-row]', encapsulation: ViewEncapsulation.None, providers: [QdDataFacetsContextService], standalone: false, template: "@for (column of columnsDetails; track column) { @if (column.type === '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 @if (rowData?.nestedRows) { @if (!expanded) {\n <qd-icon class=\"expander\" [attr.data-test-id]=\"testId + '-opening-expander'\" [icon]=\"'ctrlRight'\"></qd-icon>\n } @if (expanded) {\n <qd-icon class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n } } @for (groupedColumn of $any(column).groupedColumns; track groupedColumn) { @if (rowData[groupedColumn.column]) {\n <span>{{ rowData[groupedColumn.column] }}</span>\n } }\n</td>\n} @else {\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} } @if (config.secondaryActions?.length > 0) {\n<td\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]=\"
|
|
31021
|
+
args: [{ selector: '[qd-tree-row]', encapsulation: ViewEncapsulation.None, providers: [QdDataFacetsContextService], standalone: false, template: "@for (column of columnsDetails; track column) { @if (column.type === '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 @if (rowData?.nestedRows) { @if (!expanded) {\n <qd-icon class=\"expander\" [attr.data-test-id]=\"testId + '-opening-expander'\" [icon]=\"'ctrlRight'\"></qd-icon>\n } @if (expanded) {\n <qd-icon class=\"expander\" [icon]=\"'ctrlDown'\"></qd-icon>\n } } @for (groupedColumn of $any(column).groupedColumns; track groupedColumn) { @if (rowData[groupedColumn.column]) {\n <span>{{ rowData[groupedColumn.column] }}</span>\n } }\n</td>\n} @else {\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} } @if (config.secondaryActions?.length > 0) {\n<td\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]=\"rowIndex\"\n [rowData]=\"rowData\"\n [testId]=\"testId + '-secondary-actions'\"\n></td>\n}\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"] }]
|
|
31022
31022
|
}], propDecorators: { columnsDetails: [{
|
|
31023
31023
|
type: Input
|
|
31024
31024
|
}], indentation: [{
|
|
@@ -31084,7 +31084,7 @@ class QdTreeEmptyStateComponent {
|
|
|
31084
31084
|
return this.emptyStateService.i18ns;
|
|
31085
31085
|
}
|
|
31086
31086
|
handleClick() {
|
|
31087
|
-
this.config.handler();
|
|
31087
|
+
this.config.handler?.();
|
|
31088
31088
|
this.emptyStateService.emitAction();
|
|
31089
31089
|
}
|
|
31090
31090
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: QdTreeEmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|