@3mo/del

中文文档
0.6.9发布于 2026/10/30MITTypeScriptES Module构建来源已验证近 30 天下载 2020

A bundle of the whole library, re-exported with Lit and the application framework, plus a business-suite app shell.

原始使用文档
文档目录12 节
  1. Installation
  2. Usage
  3. Examples
  4. User Avatar
  5. API
  6. mo-avatar
  7. mo-user-avatar
  8. mo-application-logo
  9. mo-business-suite-authentication-dialog
  10. mo-field-net-gross-currency
  11. Links
  12. License

Design Library

A bundle of the whole library, re-exported with Lit and the application framework, plus a business-suite app shell.

npm Documentation

mo-avatar — A circle in the accent color holding initials or an icon, such as a person's.

mo-user-avatar — The signed-in user's initials, which open a menu with their name, their email and menu items of your own.

Installation

npm install @3mo/del
import '@3mo/del'

Usage

<mo-avatar>AZ</mo-avatar>

Examples

  • Icon — An icon takes the place of the initials, for someone unknown or for a group.
  • Sizes — The circle is 40px by default; its own width, height and font-size resize it.
  • Colors — The accent color fills the circle unless its own background and color replace it.

User Avatar

  • Default
  • Without Email — Without email, the menu shows only the name above its items.
  • Unauthenticated — Without a name nobody is signed in: the avatar shows an account button, which opens the application's sign-in if it has one.

API

mo-avatar

Slots

NameDescription
(default)The initials or icon.

mo-user-avatar

Properties

NameAttributeTypeDefaultDescription
openopenbooleanfalseWhether the menu is open.
namenamestring | undefinedThe user's full name, whose first and last initials the avatar shows. Without it, nobody is signed in.
emailemailstring | undefinedThe email shown under the name in the menu.

Events

NameDetailDescription
openChangebooleanWhether the menu is open, whenever that changes.

Slots

NameDescription
(default)Menu items, shown below the user and above the sign-out item that an application with an authenticator adds.

Properties

NameAttributeTypeDefault
sourcesourcestring | undefined"ApplicationLogo.source"

mo-business-suite-authentication-dialog

Properties

NameAttributeTypeDefault
openopenbooleanfalse
headingheadingstring""

mo-field-net-gross-currency

Properties

NameAttributeTypeDefaultDescription
isGrossisGrossbooleanfalse
currencycurrencyCurrency"EUR"
currencySymbolcurrencySymbolstring | undefined
selectOnFocusselectOnFocusbooleanfalseSelects the input text when the field receives focus.
densedensebooleanfalseWhether the field is dense
valuevalueNetGrossCurrency["undefined",false]The field's value
labellabelstring""The field's label
readonlyreadonlybooleanfalseWhether the field is readonly
disableddisabledbooleanfalseWhether the field is disabled
requiredrequiredbooleanfalseWhether the field is required

Events

NameDetailDescription
changeT | undefinedDispatched with the value when the user commits it
inputT | undefinedDispatched with the value while the user edits it
validityChangebooleanDispatched with whether the value is valid, after every validation

Slots

NameDescription
(default)The field's content
startContent to be placed at the start of the field
endContent to be placed at the end of the field

CSS parts

NameDescription
inputThe input element.
containerField's container

License

MIT © 3MO GmbH

版本与发布记录

@3mo/del 共发布 153 个版本,首次发布于 2023/05/12;过去 12 个月发布了 27 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.6.9latest2026/10/308 天前
0.6.82026/10/2612 天前
0.6.72026/09/301 个月前
0.6.62026/09/291 个月前
0.6.52026/09/281 个月前
0.6.42026/09/231 个月前

其他发布通道:preview → 0.2.0-preview.0。

关于 @3mo/del 的常见问题

@3mo/del 是什么?

A bundle of the whole library, re-exported with Lit and the application framework, plus a business-suite app shell.

如何安装 @3mo/del?

在项目目录运行 npm install @3mo/del,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@3mo/fab(x)、@3mo/key(x)、@3mo/pdf(x)、@3mo/tab(x)、@3mo/card(x)、@3mo/chip(>=0.4.2)、@3mo/flex(x)、@3mo/grid(x)、@3mo/icon(x)、@3mo/line(x)、@3mo/list(x)、@3mo/menu(x)、@3mo/swap(x)、@3mo/tree(x)、@a11d/lit(x)、@3mo/alert(x)、@3mo/color(x)、@3mo/field(x)、@3mo/radio(x)、@3mo/sheet(>=0.1.4)、@3mo/theme(x)、@3mo/anchor(x)、@3mo/button(x)、@3mo/dialog(>=0.8.4)、@3mo/drawer(x)、@3mo/slider(x)、@3mo/switch(x)、@3mo/heading(x)、@3mo/masonry(x)、@3mo/popover(>=0.10.x)、@3mo/section(x)、@3mo/tooltip(x)、@3mo/checkbox(x)、@3mo/confetti(x)、@3mo/expander(x)、@3mo/menu-bar(x)、@3mo/scroller(x)、@3mo/snackbar(x)、@3mo/splitter(x)、@3mo/timeline(x)、@3mo/accordion(x)、@3mo/data-grid(>=0.38.5)、@3mo/date-time(>=0.10.5)、@3mo/fab-group(x)、@3mo/group-box(x)、@3mo/hierarchy(x)、@3mo/throttler(x)、@3mo/code-field(>=0.1.2)、@3mo/downloader(x)、@3mo/field-pair(x)、@3mo/focus-ring(x)、@3mo/navigation(>=0.1.6)、@3mo/safe-round(x)、@3mo/color-field(x)、@3mo/empty-state(x)、@3mo/file-upload(>=0.4.3)、@3mo/icon-button(x)、@3mo/screen-size(x)、@3mo/text-fields(>=0.1.2)、@3mo/button-group(x)、@3mo/color-picker(x)、@3mo/context-menu(x)、@3mo/indexability(x)、@3mo/localization(x)、@3mo/navigability(x)、@3mo/select-field(>=0.11.2)、@3mo/split-button(x)、@3mo/swipeability(x)、@3mo/entity-dialog(>=0.6.4)、@3mo/expandability(x)、@3mo/master-detail(x)、@3mo/number-fields(x)、@3mo/selectability(x)、@3mo/checkbox-group(x)、@3mo/key-value-list(x)、@3mo/language-field(>=0.3.2)、@3mo/loading-button(x)、@3mo/loading-dialog(>=0.1.8)、@3mo/style-property(x)、@3mo/command-palette(>=0.2.3)、@3mo/linear-progress(x)、@3mo/resize-observer(x)、@3mo/segmented-input(x)、@3mo/selection-group(x)、@3mo/slot-controller(x)、@3mo/split-page-host(x)、@3mo/collapsible-card(>=0.2.2)、@3mo/copy-icon-button(>=0.1.2)、@3mo/date-time-fields(>=0.17.2)、@3mo/entity-data-grid(>=0.4.3)、@3mo/fetchable-dialog(x)、@3mo/focus-controller(x)、@3mo/selection-dialog(x)、@3mo/standard-dialogs(>=0.4.4)、@3mo/virtualized-list(x)、@a11d/lit-application(>=0.7.0)、@3mo/circular-progress(x)、@3mo/element-internals(x)、@3mo/mutation-observer(x)、@3mo/fetcher-controller(x)、@3mo/moddable-data-grid(>=0.8.6)、@3mo/pointer-controller(x)、@3mo/fetchable-data-grid(>=0.8.2)、@3mo/interval-controller(x)、@3mo/keyboard-controller(x)、@3mo/overflow-controller(x)、@3mo/media-query-observer(x)、@3mo/virtualized-scroller(x)、@3mo/file-upload-drop-area(x)、@3mo/intersection-observer(x)、@3mo/fetchable-select-field(x)、@3mo/data-grid-card-integration(x)、@3mo/infinite-scroll-controller(x)、@3mo/split-button-dialog-adapter(x)、@3mo/loading-button-dialog-adapter(x)、@3mo/instanceof-attribute-controller(x)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@3mo/del 支持 TypeScript 吗?

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

@3mo/del 支持 ESM 还是 CommonJS?

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

@3mo/del 可以商用吗?

@3mo/del 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@3mo/del 的下载量有多少?

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

@3mo/del 还在维护吗?

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