@codex-ts/core-lib 1.1.2 → 1.1.3

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.
@@ -3120,6 +3120,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
3120
3120
  type: Directive
3121
3121
  }], ctorParameters: () => [{ type: i1$3.Router }, { type: NotificationService }, { type: UtilsService }, { type: i4.ConfirmationService }] });
3122
3122
 
3123
+ class ReferenceDataProviderService {
3124
+ endpoints = {};
3125
+ // Method to set/update endpoints
3126
+ setEndpoints(endpoints) {
3127
+ this.endpoints = { ...this.endpoints, ...endpoints };
3128
+ }
3129
+ getReferenceEndpoint(entityName) {
3130
+ console.log('getReferenceEndpoint', entityName, this.endpoints);
3131
+ let endpoint = this.endpoints[entityName];
3132
+ if (endpoint != null && endpoint.length > 0) {
3133
+ if (endpoint.startsWith('http://') || endpoint.startsWith('https://')) {
3134
+ return endpoint; // Absolute URL
3135
+ }
3136
+ else {
3137
+ // Relative URL, assume it's within the application's base context
3138
+ return endpoint;
3139
+ }
3140
+ }
3141
+ return null;
3142
+ }
3143
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ReferenceDataProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3144
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ReferenceDataProviderService, providedIn: 'root' });
3145
+ }
3146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ReferenceDataProviderService, decorators: [{
3147
+ type: Injectable,
3148
+ args: [{
3149
+ providedIn: 'root'
3150
+ }]
3151
+ }] });
3152
+
3123
3153
  class IndianDatePipe {
3124
3154
  datePipe;
3125
3155
  constructor(datePipe) {
@@ -3174,5 +3204,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
3174
3204
  * Generated bundle index. Do not edit.
3175
3205
  */
3176
3206
 
3177
- export { AppConstants, AppMessages, BaseCrudService, BaseFormComponent, BaseListPageComponent, BaseListTabbedFormComponent, BasePageComponent, BaseTabbedFormComponent, BaseTaskDashboardComponent, BaseTaskDetailsComponent, BaseTaskService, ComponentContext, CoreFormlyModule, FormService, FormlyConfigService, HttpUtilityService, IndianDatePipe, KEYCLOAK_CONFIG, KeycloakAuthGuard, KeycloakService, NotificationService, TabbedFormType, TaskRole, UtilsService, provideKeycloak };
3207
+ export { AppConstants, AppMessages, BaseCrudService, BaseFormComponent, BaseListPageComponent, BaseListTabbedFormComponent, BasePageComponent, BaseTabbedFormComponent, BaseTaskDashboardComponent, BaseTaskDetailsComponent, BaseTaskService, ComponentContext, CoreFormlyModule, FormService, FormlyConfigService, HttpUtilityService, IndianDatePipe, KEYCLOAK_CONFIG, KeycloakAuthGuard, KeycloakService, NotificationService, ReferenceDataProviderService, TabbedFormType, TaskRole, UtilsService, provideKeycloak };
3178
3208
  //# sourceMappingURL=codex-ts-core-lib.mjs.map