Skip to content

mrtipsytony/enterprise-wc-examples

 
 

Repository files navigation

Enterprise Web Component Examples

This repo contains example projects showing how to run the new IDS web components in other frameworks. The goal of the web components is that you can use them in these frameworks without any use of wrappers or containing code.

General Tests

  1. Show a component in the page bound to data
  2. Show use of the component work similar to the component alone example
  3. Consider special specific framework key features and document things we should probably want to do. For example for Angular:
  • Provide binding to the model for values
  • Catching and handling events emitted
  • Setting and changing settings (color for example)
  • Templating loops
  • Research common framework features (reactive forms for example)
  1. Test the types are visible
  2. Show a unit test(s) that includes the component

Using Npm Link

See the WebComponents documentation about NPM Link for more information ed Frameworks.

Debugging the Components

For any framework, note that the production package in npm does not contain map files for size and security reasons. In order to debug you will have to use the debug/development package build.

  1. Clone the repo https://github.com/infor-design/enterprise-wc
  2. Run:
npm i
npm run build:dist
  1. The copy the files from build/dist/development to node_modules/ids-enterprise replacing the contents
  2. The re-run and debug

Vue.js

Starter Project: https://stackblitz.com/edit/vue See README

SvelteKit

Starter Project: https://stackblitz.com/edit/svelte See README

React

Starter Project: https://stackblitz.com/edit/react-un5ayt See README

Angular

See README

Typescript

See README

Plain JS/Html

See README

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.5%
  • HTML 27.8%
  • Svelte 10.7%
  • JavaScript 3.1%
  • CSS 1.3%
  • Vue 0.6%