@nettyapps/ntybase 21.0.7 → 21.0.9

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.
@@ -120,6 +120,7 @@ var GANTT = {
120
120
  SHOWING_RESULTS: "Showing {{shown}} of {{total}}",
121
121
  NO_RESULTS_FOUND: "No results found matching your search criteria.",
122
122
  CLEAR_FILTERS: "Clear Filters",
123
+ DESCRIPTION: "Description",
123
124
  Create: "Add",
124
125
  GanttChartErrorLoadingComponent: "Error Loading Component"
125
126
  };
@@ -244,4 +245,4 @@ var enUSbase = {
244
245
  };
245
246
 
246
247
  export { AG_GRID, GANTT, enUSbase as default, mfaCode };
247
- //# sourceMappingURL=nettyapps-ntybase-en-USbase-Bp2ffXGK.mjs.map
248
+ //# sourceMappingURL=nettyapps-ntybase-en-USbase-D8jt8Fgo.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"nettyapps-ntybase-en-USbase-Bp2ffXGK.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"nettyapps-ntybase-en-USbase-D8jt8Fgo.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -120,6 +120,7 @@ var GANTT = {
120
120
  SHOWING_RESULTS: "{{shown}}/{{total}} gösteriliyor",
121
121
  NO_RESULTS_FOUND: "Arama kriterlerinize uygun sonuç bulunamadı.",
122
122
  CLEAR_FILTERS: "Filtreleri Temizle",
123
+ DESCRIPTION: "Açıklama",
123
124
  Create: "Ekle",
124
125
  GanttChartErrorLoadingComponent: "Component yüklenirken hata oluştu"
125
126
  };
@@ -244,4 +245,4 @@ var trTRbase = {
244
245
  };
245
246
 
246
247
  export { AG_GRID, GANTT, trTRbase as default, mfaCode };
247
- //# sourceMappingURL=nettyapps-ntybase-tr-TRbase-6UXSvhYH.mjs.map
248
+ //# sourceMappingURL=nettyapps-ntybase-tr-TRbase-BrIf0416.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"nettyapps-ntybase-tr-TRbase-6UXSvhYH.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"nettyapps-ntybase-tr-TRbase-BrIf0416.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1834,10 +1834,13 @@ class NettyAgGridSaveBase {
1834
1834
  route = inject(ActivatedRoute);
1835
1835
  commonService = inject(CommonService);
1836
1836
  alertService = inject(AlertService);
1837
+ environment = inject(EnvironmentProxy);
1838
+ dialog = inject(MatDialog);
1837
1839
  viewMode = signal('sidenav', ...(ngDevMode ? [{ debugName: "viewMode" }] : []));
1838
1840
  // Input signals
1839
1841
  parameters = input('', ...(ngDevMode ? [{ debugName: "parameters" }] : []));
1840
1842
  embedded = input(false, ...(ngDevMode ? [{ debugName: "embedded" }] : []));
1843
+ isEmbedded = input(false, ...(ngDevMode ? [{ debugName: "isEmbedded" }] : []));
1841
1844
  currentItem = signal({}, ...(ngDevMode ? [{ debugName: "currentItem" }] : []));
1842
1845
  initialItem = {};
1843
1846
  // Form tracking
@@ -1988,13 +1991,84 @@ class NettyAgGridSaveBase {
1988
1991
  }
1989
1992
  return true;
1990
1993
  }
1994
+ gotoURL(routePrefix, rightSidenav = [], parameters, type, dialogComponent = null, isNewTab = false, isPopup = this.isEmbedded()) {
1995
+ const baseHref = this.environment.getBaseHref().endsWith('/')
1996
+ ? this.environment.getBaseHref().slice(0, -1) // Sondaki / işaretini kaldır
1997
+ : this.environment.getBaseHref();
1998
+ const navigationExtras = {
1999
+ queryParams: {
2000
+ parameters: JSON.stringify(parameters),
2001
+ ...(type && { type }),
2002
+ isNewTab: isNewTab || undefined,
2003
+ },
2004
+ queryParamsHandling: 'merge',
2005
+ };
2006
+ if (isNewTab) {
2007
+ const fullUrl = this.router
2008
+ .createUrlTree([baseHref, ...routePrefix, ...rightSidenav], navigationExtras)
2009
+ .toString();
2010
+ window.open(fullUrl, '_blank');
2011
+ return;
2012
+ }
2013
+ if (isPopup && dialogComponent) {
2014
+ this.dialog
2015
+ .open(dialogComponent, {
2016
+ data: {
2017
+ parameters: parameters,
2018
+ mode: type || 'edit',
2019
+ embedded: true,
2020
+ },
2021
+ maxWidth: '100vw',
2022
+ disableClose: true,
2023
+ })
2024
+ .afterClosed()
2025
+ .subscribe((result) => {
2026
+ if (result === 'saved') {
2027
+ //this.updateRowInGrid;
2028
+ }
2029
+ });
2030
+ return;
2031
+ }
2032
+ // Log control
2033
+ if (rightSidenav.length == 0 || rightSidenav[0] === 'log') {
2034
+ this.router.navigate([baseHref, ...routePrefix, ...rightSidenav], navigationExtras);
2035
+ return;
2036
+ }
2037
+ // In all other cases, open the side menu
2038
+ this.router
2039
+ .navigate([
2040
+ {
2041
+ outlets: {
2042
+ primary: routePrefix,
2043
+ rightSidenav: [...routePrefix, ...rightSidenav],
2044
+ },
2045
+ },
2046
+ ], navigationExtras)
2047
+ .then(() => {
2048
+ // Ensure sidenav is opened after navigation
2049
+ this.commonService.toggleRightSidenav(true);
2050
+ });
2051
+ }
2052
+ popupGotoURL(urlSegments) {
2053
+ const baseHref = this.environment.getBaseHref().endsWith('/')
2054
+ ? this.environment.getBaseHref().slice(0, -1) // Sondaki / işaretini kaldır
2055
+ : this.environment.getBaseHref();
2056
+ this.router.navigate([
2057
+ {
2058
+ outlets: {
2059
+ primary: [baseHref, ...urlSegments],
2060
+ rightSidenav: null,
2061
+ },
2062
+ },
2063
+ ]);
2064
+ }
1991
2065
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: NettyAgGridSaveBase, deps: [], target: i0.ɵɵFactoryTarget.Component });
1992
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.3", type: NettyAgGridSaveBase, isStandalone: true, selector: "ntybase-ag-grid-save-base", inputs: { parameters: { classPropertyName: "parameters", publicName: "parameters", isSignal: true, isRequired: false, transformFunction: null }, embedded: { classPropertyName: "embedded", publicName: "embedded", isSignal: true, isRequired: false, transformFunction: null }, closeAfterSave: { classPropertyName: "closeAfterSave", publicName: "closeAfterSave", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closeAfterSave: "closeAfterSaveChange" }, viewQueries: [{ propertyName: "saveForm", first: true, predicate: ["saveForm"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<p>ag-grid-save-base works!</p>\n", styles: [""] });
2066
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.3", type: NettyAgGridSaveBase, isStandalone: true, selector: "ntybase-ag-grid-save-base", inputs: { parameters: { classPropertyName: "parameters", publicName: "parameters", isSignal: true, isRequired: false, transformFunction: null }, embedded: { classPropertyName: "embedded", publicName: "embedded", isSignal: true, isRequired: false, transformFunction: null }, isEmbedded: { classPropertyName: "isEmbedded", publicName: "isEmbedded", isSignal: true, isRequired: false, transformFunction: null }, closeAfterSave: { classPropertyName: "closeAfterSave", publicName: "closeAfterSave", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closeAfterSave: "closeAfterSaveChange" }, viewQueries: [{ propertyName: "saveForm", first: true, predicate: ["saveForm"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<p>ag-grid-save-base works!</p>\n", styles: [""] });
1993
2067
  }
1994
2068
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: NettyAgGridSaveBase, decorators: [{
1995
2069
  type: Component,
1996
2070
  args: [{ selector: 'ntybase-ag-grid-save-base', imports: [], template: "<p>ag-grid-save-base works!</p>\n" }]
1997
- }], propDecorators: { parameters: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameters", required: false }] }], embedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedded", required: false }] }], saveForm: [{
2071
+ }], propDecorators: { parameters: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameters", required: false }] }], embedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedded", required: false }] }], isEmbedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "isEmbedded", required: false }] }], saveForm: [{
1998
2072
  type: ViewChild,
1999
2073
  args: ['saveForm']
2000
2074
  }], closeAfterSave: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAfterSave", required: false }] }, { type: i0.Output, args: ["closeAfterSaveChange"] }] } });
@@ -3565,8 +3639,8 @@ class NettyBaseApp {
3565
3639
  i18nService = inject(I18nService);
3566
3640
  async loadBaseTranslations() {
3567
3641
  try {
3568
- const enUSBase = await import('./nettyapps-ntybase-en-USbase-Bp2ffXGK.mjs');
3569
- const trTRBase = await import('./nettyapps-ntybase-tr-TRbase-6UXSvhYH.mjs');
3642
+ const enUSBase = await import('./nettyapps-ntybase-en-USbase-D8jt8Fgo.mjs');
3643
+ const trTRBase = await import('./nettyapps-ntybase-tr-TRbase-BrIf0416.mjs');
3570
3644
  this.i18nService.addTranslations('English', enUSBase.default);
3571
3645
  this.i18nService.addTranslations('Türkçe', trTRBase.default);
3572
3646
  }