@epistola.app/valtimo-plugin 0.9.0 → 0.9.2
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,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, EventEmitter, Output, Input, Component, ChangeDetectionStrategy, inject, NgModule, ENVIRONMENT_INITIALIZER, Injector } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
|
-
import { HttpHeaders,
|
|
4
|
+
import { HttpHeaders, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
5
5
|
import * as i2 from '@valtimo/shared';
|
|
6
6
|
import { ROLE_ADMIN } from '@valtimo/shared';
|
|
7
7
|
import { of, BehaviorSubject, combineLatest, take, Subject, debounceTime, takeUntil, merge } from 'rxjs';
|
|
@@ -4082,34 +4082,11 @@ function registerEpistolaProcessLinkSelectorComponent(injector) {
|
|
|
4082
4082
|
}
|
|
4083
4083
|
|
|
4084
4084
|
class EpistolaPluginModule {
|
|
4085
|
+
// Kept for back-compat with hosts that follow the README's `forRoot()`
|
|
4086
|
+
// setup. The providers above are now module-level so `imports: [EpistolaPluginModule]`
|
|
4087
|
+
// (what the Valtimo Configurator emits) wires everything on its own.
|
|
4085
4088
|
static forRoot() {
|
|
4086
|
-
return {
|
|
4087
|
-
ngModule: EpistolaPluginModule,
|
|
4088
|
-
providers: [
|
|
4089
|
-
EpistolaMenuService,
|
|
4090
|
-
{
|
|
4091
|
-
provide: HTTP_INTERCEPTORS,
|
|
4092
|
-
useClass: EpistolaTaskContextInterceptor,
|
|
4093
|
-
multi: true,
|
|
4094
|
-
},
|
|
4095
|
-
{
|
|
4096
|
-
provide: ENVIRONMENT_INITIALIZER,
|
|
4097
|
-
multi: true,
|
|
4098
|
-
useValue: () => {
|
|
4099
|
-
if (!isEpistolaEnabled())
|
|
4100
|
-
return;
|
|
4101
|
-
const injector = inject(Injector);
|
|
4102
|
-
registerEpistolaDocumentComponent(injector);
|
|
4103
|
-
registerEpistolaRetryFormComponent(injector);
|
|
4104
|
-
registerEpistolaOverrideBuilderComponent(injector);
|
|
4105
|
-
registerEpistolaProcessLinkSelectorComponent(injector);
|
|
4106
|
-
registerEpistolaDocumentPreviewComponent(injector);
|
|
4107
|
-
// Eagerly create EpistolaMenuService to trigger menu registration
|
|
4108
|
-
inject(EpistolaMenuService);
|
|
4109
|
-
},
|
|
4110
|
-
},
|
|
4111
|
-
],
|
|
4112
|
-
};
|
|
4089
|
+
return { ngModule: EpistolaPluginModule };
|
|
4113
4090
|
}
|
|
4114
4091
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: EpistolaPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4115
4092
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: EpistolaPluginModule, imports: [CommonModule,
|
|
@@ -4134,7 +4111,32 @@ class EpistolaPluginModule {
|
|
|
4134
4111
|
EpistolaRetryFormComponent,
|
|
4135
4112
|
EpistolaDocumentPreviewComponent,
|
|
4136
4113
|
EpistolaAdminPageComponent] });
|
|
4137
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: EpistolaPluginModule, providers: [
|
|
4114
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: EpistolaPluginModule, providers: [
|
|
4115
|
+
EpistolaPluginService,
|
|
4116
|
+
EpistolaAdminService,
|
|
4117
|
+
EpistolaMenuService,
|
|
4118
|
+
{
|
|
4119
|
+
provide: HTTP_INTERCEPTORS,
|
|
4120
|
+
useClass: EpistolaTaskContextInterceptor,
|
|
4121
|
+
multi: true,
|
|
4122
|
+
},
|
|
4123
|
+
{
|
|
4124
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
4125
|
+
multi: true,
|
|
4126
|
+
useValue: () => {
|
|
4127
|
+
if (!isEpistolaEnabled())
|
|
4128
|
+
return;
|
|
4129
|
+
const injector = inject(Injector);
|
|
4130
|
+
registerEpistolaDocumentComponent(injector);
|
|
4131
|
+
registerEpistolaRetryFormComponent(injector);
|
|
4132
|
+
registerEpistolaOverrideBuilderComponent(injector);
|
|
4133
|
+
registerEpistolaProcessLinkSelectorComponent(injector);
|
|
4134
|
+
registerEpistolaDocumentPreviewComponent(injector);
|
|
4135
|
+
// Eagerly create EpistolaMenuService to trigger menu registration
|
|
4136
|
+
inject(EpistolaMenuService);
|
|
4137
|
+
},
|
|
4138
|
+
},
|
|
4139
|
+
], imports: [CommonModule,
|
|
4138
4140
|
HttpClientModule,
|
|
4139
4141
|
PluginTranslatePipeModule,
|
|
4140
4142
|
FormModule,
|
|
@@ -4180,7 +4182,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
4180
4182
|
EpistolaDocumentPreviewComponent,
|
|
4181
4183
|
EpistolaAdminPageComponent,
|
|
4182
4184
|
],
|
|
4183
|
-
providers: [
|
|
4185
|
+
providers: [
|
|
4186
|
+
EpistolaPluginService,
|
|
4187
|
+
EpistolaAdminService,
|
|
4188
|
+
EpistolaMenuService,
|
|
4189
|
+
{
|
|
4190
|
+
provide: HTTP_INTERCEPTORS,
|
|
4191
|
+
useClass: EpistolaTaskContextInterceptor,
|
|
4192
|
+
multi: true,
|
|
4193
|
+
},
|
|
4194
|
+
{
|
|
4195
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
4196
|
+
multi: true,
|
|
4197
|
+
useValue: () => {
|
|
4198
|
+
if (!isEpistolaEnabled())
|
|
4199
|
+
return;
|
|
4200
|
+
const injector = inject(Injector);
|
|
4201
|
+
registerEpistolaDocumentComponent(injector);
|
|
4202
|
+
registerEpistolaRetryFormComponent(injector);
|
|
4203
|
+
registerEpistolaOverrideBuilderComponent(injector);
|
|
4204
|
+
registerEpistolaProcessLinkSelectorComponent(injector);
|
|
4205
|
+
registerEpistolaDocumentPreviewComponent(injector);
|
|
4206
|
+
// Eagerly create EpistolaMenuService to trigger menu registration
|
|
4207
|
+
inject(EpistolaMenuService);
|
|
4208
|
+
},
|
|
4209
|
+
},
|
|
4210
|
+
],
|
|
4184
4211
|
}]
|
|
4185
4212
|
}] });
|
|
4186
4213
|
|