{"_id":"@domoinc/domo-ui-webcomponents","_rev":"24-eee1e275dba725cdec9232182525b10e","name":"@domoinc/domo-ui-webcomponents","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@domoinc/domo-ui-webcomponents","version":"0.0.1","author":{"name":"John Woodruff"},"license":"MIT","_id":"@domoinc/domo-ui-webcomponents@0.0.1","maintainers":[{"name":"bmbarker-domo","email":"ben.barker@domo.com"},{"name":"braxtonc","email":"braxton.christensen@gmail.com"},{"name":"cameronnokes","email":"ccnokes@gmail.com"},{"name":"clm","email":"chris.clm09@gmail.com"},{"name":"donaldtf","email":"donaldthomasford@gmail.com"},{"name":"excrispy","email":"excrispy@gmail.com"},{"name":"jbw91","email":"johnwoodruff91@gmail.com"},{"name":"jeff.smith","email":"jeff.smith@domo.com"},{"name":"jmstewart","email":"james.stewart42@gmail.com"},{"name":"jonathan-law","email":"jonathan.q.law@gmail.com"},{"name":"jpumford","email":"jpumford@gmail.com"},{"name":"k4paul","email":"kellie.morgan@domo.com"},{"name":"morganjohn12","email":"morganjohn12@gmail.com"},{"name":"scott.davidson.domo","email":"scott.davidson@domo.com"},{"name":"ttingey","email":"trevor.tingey@domo.com"},{"name":"whitney.rosenberg","email":"whitney.rosenberg@domo.com"}],"dist":{"shasum":"4ccbce639823ecfe836fbec65a0c9e1f3ca4c4e2","tarball":"https://registry.npmjs.org/@domoinc/domo-ui-webcomponents/-/domo-ui-webcomponents-0.0.1.tgz","fileCount":37,"integrity":"sha512-/YEGcw3LKpQYg3uethbnFOlgB9gkeND1i9HubHxh1xn1JvpEMadtFEHsE8pl0VOdOzgeALKQWMwPVHxp6LfD/Q==","signatures":[{"sig":"MEYCIQDk4BwGoS97ppXAj8eYv3uPiuFyk1CaVzqBmNmdUksCTAIhANy3n3DsJiDQBogtFepOnSvI/ubczGEx72MTAZ+F6Zyg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":253134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2EL2CRA9TVsSAnZWagAAnEgQAKSVgz1aXF0ByQ4ERUR1\nNkJsTpvc7g7sgL+Aze1Twe3mRY4aGVmhoSsNcN0qZi6WmauULvAalR8/fXri\nZgpQPmjZ9vEu8Nw0NMZWZUUxUBbhdBW7IeMqk1vv/3jGTtgMBwvn9zrqfBQq\nlvhLgfQe+oyfVMWLd8wXUb+ec9tVul3Kr+Jk/HWXSu4StJnZPsNjDAuRUfRc\nuDgmmk1it+cetD2zJHqL3T3YHJaakcNrLSXB0WD9p0hZm161+QOCMOF/fRSj\nlMfFo1UOCgZWRqGYCCUwBKrXdyZRj57Jo1z3FkLEqB6dggK1fFCMHUkcxu2a\nwXH+16+BS9V0lGFQVHIjhzC8zmYabVC9Adio4LiYEdsEDJKWuIRvWtJVdjWH\nOF8WB/fwOifYx9vghcqbh02wJfmI8L92OQ4/nhaoVYW16adtH6wVZF62YEWp\nsuKHj9W4Ql4ZYLbaAEHKwWb/4U7TakIcZp+Ju3lt67Z9mL4q6hR6FqsYODqQ\nq3fCrErFjOI2Mf0nQFkUbXXCyCNaA47OeBiybN3rE0jS4LMxNy0X5Imu71Gm\ny0o8GeZHizFk2ODqcZhzItsDfORQpQ4tWBNuUrwNSra2Z6fTIgdz249JikAi\nHyHk0/hoIzI82riL0QIroqHzE0kichyQdw4On769vI7EG6wCnBeyp2Yn19M3\n/rrC\r\n=xSZZ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$","transform":{"^.+\\.(ts|tsx)$":"<rootDir>/node_modules/@stencil/core/testing/jest.preprocessor.js"},"moduleFileExtensions":["ts","tsx","js","json","jsx"]},"main":"dist/index.js","_from":"file:domoinc-domo-ui-webcomponents-0.0.1.tgz","types":"dist/types/components.d.ts","module":"dist/esm/index.js","gitHead":"6397f62f3e9c2cb6eb1d0ed5052d9a800c97fb20","scripts":{"dev":"sd concurrent \"stencil build --dev --watch\" \"stencil-dev-server\" ","test":"jest","build":"stencil build","serve":"stencil-dev-server","start":"npm run dev","release":"npm test && npm run build","test.watch":"jest --watch"},"_npmUser":{"name":"cameronnokes","email":"ccnokes@gmail.com"},"_resolved":"","_integrity":"","collection":"dist/collection/collection-manifest.json","_npmVersion":"6.4.1","description":"Web components of domo-ui, compiled by StencilJS","directories":{},"_nodeVersion":"10.6.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^21.2.1","@types/jest":"^21.1.1","@stencil/core":"^0.12.4","@stencil/sass":"^0.1.0","@stencil/utils":"latest","@stencil/dev-server":"latest"},"_npmOperationalInternal":{"tmp":"tmp/domo-ui-webcomponents_0.0.1_1536342894124_0.2616603900543788","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-09-07T17:54:53.948Z","modified":"2026-02-27T17:24:06.761Z","0.0.1":"2018-09-07T17:54:54.275Z"},"author":{"name":"John Woodruff"},"license":"MIT","description":"Web components of domo-ui, compiled by StencilJS","maintainers":[{"email":"trevor.tingey@domo.com","name":"ttingey"},{"email":"morganjohn12@gmail.com","name":"morganjohn12"},{"email":"jeff.smith@domo.com","name":"jeff.smith"},{"email":"cgrieb9@gmail.com","name":"congrieb"},{"email":"spencer@myweb-host.net","name":"th3uiguy"},{"email":"jason.hansen@domo.com","name":"domo_json"},{"email":"jon.tiritilli@domo.com","name":"jontiritilli-domo"}],"readme":"# Domo UI\n\n[![npm](https://img.shields.io/npm/v/@domoinc/domo-ui.svg)](https://www.npmjs.com/package/@domoinc/domo-ui)\n[![npm](https://img.shields.io/npm/dt/@domoinc/domo-ui.svg)](https://www.npmjs.com/package/@domoinc/domo-ui)\n[![npm](https://img.shields.io/npm/dm/@domoinc/domo-ui.svg)](https://www.npmjs.com/package/@domoinc/domo-ui)\n\n![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16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%3D%3D&colorA=16161d&style=flat-square)\n\nThis component library is built using Stencil. The purpose is to provide a standard set of Domo components for use by anyone internal or external to Domo.\n\n# Stencil\n\nStencil is a compiler for building fast web apps using Web Components.\n\nStencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.\n\nStencil components are just Web Components, so they work in any major framework or with no framework at all.\n\n## Getting Started\n\nThere are a number of ways you can use this library:\n\n### Script tag\n\n- Put a script tag similar to this `<script src=\"https://unpkg.com/@domoinc/domo-ui@{LATEST_VERSION}/dist/domo-ui.js\"></script>`, replacing `{LATEST_VERSION}` with the latest released version of the library, in the head of your index.html\n- To get the global styles and classes, put a link tag similar to this `<link href=\"https://unpkg.com/@domoinc/domo-ui@{LATEST_VERSION}/dist/domo-ui.css\" rel=\"stylesheet\">`, replacing `{LATEST_VERSION}` with the latest released version of the library, in the head of your index.html\n- Then you can use the elements anywhere in your template, JSX, html etc\n\n### Angular CLI\n\n- Run `npm install @domoinc/domo-ui --save` or `yarn add @domoinc/domo-ui`\n- In your `AppModule`, import the `CUSTOM_ELEMENTS_SCHEMA` from `@angular/core` and add that to your `schemas` array, like so:\n\n```ts\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  declarations: [AppComponent],\n  imports: [BrowserModule],\n  providers: [],\n  bootstrap: [AppComponent],\n  schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class AppModule {}\n```\n\n- Import the `defineCustomElements` function from the library and include it in your `main.ts` file, like so:\n\n```ts\nimport { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { defineCustomElements } from '@domoinc/domo-ui';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nif (environment.production) {\n  enableProdMode();\n}\n\nplatformBrowserDynamic()\n  .bootstrapModule(AppModule)\n  .catch(err => console.log(err));\n\n// Call the imported function from the library, passing in window\ndefineCustomElements(window);\n```\n\n- To get the global styles and classes, import the following file at the top of your styles.css:\n\n```css\n@import '~@domoinc/domo-ui/dist/domo-ui.css';\n```\n\n### React\n\n- Run `npm install @domoinc/domo-ui --save` or `yarn add @domoinc/domo-ui`\n- In your `index.js` file, import the `defineCustomElements` function from the library and call that function passing in `window`, as is shown below:\n\n```js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { defineCustomElements } from '@domoinc/domo-ui';\nimport App from './App';\nimport './index.css';\nimport registerServiceWorker from './registerServiceWorker';\n\nReactDOM.render(<App />, document.getElementById('root'));\nregisterServiceWorker();\ndefineCustomElements(window);\n```\n\n- To get the global styles and classes, import the following file at the top of your App.css:\n\n```css\n@import '~@domoinc/domo-ui/dist/domo-ui.css';\n```\n\n### Vue\n\nIn order to use the custom element library within the Vue app, the application must be modified to define the custom elements and to inform the Vue compiler which elements to ignore during compilation. This can all be done within the `main.js` file. For example:\n\n```js\nimport Vue from 'vue';\nimport App from './App.vue';\nimport { defineCustomElements } from '@domoinc/domo-ui';\n\nVue.config.productionTip = false;\nVue.config.ignoredElements = [/domo-\\w*/];\n\ndefineCustomElements(window);\n\nnew Vue({\n  render: h => h(App)\n}).$mount('#app');\n```\n\n- To get the global styles and classes, import the following file at the top of your app's css file:\n\n```css\n@import '~@domoinc/domo-ui/dist/domo-ui.css';\n```\n\n_Other options are available, simply not documented._\n","readmeFilename":"README.md"}