@yuuvis/app-signing
v2.5.1
Published
@yuuvis/app-signing is a yuuvis® MOMENTUM client app provides the ability to sign documents.
Readme
@yuuvis/app-signing
@yuuvis/app-signing is a yuuvis® MOMENTUM client app provides the ability to sign documents.
Installation
The app can be installed in a custom client project as follows:
npm install @yuuvis/app-signing --saveEnable extension
In your app.config.ts add the AppSigningExtension to the providers:
import { AppSigningExtension } from '@yuuvis/app-signing/extensions';
export const appConfig: ApplicationConfig = {
providers: [
importShellExtensions([
{ id: 'io.yuuvis.app.signing.extension', extension: AppSigningExtension }
])
]
}Enable the signature metadata view
AppSigningExtension only registers the flavor, its actions and object-config defaults — it
does not render anything by itself. To replace the auto-generated EDIT form for
appSystemsignatures:sigSignatures with the read-only signature overview, register the
yuvMetadataSotTemplate directive with the shared SignatureSotRendererComponent in a component
that is alive for the whole app session (e.g. your AppComponent):
import { ObjectMetadataSotTemplateDirective } from '@yuuvis/client-framework/object-form';
import { APP_SOT, SignatureSotRendererComponent } from '@yuuvis/app-signing/extensions';
@Component({
imports: [ObjectMetadataSotTemplateDirective, SignatureSotRendererComponent /* ... */],
template: `
<!-- ... your existing root template ... -->
<ng-template yuvMetadataSotTemplate [sot]="signatureSot" let-ctx>
<ysig-signature-sot-renderer [ctx]="ctx" />
</ng-template>
`
})
export class AppComponent {
signatureSot = APP_SOT;
}This requires @yuuvis/client-framework (and client-shell/client-components/material) ^3.10.0 or
newer, since yuvMetadataSotTemplate was introduced in that release.
