@nettyapps/ntybase 21.0.15 → 21.0.18
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/fesm2022/{nettyapps-ntybase-en-USbase-BVtoVBU3.mjs → nettyapps-ntybase-en-USbase-BiAVQmCh.mjs} +4 -2
- package/fesm2022/{nettyapps-ntybase-en-USbase-BVtoVBU3.mjs.map → nettyapps-ntybase-en-USbase-BiAVQmCh.mjs.map} +1 -1
- package/fesm2022/{nettyapps-ntybase-tr-TRbase-BPeaVYNs.mjs → nettyapps-ntybase-tr-TRbase-DsdNRueU.mjs} +4 -2
- package/fesm2022/{nettyapps-ntybase-tr-TRbase-BPeaVYNs.mjs.map → nettyapps-ntybase-tr-TRbase-DsdNRueU.mjs.map} +1 -1
- package/fesm2022/nettyapps-ntybase.mjs +39 -2
- package/fesm2022/nettyapps-ntybase.mjs.map +1 -1
- package/package.json +6 -3
- package/translations/en-USbase.json +3 -1
- package/translations/tr-TRbase.json +3 -1
- package/types/nettyapps-ntybase.d.ts +6 -0
|
@@ -262,8 +262,10 @@ var enUSbase = {
|
|
|
262
262
|
"@defaultFilterActive": "Default Filter Active - Switch to Custom",
|
|
263
263
|
"@customFilterModeEnabled": "Custom Filter Mode Enabled",
|
|
264
264
|
"@defaultFilterModeEnabled": "Default Filter Mode Enabled",
|
|
265
|
-
"@invalidFormat": "Invalid Format"
|
|
265
|
+
"@invalidFormat": "Invalid Format",
|
|
266
|
+
"@openInPopup": "Records open as pop-ups now",
|
|
267
|
+
"@openInSidenav": "Records will now open in the sidenav"
|
|
266
268
|
};
|
|
267
269
|
|
|
268
270
|
export { AG_GRID, DASHBOARD, ENVIRONMENT_INFO, GANTT, enUSbase as default, mfaCode };
|
|
269
|
-
//# sourceMappingURL=nettyapps-ntybase-en-USbase-
|
|
271
|
+
//# sourceMappingURL=nettyapps-ntybase-en-USbase-BiAVQmCh.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nettyapps-ntybase-en-USbase-
|
|
1
|
+
{"version":3,"file":"nettyapps-ntybase-en-USbase-BiAVQmCh.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -262,8 +262,10 @@ var trTRbase = {
|
|
|
262
262
|
"@defaultFilterActive": "Varsayılan Filtre Aktif - Özele Geç",
|
|
263
263
|
"@customFilterModeEnabled": "Özel Filtre Modu Aktif",
|
|
264
264
|
"@defaultFilterModeEnabled": "Varsayılan Filtre Modu Aktif",
|
|
265
|
-
"@invalidFormat": "Geçersiz Format"
|
|
265
|
+
"@invalidFormat": "Geçersiz Format",
|
|
266
|
+
"@openInPopup": "Kayıtlar artık açılır pencerede görüntülenecek",
|
|
267
|
+
"@openInSidenav": "Kayıtlar artık yan panelde görüntülenecek"
|
|
266
268
|
};
|
|
267
269
|
|
|
268
270
|
export { AG_GRID, DASHBOARD, ENVIRONMENT_INFO, GANTT, trTRbase as default, mfaCode };
|
|
269
|
-
//# sourceMappingURL=nettyapps-ntybase-tr-TRbase-
|
|
271
|
+
//# sourceMappingURL=nettyapps-ntybase-tr-TRbase-DsdNRueU.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nettyapps-ntybase-tr-TRbase-
|
|
1
|
+
{"version":3,"file":"nettyapps-ntybase-tr-TRbase-DsdNRueU.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1198,6 +1198,9 @@ class NettyAgGridBase {
|
|
|
1198
1198
|
onElementSelect = output();
|
|
1199
1199
|
// AG Grid Filter
|
|
1200
1200
|
customFilters = signal(this.getStoredFilterMode(), ...(ngDevMode ? [{ debugName: "customFilters" }] : []));
|
|
1201
|
+
// Filter section
|
|
1202
|
+
isFilterValid = signal(true, ...(ngDevMode ? [{ debugName: "isFilterValid" }] : []));
|
|
1203
|
+
isFilterExpanded = signal(true, ...(ngDevMode ? [{ debugName: "isFilterExpanded" }] : []));
|
|
1201
1204
|
// Authentication
|
|
1202
1205
|
authenticationList = [];
|
|
1203
1206
|
// User access writes
|
|
@@ -1236,6 +1239,8 @@ class NettyAgGridBase {
|
|
|
1236
1239
|
searchValueName = signal('Invalid_searchValue', ...(ngDevMode ? [{ debugName: "searchValueName" }] : []));
|
|
1237
1240
|
preferenceType = signal('Invalid_columnState', ...(ngDevMode ? [{ debugName: "preferenceType" }] : []));
|
|
1238
1241
|
searchValue = signal('', ...(ngDevMode ? [{ debugName: "searchValue" }] : []));
|
|
1242
|
+
// Open component management
|
|
1243
|
+
openInPopup = signal(false, ...(ngDevMode ? [{ debugName: "openInPopup" }] : []));
|
|
1239
1244
|
// Services
|
|
1240
1245
|
nettyAgGridService = inject(NettyAgGridService);
|
|
1241
1246
|
translateService = inject(TranslateService);
|
|
@@ -1539,6 +1544,7 @@ class NettyAgGridBase {
|
|
|
1539
1544
|
},
|
|
1540
1545
|
maxWidth: '100vw',
|
|
1541
1546
|
disableClose: true,
|
|
1547
|
+
hasBackdrop: false,
|
|
1542
1548
|
})
|
|
1543
1549
|
.afterClosed()
|
|
1544
1550
|
.subscribe((result) => {
|
|
@@ -1581,6 +1587,13 @@ class NettyAgGridBase {
|
|
|
1581
1587
|
},
|
|
1582
1588
|
]);
|
|
1583
1589
|
}
|
|
1590
|
+
toggleOpenMode() {
|
|
1591
|
+
const newMode = !this.openInPopup();
|
|
1592
|
+
this.openInPopup.set(newMode);
|
|
1593
|
+
localStorage.setItem('openInPopup', JSON.stringify(newMode));
|
|
1594
|
+
const message = newMode ? '@openInPopup' : '@openInSidenav';
|
|
1595
|
+
this.alertService.showSuccess(message);
|
|
1596
|
+
}
|
|
1584
1597
|
/**
|
|
1585
1598
|
* Listens for update events from CommonService and refreshes the grid accordingly.
|
|
1586
1599
|
* - For 'add' or 'update' actions: Updates the relevant row
|
|
@@ -1594,6 +1607,10 @@ class NettyAgGridBase {
|
|
|
1594
1607
|
buttonRenderer: ButtonRenderer,
|
|
1595
1608
|
checkboxRenderer: CheckboxRenderer,
|
|
1596
1609
|
};
|
|
1610
|
+
const savedMode = localStorage.getItem('openInPopup');
|
|
1611
|
+
if (savedMode !== null) {
|
|
1612
|
+
this.openInPopup.set(JSON.parse(savedMode) === true);
|
|
1613
|
+
}
|
|
1597
1614
|
this.translateService.onLangChange.subscribe(() => {
|
|
1598
1615
|
this.setAgGridTranslations();
|
|
1599
1616
|
});
|
|
@@ -1635,6 +1652,23 @@ class NettyAgGridBase {
|
|
|
1635
1652
|
effect(() => {
|
|
1636
1653
|
this.onElementSelect.emit(this.selectedRows());
|
|
1637
1654
|
});
|
|
1655
|
+
// Manage filter expanded state
|
|
1656
|
+
effect(() => {
|
|
1657
|
+
if (this.isEmbedded()) {
|
|
1658
|
+
this.isFilterExpanded.set(false);
|
|
1659
|
+
}
|
|
1660
|
+
else {
|
|
1661
|
+
this.isFilterExpanded.set(this.isFilterValid());
|
|
1662
|
+
}
|
|
1663
|
+
});
|
|
1664
|
+
}
|
|
1665
|
+
onReverseIsFilterValid() {
|
|
1666
|
+
if (this.isEmbedded()) {
|
|
1667
|
+
this.isFilterExpanded.set(false);
|
|
1668
|
+
}
|
|
1669
|
+
else {
|
|
1670
|
+
this.isFilterValid.update((a) => !a);
|
|
1671
|
+
}
|
|
1638
1672
|
}
|
|
1639
1673
|
/**
|
|
1640
1674
|
* Validates if the given value is equal to null,undefined or ''
|
|
@@ -1883,6 +1917,9 @@ class NettyAgGridSaveBase {
|
|
|
1883
1917
|
this.viewMode.set('fullscreen');
|
|
1884
1918
|
}
|
|
1885
1919
|
}
|
|
1920
|
+
ngOnInit() {
|
|
1921
|
+
this.loadDetailData();
|
|
1922
|
+
}
|
|
1886
1923
|
/**
|
|
1887
1924
|
* Set data to the form while preserving any unsaved changes
|
|
1888
1925
|
* @param item - Data object of type T to populate the form
|
|
@@ -3648,8 +3685,8 @@ class NettyBaseApp {
|
|
|
3648
3685
|
i18nService = inject(I18nService);
|
|
3649
3686
|
async loadBaseTranslations() {
|
|
3650
3687
|
try {
|
|
3651
|
-
const enUSBase = await import('./nettyapps-ntybase-en-USbase-
|
|
3652
|
-
const trTRBase = await import('./nettyapps-ntybase-tr-TRbase-
|
|
3688
|
+
const enUSBase = await import('./nettyapps-ntybase-en-USbase-BiAVQmCh.mjs');
|
|
3689
|
+
const trTRBase = await import('./nettyapps-ntybase-tr-TRbase-DsdNRueU.mjs');
|
|
3653
3690
|
this.i18nService.addTranslations('English', enUSBase.default);
|
|
3654
3691
|
this.i18nService.addTranslations('Türkçe', trTRBase.default);
|
|
3655
3692
|
}
|