@nettyapps/ntybase 21.0.35-beta.3 → 21.0.35-beta.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Injectable, inject, NgModule, signal, input,
|
|
2
|
+
import { Component, Injectable, inject, NgModule, signal, input, output, computed, effect, ViewChild, model, Input, InjectionToken, Optional, Inject } from '@angular/core';
|
|
3
3
|
import * as i1$3 from '@angular/common/http';
|
|
4
4
|
import { HttpErrorResponse, HttpResponse, HTTP_INTERCEPTORS, HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
5
|
import { of, throwError, Subject, lastValueFrom, map, catchError as catchError$1, finalize, take as take$1, takeUntil } from 'rxjs';
|
|
@@ -1257,6 +1257,18 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1257
1257
|
popupFilterValid = input(false, ...(ngDevMode ? [{ debugName: "popupFilterValid" }] : [])); // Is the popup filter valid
|
|
1258
1258
|
popupValid = input(false, ...(ngDevMode ? [{ debugName: "popupValid" }] : [])); // Is the form in popup mode
|
|
1259
1259
|
isEmbedded = input(false, ...(ngDevMode ? [{ debugName: "isEmbedded" }] : [])); // Is the form embedded to an other component
|
|
1260
|
+
// Parameters passed when the component is embeded into an other
|
|
1261
|
+
componantParameterGUID = input('', ...(ngDevMode ? [{ debugName: "componantParameterGUID" }] : [])); // GUID of the parameter
|
|
1262
|
+
componantParameterType = input('', ...(ngDevMode ? [{ debugName: "componantParameterType" }] : [])); // Type of the parameter (Field Name)
|
|
1263
|
+
// ********************************************
|
|
1264
|
+
// *** EVENTS ***
|
|
1265
|
+
// ********************************************
|
|
1266
|
+
/*
|
|
1267
|
+
Selected records event
|
|
1268
|
+
@param records: Array of selected records
|
|
1269
|
+
*/
|
|
1270
|
+
onElementSelect = output(); // Emit selected records when updated
|
|
1271
|
+
selectedElement = output(); // Selected element in popup mode
|
|
1260
1272
|
// Component identifiers
|
|
1261
1273
|
componentName = signal('Invalid', ...(ngDevMode ? [{ debugName: "componentName" }] : []));
|
|
1262
1274
|
searchValueName = signal('Invalid_searchValue', ...(ngDevMode ? [{ debugName: "searchValueName" }] : []));
|
|
@@ -1270,6 +1282,9 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1270
1282
|
commonService = inject(CommonService);
|
|
1271
1283
|
sysFunctionProxy = inject(SysfunctionProxy);
|
|
1272
1284
|
environment = inject(EnvironmentProxy);
|
|
1285
|
+
// Button action management variables
|
|
1286
|
+
menuValid = signal(true, ...(ngDevMode ? [{ debugName: "menuValid" }] : [])); // true: Filter editbox is not visible so the menus are visible
|
|
1287
|
+
refreshButtonValid = signal(false, ...(ngDevMode ? [{ debugName: "refreshButtonValid" }] : [])); // true: Refresh button is enabled
|
|
1273
1288
|
// Authentication
|
|
1274
1289
|
authenticationList = [];
|
|
1275
1290
|
// User access writes
|
|
@@ -1284,10 +1299,18 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1284
1299
|
// ---------------------------------------------------
|
|
1285
1300
|
recordList = signal([], ...(ngDevMode ? [{ debugName: "recordList" }] : []));
|
|
1286
1301
|
record = null;
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1302
|
+
// ***************************************************************
|
|
1303
|
+
// *** METHODS For optional overide ***
|
|
1304
|
+
// ***************************************************************
|
|
1290
1305
|
async AfterOnInit() { }
|
|
1306
|
+
setFilter() { } //override this to set a filter
|
|
1307
|
+
// ***************************************************************
|
|
1308
|
+
// *** METHODS ***
|
|
1309
|
+
// ***************************************************************
|
|
1310
|
+
popupClose() { this.selectedElement.emit(null); }
|
|
1311
|
+
onFilterTextBoxVisibilityChange(isOpen) {
|
|
1312
|
+
this.menuValid.set(!isOpen);
|
|
1313
|
+
}
|
|
1291
1314
|
/** Set data into the grid */
|
|
1292
1315
|
setData(data) {
|
|
1293
1316
|
this.recordList.set(data);
|
|
@@ -1561,12 +1584,12 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1561
1584
|
this.gridApi?.setColumnsVisible(fields, !this.isEmbedded());
|
|
1562
1585
|
}
|
|
1563
1586
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NettyAgGridBase, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1564
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: NettyAgGridBase, isStandalone: true, selector: "ntybase-ag-grid-base", inputs: { 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 }, agGridSelectionMode: { classPropertyName: "agGridSelectionMode", publicName: "agGridSelectionMode", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "ntybase-id": "NettyAgGridBase" } }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
1587
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: NettyAgGridBase, isStandalone: true, selector: "ntybase-ag-grid-base", inputs: { 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 }, agGridSelectionMode: { classPropertyName: "agGridSelectionMode", publicName: "agGridSelectionMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onElementSelect: "onElementSelect", selectedElement: "selectedElement" }, host: { attributes: { "ntybase-id": "NettyAgGridBase" } }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
1565
1588
|
}
|
|
1566
1589
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NettyAgGridBase, decorators: [{
|
|
1567
1590
|
type: Component,
|
|
1568
1591
|
args: [{ selector: 'ntybase-ag-grid-base', imports: [], template: ``, host: { 'ntybase-id': 'NettyAgGridBase' } }]
|
|
1569
|
-
}], propDecorators: { popupFilterValid: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupFilterValid", required: false }] }], popupValid: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupValid", required: false }] }], isEmbedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "isEmbedded", required: false }] }], agGridSelectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "agGridSelectionMode", required: false }] }] } });
|
|
1592
|
+
}], propDecorators: { popupFilterValid: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupFilterValid", required: false }] }], popupValid: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupValid", required: false }] }], isEmbedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "isEmbedded", required: false }] }], componantParameterGUID: [{ type: i0.Input, args: [{ isSignal: true, alias: "componantParameterGUID", required: false }] }], componantParameterType: [{ type: i0.Input, args: [{ isSignal: true, alias: "componantParameterType", required: false }] }], onElementSelect: [{ type: i0.Output, args: ["onElementSelect"] }], selectedElement: [{ type: i0.Output, args: ["selectedElement"] }], agGridSelectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "agGridSelectionMode", required: false }] }] } });
|
|
1570
1593
|
|
|
1571
1594
|
class ButtonRenderer {
|
|
1572
1595
|
params = null;
|
|
@@ -1721,20 +1744,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1721
1744
|
// ********************************************
|
|
1722
1745
|
// *** INPUTS ***
|
|
1723
1746
|
// ********************************************
|
|
1724
|
-
// Parameters passed when the component is embeded into an other
|
|
1725
|
-
componantParameterGUID = input('', ...(ngDevMode ? [{ debugName: "componantParameterGUID" }] : [])); // GUID of the parameter
|
|
1726
|
-
componantParameterType = input('', ...(ngDevMode ? [{ debugName: "componantParameterType" }] : [])); // Type of the parameter (Field Name)
|
|
1727
|
-
// ********************************************
|
|
1728
|
-
// *** EVENTS ***
|
|
1729
|
-
// ********************************************
|
|
1730
|
-
/*
|
|
1731
|
-
Selected records event
|
|
1732
|
-
@param records: Array of selected records
|
|
1733
|
-
*/
|
|
1734
|
-
onElementSelect = output(); // Emit selected records when updated
|
|
1735
|
-
// Parameters for embeded components
|
|
1736
|
-
selectedElement = output(); // Selected element in popup mode
|
|
1737
|
-
// ********************************************
|
|
1738
1747
|
// Filter section
|
|
1739
1748
|
hasFilter = input(false, ...(ngDevMode ? [{ debugName: "hasFilter" }] : [])); // Does the component have a filter
|
|
1740
1749
|
isFilterValid = signal(true, ...(ngDevMode ? [{ debugName: "isFilterValid" }] : [])); // Can the filter be used
|
|
@@ -1747,9 +1756,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1747
1756
|
}
|
|
1748
1757
|
return this.isFilterValid();
|
|
1749
1758
|
}, ...(ngDevMode ? [{ debugName: "isFilterExpanded" }] : []));
|
|
1750
|
-
// Button action management variables
|
|
1751
|
-
menuValid = signal(true, ...(ngDevMode ? [{ debugName: "menuValid" }] : [])); // true: Filter editbox is not visible so the menus are visible
|
|
1752
|
-
refreshButtonValid = signal(false, ...(ngDevMode ? [{ debugName: "refreshButtonValid" }] : [])); // true: Refresh button is enabled
|
|
1753
1759
|
// Open component management
|
|
1754
1760
|
openEditComponentInPopup = signal(false, ...(ngDevMode ? [{ debugName: "openEditComponentInPopup" }] : []));
|
|
1755
1761
|
// Services
|
|
@@ -1961,13 +1967,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1961
1967
|
}
|
|
1962
1968
|
return true;
|
|
1963
1969
|
}
|
|
1964
|
-
onFilterTextBoxVisibilityChange(isOpen) {
|
|
1965
|
-
this.menuValid.set(!isOpen);
|
|
1966
|
-
}
|
|
1967
|
-
setFilter() { } //override this to set a filter
|
|
1968
|
-
popupClose() {
|
|
1969
|
-
this.selectedElement.emit(null);
|
|
1970
|
-
}
|
|
1971
1970
|
// *********************************************************
|
|
1972
1971
|
// *** Data Management Functions ***
|
|
1973
1972
|
// *********************************************************
|
|
@@ -2016,12 +2015,12 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
2016
2015
|
});
|
|
2017
2016
|
}
|
|
2018
2017
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NettyAgGridListBase, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2019
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: NettyAgGridListBase, isStandalone: true, selector: "ntybase-ag-grid-list-base", inputs: {
|
|
2018
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: NettyAgGridListBase, isStandalone: true, selector: "ntybase-ag-grid-list-base", inputs: { hasFilter: { classPropertyName: "hasFilter", publicName: "hasFilter", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "ntybase-id": "NettyAgGridListBase" } }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
2020
2019
|
}
|
|
2021
2020
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NettyAgGridListBase, decorators: [{
|
|
2022
2021
|
type: Component,
|
|
2023
2022
|
args: [{ selector: 'ntybase-ag-grid-list-base', imports: [], template: ``, host: { 'ntybase-id': 'NettyAgGridListBase' } }]
|
|
2024
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
2023
|
+
}], ctorParameters: () => [], propDecorators: { hasFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasFilter", required: false }] }] } });
|
|
2025
2024
|
|
|
2026
2025
|
class NettyAgGridLogBase extends NettyAgGridBase {
|
|
2027
2026
|
// ---------------------------------------------------
|