@trudb/tru-common-lib 0.0.601 → 0.0.603
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/data-grid/overlays/tru-data-grid-loading-overlay/tru-data-grid-loading-overlay.mjs +9 -9
- package/esm2020/lib/components/data-grid/overlays/tru-data-grid-no-rows-overlay/tru-data-grid-no-rows-overlay.mjs +3 -3
- package/esm2020/lib/components/data-grid/tru-data-grid.mjs +4 -4
- package/fesm2015/trudb-tru-common-lib.mjs +13 -13
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +13 -13
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/data-grid/tru-data-grid.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2213,12 +2213,12 @@ class TruDataGridLoadingOverlay {
|
|
|
2213
2213
|
}
|
|
2214
2214
|
TruDataGridLoadingOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruDataGridLoadingOverlay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2215
2215
|
TruDataGridLoadingOverlay.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: TruDataGridLoadingOverlay, isStandalone: true, selector: "tru-data-grid-loading-overlay", ngImport: i0, template: `
|
|
2216
|
-
<div class="ag-overlay-loading-center"
|
|
2217
|
-
<div>
|
|
2216
|
+
<div class="ag-overlay-loading-center">
|
|
2217
|
+
<div style="display:inline-block;margin-right:15px;">
|
|
2218
2218
|
<mat-spinner [diameter]="30"></mat-spinner>
|
|
2219
2219
|
</div>
|
|
2220
|
-
<div>
|
|
2221
|
-
<span style="font-size:14px;font-weight:bold;">{{ params.loadingMessage }}</span>
|
|
2220
|
+
<div style="display:inline-block;">
|
|
2221
|
+
<span style="font-size:14px;font-weight:bold;vertical-align:middle;">{{ params.loadingMessage }}</span>
|
|
2222
2222
|
</div>
|
|
2223
2223
|
</div>
|
|
2224
2224
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MaterialModule }, { kind: "component", type: i1$3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
|
|
@@ -2229,12 +2229,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
2229
2229
|
selector: 'tru-data-grid-loading-overlay',
|
|
2230
2230
|
imports: [MaterialModule],
|
|
2231
2231
|
template: `
|
|
2232
|
-
<div class="ag-overlay-loading-center"
|
|
2233
|
-
<div>
|
|
2232
|
+
<div class="ag-overlay-loading-center">
|
|
2233
|
+
<div style="display:inline-block;margin-right:15px;">
|
|
2234
2234
|
<mat-spinner [diameter]="30"></mat-spinner>
|
|
2235
2235
|
</div>
|
|
2236
|
-
<div>
|
|
2237
|
-
<span style="font-size:14px;font-weight:bold;">{{ params.loadingMessage }}</span>
|
|
2236
|
+
<div style="display:inline-block;">
|
|
2237
|
+
<span style="font-size:14px;font-weight:bold;vertical-align:middle;">{{ params.loadingMessage }}</span>
|
|
2238
2238
|
</div>
|
|
2239
2239
|
</div>
|
|
2240
2240
|
`
|
|
@@ -2249,7 +2249,7 @@ class TruDataGridNoRowsOverlay {
|
|
|
2249
2249
|
TruDataGridNoRowsOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruDataGridNoRowsOverlay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2250
2250
|
TruDataGridNoRowsOverlay.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: TruDataGridNoRowsOverlay, isStandalone: true, selector: "tru-data-grid-no-rows-overlay", ngImport: i0, template: `
|
|
2251
2251
|
<div class="ag-overlay-loading-center">
|
|
2252
|
-
<span style="font-size:14px font-weight: bold;">{{ params.noRowsMessageFunc() }}</span>
|
|
2252
|
+
<span style="font-size:14px; font-weight: bold;">{{ params.noRowsMessageFunc() }}</span>
|
|
2253
2253
|
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: MaterialModule }] });
|
|
2254
2254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruDataGridNoRowsOverlay, decorators: [{
|
|
2255
2255
|
type: Component,
|
|
@@ -2259,7 +2259,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
2259
2259
|
imports: [MaterialModule],
|
|
2260
2260
|
template: `
|
|
2261
2261
|
<div class="ag-overlay-loading-center">
|
|
2262
|
-
<span style="font-size:14px font-weight: bold;">{{ params.noRowsMessageFunc() }}</span>
|
|
2262
|
+
<span style="font-size:14px; font-weight: bold;">{{ params.noRowsMessageFunc() }}</span>
|
|
2263
2263
|
</div>`
|
|
2264
2264
|
}]
|
|
2265
2265
|
}] });
|
|
@@ -2867,7 +2867,7 @@ class TruDataGrid {
|
|
|
2867
2867
|
this.gridType = TruDataGridTypes.Search;
|
|
2868
2868
|
this.unsavedEntities = [];
|
|
2869
2869
|
this.loadedEntities = [];
|
|
2870
|
-
this.
|
|
2870
|
+
this.firstSearchRan = false;
|
|
2871
2871
|
this.gridOptions = {
|
|
2872
2872
|
rowSelection: 'multiple',
|
|
2873
2873
|
rowStyle: { background: 'white' },
|
|
@@ -2878,7 +2878,7 @@ class TruDataGrid {
|
|
|
2878
2878
|
noRowsOverlayComponent: TruDataGridNoRowsOverlay,
|
|
2879
2879
|
noRowsOverlayComponentParams: {
|
|
2880
2880
|
noRowsMessageFunc: () => {
|
|
2881
|
-
if (this.
|
|
2881
|
+
if (this.firstSearchRan)
|
|
2882
2882
|
return 'Sorry - no rows found!';
|
|
2883
2883
|
else
|
|
2884
2884
|
return 'Click search to display results.';
|
|
@@ -3007,6 +3007,7 @@ class TruDataGrid {
|
|
|
3007
3007
|
}
|
|
3008
3008
|
};
|
|
3009
3009
|
this.onSearch = (setupQuery) => {
|
|
3010
|
+
this.firstSearchRan = true;
|
|
3010
3011
|
this.gridOptions.api.hideOverlay();
|
|
3011
3012
|
this.gridOptions.api.showLoadingOverlay();
|
|
3012
3013
|
let entityLoaded = this.loadedEntities.some((ref) => { return ref === this.entity[this.entity.constructor.name + 'Ref']; });
|
|
@@ -3152,7 +3153,6 @@ class TruDataGrid {
|
|
|
3152
3153
|
if (this.gridType === TruDataGridTypes.Detail || this.gridType === TruDataGridTypes.DetailManyToMany) {
|
|
3153
3154
|
this.onSearch(this.config.resultConfig.setupQuery(this.entity));
|
|
3154
3155
|
}
|
|
3155
|
-
this.gridInitilized = true;
|
|
3156
3156
|
}, 0);
|
|
3157
3157
|
}
|
|
3158
3158
|
ngOnDestroy() {
|