@nettyapps/ntybase 21.0.6 → 21.0.8
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-DTtwiiVT.mjs → nettyapps-ntybase-en-USbase-Bp2ffXGK.mjs} +8 -1
- package/fesm2022/{nettyapps-ntybase-en-USbase-DTtwiiVT.mjs.map → nettyapps-ntybase-en-USbase-Bp2ffXGK.mjs.map} +1 -1
- package/fesm2022/{nettyapps-ntybase-tr-TRbase-DVtOGKau.mjs → nettyapps-ntybase-tr-TRbase-6UXSvhYH.mjs} +8 -1
- package/fesm2022/{nettyapps-ntybase-tr-TRbase-DVtOGKau.mjs.map → nettyapps-ntybase-tr-TRbase-6UXSvhYH.mjs.map} +1 -1
- package/fesm2022/nettyapps-ntybase.mjs +80 -5
- package/fesm2022/nettyapps-ntybase.mjs.map +1 -1
- package/package.json +1 -1
- package/translations/en-USbase.json +7 -0
- package/translations/tr-TRbase.json +7 -0
- package/types/nettyapps-ntybase.d.ts +6 -1
|
@@ -113,6 +113,13 @@ var GANTT = {
|
|
|
113
113
|
PREPARATION: "Preparation",
|
|
114
114
|
PRODUCTION: "Production",
|
|
115
115
|
CLEANING: "Cleaning",
|
|
116
|
+
SEARCH_RESOURCE_PLACEHOLDER: "Search by resource...",
|
|
117
|
+
SEARCH_TASK_NAME_PLACEHOLDER: "Search by production order...",
|
|
118
|
+
CLEAR_ALL_FILTERS_TOOLTIP: "Clear all filters",
|
|
119
|
+
CLEAR_ALL_FILTERS: "Clear",
|
|
120
|
+
SHOWING_RESULTS: "Showing {{shown}} of {{total}}",
|
|
121
|
+
NO_RESULTS_FOUND: "No results found matching your search criteria.",
|
|
122
|
+
CLEAR_FILTERS: "Clear Filters",
|
|
116
123
|
Create: "Add",
|
|
117
124
|
GanttChartErrorLoadingComponent: "Error Loading Component"
|
|
118
125
|
};
|
|
@@ -237,4 +244,4 @@ var enUSbase = {
|
|
|
237
244
|
};
|
|
238
245
|
|
|
239
246
|
export { AG_GRID, GANTT, enUSbase as default, mfaCode };
|
|
240
|
-
//# sourceMappingURL=nettyapps-ntybase-en-USbase-
|
|
247
|
+
//# sourceMappingURL=nettyapps-ntybase-en-USbase-Bp2ffXGK.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nettyapps-ntybase-en-USbase-
|
|
1
|
+
{"version":3,"file":"nettyapps-ntybase-en-USbase-Bp2ffXGK.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -113,6 +113,13 @@ var GANTT = {
|
|
|
113
113
|
PREPARATION: "Hazırlık",
|
|
114
114
|
PRODUCTION: "Üretim",
|
|
115
115
|
CLEANING: "Temizlik",
|
|
116
|
+
SEARCH_RESOURCE_PLACEHOLDER: "Kaynağa göre ara..",
|
|
117
|
+
SEARCH_TASK_NAME_PLACEHOLDER: "Üretim emrine göre ara...",
|
|
118
|
+
CLEAR_ALL_FILTERS_TOOLTIP: "Tüm filtreleri temizle",
|
|
119
|
+
CLEAR_ALL_FILTERS: "Temizle",
|
|
120
|
+
SHOWING_RESULTS: "{{shown}}/{{total}} gösteriliyor",
|
|
121
|
+
NO_RESULTS_FOUND: "Arama kriterlerinize uygun sonuç bulunamadı.",
|
|
122
|
+
CLEAR_FILTERS: "Filtreleri Temizle",
|
|
116
123
|
Create: "Ekle",
|
|
117
124
|
GanttChartErrorLoadingComponent: "Component yüklenirken hata oluştu"
|
|
118
125
|
};
|
|
@@ -237,4 +244,4 @@ var trTRbase = {
|
|
|
237
244
|
};
|
|
238
245
|
|
|
239
246
|
export { AG_GRID, GANTT, trTRbase as default, mfaCode };
|
|
240
|
-
//# sourceMappingURL=nettyapps-ntybase-tr-TRbase-
|
|
247
|
+
//# sourceMappingURL=nettyapps-ntybase-tr-TRbase-6UXSvhYH.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nettyapps-ntybase-tr-TRbase-
|
|
1
|
+
{"version":3,"file":"nettyapps-ntybase-tr-TRbase-6UXSvhYH.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1604,11 +1604,12 @@ class NettyAgGridBase {
|
|
|
1604
1604
|
else if (this.hasValidValue(this.queryParameterType())) {
|
|
1605
1605
|
this.parameterType.set(this.queryParameterType());
|
|
1606
1606
|
}
|
|
1607
|
-
// Clear right side nav if parameterGUID is not provided
|
|
1608
1607
|
if (this.hasValidValue(this.parameterGUID)) {
|
|
1609
1608
|
this.setFilter();
|
|
1609
|
+
this.loadData();
|
|
1610
1610
|
}
|
|
1611
1611
|
else {
|
|
1612
|
+
// Clear right side nav if parameterGUID is not provided
|
|
1612
1613
|
this.commonService.clearOutlet();
|
|
1613
1614
|
}
|
|
1614
1615
|
});
|
|
@@ -1833,10 +1834,13 @@ class NettyAgGridSaveBase {
|
|
|
1833
1834
|
route = inject(ActivatedRoute);
|
|
1834
1835
|
commonService = inject(CommonService);
|
|
1835
1836
|
alertService = inject(AlertService);
|
|
1837
|
+
environment = inject(EnvironmentProxy);
|
|
1838
|
+
dialog = inject(MatDialog);
|
|
1836
1839
|
viewMode = signal('sidenav', ...(ngDevMode ? [{ debugName: "viewMode" }] : []));
|
|
1837
1840
|
// Input signals
|
|
1838
1841
|
parameters = input('', ...(ngDevMode ? [{ debugName: "parameters" }] : []));
|
|
1839
1842
|
embedded = input(false, ...(ngDevMode ? [{ debugName: "embedded" }] : []));
|
|
1843
|
+
isEmbedded = input(false, ...(ngDevMode ? [{ debugName: "isEmbedded" }] : []));
|
|
1840
1844
|
currentItem = signal({}, ...(ngDevMode ? [{ debugName: "currentItem" }] : []));
|
|
1841
1845
|
initialItem = {};
|
|
1842
1846
|
// Form tracking
|
|
@@ -1987,13 +1991,84 @@ class NettyAgGridSaveBase {
|
|
|
1987
1991
|
}
|
|
1988
1992
|
return true;
|
|
1989
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
|
+
}
|
|
1990
2065
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: NettyAgGridSaveBase, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1991
|
-
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: [""] });
|
|
1992
2067
|
}
|
|
1993
2068
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: NettyAgGridSaveBase, decorators: [{
|
|
1994
2069
|
type: Component,
|
|
1995
2070
|
args: [{ selector: 'ntybase-ag-grid-save-base', imports: [], template: "<p>ag-grid-save-base works!</p>\n" }]
|
|
1996
|
-
}], 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: [{
|
|
1997
2072
|
type: ViewChild,
|
|
1998
2073
|
args: ['saveForm']
|
|
1999
2074
|
}], closeAfterSave: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAfterSave", required: false }] }, { type: i0.Output, args: ["closeAfterSaveChange"] }] } });
|
|
@@ -3564,8 +3639,8 @@ class NettyBaseApp {
|
|
|
3564
3639
|
i18nService = inject(I18nService);
|
|
3565
3640
|
async loadBaseTranslations() {
|
|
3566
3641
|
try {
|
|
3567
|
-
const enUSBase = await import('./nettyapps-ntybase-en-USbase-
|
|
3568
|
-
const trTRBase = await import('./nettyapps-ntybase-tr-TRbase-
|
|
3642
|
+
const enUSBase = await import('./nettyapps-ntybase-en-USbase-Bp2ffXGK.mjs');
|
|
3643
|
+
const trTRBase = await import('./nettyapps-ntybase-tr-TRbase-6UXSvhYH.mjs');
|
|
3569
3644
|
this.i18nService.addTranslations('English', enUSBase.default);
|
|
3570
3645
|
this.i18nService.addTranslations('Türkçe', trTRBase.default);
|
|
3571
3646
|
}
|