npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jinmutech/ng-zorro-form-design

v1.1.0

Published

Visual form designer for Angular 17 and ng-zorro-antd — drag-and-drop, JSON import/export, code generation, and embed mode.

Downloads

279

Readme

ng-zorro-form-design

面向 Angular 17 + ng-zorro-antd 的可视化表单设计器:拖拽搭建、JSON 导入导出、代码生成、嵌入模式。

npm 包名: @jinmutech/ng-zorro-form-design(与 @jinmutech/ngx-monaco-editor 同属 JinmuTech scope)。
本项目为基于 ng-zorro-antd 的表单设计器, ng-zorro 官方包。

License: MIT Angular ng-zorro

English: A drag-and-drop form designer for Angular 17 and ng-zorro-antd with JSON/code export and embed mode.

特性

  • 拖拽设计表单(栅格、表格、标签页、卡片等布局)
  • JSON 导入 / 导出 / 在线编辑(Monaco)
  • 生成 HTML / TypeScript / CSS 代码
  • 嵌入模式(embedded)与保存事件
  • 中英文 i18n
  • 164 单元测试

在线体验

克隆仓库后本地运行 Demo(见下方「快速开始」)。
部署静态 Demo:npm run build:demo,将 dist/ng-zorro-form-design 发布到 Gitee Pages / GitHub Pages。

版本与兼容

| 项 | 版本 | |----|------| | Angular | 17.xpeerDependencies) | | ng-zorro-antd | 17.x | | TypeScript | ~5.4.x(Angular 17.3 要求 <5.5) | | Node | 18+20 LTS(推荐,见 .nvmrc) | | RxJS | 7.8+ |

历史版本:Angular 14 快照 tag v0.0.142-ng14(不再维护)。

快速开始(Demo)

git clone https://gitee.com/jzwsoft/ng-zorro-form-design.git
cd ng-zorro-form-design
npm install
npm start

浏览器打开 http://localhost:4200/designer

作为库安装

npm install @jinmutech/ng-zorro-form-design ng-zorro-antd ngx-monaco-editor-v2 monaco-editor @ngx-translate/core @ngx-translate/http-loader

1. 引入模块

import { DesignerModule } from '@jinmutech/ng-zorro-form-design';

@NgModule({
  imports: [
    DesignerModule,
    // 宿主应用需已配置 BrowserAnimationsModule、HttpClientModule、ng-zorro、TranslateModule
  ]
})
export class AppModule {}

2. 模板使用

独立设计器页面:

<app-designer></app-designer>

嵌入模式(隐藏顶栏 Logo,导入 JSON 走 Modal,显示保存按钮):

<app-designer
  [embedded]="true"
  [initialFormModel]="formJson"
  (formSave)="onSave($event)"
  (formChange)="onChange($event)">
</app-designer>

3. Monaco 静态资源

在宿主 angular.jsonassets 中加入:

{
  "glob": "**/*",
  "input": "node_modules/monaco-editor",
  "output": "assets/monaco"
}

库内 Monaco 懒加载模块默认 baseUrl: './assets',宿主需将 monaco-editor 复制到 assets/monaco/(见上方 angular.json 示例)。

4. i18n 资源

将库内 assets/i18n/ 合并到宿主,或配置 TranslateHttpLoader 指向相同路径。

构建与测试

npm run build          # Demo 应用
npm run test:ci        # 单元测试(Headless Chrome)
npm run packagr        # 库产物 → dist/

导出 API

import {
  DesignerModule,
  DesignerComponent,
  PlayModule,
  PlayComponent,
  FormModel
} from '@jinmutech/ng-zorro-form-design';

企业支持

参与贡献

CONTRIBUTING.md。升级记录见 docs/upgrade-angular-17.md

License

MIT © JinmuTech