@trudb/tru-common-lib 0.1.986 → 0.1.987
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Input, Directive, Injectable, NgModule, Inject, Component, HostListener, InjectionToken, ViewChild, EventEmitter, Output, ViewEncapsulation, Pipe, ViewContainerRef, createComponent, Optional, ViewChildren, signal,
|
|
2
|
+
import { Input, Directive, Injectable, NgModule, Inject, Component, HostListener, InjectionToken, ViewChild, EventEmitter, Output, ViewEncapsulation, Pipe, ViewContainerRef, ChangeDetectionStrategy, createComponent, Optional, ViewChildren, signal, QueryList, ContentChildren } from '@angular/core';
|
|
3
3
|
import { EntityAspect, MetadataStore, DataService, EntityManager, EntityQuery, Predicate, FetchStrategy, EntityAction, breeze, EntityState, BinaryPredicate, AndOrPredicate } from 'breeze-client';
|
|
4
4
|
import * as i1$1 from '@angular/common';
|
|
5
5
|
import { CommonModule, NgIf, NgClass, DatePipe } from '@angular/common';
|
|
@@ -5912,7 +5912,13 @@ class TruDataGridPkeyCellRenderer {
|
|
|
5912
5912
|
return false;
|
|
5913
5913
|
}
|
|
5914
5914
|
destroy() { }
|
|
5915
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridPkeyCellRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5916
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruDataGridPkeyCellRenderer, isStandalone: true, selector: "ng-component", ngImport: i0, template: ``, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatIconModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5915
5917
|
}
|
|
5918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridPkeyCellRenderer, decorators: [{
|
|
5919
|
+
type: Component,
|
|
5920
|
+
args: [{ standalone: true, imports: [NgIf, NgClass, CommonModule, MatIconModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `` }]
|
|
5921
|
+
}] });
|
|
5916
5922
|
|
|
5917
5923
|
var TruDataGridTypes;
|
|
5918
5924
|
(function (TruDataGridTypes) {
|
|
@@ -6180,7 +6186,6 @@ class TruDataGridRefHeader {
|
|
|
6180
6186
|
filterIsActive = false;
|
|
6181
6187
|
agInit(params) {
|
|
6182
6188
|
this.params = params;
|
|
6183
|
-
this.params.api.addEventListener('cellFocused', this.onCellFocused.bind(this));
|
|
6184
6189
|
}
|
|
6185
6190
|
getHeaderParams() {
|
|
6186
6191
|
return this.params;
|
|
@@ -6191,20 +6196,6 @@ class TruDataGridRefHeader {
|
|
|
6191
6196
|
onSelectAllIconClicked() {
|
|
6192
6197
|
this.params.api.selectAll();
|
|
6193
6198
|
}
|
|
6194
|
-
onCellFocused(event) {
|
|
6195
|
-
var column = event.column;
|
|
6196
|
-
if (column?.getColDef().pinned) {
|
|
6197
|
-
this.headerRef.nativeElement.classList.add('ag-column-focus');
|
|
6198
|
-
}
|
|
6199
|
-
else {
|
|
6200
|
-
if (this.params.column.getColId() === column.getColId()) {
|
|
6201
|
-
this.headerRef.nativeElement.classList.add('ag-column-focus');
|
|
6202
|
-
}
|
|
6203
|
-
else {
|
|
6204
|
-
this.headerRef.nativeElement.classList.remove('ag-column-focus');
|
|
6205
|
-
}
|
|
6206
|
-
}
|
|
6207
|
-
}
|
|
6208
6199
|
onFilterMenuButtonClicked(event) {
|
|
6209
6200
|
if (!this.columnMenuIsOpen) {
|
|
6210
6201
|
this.params.column.getColDef().headerComponentParams = this.params;
|
|
@@ -6232,9 +6223,7 @@ class TruDataGridRefHeader {
|
|
|
6232
6223
|
this.showFilterMenu = this.isHovering && this.params.api.getDisplayedRowCount() > 0 || this.columnMenuIsOpen || this.params.column.isFilterActive() || this.ascSort || this.descSort;
|
|
6233
6224
|
this.filterIsActive = this.params.column.isFilterActive();
|
|
6234
6225
|
}
|
|
6235
|
-
ngOnDestroy() {
|
|
6236
|
-
this.params.api.removeEventListener('cellFocused', this.onCellFocused.bind(this));
|
|
6237
|
-
}
|
|
6226
|
+
ngOnDestroy() { }
|
|
6238
6227
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridRefHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6239
6228
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruDataGridRefHeader, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "headerRef", first: true, predicate: ["header"], descendants: true }], ngImport: i0, template: `
|
|
6240
6229
|
<div #header class="ag-cell-label-container" role="presentation">
|