@churchillliving/se-ui-toolkit

中文文档
6.56.98发布于 2026/10/29TypeScriptES Module近 30 天下载 3121

This library was generated with Angular CLI version 12.0.4.

原始使用文档
文档目录9 节
  1. Code scaffolding
  2. Build
  3. Publishing
  4. Running unit tests
  5. Global Filters - Date Range Filter
  6. Date Range Filter Initialization
  7. Date Format Handling
  8. Further help
  9. Library Publish Command

SeUiToolkit

This library was generated with Angular CLI version 12.0.4.

Code scaffolding

Run ng generate component component-name --project se-ui-toolkit to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project se-ui-toolkit.

Note: Don't forget to add --project se-ui-toolkit or else it will be added to the default project in your angular.json file.

Build

Run ng build se-ui-toolkit to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build se-ui-toolkit, go to the dist folder cd dist/se-ui-toolkit and run npm publish.

Running unit tests

Run all tests (recommended):

node run-all-tests.js

This runs both Angular unit tests and grid component tests in sequence.

Run individual test suites:

# Angular unit tests via Karma
ng test se-ui-toolkit

# Grid component tests only
node src/lib/components/base/grid/run-all-grid-tests.js

Global Filters - Date Range Filter

Date Range Filter Initialization

The addGlobalDateRangeFilter method accepts value and valueTwo properties to set initial start and end dates for the filter.

Supported Input Formats:

  • Date objects: new Date('2026-05-29')
  • ISO date strings: '2026-05-29'
  • Locale-formatted strings: '5/29/2026'

Example:

this.gridService.addGlobalDateRangeFilter({
  fromField: "FROM",
  toField: "TO",
  displayText: "Dates",
  dayRange: utilities.EDayRange.WEEK,
  value: new Date('2026-05-29'),      // Start date
  valueTwo: new Date('2026-06-05'),   // End date
})

Important: Both value and valueTwo must be provided together for the filter to initialize with dates. If either is missing, the filter will start empty. Users can then use the Previous/Next buttons to navigate date ranges based on the configured dayRange property.

Date Format Handling

The component properly handles conversion of Date objects and strings to the format required by the p-datepicker component. Avoid calling toLocaleDateString() on date values before passing them to the filter, as the component handles this conversion internally.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

Library Publish Command

run npm run publish-toolkit to publish the npm package

版本与发布记录

@churchillliving/se-ui-toolkit 共发布 4,032 个版本,首次发布于 2021/07/09;过去 12 个月发布了 309 个版本。

版本发布日期距今
6.56.98latest2026/10/2911 天前
6.56.972026/10/2218 天前
6.56.962026/10/2119 天前
6.56.952026/10/1624 天前
6.56.942026/10/1624 天前
6.56.932026/10/1625 天前

关于 @churchillliving/se-ui-toolkit 的常见问题

@churchillliving/se-ui-toolkit 是什么?

This library was generated with Angular CLI version 12.0.4.

如何安装 @churchillliving/se-ui-toolkit?

在项目目录运行 npm install @churchillliving/se-ui-toolkit,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:rxjs(^7.8.2)、xlsx(^0.17.0)、jspdf(^2.3.1)、quill(^1.3.7)、primeng(^18.0.0)、primeflex(^3.3.1)、file-saver(^2.0.5)、ngx-toastr(^17.0.2)、primeicons(^6.0.1)、@angular/cdk(^16.2.0)、@angular/core(^18.2.13)、@angular/common(^18.2.13)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@churchillliving/se-ui-toolkit 支持 TypeScript 吗?

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

@churchillliving/se-ui-toolkit 支持 ESM 还是 CommonJS?

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

@churchillliving/se-ui-toolkit 可以商用吗?

@churchillliving/se-ui-toolkit 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@churchillliving/se-ui-toolkit 的下载量有多少?

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

@churchillliving/se-ui-toolkit 还在维护吗?

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