@design-factory/angular

中文文档
22.1.0发布于 2026/11/05BSD-3-ClauseTypeScriptES Module近 30 天下载 2754

Amadeus design system Angular implementation

原始使用文档
文档目录6 节
  1. Description
  2. Getting started
  3. Architecture
  4. CSS namespace feature
  5. Dependencies
  6. How to work with the icons

Amadeus Design Factory Angular implementation

Description

Design Factory Angular is the package containing the Angular components implementing the Amadeus Design System, Design Factory.

Design Factory is an InnerSource design system made of:

  • A UI library for Amadeus external and internal interfaces and applications, based on our four pillars
  • A set of design and coding best practices
  • A cross-functional community from all Amadeus business units

If you want to get more information about Design Factory, please contact Design Factory team.

Getting started

You can easily add Design Factory library in your project thanks our schematics. Just run the following:

ng add @design-factory/angular

It will install Design Factory for the default application specified in your angular.json. If you have multiple projects and you want to target a specific application, you could specify the --project option

ng add @design-factory/angular --project myProject

Architecture

The Design Factory is composed of multiple projects and you can install the package that fits your requirements.

  • @design-factory/tokens includes the Design Tokens that empower the Design System
  • @design-factory/styles includes the styles, composed of utilities and component styles
  • @design-factory/design-factory contains Angular components and utilities. They will be migrated to the following package
  • @design-factory/angular contains the new SideNav and will grow to include all Design Factory Angular components

CSS namespace feature

For some specific cases, you may have to use the CSS namespace feature which allows you to apply DF styles only under a selector defined by $df-css-namespace-selector variable (by default ==.design-factory-v2==). In order to use this feature, just import the following:

@import '@design-factory/styles/scss/namespace';

in your styles.scss and add the defined selector in your HTML element where you want to apply DF style.

Dependencies

The dependencies are Angular, Bootstrap 5, Ng-bootstrap, AgnosUI, Ng-select, Ag-grid and ngx-slider. The supported versions are:

Design FactoryAngularBootstrap CSSNg-BootstrapNg-selectAg-gridAgnosUI
21.0.x21.x5.3.820.0.x21.x35.x0.10.x
22.0.x22.x5.3.821.0.x23.x35.x0.11.x

How to work with the icons

Icons are a mix of Font Awesome (FW) and in-house produced pictograms.

Since DF 18.0.0 release in-house icons and FW icons are split into different fonts.

版本与发布记录

@design-factory/angular 共发布 18 个版本,首次发布于 2026/01/22;过去 12 个月发布了 18 个版本。

版本发布日期距今
22.1.0latest2026/11/056 天前
21.1.22026/10/2220 天前
22.0.22026/09/221 个月前
22.0.12026/08/033 个月前
21.1.12026/07/303 个月前
22.0.02026/07/293 个月前

其他发布通道:next → 22.0.0-next.1。

关于 @design-factory/angular 的常见问题

@design-factory/angular 是什么?

Amadeus design system Angular implementation

如何安装 @design-factory/angular?

在项目目录运行 npm install @design-factory/angular,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:esm-env(^1.2.1)、@angular/core(^22.0.0)、@angular/common(^22.0.0)、@angular/localize(^22.0.0)、@design-factory/styles(22.1.0)、@amadeus-it-group/tansu(^2.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@design-factory/angular 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@design-factory/angular 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@design-factory/angular 可以商用吗?

@design-factory/angular 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

@design-factory/angular 的下载量有多少?

根据 npm 官方下载统计,@design-factory/angular 在 2026/10/12 – 2026/11/10 这 30 天内被下载 2,754 次,日均约 92 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@design-factory/angular 还在维护吗?

最新版本 22.1.0 发布于 2026/11/05(6 天前);至今共发布 18 个版本,其中过去 12 个月发布了 18 个;首次发布于 2026/01/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。