diff --git a/frontend/projects/valtimo/spotler/ng-package.json b/frontend/projects/valtimo/spotler/ng-package.json index 985230d..349fca7 100644 --- a/frontend/projects/valtimo/spotler/ng-package.json +++ b/frontend/projects/valtimo/spotler/ng-package.json @@ -33,7 +33,8 @@ "@mdi/font", "@ng-bootstrap/ng-bootstrap", "@ngx-translate/http-loader", - "@valtimo/account:11.1.0", + "@valtimo/access-control", + "@valtimo/account", "@valtimo/analyse", "@valtimo/auth0", "@valtimo/authority", @@ -42,6 +43,7 @@ "@valtimo/choicefield", "@valtimo/components", "@valtimo/config", + "@valtimo/connector-management", "@valtimo/contact-moment", "@valtimo/context", "@valtimo/dashboard", @@ -57,6 +59,7 @@ "@valtimo/management", "@valtimo/migration", "@valtimo/milestone", + "@valtimo/object", "@valtimo/open-zaak", "@valtimo/plugin", "@valtimo/plugin-management", @@ -75,7 +78,10 @@ "components-jqueryui", "core-js", "dmn-js", + "dropzone", + "flatpickr", "jquery", + "json-server", "ng-packagr", "ngx-color-picker", "ngx-logger", @@ -84,6 +90,7 @@ "npm-run-all", "perfect-scrollbar", "popper.js", + "rimraf", "rxjs", "select2", "swagger-ui", diff --git a/frontend/projects/valtimo/spotler/package.json b/frontend/projects/valtimo/spotler/package.json index 41df376..5758e3f 100644 --- a/frontend/projects/valtimo/spotler/package.json +++ b/frontend/projects/valtimo/spotler/package.json @@ -7,14 +7,139 @@ }, "peerDependencies": { "@angular/common": "^16.2.12", - "@angular/core": "^16.2.12" + "@angular/core": "^16.2.12", + "@valtimo/access-control": "11.3.1", + "@valtimo/access-control-management": "11.3.1", + "@valtimo/account": "11.3.1", + "@valtimo/analyse": "11.3.1", + "@valtimo/bootstrap": "11.3.1", + "@valtimo/choice-field": "11.3.1", + "@valtimo/choicefield": "11.3.1", + "@valtimo/components": "11.3.1", + "@valtimo/config": "11.3.1", + "@valtimo/contact-moment": "11.3.1", + "@valtimo/connector-management": "11.3.1", + "@valtimo/dashboard": "11.3.1", + "@valtimo/dashboard-management": "11.3.1", + "@valtimo/decision": "11.3.1", + "@valtimo/document": "11.3.1", + "@valtimo/dossier": "11.3.1", + "@valtimo/dossier-management": "11.3.1", + "@valtimo/form": "11.3.1", + "@valtimo/form-link": "11.3.1", + "@valtimo/form-management": "11.3.1", + "@valtimo/keycloak": "11.3.1", + "@valtimo/layout": "11.3.1", + "@valtimo/migration": "11.3.1", + "@valtimo/milestone": "11.3.1", + "@valtimo/object": "11.3.1", + "@valtimo/object-management": "11.3.1", + "@valtimo/open-zaak": "11.3.1", + "@valtimo/plugin": "11.3.1", + "@valtimo/plugin-management": "11.3.1", + "@valtimo/process": "11.3.1", + "@valtimo/process-management": "11.3.1", + "@valtimo/resource": "11.3.1", + "@valtimo/security": "11.3.1", + "@valtimo/swagger": "11.3.1", + "@valtimo/task": "11.3.1", + "@valtimo/view-configurator": "11.3.1", + "rimraf": "5.0.1" }, "dependencies": { - "tslib": "^2.6.2", + "@angular/animations": "^16.2.0", + "@angular/cdk": "^16.2.0", + "@angular/common": "^16.2.0", + "@angular/compiler": "^16.2.0", + "@angular/core": "^16.2.0", + "@angular/elements": "^16.2.0", + "@angular/forms": "^16.2.0", + "@angular/localize": "^16.2.0", + "@angular/platform-browser": "^16.2.0", + "@angular/platform-browser-dynamic": "^16.2.0", + "@angular/router": "^16.2.0", + "@mdi/font": "7.2.96", + "@ngx-translate/core": "15.0.0", + "@ngx-translate/http-loader": "8.0.0", + "@valtimo/access-control": "11.3.1", + "@valtimo/access-control-management": "11.3.1", + "@valtimo/account": "11.3.1", + "@valtimo/analyse": "11.3.1", + "@valtimo/bootstrap": "11.3.1", + "@valtimo/choice-field": "11.3.1", + "@valtimo/choicefield": "11.3.1", "@valtimo/components": "11.3.1", - "@valtimo/plugin": "11.3.1" + "@valtimo/config": "11.3.1", + "@valtimo/contact-moment": "11.3.1", + "@valtimo/connector-management": "11.3.1", + "@valtimo/dashboard": "11.3.1", + "@valtimo/dashboard-management": "11.3.1", + "@valtimo/decision": "11.3.1", + "@valtimo/document": "11.3.1", + "@valtimo/dossier": "11.3.1", + "@valtimo/dossier-management": "11.3.1", + "@valtimo/form": "11.3.1", + "@valtimo/form-link": "11.3.1", + "@valtimo/form-management": "11.3.1", + "@valtimo/keycloak": "11.3.1", + "@valtimo/layout": "11.3.1", + "@valtimo/migration": "11.3.1", + "@valtimo/milestone": "11.3.1", + "@valtimo/object": "11.3.1", + "@valtimo/object-management": "11.3.1", + "@valtimo/open-zaak": "11.3.1", + "@valtimo/plugin": "11.3.1", + "@valtimo/plugin-management": "11.3.1", + "@valtimo/process": "11.3.1", + "@valtimo/process-management": "11.3.1", + "@valtimo/resource": "11.3.1", + "@valtimo/security": "11.3.1", + "@valtimo/swagger": "11.3.1", + "@valtimo/task": "11.3.1", + "@valtimo/view-configurator": "11.3.1", + "@webcomponents/custom-elements": "^1.4.3", + "bpmn-js": "6.5.1", + "bpmn-js-properties-panel": "0.46.0", + "core-js": "3.32.0", + "dmn-js": "12.3.0", + "dropzone": "6.0.0-beta.2", + "flatpickr": "4.6.13", + "json-server": "0.17.3", + "ng-packagr": "^16.2.0", + "ngx-color-picker": "14.0.0", + "ngx-logger": "5.0.12", + "ngx-translate-multi-http-loader": "16.0.1", + "popper.js": "1.16.1", + "rimraf": "5.0.1", + "rxjs": "7.8.1", + "swagger-ui": "5.4.2", + "ngx-toastr": "17.0.2", + "tslib": "2.6.2", + "zone.js": "0.13.1" }, "devDependencies": { - "ng-packagr": "^16.2.3" + "@angular-devkit/build-angular": "^16.2.12", + "@angular/cli": "^16.2.0", + "@angular/compiler-cli": "^16.2.0", + "@angular/language-service": "^16.2.0", + "@cypress/schematic": "^2.5.0", + "@types/jasmine": "4.3.5", + "@types/jasminewd2": "2.0.10", + "@types/node": "20.5.0", + "codelyzer": "6.0.2", + "cypress": "12.17.4", + "deepmerge-ts": "5.1.0", + "jasmine-core": "5.1.0", + "jasmine-spec-reporter": "7.0.0", + "karma": "6.4.2", + "karma-chrome-launcher": "3.2.0", + "karma-coverage-istanbul-reporter": "3.0.3", + "karma-jasmine": "5.1.0", + "karma-jasmine-html-reporter": "2.1.0", + "npm-run-all": "4.1.5", + "puppeteer": "21.1.0", + "sass": "1.66.1", + "ts-node": "10.9.1", + "typescript": "5.1.6" } } diff --git a/frontend/projects/valtimo/spotler/src/lib/components/plugin-configuration/spotler-plugin-configuration.component.ts b/frontend/projects/valtimo/spotler/src/lib/components/plugin-configuration/spotler-plugin-configuration.component.ts index 067ab05..bd73b05 100644 --- a/frontend/projects/valtimo/spotler/src/lib/components/plugin-configuration/spotler-plugin-configuration.component.ts +++ b/frontend/projects/valtimo/spotler/src/lib/components/plugin-configuration/spotler-plugin-configuration.component.ts @@ -18,7 +18,7 @@ */ import {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core'; -import {PluginConfigurationComponent} from '@valtimo/plugin'; +import {FunctionConfigurationData, PluginConfigurationComponent} from '@valtimo/plugin'; import {BehaviorSubject, combineLatest, Observable, Subscription, take} from 'rxjs'; import {SpotlerPluginConfig} from "../../models"; @@ -40,7 +40,7 @@ export class SpotlerPluginConfigurationComponent private saveSubscription!: Subscription; - private readonly formValue$ = new BehaviorSubject(null); + private readonly formValue$ = new BehaviorSubject(undefined); private readonly valid$ = new BehaviorSubject(false); ngOnInit(): void { @@ -51,9 +51,9 @@ export class SpotlerPluginConfigurationComponent this.saveSubscription?.unsubscribe(); } - formValueChange(formValue: SpotlerPluginConfig): void { - this.formValue$.next(formValue); - this.handleValid(formValue); + formValueChange(formValue: FunctionConfigurationData): void { + this.formValue$.next(formValue as SpotlerPluginConfig); + this.handleValid(formValue as SpotlerPluginConfig); } private handleValid(formValue: SpotlerPluginConfig): void { diff --git a/frontend/projects/valtimo/spotler/src/lib/components/send-mail-configuration/send-mail-action-configuration.component.ts b/frontend/projects/valtimo/spotler/src/lib/components/send-mail-configuration/send-mail-action-configuration.component.ts index 9d8291c..a6266b6 100644 --- a/frontend/projects/valtimo/spotler/src/lib/components/send-mail-configuration/send-mail-action-configuration.component.ts +++ b/frontend/projects/valtimo/spotler/src/lib/components/send-mail-configuration/send-mail-action-configuration.component.ts @@ -1,5 +1,5 @@ import {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core'; -import {FunctionConfigurationComponent} from '@valtimo/plugin'; +import {FunctionConfigurationComponent, FunctionConfigurationData} from '@valtimo/plugin'; import {BehaviorSubject, combineLatest, Observable, Subscription, take, tap} from 'rxjs'; import {Recipient, SendMailActionConfig} from '../../models'; import { @@ -28,8 +28,8 @@ export class SendMailActionConfigurationComponent @Input() pluginId: string; @Input() prefillConfiguration$: Observable; @Output() valid: EventEmitter = new EventEmitter(); - @Output() configuration: EventEmitter = - new EventEmitter(); + @Output() configuration: EventEmitter = + new EventEmitter(); private saveSubscription!: Subscription; @@ -62,9 +62,9 @@ export class SendMailActionConfigurationComponent this.saveSubscription?.unsubscribe(); } - formValueChange(formValue: SendMailActionConfig): void { - this.formValue$.next(formValue); - this.handleValid(formValue); + formValueChange(formValue: FunctionConfigurationData): void { + this.formValue$.next(formValue as SendMailActionConfig); + this.handleValid(formValue as SendMailActionConfig); } private handleValid(formValue: SendMailActionConfig): void { @@ -91,7 +91,7 @@ export class SendMailActionConfigurationComponent .pipe(take(1)) .subscribe(([formValue, valid]) => { if (valid) { - this.configuration.emit(formValue); + this.configuration.emit(formValue as FunctionConfigurationData); } }); }); diff --git a/frontend/projects/valtimo/spotler/src/lib/models/config.ts b/frontend/projects/valtimo/spotler/src/lib/models/config.ts index 14ce666..485e4a7 100644 --- a/frontend/projects/valtimo/spotler/src/lib/models/config.ts +++ b/frontend/projects/valtimo/spotler/src/lib/models/config.ts @@ -17,7 +17,7 @@ * */ -import {PluginConfigurationData} from '@valtimo/plugin'; +import {FunctionConfigurationData, PluginConfigurationData} from '@valtimo/plugin'; interface SpotlerPluginConfig extends PluginConfigurationData { clientId: string; @@ -25,7 +25,7 @@ interface SpotlerPluginConfig extends PluginConfigurationData { clientSecret: string; } -interface SendMailActionConfig { +interface SendMailActionConfig extends FunctionConfigurationData { subject: string; senderEmail: string; senderName: string; diff --git a/frontend/projects/valtimo/spotler/src/public_api.ts b/frontend/projects/valtimo/spotler/src/public_api.ts index 0914dcd..f8cf922 100644 --- a/frontend/projects/valtimo/spotler/src/public_api.ts +++ b/frontend/projects/valtimo/spotler/src/public_api.ts @@ -24,3 +24,5 @@ export * from './lib/models'; export * from './lib/spotler-plugin-module'; export * from './lib/spotler-plugin.specification'; +export * from './lib/components/plugin-configuration/spotler-plugin-configuration.component'; +export * from './lib/components/send-mail-configuration/send-mail-action-configuration.component';