@trudb/tru-common-lib 0.0.615 → 0.0.618
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/base-views/search-result/tru-search-result-view-base.mjs +8 -6
- package/esm2020/lib/components/data-grid/overlays/tru-data-grid-loading-overlay/tru-data-grid-loading-overlay.mjs +3 -3
- 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 +13 -4
- package/esm2020/lib/services/tru-data-context.mjs +2 -1
- package/fesm2015/trudb-tru-common-lib.mjs +22 -11
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +22 -11
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-views/search-result/tru-search-result-view-base.d.ts +3 -1
- package/lib/services/tru-data-context.d.ts +1 -1
- package/package.json +1 -1
|
@@ -987,6 +987,7 @@ class TruDataContext {
|
|
|
987
987
|
reject(e);
|
|
988
988
|
}).finally(() => {
|
|
989
989
|
this.appEnvironment.isSaving = false;
|
|
990
|
+
this.propertyChanged(null);
|
|
990
991
|
});
|
|
991
992
|
});
|
|
992
993
|
};
|
|
@@ -1615,7 +1616,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
1615
1616
|
}] });
|
|
1616
1617
|
|
|
1617
1618
|
class TruSearchResultViewBase {
|
|
1618
|
-
constructor(truWindowEventHandler) {
|
|
1619
|
+
constructor(uiNotification, truWindowEventHandler) {
|
|
1620
|
+
this.uiNotification = uiNotification;
|
|
1619
1621
|
this.truWindowEventHandler = truWindowEventHandler;
|
|
1620
1622
|
this.tableName = '';
|
|
1621
1623
|
this.tablePluralLabel = '';
|
|
@@ -1641,7 +1643,7 @@ class TruSearchResultViewBase {
|
|
|
1641
1643
|
this.truWindowEventHandler.addView(windowAddViewEventArgs);
|
|
1642
1644
|
}
|
|
1643
1645
|
else {
|
|
1644
|
-
|
|
1646
|
+
this.uiNotification.confirm('No Detail View', this.tablePluralLabel + ' does not have a detail view.', false, true, "", "Ok").then(() => { });
|
|
1645
1647
|
}
|
|
1646
1648
|
};
|
|
1647
1649
|
}
|
|
@@ -1650,12 +1652,12 @@ class TruSearchResultViewBase {
|
|
|
1650
1652
|
this.tablePluralLabel = this.view.window.tablePluralLabel;
|
|
1651
1653
|
}
|
|
1652
1654
|
}
|
|
1653
|
-
TruSearchResultViewBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruSearchResultViewBase, deps: [{ token: TruWindowEventHandler }], target: i0.ɵɵFactoryTarget.Component });
|
|
1655
|
+
TruSearchResultViewBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruSearchResultViewBase, deps: [{ token: TruUiNotification }, { token: TruWindowEventHandler }], target: i0.ɵɵFactoryTarget.Component });
|
|
1654
1656
|
TruSearchResultViewBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: TruSearchResultViewBase, selector: "tru-search-result-view-base", inputs: { view: "view" }, ngImport: i0, template: "", styles: [""] });
|
|
1655
1657
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruSearchResultViewBase, decorators: [{
|
|
1656
1658
|
type: Component,
|
|
1657
1659
|
args: [{ selector: 'tru-search-result-view-base', template: "" }]
|
|
1658
|
-
}], ctorParameters: function () { return [{ type: TruWindowEventHandler }]; }, propDecorators: { view: [{
|
|
1660
|
+
}], ctorParameters: function () { return [{ type: TruUiNotification }, { type: TruWindowEventHandler }]; }, propDecorators: { view: [{
|
|
1659
1661
|
type: Input
|
|
1660
1662
|
}] } });
|
|
1661
1663
|
|
|
@@ -2228,7 +2230,7 @@ class TruDataGridLoadingOverlay {
|
|
|
2228
2230
|
}
|
|
2229
2231
|
TruDataGridLoadingOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruDataGridLoadingOverlay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2230
2232
|
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: `
|
|
2231
|
-
<div class="ag-overlay-loading-center" style="height:50px;width:
|
|
2233
|
+
<div class="ag-overlay-loading-center" style="height:50px;width:250px;">
|
|
2232
2234
|
<div style="display:inline-block;margin-right:15px;vertical-align:middle;line-height:38px;">
|
|
2233
2235
|
<mat-spinner [diameter]="30"></mat-spinner>
|
|
2234
2236
|
</div>
|
|
@@ -2244,7 +2246,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
2244
2246
|
selector: 'tru-data-grid-loading-overlay',
|
|
2245
2247
|
imports: [MaterialModule],
|
|
2246
2248
|
template: `
|
|
2247
|
-
<div class="ag-overlay-loading-center" style="height:50px;width:
|
|
2249
|
+
<div class="ag-overlay-loading-center" style="height:50px;width:250px;">
|
|
2248
2250
|
<div style="display:inline-block;margin-right:15px;vertical-align:middle;line-height:38px;">
|
|
2249
2251
|
<mat-spinner [diameter]="30"></mat-spinner>
|
|
2250
2252
|
</div>
|
|
@@ -2263,7 +2265,7 @@ class TruDataGridNoRowsOverlay {
|
|
|
2263
2265
|
}
|
|
2264
2266
|
TruDataGridNoRowsOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruDataGridNoRowsOverlay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2265
2267
|
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: `
|
|
2266
|
-
<div class="ag-overlay-loading-center" style="height:50px;width:
|
|
2268
|
+
<div class="ag-overlay-loading-center" style="height:50px;width:250px;">
|
|
2267
2269
|
<span style="font-size:12px;font-weight:bold;line-height:38px;">{{ params.noRowsMessageFunc() }}</span>
|
|
2268
2270
|
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: MaterialModule }] });
|
|
2269
2271
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruDataGridNoRowsOverlay, decorators: [{
|
|
@@ -2273,7 +2275,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
2273
2275
|
selector: 'tru-data-grid-no-rows-overlay',
|
|
2274
2276
|
imports: [MaterialModule],
|
|
2275
2277
|
template: `
|
|
2276
|
-
<div class="ag-overlay-loading-center" style="height:50px;width:
|
|
2278
|
+
<div class="ag-overlay-loading-center" style="height:50px;width:250px;">
|
|
2277
2279
|
<span style="font-size:12px;font-weight:bold;line-height:38px;">{{ params.noRowsMessageFunc() }}</span>
|
|
2278
2280
|
</div>`
|
|
2279
2281
|
}]
|
|
@@ -2988,11 +2990,20 @@ class TruDataGrid {
|
|
|
2988
2990
|
let isTabKey = params.event.key === 'Tab';
|
|
2989
2991
|
let isArrowDown = params.event.key === 'ArrowDown';
|
|
2990
2992
|
let isArrowUp = params.event.key === 'ArrowUp';
|
|
2993
|
+
let isArrowLeft = params.event.key === 'ArrowLeft';
|
|
2994
|
+
let isArrowRight = params.event.key === 'ArrowRight';
|
|
2995
|
+
let isShiftKey = params.event.shiftKey;
|
|
2991
2996
|
let isAltKey = params.event.altKey;
|
|
2992
|
-
if (isTabKey)
|
|
2993
|
-
this.gridOptions.api.stopEditing();
|
|
2994
2997
|
let focusedCell = params.api.getFocusedCell();
|
|
2995
|
-
|
|
2998
|
+
if (params.column.isPinned()) {
|
|
2999
|
+
}
|
|
3000
|
+
if (isTabKey || isArrowLeft || isArrowRight) {
|
|
3001
|
+
if (params.column.isPinned()) {
|
|
3002
|
+
}
|
|
3003
|
+
this.gridOptions.api.stopEditing();
|
|
3004
|
+
return true;
|
|
3005
|
+
}
|
|
3006
|
+
let hasChoices = params.data[params.column.getColId()] && params.data[params.column.getColId()].choices ? true : false;
|
|
2996
3007
|
if (hasChoices && isAltKey && (isArrowDown || isArrowUp)) {
|
|
2997
3008
|
params.event.stopPropagation();
|
|
2998
3009
|
params.api.startEditingCell({
|