
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@duetds/components
Advanced tools
This package includes Duet Design System Web Components and related utilities.
This package includes Duet Web Components and related tools.
For usage instructions, please see Duet Design System documentation.
This package is built with Stencil.js, a compiler and toolchain for building web components. The component source code is written in TypeScript + JSX (TSX), with stylesheets written in SCSS.
The following are the most commonly used commands during development:
npm start
- Compile components, start watching for changes, start local development serverES5=true npm start
- As above, but with support for legacy browsers. Useful for testing IE11SSR=true npm start
- Enables SSR in dev servernpm run build
- Build projectnpm test
- Run all tests onceThe local development server started by npm start
serves a file located at /src/index.html
. Any local changes or new components are available on this page, so this can be used as a testing ground when developing.
src/components/[component-name]
[component-name].tsx
[component-name].scss
[component-name].e2e.ts
readme.md
stencil.config.js
bundles
field of configdefault
and turva
docs/
:
changelog.md
/docs/
directory and run npm install
and npm start
./packages/components/
directory and run npm install
and npm start
that starts up the component watch and build tasks.*.tsx
, *.scss
, or readme.md
files underneath /packages/components/src/components/
and hit save, that will trigger a rebuild task which also copies the necessary changes over to the local documentation running at http://localhost:8000.*.tsx
and *.scss
files will generate a new JavaScript bundle, while editing the readme.md
files only generates and copies over the documentation and component usage examples.readme.md
, while the component templates are located under /docs/src/templates/
directory.Angular's ControlValueAccessors are used to adapt custom inputs to work with Angular's reactive forms. The angular-output-target
accepts config to auto-generate value accessors for stencil components.
To correctly adapt a component for Angular reactive forms, the output target must know:
text
, radio
, select
, number
, boolean
)As an example, consider duet-checkbox
:
duet-checkbox
is the CSS selector for this componentboolean
is the type of input component (since it is true
when checked, false
when unchecked)checked
attribute that holds the component's valueduetChange
event is raised when the value is changedYou can likely add any new components to one of the existing configs, but if not, you can simply add a new config providing all the above information.
We originally forked @stencil/angular-output-target
in order to add support for disabled inputs in Angular reactive forms. Whilst this feature has now landed upstream, we have not upgraded as we observed a number of compatibility issues between the angular-output-target
and newer versions of angular.
Copyright © 2021 LocalTapiola/Turva.
FAQs
This package includes Duet Design System Web Components and related utilities.
The npm package @duetds/components receives a total of 839 weekly downloads. As such, @duetds/components popularity was classified as not popular.
We found that @duetds/components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.