@nettyapps/ntybase 21.0.26 → 21.0.27
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Injectable, inject, NgModule, Inject, signal, input, output, computed, effect, model, ViewChild, InjectionToken, Optional, Input } from '@angular/core';
|
|
2
|
+
import { Component, Injectable, inject, NgModule, Inject, signal, input, output, computed, effect, model, ViewChild, InjectionToken, Optional, Input, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';
|
|
3
3
|
import * as i1$3 from '@angular/common/http';
|
|
4
4
|
import { HttpErrorResponse, HttpResponse, HTTP_INTERCEPTORS, HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
5
|
import { of, throwError, lastValueFrom, map, catchError as catchError$1, Subject, finalize, take as take$1, takeUntil } from 'rxjs';
|
|
@@ -4104,6 +4104,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
4104
4104
|
args: [NETTY_APP_ENVIRONMENT]
|
|
4105
4105
|
}] }] });
|
|
4106
4106
|
|
|
4107
|
+
/**
|
|
4108
|
+
* Uygulamanın environment altyapısını kurar.
|
|
4109
|
+
*
|
|
4110
|
+
* @usage
|
|
4111
|
+
* providers: [
|
|
4112
|
+
* provideNettyEnvironment()
|
|
4113
|
+
* // Not: { provide: NETTY_APP_ENVIRONMENT, useValue: environment } dışarıdan verilmelidir.
|
|
4114
|
+
* ]
|
|
4115
|
+
*/
|
|
4116
|
+
function provideNtyEnvironment() {
|
|
4117
|
+
return makeEnvironmentProviders([
|
|
4118
|
+
// 1. EnvironmentService'in kendisi (providedIn: 'root' varsa buraya gerek yok ama zararı da yok)
|
|
4119
|
+
NtyEnvironmentService,
|
|
4120
|
+
// 2. ENVIRONMENT_CONFIG provider'ı
|
|
4121
|
+
{
|
|
4122
|
+
provide: ENVIRONMENT_CONFIG,
|
|
4123
|
+
useFactory: ntyEnvironmentConfigFactory,
|
|
4124
|
+
deps: [NtyEnvironmentService],
|
|
4125
|
+
},
|
|
4126
|
+
// 3. APP_INITIALIZER (Uygulama başlamadan önce env yüklemesi)
|
|
4127
|
+
provideAppInitializer(() => {
|
|
4128
|
+
const initializerFn = ntyInitializeEnvironment(inject(NtyEnvironmentService));
|
|
4129
|
+
return initializerFn();
|
|
4130
|
+
}),
|
|
4131
|
+
]);
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4107
4134
|
class NtyLoadingService {
|
|
4108
4135
|
requestCount = 0;
|
|
4109
4136
|
isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
|
|
@@ -4191,5 +4218,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
4191
4218
|
* Generated bundle index. Do not edit.
|
|
4192
4219
|
*/
|
|
4193
4220
|
|
|
4194
|
-
export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Login, LoginDto, MFACodeDto, MfaLogin, NETTY_APP_ENVIRONMENT, NettyAgGridBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyEnvironmentService, NtyLoadingInterceptor, Ntybase, NtybaseModule, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor, ntyEnvironmentConfigFactory, ntyInitializeEnvironment };
|
|
4221
|
+
export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Login, LoginDto, MFACodeDto, MfaLogin, NETTY_APP_ENVIRONMENT, NettyAgGridBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyEnvironmentService, NtyLoadingInterceptor, Ntybase, NtybaseModule, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor, ntyEnvironmentConfigFactory, ntyInitializeEnvironment, provideNtyEnvironment };
|
|
4195
4222
|
//# sourceMappingURL=nettyapps-ntybase.mjs.map
|