@nettyapps/ntybase 21.1.4 → 21.1.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.
- package/fesm2022/{nettyapps-ntybase-en-USbase-D7pL5P5F.mjs → nettyapps-ntybase-en-USbase-DV4K7MNJ.mjs} +4 -1
- package/fesm2022/{nettyapps-ntybase-en-USbase-D7pL5P5F.mjs.map → nettyapps-ntybase-en-USbase-DV4K7MNJ.mjs.map} +1 -1
- package/fesm2022/{nettyapps-ntybase-tr-TRbase-qP6vLxd4.mjs → nettyapps-ntybase-tr-TRbase-Dvw5DW_f.mjs} +4 -1
- package/fesm2022/{nettyapps-ntybase-tr-TRbase-qP6vLxd4.mjs.map → nettyapps-ntybase-tr-TRbase-Dvw5DW_f.mjs.map} +1 -1
- package/fesm2022/nettyapps-ntybase.mjs +39 -6
- package/fesm2022/nettyapps-ntybase.mjs.map +1 -1
- package/package.json +1 -1
- package/translations/en-USbase.json +3 -0
- package/translations/tr-TRbase.json +3 -0
- package/types/nettyapps-ntybase.d.ts +13 -1
|
@@ -148,12 +148,14 @@ var enUSbase = {
|
|
|
148
148
|
"@btnCancel": "Cancel",
|
|
149
149
|
"@btnOK": "OK",
|
|
150
150
|
"@btnSave": "Save",
|
|
151
|
+
"@calculate": "Calculate",
|
|
151
152
|
"@changeCompany": "Change Company",
|
|
152
153
|
"@choose_Color": "Choose Color",
|
|
153
154
|
"@choose_Custom_Color": "Please choose custom color",
|
|
154
155
|
"@close": "Close",
|
|
155
156
|
"@color_Palette": "Color Palette",
|
|
156
157
|
"@confirmation": "Confirmation",
|
|
158
|
+
"@confirmCalculation": "Are you sure you want to start calculation?",
|
|
157
159
|
"@confirmDeleteSelectedRecords": "Are you sure you want to delete the selected records?",
|
|
158
160
|
"@connectionError": "Connection problem. Please check your network.",
|
|
159
161
|
"@copiedToClipboard": "Copied",
|
|
@@ -212,6 +214,7 @@ var enUSbase = {
|
|
|
212
214
|
"@standard_Colors": "Standard Colors",
|
|
213
215
|
"@statusActive": "Active",
|
|
214
216
|
"@statusInactive": "Inactive",
|
|
217
|
+
"@success": "Success",
|
|
215
218
|
"@tokenCount": "Token valid for",
|
|
216
219
|
"@unsavedChangesConfirm": "You have unsaved changes. Are you sure you want to leave?",
|
|
217
220
|
"@updateFailed": "Update failed",
|
|
@@ -271,4 +274,4 @@ var enUSbase = {
|
|
|
271
274
|
};
|
|
272
275
|
|
|
273
276
|
export { AG_GRID, DASHBOARD, ENVIRONMENT_INFO, GANTT, enUSbase as default, mfaCode };
|
|
274
|
-
//# sourceMappingURL=nettyapps-ntybase-en-USbase-
|
|
277
|
+
//# sourceMappingURL=nettyapps-ntybase-en-USbase-DV4K7MNJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nettyapps-ntybase-en-USbase-
|
|
1
|
+
{"version":3,"file":"nettyapps-ntybase-en-USbase-DV4K7MNJ.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -148,12 +148,14 @@ var trTRbase = {
|
|
|
148
148
|
"@btnCancel": "İptal",
|
|
149
149
|
"@btnOK": "Tamam",
|
|
150
150
|
"@btnSave": "Kaydet",
|
|
151
|
+
"@calculate": "Hesapla",
|
|
151
152
|
"@changeCompany": "Şirket Değiştir",
|
|
152
153
|
"@choose_Color": "Renk Seçin",
|
|
153
154
|
"@choose_Custom_Color": "Lütfen özel renk seçin",
|
|
154
155
|
"@close": "Kapat",
|
|
155
156
|
"@color_Palette": "Renk Paleti",
|
|
156
157
|
"@confirmation": "Onay",
|
|
158
|
+
"@confirmCalculation": "Hesaplamayı başlatmak istediğinize emin misiniz?",
|
|
157
159
|
"@confirmDeleteSelectedRecords": "Seçili kayıtları silmek istediğinize emin misiniz?",
|
|
158
160
|
"@connectionError": "Bağlantı hatası. Lütfen internet bağlantınızı kontrol edin.",
|
|
159
161
|
"@copiedToClipboard": "Kopyalandı",
|
|
@@ -212,6 +214,7 @@ var trTRbase = {
|
|
|
212
214
|
"@standard_Colors": "Standart Renkler",
|
|
213
215
|
"@statusActive": "Aktif",
|
|
214
216
|
"@statusInactive": "Pasif",
|
|
217
|
+
"@success": "Başarılı",
|
|
215
218
|
"@tokenCount": "Token geçerlilik süresi",
|
|
216
219
|
"@unsavedChangesConfirm": "Kaydedilmemiş değişiklikler var. Ayrılmak istediğinize emin misiniz?",
|
|
217
220
|
"@updateFailed": "Güncelleme başarısız oldu",
|
|
@@ -271,4 +274,4 @@ var trTRbase = {
|
|
|
271
274
|
};
|
|
272
275
|
|
|
273
276
|
export { AG_GRID, DASHBOARD, ENVIRONMENT_INFO, GANTT, trTRbase as default, mfaCode };
|
|
274
|
-
//# sourceMappingURL=nettyapps-ntybase-tr-TRbase-
|
|
277
|
+
//# sourceMappingURL=nettyapps-ntybase-tr-TRbase-Dvw5DW_f.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nettyapps-ntybase-tr-TRbase-
|
|
1
|
+
{"version":3,"file":"nettyapps-ntybase-tr-TRbase-Dvw5DW_f.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -27,6 +27,7 @@ import * as i2$2 from '@angular/material/tooltip';
|
|
|
27
27
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
28
28
|
import * as i2$3 from '@angular/material/menu';
|
|
29
29
|
import { MatMenuModule } from '@angular/material/menu';
|
|
30
|
+
import { Title } from '@angular/platform-browser';
|
|
30
31
|
import * as XLSX from 'xlsx';
|
|
31
32
|
import { I18nService } from '@nettyapps/ntyi18n';
|
|
32
33
|
import * as i1$4 from '@angular/forms';
|
|
@@ -1282,6 +1283,7 @@ class NettyAgGridBase extends NettyAppsBase {
|
|
|
1282
1283
|
searchValueName = signal('Invalid_searchValue', ...(ngDevMode ? [{ debugName: "searchValueName" }] : []));
|
|
1283
1284
|
preferenceType = signal('Invalid_columnState', ...(ngDevMode ? [{ debugName: "preferenceType" }] : []));
|
|
1284
1285
|
searchValue = signal('', ...(ngDevMode ? [{ debugName: "searchValue" }] : []));
|
|
1286
|
+
pageName = signal('', ...(ngDevMode ? [{ debugName: "pageName" }] : []));
|
|
1285
1287
|
// Query Parameters can be provide as parameters
|
|
1286
1288
|
parameterGUID = signal('', ...(ngDevMode ? [{ debugName: "parameterGUID" }] : []));
|
|
1287
1289
|
parameterType = signal('', ...(ngDevMode ? [{ debugName: "parameterType" }] : []));
|
|
@@ -1813,6 +1815,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
1813
1815
|
args: [{ selector: 'ntybase-checkbox-renderer', imports: [], host: { 'ntybase-id': 'CheckboxRenderer' }, template: "@if (supportClick) {\n<input\n id=\"checkbox\"\n type=\"checkbox\"\n [checked]=\"checked\"\n (click)=\"onClick($event)\"\n/>\n} @if (!supportClick) {\n<input id=\"checkbox\" type=\"checkbox\" [checked]=\"params.value\" disabled />\n}\n\n<label for=\"checkbox\">{{label}}</label>\n" }]
|
|
1814
1816
|
}] });
|
|
1815
1817
|
|
|
1818
|
+
class PageTitle {
|
|
1819
|
+
title = signal('', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
1820
|
+
setTitle(newTitle) {
|
|
1821
|
+
this.title.set(newTitle);
|
|
1822
|
+
}
|
|
1823
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: PageTitle, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1824
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: PageTitle, providedIn: 'root' });
|
|
1825
|
+
}
|
|
1826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: PageTitle, decorators: [{
|
|
1827
|
+
type: Injectable,
|
|
1828
|
+
args: [{
|
|
1829
|
+
providedIn: 'root',
|
|
1830
|
+
}]
|
|
1831
|
+
}] });
|
|
1832
|
+
|
|
1816
1833
|
ModuleRegistry.registerModules([AllCommunityModule, StatusBarModule, ClientSideRowModelModule, ClipboardModule, ExcelExportModule, ColumnMenuModule,
|
|
1817
1834
|
ContextMenuModule, CellSelectionModule, HighlightChangesModule, RowSelectionModule,]);
|
|
1818
1835
|
// AgGrid Dark Mode Row Style
|
|
@@ -1824,6 +1841,8 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
1824
1841
|
router = inject(Router);
|
|
1825
1842
|
routerActive = inject(ActivatedRoute);
|
|
1826
1843
|
dialog = inject(MatDialog);
|
|
1844
|
+
titleService = inject(Title);
|
|
1845
|
+
pageTitleService = inject(PageTitle);
|
|
1827
1846
|
// Parse query parameters
|
|
1828
1847
|
queryParameterGUID = toSignal(this.routerActive.queryParamMap.pipe(map((params) => params.get('parameters')), map((value) => this.parseOrReturnValue(value))), {
|
|
1829
1848
|
initialValue: null, // set initial value to null
|
|
@@ -2005,6 +2024,16 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
2005
2024
|
this._isEmbedded();
|
|
2006
2025
|
this.showHideEmbeddedColumnsAsync();
|
|
2007
2026
|
});
|
|
2027
|
+
effect(() => {
|
|
2028
|
+
const name = this.pageName();
|
|
2029
|
+
if (name) {
|
|
2030
|
+
const translationKey = `@${name}`;
|
|
2031
|
+
this.translateService.stream(translationKey).subscribe((translated) => {
|
|
2032
|
+
this.titleService.setTitle(`${translated}`);
|
|
2033
|
+
this.pageTitleService.setTitle(translated);
|
|
2034
|
+
});
|
|
2035
|
+
}
|
|
2036
|
+
});
|
|
2008
2037
|
}
|
|
2009
2038
|
/**
|
|
2010
2039
|
* Validates if the given value is equal to null,undefined or ''
|
|
@@ -2062,6 +2091,10 @@ class NettyAgGridListBase extends NettyAgGridBase {
|
|
|
2062
2091
|
error: (err) => this.alertService.showError(err),
|
|
2063
2092
|
});
|
|
2064
2093
|
}
|
|
2094
|
+
currentPageTitle = computed(() => {
|
|
2095
|
+
const name = this.pageName();
|
|
2096
|
+
return name ? `@${name}` : '@Page_Title';
|
|
2097
|
+
}, ...(ngDevMode ? [{ debugName: "currentPageTitle" }] : []));
|
|
2065
2098
|
// *****************************************
|
|
2066
2099
|
// *** Logging Functions ***
|
|
2067
2100
|
// *****************************************
|
|
@@ -4249,8 +4282,8 @@ class NettyBaseApp {
|
|
|
4249
4282
|
i18nService = inject(I18nService);
|
|
4250
4283
|
async loadBaseTranslations() {
|
|
4251
4284
|
try {
|
|
4252
|
-
const enUSBase = await import('./nettyapps-ntybase-en-USbase-
|
|
4253
|
-
const trTRBase = await import('./nettyapps-ntybase-tr-TRbase-
|
|
4285
|
+
const enUSBase = await import('./nettyapps-ntybase-en-USbase-DV4K7MNJ.mjs');
|
|
4286
|
+
const trTRBase = await import('./nettyapps-ntybase-tr-TRbase-Dvw5DW_f.mjs');
|
|
4254
4287
|
this.i18nService.addTranslations('English', enUSBase.default);
|
|
4255
4288
|
this.i18nService.addTranslations('Türkçe', trTRBase.default);
|
|
4256
4289
|
}
|
|
@@ -4277,13 +4310,13 @@ class EnvironmentInfo {
|
|
|
4277
4310
|
return this.environmentProxy.version() ?? "";
|
|
4278
4311
|
}
|
|
4279
4312
|
get isProduction() {
|
|
4280
|
-
return
|
|
4313
|
+
return this.environmentProxy.isProduction();
|
|
4281
4314
|
}
|
|
4282
4315
|
get defaultLanguage() {
|
|
4283
|
-
return
|
|
4316
|
+
return this.environmentProxy.defaultLanguage();
|
|
4284
4317
|
}
|
|
4285
4318
|
get supportedLanguages() {
|
|
4286
|
-
return
|
|
4319
|
+
return this.environmentProxy.supportedLanguages();
|
|
4287
4320
|
}
|
|
4288
4321
|
get apiUrl() {
|
|
4289
4322
|
return this.environmentProxy.apiUrl();
|
|
@@ -4526,5 +4559,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
|
|
|
4526
4559
|
* Generated bundle index. Do not edit.
|
|
4527
4560
|
*/
|
|
4528
4561
|
|
|
4529
|
-
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, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
|
|
4562
|
+
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 };
|
|
4530
4563
|
//# sourceMappingURL=nettyapps-ntybase.mjs.map
|