dash-button-web 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dash-button.cjs.entry.js +9 -7
- package/dist/cjs/dash-button.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-065225eb.js → index-ad267eeb.js} +26 -1
- package/dist/cjs/index-ad267eeb.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/web-compnont.cjs.js +2 -2
- package/dist/collection/components/my-component/dash-button.js +44 -6
- package/dist/collection/components/my-component/dash-button.js.map +1 -1
- package/dist/components/dash-button.js +10 -6
- package/dist/components/dash-button.js.map +1 -1
- package/dist/esm/dash-button.entry.js +9 -7
- package/dist/esm/dash-button.entry.js.map +1 -1
- package/dist/esm/{index-2b1034cf.js → index-46149754.js} +26 -1
- package/dist/esm/index-46149754.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/web-compnont.js +3 -3
- package/dist/types/components/my-component/dash-button.d.ts +2 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/web-compnont/{p-ed06c47d.entry.js → p-0816eafe.entry.js} +3 -3
- package/dist/web-compnont/p-0816eafe.entry.js.map +1 -0
- package/dist/web-compnont/p-db53c3e9.js +3 -0
- package/dist/web-compnont/p-db53c3e9.js.map +1 -0
- package/dist/web-compnont/web-compnont.esm.js +1 -1
- package/dist/web-compnont/web-compnont.esm.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +13 -1
- package/dist/cjs/index-065225eb.js.map +0 -1
- package/dist/esm/index-2b1034cf.js.map +0 -1
- package/dist/web-compnont/p-bdb5725e.js +0 -3
- package/dist/web-compnont/p-bdb5725e.js.map +0 -1
- package/dist/web-compnont/p-ed06c47d.entry.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","showPostLoginText","silentCheckSso","redirectUri","authMethod","keycloakUri","realm","clientId","appId","portalUrl","marketplaceUrl","plmUrl","usageTrackingUrl","showUnauthorizedModal","postTextDelayDuration","keycloak","isAuth","givenUserName","silentCheckSsoRedirectUri","appList","showPostLoginLoadingSpinner","avatarSvg"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.12.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAajB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,ECnB/BH,IAAeQ,MAAKC,GAEXC,EAAc,iCAA8B,CAAAC,kBAAS,2BAAAC,eAAA,uBAAAC,YAAA,mBAAAC,WAAA,kBAAAC,YAAA,mBAAAC,MAAA,IAAAC,SAAA,gBAAAC,MAAA,aAAAC,UAAA,iBAAAC,eAAA,sBAAAC,OAAA,cAAAC,iBAAA,yBAAAC,sBAAA,8BAAAC,sBAAA,+BAAAC,SAAA,KAAAC,OAAA,KAAAC,cAAA,KAAAC,0BAAA,KAAAC,QAAA,KAAAC,4BAAA,KAAAC,UAAA,
|
|
1
|
+
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","showPostLoginText","silentCheckSso","redirectUri","authMethod","keycloakUri","realm","clientId","appId","portalUrl","marketplaceUrl","plmUrl","usageTrackingUrl","showUnauthorizedModal","postTextDelayDuration","primaryColor","accentColor","keycloak","isAuth","givenUserName","silentCheckSsoRedirectUri","appList","showPostLoginLoadingSpinner","avatarSvg"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.12.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAajB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,ECnB/BH,IAAeQ,MAAKC,GAEXC,EAAc,iCAA8B,CAAAC,kBAAS,2BAAAC,eAAA,uBAAAC,YAAA,mBAAAC,WAAA,kBAAAC,YAAA,mBAAAC,MAAA,IAAAC,SAAA,gBAAAC,MAAA,aAAAC,UAAA,iBAAAC,eAAA,sBAAAC,OAAA,cAAAC,iBAAA,yBAAAC,sBAAA,8BAAAC,sBAAA,+BAAAC,aAAA,oBAAAC,YAAA,mBAAAC,SAAA,KAAAC,OAAA,KAAAC,cAAA,KAAAC,0BAAA,KAAAC,QAAA,KAAAC,4BAAA,KAAAC,UAAA,UAAAxB"}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -85,7 +85,19 @@ After that, you can pass configuration options as follows using the web componen
|
|
|
85
85
|
| `realm` | `realm` | | `string` | `` |
|
|
86
86
|
| `redirectUri` | `redirect-uri` | `Application redirect URI` | `string` | `` |
|
|
87
87
|
| `showPostLoginText` | `show-post-login-text` | `Successfully logged in shows a custom button message` | `boolean` | `false` |
|
|
88
|
-
| `authMethod` | `auth-method` | `
|
|
88
|
+
| `authMethod` | `auth-method` | `Authentication method` | `string` | `check-sso`, `(login-required)` |
|
|
89
|
+
| `appId` | `app-id` | `Application unique ID` | `string` | `` |
|
|
90
|
+
| `portalUrl` | `portal-url` | `Portal URL` | `string` | `` |
|
|
91
|
+
| `marketplaceUrl` | `marketplace-url` | `Marketplace URL` | `string` | `` |
|
|
92
|
+
| `showUnauthorizedModal` | `show-unauthorized-modal` | `Show unauthorized modal` | `boolean` | `false` |
|
|
93
|
+
| `portalUrl` | `portal-url` | `Portal URL` | `string` | `` |
|
|
94
|
+
|
|
95
|
+
#### Theme Configuration options
|
|
96
|
+
|
|
97
|
+
| Property | Attribute | Description | Type | Default |
|
|
98
|
+
| -------------- | ----------------- | ----------- | --------- | ------------------------- |
|
|
99
|
+
| `primaryColor` | `primary-color` | `Set primary colour` | `string` | `` |
|
|
100
|
+
| `accentColor` | `accent-color` | `Set secondary or accent color` | `string` | `` |
|
|
89
101
|
|
|
90
102
|
|
|
91
103
|
**AuthMethod**
|