@nettyapps/ntybase 21.1.9 → 21.1.10
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.
|
@@ -1607,28 +1607,37 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1607
1607
|
// ---------------------------------------------
|
|
1608
1608
|
onShowHideColumns() {
|
|
1609
1609
|
this.gridColumnsVisible.update((a) => !a);
|
|
1610
|
-
this.
|
|
1611
|
-
}
|
|
1612
|
-
showHideColumnsAsync() {
|
|
1613
|
-
setTimeout(() => this.showHideColumns(), 400);
|
|
1614
|
-
}
|
|
1615
|
-
showHideColumns() {
|
|
1616
|
-
var fields = this.columnDefs()
|
|
1617
|
-
.filter((columnDef) => columnDef.ntyHide === 'x')
|
|
1618
|
-
.map((columnDef) => columnDef.field);
|
|
1619
|
-
this.gridApi?.setColumnsVisible(fields, this.gridColumnsVisible());
|
|
1620
|
-
}
|
|
1621
|
-
showHideEmbeddedColumnsAsync() {
|
|
1622
|
-
setTimeout(() => this.showHideEmbeddedColumns(), 100);
|
|
1610
|
+
this.initAgGrid();
|
|
1623
1611
|
}
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1612
|
+
// showHideColumnsAsync() {
|
|
1613
|
+
// setTimeout(() => this.showHideColumns(), 400);
|
|
1614
|
+
// }
|
|
1615
|
+
// showHideColumns() {
|
|
1616
|
+
// var fields = this.columnDefs()
|
|
1617
|
+
// .filter((columnDef: any) => columnDef.ntyHide === 'x')
|
|
1618
|
+
// .map((columnDef: any) => columnDef.field);
|
|
1619
|
+
// this.gridApi?.setColumnsVisible(fields, this.gridColumnsVisible());
|
|
1620
|
+
// }
|
|
1621
|
+
// showHideEmbeddedColumnsAsync() {
|
|
1622
|
+
// setTimeout(() => this.showHideEmbeddedColumns(), 100);
|
|
1623
|
+
// }
|
|
1624
|
+
// showHideEmbeddedColumns() {
|
|
1625
|
+
// if (this.columnDefs() == undefined || this.columnDefs() == null) {
|
|
1626
|
+
// return;
|
|
1627
|
+
// }
|
|
1628
|
+
// var fields = this.columnDefs()
|
|
1629
|
+
// .filter((columnDef: any) => columnDef.ntyEmbeddedHide == 'x')
|
|
1630
|
+
// .map((columnDef: any) => columnDef.field);
|
|
1631
|
+
// this.gridApi?.setColumnsVisible(fields, !this._isEmbedded());
|
|
1632
|
+
// }
|
|
1633
|
+
isHidden(isEmbeddedHide, isVisibleHide) {
|
|
1634
|
+
const isEmbedded = this._isEmbedded();
|
|
1635
|
+
const isVisibleSwitchOn = this.gridColumnsVisible();
|
|
1636
|
+
if (isVisibleHide && !isVisibleSwitchOn)
|
|
1637
|
+
return true;
|
|
1638
|
+
if (isEmbeddedHide && isEmbedded)
|
|
1639
|
+
return true;
|
|
1640
|
+
return false;
|
|
1632
1641
|
}
|
|
1633
1642
|
// *****************************************
|
|
1634
1643
|
// *** Logging Functions ***
|
|
@@ -2026,7 +2035,7 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
2026
2035
|
// Manage filter expanded state
|
|
2027
2036
|
effect(() => {
|
|
2028
2037
|
this._isEmbedded();
|
|
2029
|
-
this.
|
|
2038
|
+
this.initAgGrid();
|
|
2030
2039
|
});
|
|
2031
2040
|
effect(() => {
|
|
2032
2041
|
const name = this.pageName();
|
|
@@ -4570,5 +4579,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
4570
4579
|
* Generated bundle index. Do not edit.
|
|
4571
4580
|
*/
|
|
4572
4581
|
|
|
4573
|
-
export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Login, LoginDto, MFACodeDto, MfaLogin, NettyAgGridBase, NettyAgGridListBase, NettyAgGridListFilterBase, NettyAgGridLogBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyAppsFilterBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyLoadingComponent, NtyLoadingInterceptor, Ntybase, NtybaseModule, PageTitle, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
|
|
4582
|
+
export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Login, LoginDto, MFACodeDto, MfaLogin, NettyAgGridBase, NettyAgGridListBase, NettyAgGridListFilterBase, NettyAgGridLogBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyAppsFilterBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyLoadingComponent, NtyLoadingInterceptor, NtyLoadingService, Ntybase, NtybaseModule, PageTitle, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
|
|
4574
4583
|
//# sourceMappingURL=nettyapps-ntybase.mjs.map
|