@nettyapps/ntybase 21.0.35-beta.3 → 21.0.35-beta.4
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" }] : []));
|
|
@@ -1284,10 +1296,15 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1284
1296
|
// ---------------------------------------------------
|
|
1285
1297
|
recordList = signal([], ...(ngDevMode ? [{ debugName: "recordList" }] : []));
|
|
1286
1298
|
record = null;
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1299
|
+
// ***************************************************************
|
|
1300
|
+
// *** METHODS For optional overide ***
|
|
1301
|
+
// ***************************************************************
|
|
1290
1302
|
async AfterOnInit() { }
|
|
1303
|
+
setFilter() { } //override this to set a filter
|
|
1304
|
+
// ***************************************************************
|
|
1305
|
+
// *** METHODS ***
|
|
1306
|
+
// ***************************************************************
|
|
1307
|
+
popupClose() { this.selectedElement.emit(null); }
|
|
1291
1308
|
/** Set data into the grid */
|
|
1292
1309
|
setData(data) {
|
|
1293
1310
|
this.recordList.set(data);
|
|
@@ -1561,12 +1578,12 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1561
1578
|
this.gridApi?.setColumnsVisible(fields, !this.isEmbedded());
|
|
1562
1579
|
}
|
|
1563
1580
|
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 });
|
|
1581
|
+
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
1582
|
}
|
|
1566
1583
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NettyAgGridBase, decorators: [{
|
|
1567
1584
|
type: Component,
|
|
1568
1585
|
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 }] }] } });
|
|
1586
|
+
}], 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
1587
|
|
|
1571
1588
|
class ButtonRenderer {
|
|
1572
1589
|
params = null;
|
|
@@ -1721,20 +1738,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1721
1738
|
// ********************************************
|
|
1722
1739
|
// *** INPUTS ***
|
|
1723
1740
|
// ********************************************
|
|
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
1741
|
// Filter section
|
|
1739
1742
|
hasFilter = input(false, ...(ngDevMode ? [{ debugName: "hasFilter" }] : [])); // Does the component have a filter
|
|
1740
1743
|
isFilterValid = signal(true, ...(ngDevMode ? [{ debugName: "isFilterValid" }] : [])); // Can the filter be used
|
|
@@ -1964,10 +1967,6 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1964
1967
|
onFilterTextBoxVisibilityChange(isOpen) {
|
|
1965
1968
|
this.menuValid.set(!isOpen);
|
|
1966
1969
|
}
|
|
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
|
// ---------------------------------------------------
|