@nettyapps/ntybase 21.0.29 → 21.0.31
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 { Component, Injectable, inject, NgModule, signal, input, output, computed, effect,
|
|
2
|
+
import { Component, Injectable, inject, NgModule, signal, input, output, computed, effect, ViewChild, model, InjectionToken, Optional, Inject, Input, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';
|
|
3
3
|
import * as i1$2 from '@angular/common/http';
|
|
4
4
|
import { HttpErrorResponse, HttpResponse, HTTP_INTERCEPTORS, HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
5
|
import { of, throwError, lastValueFrom, map, catchError as catchError$1, Subject, finalize, take as take$1, takeUntil } from 'rxjs';
|
|
@@ -1318,8 +1318,6 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1318
1318
|
readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
1319
1319
|
popupFilterValid = input(false, ...(ngDevMode ? [{ debugName: "popupFilterValid" }] : []));
|
|
1320
1320
|
popupValid = input(false, ...(ngDevMode ? [{ debugName: "popupValid" }] : []));
|
|
1321
|
-
// params = input<any>('');
|
|
1322
|
-
// parameters = input<string>('');
|
|
1323
1321
|
isEmbedded = input(false, ...(ngDevMode ? [{ debugName: "isEmbedded" }] : []));
|
|
1324
1322
|
// Parameters pass when the component is embeded into an other
|
|
1325
1323
|
componantParameterGUID = input('', ...(ngDevMode ? [{ debugName: "componantParameterGUID" }] : []));
|
|
@@ -1587,20 +1585,6 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1587
1585
|
}
|
|
1588
1586
|
return null;
|
|
1589
1587
|
}
|
|
1590
|
-
/**
|
|
1591
|
-
* Handle input changes for route parameters
|
|
1592
|
-
*/
|
|
1593
|
-
// public ngOnChanges(changes: SimpleChanges): void {
|
|
1594
|
-
// if (changes['parameters']) {
|
|
1595
|
-
// const parameters = changes['parameters'].currentValue;
|
|
1596
|
-
// if (parameters) {
|
|
1597
|
-
// this.params =
|
|
1598
|
-
// typeof parameters === 'string' ? JSON.parse(parameters) : parameters;
|
|
1599
|
-
// } else {
|
|
1600
|
-
// this.commonService.clearOutlet();
|
|
1601
|
-
// }
|
|
1602
|
-
// }
|
|
1603
|
-
// }
|
|
1604
1588
|
// Common grid ready handler
|
|
1605
1589
|
onGridReady(params) {
|
|
1606
1590
|
this.gridApi = params.api;
|
|
@@ -2002,7 +1986,7 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
2002
1986
|
// --- Functions to Show / Hide Grid Columns ---
|
|
2003
1987
|
// ---------------------------------------------
|
|
2004
1988
|
onShowHideColumns() {
|
|
2005
|
-
this.gridColumnsVisible.update(a => !a);
|
|
1989
|
+
this.gridColumnsVisible.update((a) => !a);
|
|
2006
1990
|
this.showHideColumnsAsync();
|
|
2007
1991
|
}
|
|
2008
1992
|
showHideColumnsAsync() {
|
|
@@ -2024,7 +2008,7 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
2024
2008
|
var fields = this.columnDefs()
|
|
2025
2009
|
.filter((columnDef) => columnDef.ntyEmbeddedHide == 'x')
|
|
2026
2010
|
.map((columnDef) => columnDef.field);
|
|
2027
|
-
this.gridApi?.setColumnsVisible(fields, !this.isEmbedded);
|
|
2011
|
+
this.gridApi?.setColumnsVisible(fields, !this.isEmbedded());
|
|
2028
2012
|
}
|
|
2029
2013
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NettyAgGridBase, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2030
2014
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: NettyAgGridBase, isStandalone: true, selector: "ntybase-ag-grid-base", inputs: { readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, popupFilterValid: { classPropertyName: "popupFilterValid", publicName: "popupFilterValid", isSignal: true, isRequired: false, transformFunction: null }, popupValid: { classPropertyName: "popupValid", publicName: "popupValid", isSignal: true, isRequired: false, transformFunction: null }, isEmbedded: { classPropertyName: "isEmbedded", publicName: "isEmbedded", isSignal: true, isRequired: false, transformFunction: null }, componantParameterGUID: { classPropertyName: "componantParameterGUID", publicName: "componantParameterGUID", isSignal: true, isRequired: false, transformFunction: null }, componantParameterType: { classPropertyName: "componantParameterType", publicName: "componantParameterType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onElementSelect: "onElementSelect", selectedElement: "selectedElement" }, usesInheritance: true, ngImport: i0, template: "<p>ag-grid-base works!</p>\n", styles: [""] });
|
|
@@ -2054,11 +2038,6 @@ class NettyAgGridSaveBase extends NettyAppsBase {
|
|
|
2054
2038
|
// Dialog related properties
|
|
2055
2039
|
dialogRef = inject((MatDialogRef), { optional: true });
|
|
2056
2040
|
dialogData = inject(MAT_DIALOG_DATA, { optional: true });
|
|
2057
|
-
// Controls whether the panel should automatically close after saving user data
|
|
2058
|
-
closeAfterSave = model(true, ...(ngDevMode ? [{ debugName: "closeAfterSave" }] : []));
|
|
2059
|
-
setCloseAfterSave(value) {
|
|
2060
|
-
this.closeAfterSave.set(value);
|
|
2061
|
-
}
|
|
2062
2041
|
// Controls the visibility of additional editable fields (e.g., password, extra settings)
|
|
2063
2042
|
// When true, certain input fields become visible for editing
|
|
2064
2043
|
updateValid = signal(false, ...(ngDevMode ? [{ debugName: "updateValid" }] : []));
|
|
@@ -2192,9 +2171,9 @@ class NettyAgGridSaveBase extends NettyAppsBase {
|
|
|
2192
2171
|
// First check if there are any visual form changes
|
|
2193
2172
|
if (!this.formChanged && recordGUID) {
|
|
2194
2173
|
this.alertService.showAlert('@noChangesDetected');
|
|
2195
|
-
if (this.closeAfterSave()) {
|
|
2196
|
-
|
|
2197
|
-
}
|
|
2174
|
+
// if (this.closeAfterSave()) {
|
|
2175
|
+
// this.closeSidenav();
|
|
2176
|
+
// }
|
|
2198
2177
|
return false;
|
|
2199
2178
|
}
|
|
2200
2179
|
return true;
|
|
@@ -2272,7 +2251,7 @@ class NettyAgGridSaveBase extends NettyAppsBase {
|
|
|
2272
2251
|
]);
|
|
2273
2252
|
}
|
|
2274
2253
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NettyAgGridSaveBase, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2275
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: NettyAgGridSaveBase, isStandalone: true, selector: "ntybase-ag-grid-save-base", inputs: { parameters: { classPropertyName: "parameters", publicName: "parameters", isSignal: true, isRequired: false, transformFunction: null }, embedded: { classPropertyName: "embedded", publicName: "embedded", isSignal: true, isRequired: false, transformFunction: null }, isEmbedded: { classPropertyName: "isEmbedded", publicName: "isEmbedded", isSignal: true, isRequired: false, transformFunction: null }
|
|
2254
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: NettyAgGridSaveBase, isStandalone: true, selector: "ntybase-ag-grid-save-base", inputs: { parameters: { classPropertyName: "parameters", publicName: "parameters", isSignal: true, isRequired: false, transformFunction: null }, embedded: { classPropertyName: "embedded", publicName: "embedded", isSignal: true, isRequired: false, transformFunction: null }, isEmbedded: { classPropertyName: "isEmbedded", publicName: "isEmbedded", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "saveForm", first: true, predicate: ["saveForm"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<p>ag-grid-save-base works!</p>\n", styles: [""] });
|
|
2276
2255
|
}
|
|
2277
2256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NettyAgGridSaveBase, decorators: [{
|
|
2278
2257
|
type: Component,
|
|
@@ -2280,7 +2259,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
2280
2259
|
}], propDecorators: { parameters: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameters", required: false }] }], embedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedded", required: false }] }], isEmbedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "isEmbedded", required: false }] }], saveForm: [{
|
|
2281
2260
|
type: ViewChild,
|
|
2282
2261
|
args: ['saveForm']
|
|
2283
|
-
}]
|
|
2262
|
+
}] } });
|
|
2284
2263
|
|
|
2285
2264
|
class ExcelImportBase extends NettyAgGridBase {
|
|
2286
2265
|
dataList = [];
|