
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@dotgov/formviewer
Advanced tools
Library is under active development and may have breaking changes until stable 2.0.0 release or subsequent major versions after 2.0.0.
formviewernpm install --save @dotgov/formviewer
Consider that every DotGov Module including FormViewer must be imported next/in same context as DGSCoreModule.
import { DGSCoreModule, DGSEnvironment } from '@dotgov/core';
import { FormViewerModule } from '@dotgov/formviewer';
const dgsEnviroment: DGSEnvironment = {
debug: environment.debug,
apiUrl: environment.apiUrl,
defaultLanguage: {
Name: 'English',
Code: 'en',
Icon: 'fa fa-globe',
},
languages: [{
Name: 'English',
Code: 'en',
Icon: 'fa fa-globe',
}],
lowerCaseTranslates: true,
};
@NgModule({
declarations: [AppComponent],
imports: [
DGSCoreModule.forRoot(dgsEnviroment),
FormViewerModule.forRoot(dgsEnviroment),
],
bootstrap: [AppComponent]
})
export class AppModule {}
To load assets like themes and pdf viewer its ncessary to include assets. IF you're using the Angular CLI, you can add this to your angular-cli.json.
Note: Path to formviewer bundle must set relative to basepath inside angular-cli.json.
"apps": {
...any,
"assets": [
...any,
{
"glob": "**/*",
"input": "../node_modules/@dotgov/formviewer/assets/",
"output": "./assets/"
}
],
...any,
}
For now library doesn't allow you to use a custom theme, but i will be avalaible soon. Keep in touch with us.
| Models | Services | Modules |
|---|---|---|
| ApiResponse | ApiService | FormViewerModule |
| Breadcrumbps | ProcessService | |
| FVNotificationService | FVNotification | |
| ComponentConfig | ||
| Control | ||
| ControlType | ||
| BindingSet | ||
| Dock | ||
| DockItem | ||
| Extract | ||
| Field | ||
| Item | ||
| Model | ||
| Path | ||
| Proxy | ||
| Tab | ||
| Task | ||
| FVDoneResponse | ||
| GridComponentConfig | ||
| Store | ||
| GridColumn | ||
| EditHandler | ||
| GridSort | ||
| GridFilter | ||
| GridConfig | ||
| Lang | ||
| Menu | ||
| Folder |
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
| task | Task | - | yes | Initial process object |
| firstLevel | boolean | false | no | Tells formviewer process running is not first-level type. ( means its child of another process ) |
| parentTask | boolean | false | no | If its not first-level type, please pass whos the parent. |
| hideName | boolean | false | no | Decides to show process name or not |
| disabled | boolean | false | no | Disable or enable all the controls rendered on given form. |
| Output | Type | Description |
|---|---|---|
| (onDone) | FVDoneResponse | Fired when process got status 1 (done) |
| (onLoaded) | boolean | Fired after process been loaded (AfterViewInit) |
| (titleUpdated) | string | Fired when process title got updated |
| (taskUpdated) | string | Fired when task got updated |
Also you may communicate with FVNotificationService. Example:
import { FVNotificationService, FVNotification } from '@dotgov/formviewer';
@Component({
selector: 'app-component',
templateUrl: './app.component.html',
styleUrls: ['./app.component.less'],
})
export class AppComponent {
constructor(
private fvNotification: FVNotificationService,
) {
this.fvNotification.subscription((notify: FVNotification) => {
const allowedTypes = ['error', 'info', 'success', 'warning'];
if (allowedTypes.indexOf(notify.type) !== -1) {
this.handleNotification[notify.type](notify.message, notify.title);
}
});
}
}
| Contributor Name | Contributor Page |
|---|---|
| Grigore Meleca | grigoreme |
| Mihail Racila | mracila25 |
Open ng-package.json and setup dest to location where you want your build to go. (example: ../myProject/node_modules/@dotgov/formviewer)
npm run build
For more information read docs/developer_guide.md
Use CI/CD for that.
Or just run npm run old_school_release, of course if you have permissions ;)
FAQs
Form Viewer for DGS system.
We found that @dotgov/formviewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.