@nettyapps/ntybase 21.1.5 → 21.1.7
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.
|
@@ -2027,8 +2027,11 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
2027
2027
|
effect(() => {
|
|
2028
2028
|
const name = this.pageName();
|
|
2029
2029
|
if (name) {
|
|
2030
|
-
const translationKey = `@${name}`;
|
|
2030
|
+
const translationKey = name.startsWith('@') ? name : `@${name}`;
|
|
2031
2031
|
this.translateService.stream(translationKey).subscribe((translated) => {
|
|
2032
|
+
if (translated == translationKey) {
|
|
2033
|
+
translated = name;
|
|
2034
|
+
}
|
|
2032
2035
|
this.titleService.setTitle(`${translated}`);
|
|
2033
2036
|
this.pageTitleService.setTitle(translated);
|
|
2034
2037
|
});
|
|
@@ -2093,7 +2096,7 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
2093
2096
|
}
|
|
2094
2097
|
currentPageTitle = computed(() => {
|
|
2095
2098
|
const name = this.pageName();
|
|
2096
|
-
return name ? `@${name}` : '@Page_Title';
|
|
2099
|
+
return name ? name.startsWith('@') ? name : `@${name}` : '@Page_Title';
|
|
2097
2100
|
}, ...(ngDevMode ? [{ debugName: "currentPageTitle" }] : []));
|
|
2098
2101
|
// *****************************************
|
|
2099
2102
|
// *** Logging Functions ***
|
|
@@ -4476,6 +4479,7 @@ class NettyAppsFilterBase extends NettyAppsBase {
|
|
|
4476
4479
|
// *********************************************************
|
|
4477
4480
|
isFilterExpanded = model(true, ...(ngDevMode ? [{ debugName: "isFilterExpanded" }] : []));
|
|
4478
4481
|
filteredRecords = output();
|
|
4482
|
+
filterSelectionChanged = output();
|
|
4479
4483
|
refresh = input(0, ...(ngDevMode ? [{ debugName: "refresh" }] : []));
|
|
4480
4484
|
fileName = input('nettyapps_', ...(ngDevMode ? [{ debugName: "fileName" }] : []));
|
|
4481
4485
|
// *********************************************************
|
|
@@ -4504,6 +4508,7 @@ class NettyAppsFilterBase extends NettyAppsBase {
|
|
|
4504
4508
|
this.afterOnInit();
|
|
4505
4509
|
}
|
|
4506
4510
|
onApply() {
|
|
4511
|
+
this.filterSelectionChanged.emit(this.currentItem());
|
|
4507
4512
|
this.filterProxy.selectFilter(this.currentItem()).subscribe({
|
|
4508
4513
|
next: (result) => {
|
|
4509
4514
|
this.filteredRecords.emit(result);
|
|
@@ -4516,11 +4521,13 @@ class NettyAppsFilterBase extends NettyAppsBase {
|
|
|
4516
4521
|
this.filterProxy.initFilter().subscribe({
|
|
4517
4522
|
next: (filter) => {
|
|
4518
4523
|
this.currentItem.set(filter);
|
|
4524
|
+
this.filterSelectionChanged.emit(this.currentItem());
|
|
4519
4525
|
},
|
|
4520
4526
|
error: (err) => this.alertService.showError('@dataLoadFailed', err),
|
|
4521
4527
|
});
|
|
4522
4528
|
}
|
|
4523
4529
|
onExport() {
|
|
4530
|
+
this.filterSelectionChanged.emit(this.currentItem());
|
|
4524
4531
|
this.filterProxy.downloadXLS(this.currentItem()).subscribe({
|
|
4525
4532
|
next: (response) => {
|
|
4526
4533
|
this.downloadBlobFile(response, 'application/zip', this.translateService.instant('@00000072') + '.zip');
|
|
@@ -4544,12 +4551,12 @@ class NettyAppsFilterBase extends NettyAppsBase {
|
|
|
4544
4551
|
console.log(message, inputs);
|
|
4545
4552
|
}
|
|
4546
4553
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: NettyAppsFilterBase, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4547
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.2", type: NettyAppsFilterBase, isStandalone: true, selector: "ntybase-netty-apps-base", inputs: { isFilterExpanded: { classPropertyName: "isFilterExpanded", publicName: "isFilterExpanded", isSignal: true, isRequired: false, transformFunction: null }, refresh: { classPropertyName: "refresh", publicName: "refresh", isSignal: true, isRequired: false, transformFunction: null }, fileName: { classPropertyName: "fileName", publicName: "fileName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isFilterExpanded: "isFilterExpandedChange", filteredRecords: "filteredRecords" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
4554
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.2", type: NettyAppsFilterBase, isStandalone: true, selector: "ntybase-netty-apps-base", inputs: { isFilterExpanded: { classPropertyName: "isFilterExpanded", publicName: "isFilterExpanded", isSignal: true, isRequired: false, transformFunction: null }, refresh: { classPropertyName: "refresh", publicName: "refresh", isSignal: true, isRequired: false, transformFunction: null }, fileName: { classPropertyName: "fileName", publicName: "fileName", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isFilterExpanded: "isFilterExpandedChange", filteredRecords: "filteredRecords", filterSelectionChanged: "filterSelectionChanged" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
4548
4555
|
}
|
|
4549
4556
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: NettyAppsFilterBase, decorators: [{
|
|
4550
4557
|
type: Component,
|
|
4551
4558
|
args: [{ selector: 'ntybase-netty-apps-base', imports: [], template: `` }]
|
|
4552
|
-
}], ctorParameters: () => [], propDecorators: { isFilterExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "isFilterExpanded", required: false }] }, { type: i0.Output, args: ["isFilterExpandedChange"] }], filteredRecords: [{ type: i0.Output, args: ["filteredRecords"] }], refresh: [{ type: i0.Input, args: [{ isSignal: true, alias: "refresh", required: false }] }], fileName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileName", required: false }] }] } });
|
|
4559
|
+
}], ctorParameters: () => [], propDecorators: { isFilterExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "isFilterExpanded", required: false }] }, { type: i0.Output, args: ["isFilterExpandedChange"] }], filteredRecords: [{ type: i0.Output, args: ["filteredRecords"] }], filterSelectionChanged: [{ type: i0.Output, args: ["filterSelectionChanged"] }], refresh: [{ type: i0.Input, args: [{ isSignal: true, alias: "refresh", required: false }] }], fileName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileName", required: false }] }] } });
|
|
4553
4560
|
|
|
4554
4561
|
/*
|
|
4555
4562
|
* Public API Surface of ntybase
|