@cds/core 5.7.1 → 5.8.0

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.
@@ -1,2 +1,2 @@
1
- import{__decorate as t}from"tslib";import{baseStyles as s,hasStringPropertyChangedAndNotNil as e,hasStringPropertyChanged as i,pxToRem as r,GlobalStateService as o,isString as p,property as n,state as h}from"@cds/core/internal";import{LitElement as a,html as d,svg as l}from"lit";import{query as c}from"lit/decorators/query.js";import y from"./icon.element.scss.js";import{ClarityIcons as u}from"./icon.service.js";import{updateIconSizeStyle as g}from"./utils/icon.classnames.js";import{getIconSVG as f,getIconBadgeSVG as v}from"./utils/icon.svg-helpers.js";class m extends a{constructor(){super(...arguments);this._shape="unknown",this.solid=!1,this.inverse=!1}static get styles(){return[s,y]}get shape(){return this._shape}set shape(t){if(e(t,this._shape)){const s=this._shape;this._shape=t,this.requestUpdate("shape",s)}}get size(){return this._size}set size(t){if(i(t,this._size)){const s=this._size;this._size=t,g(this,t),this.requestUpdate("size",s)}}updated(t){if(t.has("innerOffset")&&this.innerOffset>0){const t=r(-1*this.innerOffset),s=`calc(100% + ${r(2*this.innerOffset)})`;this.svg.style.width=s,this.svg.style.height=s,this.svg.style.margin=`${t} 0 0 ${t}`}}firstUpdated(t){super.firstUpdated(t);let s="unknown";this.subscription=o.stateUpdates.subscribe((t=>{"iconRegistry"===t.key&&u.registry[this.shape]&&s!==this.shape&&(s=this.shape,this.requestUpdate("shape"))}))}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.subscription)||void 0===t||t.unsubscribe()}render(){return p(u.registry[this.shape])?d`<span .innerHTML="${u.registry[this.shape]}"></span>`:l`<svg .innerHTML="${f(this)+v(this)}" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"></svg>`}}t([n({type:String})],m.prototype,"shape",null),t([n({type:String})],m.prototype,"size",null),t([n({type:String})],m.prototype,"direction",void 0),t([n({type:String})],m.prototype,"flip",void 0),t([n({type:Boolean})],m.prototype,"solid",void 0),t([n({type:String})],m.prototype,"status",void 0),t([n({type:Boolean})],m.prototype,"inverse",void 0),t([n({type:String})],m.prototype,"badge",void 0),t([h({type:Number})],m.prototype,"innerOffset",void 0),t([c("svg")],m.prototype,"svg",void 0);export{m as CdsIcon};
1
+ import{__decorate as t}from"tslib";import{baseStyles as s,hasStringPropertyChangedAndNotNil as e,hasStringPropertyChanged as i,pxToRem as r,GlobalStateService as o,isString as p,property as n,state as h}from"@cds/core/internal";import{LitElement as a,html as d,svg as c}from"lit";import{query as l}from"lit/decorators/query.js";import y from"./icon.element.scss.js";import{ClarityIcons as u}from"./icon.service.js";import{updateIconSizeStyle as g}from"./utils/icon.classnames.js";import{getIconSVG as f,getIconBadgeSVG as v}from"./utils/icon.svg-helpers.js";class m extends a{constructor(){super(...arguments);this._shape="unknown",this.solid=!1,this.inverse=!1}static get styles(){return[s,y]}get shape(){return this._shape}set shape(t){if(e(t,this._shape)){const s=this._shape;this._shape=t,this.requestUpdate("shape",s)}}get size(){return this._size}set size(t){if(i(t,this._size)){const s=this._size;this._size=t,g(this,t),this.requestUpdate("size",s)}}updated(t){if(t.has("innerOffset")&&this.innerOffset>0){const t=r(-1*this.innerOffset),s=`calc(100% + ${r(2*this.innerOffset)})`;this.svg.style.width=s,this.svg.style.height=s,this.svg.style.margin=`${t} 0 0 ${t}`}}firstUpdated(t){if(super.firstUpdated(t),this.isConnected){let t="unknown";this.subscription=o.stateUpdates.subscribe((s=>{"iconRegistry"===s.key&&u.registry[this.shape]&&t!==this.shape&&(t=this.shape,this.requestUpdate("shape"))}))}}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.subscription)||void 0===t||t.unsubscribe()}render(){return p(u.registry[this.shape])?d`<span .innerHTML="${u.registry[this.shape]}"></span>`:c`<svg .innerHTML="${f(this)+v(this)}" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"></svg>`}}t([n({type:String})],m.prototype,"shape",null),t([n({type:String})],m.prototype,"size",null),t([n({type:String})],m.prototype,"direction",void 0),t([n({type:String})],m.prototype,"flip",void 0),t([n({type:Boolean})],m.prototype,"solid",void 0),t([n({type:String})],m.prototype,"status",void 0),t([n({type:Boolean})],m.prototype,"inverse",void 0),t([n({type:String})],m.prototype,"badge",void 0),t([h({type:Number})],m.prototype,"innerOffset",void 0),t([l("svg")],m.prototype,"svg",void 0);export{m as CdsIcon};
2
2
  //# sourceMappingURL=icon.element.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.element.js","sources":["../../../src/icon/icon.element.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\nimport { __decorate } from \"tslib\";\nimport { baseStyles, hasStringPropertyChanged, hasStringPropertyChangedAndNotNil, property, state, isString, pxToRem, GlobalStateService, } from '@cds/core/internal';\nimport { html, LitElement, svg } from 'lit';\nimport { query } from 'lit/decorators/query.js';\nimport styles from './icon.element.scss';\nimport { ClarityIcons } from './icon.service.js';\nimport { updateIconSizeStyle } from './utils/icon.classnames.js';\nimport { getIconBadgeSVG, getIconSVG } from './utils/icon.svg-helpers.js';\n/**\n * Icon component that renders svg shapes that can be customized.\n * To load an icon, import the icon with the icon service.\n *\n * ```typescript\n * import '@cds/core/icon/register.js';\n * import { ClarityIcons, userIcon } from '@cds/core/icon';\n *\n * ClarityIcons.addIcons(userIcon);\n * ```\n *\n * ```html\n * <cds-icon shape=\"user\"></cds-icon>\n * ```\n *\n * @element cds-icon\n * @cssprop --color\n * @cssprop --badge-color\n */\nexport class CdsIcon extends LitElement {\n constructor() {\n super(...arguments);\n this._shape = 'unknown';\n /**\n * Displays most icons in their \"filled\" version if set to `true`.\n */\n this.solid = false;\n /**\n * Inverts color of icon fills and outlines if `true`.\n * Useful for displaying icons on a dark background.\n */\n this.inverse = false;\n }\n static get styles() {\n return [baseStyles, styles];\n }\n get shape() {\n return this._shape;\n }\n /**\n * Changes the svg glyph displayed in the icon component. Defaults to the 'unknown' icon if\n * the specified icon cannot be found in the icon registry.\n */\n set shape(val) {\n if (hasStringPropertyChangedAndNotNil(val, this._shape)) {\n const oldVal = this._shape;\n this._shape = val;\n this.requestUpdate('shape', oldVal);\n }\n }\n get size() {\n return this._size;\n }\n /**\n * Apply numerical width-height or a t-shirt-sized CSS classname\n * @type {string | xs | sm | md | lg | xl | xxl}\n */\n set size(val) {\n if (hasStringPropertyChanged(val, this._size)) {\n const oldVal = this._size;\n this._size = val;\n updateIconSizeStyle(this, val);\n this.requestUpdate('size', oldVal);\n }\n }\n updated(props) {\n if (props.has('innerOffset') && this.innerOffset > 0) {\n const val = pxToRem(-1 * this.innerOffset);\n const dimension = `calc(100% + ${pxToRem(this.innerOffset * 2)})`;\n this.svg.style.width = dimension;\n this.svg.style.height = dimension;\n this.svg.style.margin = `${val} 0 0 ${val}`;\n }\n }\n firstUpdated(props) {\n super.firstUpdated(props);\n let prior = 'unknown';\n this.subscription = GlobalStateService.stateUpdates.subscribe(update => {\n if (update.key === 'iconRegistry' && ClarityIcons.registry[this.shape] && prior !== this.shape) {\n prior = this.shape;\n this.requestUpdate('shape');\n }\n });\n }\n disconnectedCallback() {\n var _a;\n super.disconnectedCallback();\n (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n }\n render() {\n return isString(ClarityIcons.registry[this.shape])\n ? html `<span .innerHTML=\"${ClarityIcons.registry[this.shape]}\"></span>`\n : svg `<svg .innerHTML=\"${getIconSVG(this) + getIconBadgeSVG(this)}\" viewBox=\"0 0 36 36\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\"></svg>`;\n }\n}\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"shape\", null);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"size\", null);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"direction\", void 0);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"flip\", void 0);\n__decorate([\n property({ type: Boolean })\n], CdsIcon.prototype, \"solid\", void 0);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"status\", void 0);\n__decorate([\n property({ type: Boolean })\n], CdsIcon.prototype, \"inverse\", void 0);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"badge\", void 0);\n__decorate([\n state({ type: Number })\n], CdsIcon.prototype, \"innerOffset\", void 0);\n__decorate([\n query('svg')\n], CdsIcon.prototype, \"svg\", void 0);\n"],"names":["CdsIcon","LitElement","constructor","super","this","_shape","solid","inverse","styles","baseStyles","shape","val","hasStringPropertyChangedAndNotNil","oldVal","requestUpdate","size","_size","hasStringPropertyChanged","updateIconSizeStyle","updated","props","has","innerOffset","pxToRem","dimension","svg","style","width","height","margin","firstUpdated","prior","subscription","GlobalStateService","stateUpdates","subscribe","update","key","ClarityIcons","registry","disconnectedCallback","_a","unsubscribe","render","isString","html","getIconSVG","getIconBadgeSVG","__decorate","property","type","String","prototype","Boolean","state","Number","query"],"mappings":"8iBAgCO,MAAMA,UAAgBC,EACzBC,cACIC,oBACAC,KAAKC,OAAS,UAIdD,KAAKE,OAAQ,EAKbF,KAAKG,SAAU,EAERC,oBACP,MAAO,CAACC,EAAYD,GAEpBE,YACA,OAAON,KAAKC,OAMZK,UAAMC,GACN,GAAIC,EAAkCD,EAAKP,KAAKC,QAAS,CACrD,MAAMQ,EAAST,KAAKC,OACpBD,KAAKC,OAASM,EACdP,KAAKU,cAAc,QAASD,IAGhCE,WACA,OAAOX,KAAKY,MAMZD,SAAKJ,GACL,GAAIM,EAAyBN,EAAKP,KAAKY,OAAQ,CAC3C,MAAMH,EAAST,KAAKY,MACpBZ,KAAKY,MAAQL,EACbO,EAAoBd,KAAMO,GAC1BP,KAAKU,cAAc,OAAQD,IAGnCM,QAAQC,GACJ,GAAIA,EAAMC,IAAI,gBAAkBjB,KAAKkB,YAAc,EAAG,CAClD,MAAMX,EAAMY,GAAS,EAAInB,KAAKkB,aACxBE,EAAY,eAAeD,EAA2B,EAAnBnB,KAAKkB,gBAC9ClB,KAAKqB,IAAIC,MAAMC,MAAQH,EACvBpB,KAAKqB,IAAIC,MAAME,OAASJ,EACxBpB,KAAKqB,IAAIC,MAAMG,OAAS,GAAGlB,SAAWA,KAG9CmB,aAAaV,GACTjB,MAAM2B,aAAaV,GACnB,IAAIW,EAAQ,UACZ3B,KAAK4B,aAAeC,EAAmBC,aAAaC,WAAUC,IACvC,iBAAfA,EAAOC,KAA0BC,EAAaC,SAASnC,KAAKM,QAAUqB,IAAU3B,KAAKM,QACrFqB,EAAQ3B,KAAKM,MACbN,KAAKU,cAAc,aAI/B0B,uBACI,IAAIC,EACJtC,MAAMqC,uBACuB,QAA5BC,EAAKrC,KAAK4B,oBAAiC,IAAPS,GAAyBA,EAAGC,cAErEC,SACI,OAAOC,EAASN,EAAaC,SAASnC,KAAKM,QACrCmC,CAAK,qBAAqBP,EAAaC,SAASnC,KAAKM,kBACrDe,CAAI,oBAAoBqB,EAAW1C,MAAQ2C,EAAgB3C,2FAGzE4C,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBnD,EAAQoD,UAAW,QAAS,MAC/BJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBnD,EAAQoD,UAAW,OAAQ,MAC9BJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBnD,EAAQoD,UAAW,iBAAa,GACnCJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBnD,EAAQoD,UAAW,YAAQ,GAC9BJ,EAAW,CACPC,EAAS,CAAEC,KAAMG,WAClBrD,EAAQoD,UAAW,aAAS,GAC/BJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBnD,EAAQoD,UAAW,cAAU,GAChCJ,EAAW,CACPC,EAAS,CAAEC,KAAMG,WAClBrD,EAAQoD,UAAW,eAAW,GACjCJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBnD,EAAQoD,UAAW,aAAS,GAC/BJ,EAAW,CACPM,EAAM,CAAEJ,KAAMK,UACfvD,EAAQoD,UAAW,mBAAe,GACrCJ,EAAW,CACPQ,EAAM,QACPxD,EAAQoD,UAAW,WAAO"}
1
+ {"version":3,"file":"icon.element.js","sources":["../../../src/icon/icon.element.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\nimport { __decorate } from \"tslib\";\nimport { baseStyles, hasStringPropertyChanged, hasStringPropertyChangedAndNotNil, property, state, isString, pxToRem, GlobalStateService, } from '@cds/core/internal';\nimport { html, LitElement, svg } from 'lit';\nimport { query } from 'lit/decorators/query.js';\nimport styles from './icon.element.scss';\nimport { ClarityIcons } from './icon.service.js';\nimport { updateIconSizeStyle } from './utils/icon.classnames.js';\nimport { getIconBadgeSVG, getIconSVG } from './utils/icon.svg-helpers.js';\n/**\n * Icon component that renders svg shapes that can be customized.\n * To load an icon, import the icon with the icon service.\n *\n * ```typescript\n * import '@cds/core/icon/register.js';\n * import { ClarityIcons, userIcon } from '@cds/core/icon';\n *\n * ClarityIcons.addIcons(userIcon);\n * ```\n *\n * ```html\n * <cds-icon shape=\"user\"></cds-icon>\n * ```\n *\n * @element cds-icon\n * @cssprop --color\n * @cssprop --badge-color\n */\nexport class CdsIcon extends LitElement {\n constructor() {\n super(...arguments);\n this._shape = 'unknown';\n /**\n * Displays most icons in their \"filled\" version if set to `true`.\n */\n this.solid = false;\n /**\n * Inverts color of icon fills and outlines if `true`.\n * Useful for displaying icons on a dark background.\n */\n this.inverse = false;\n }\n static get styles() {\n return [baseStyles, styles];\n }\n get shape() {\n return this._shape;\n }\n /**\n * Changes the svg glyph displayed in the icon component. Defaults to the 'unknown' icon if\n * the specified icon cannot be found in the icon registry.\n */\n set shape(val) {\n if (hasStringPropertyChangedAndNotNil(val, this._shape)) {\n const oldVal = this._shape;\n this._shape = val;\n this.requestUpdate('shape', oldVal);\n }\n }\n get size() {\n return this._size;\n }\n /**\n * Apply numerical width-height or a t-shirt-sized CSS classname\n * @type {string | xs | sm | md | lg | xl | xxl}\n */\n set size(val) {\n if (hasStringPropertyChanged(val, this._size)) {\n const oldVal = this._size;\n this._size = val;\n updateIconSizeStyle(this, val);\n this.requestUpdate('size', oldVal);\n }\n }\n updated(props) {\n if (props.has('innerOffset') && this.innerOffset > 0) {\n const val = pxToRem(-1 * this.innerOffset);\n const dimension = `calc(100% + ${pxToRem(this.innerOffset * 2)})`;\n this.svg.style.width = dimension;\n this.svg.style.height = dimension;\n this.svg.style.margin = `${val} 0 0 ${val}`;\n }\n }\n firstUpdated(props) {\n super.firstUpdated(props);\n if (this.isConnected) {\n let prior = 'unknown';\n this.subscription = GlobalStateService.stateUpdates.subscribe(update => {\n if (update.key === 'iconRegistry' && ClarityIcons.registry[this.shape] && prior !== this.shape) {\n prior = this.shape;\n this.requestUpdate('shape');\n }\n });\n }\n }\n disconnectedCallback() {\n var _a;\n super.disconnectedCallback();\n (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n }\n render() {\n return isString(ClarityIcons.registry[this.shape])\n ? html `<span .innerHTML=\"${ClarityIcons.registry[this.shape]}\"></span>`\n : svg `<svg .innerHTML=\"${getIconSVG(this) + getIconBadgeSVG(this)}\" viewBox=\"0 0 36 36\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\"></svg>`;\n }\n}\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"shape\", null);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"size\", null);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"direction\", void 0);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"flip\", void 0);\n__decorate([\n property({ type: Boolean })\n], CdsIcon.prototype, \"solid\", void 0);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"status\", void 0);\n__decorate([\n property({ type: Boolean })\n], CdsIcon.prototype, \"inverse\", void 0);\n__decorate([\n property({ type: String })\n], CdsIcon.prototype, \"badge\", void 0);\n__decorate([\n state({ type: Number })\n], CdsIcon.prototype, \"innerOffset\", void 0);\n__decorate([\n query('svg')\n], CdsIcon.prototype, \"svg\", void 0);\n"],"names":["CdsIcon","LitElement","constructor","super","this","_shape","solid","inverse","styles","baseStyles","shape","val","hasStringPropertyChangedAndNotNil","oldVal","requestUpdate","size","_size","hasStringPropertyChanged","updateIconSizeStyle","updated","props","has","innerOffset","pxToRem","dimension","svg","style","width","height","margin","firstUpdated","isConnected","prior","subscription","GlobalStateService","stateUpdates","subscribe","update","key","ClarityIcons","registry","disconnectedCallback","_a","unsubscribe","render","isString","html","getIconSVG","getIconBadgeSVG","__decorate","property","type","String","prototype","Boolean","state","Number","query"],"mappings":"8iBAgCO,MAAMA,UAAgBC,EACzBC,cACIC,oBACAC,KAAKC,OAAS,UAIdD,KAAKE,OAAQ,EAKbF,KAAKG,SAAU,EAERC,oBACP,MAAO,CAACC,EAAYD,GAEpBE,YACA,OAAON,KAAKC,OAMZK,UAAMC,GACN,GAAIC,EAAkCD,EAAKP,KAAKC,QAAS,CACrD,MAAMQ,EAAST,KAAKC,OACpBD,KAAKC,OAASM,EACdP,KAAKU,cAAc,QAASD,IAGhCE,WACA,OAAOX,KAAKY,MAMZD,SAAKJ,GACL,GAAIM,EAAyBN,EAAKP,KAAKY,OAAQ,CAC3C,MAAMH,EAAST,KAAKY,MACpBZ,KAAKY,MAAQL,EACbO,EAAoBd,KAAMO,GAC1BP,KAAKU,cAAc,OAAQD,IAGnCM,QAAQC,GACJ,GAAIA,EAAMC,IAAI,gBAAkBjB,KAAKkB,YAAc,EAAG,CAClD,MAAMX,EAAMY,GAAS,EAAInB,KAAKkB,aACxBE,EAAY,eAAeD,EAA2B,EAAnBnB,KAAKkB,gBAC9ClB,KAAKqB,IAAIC,MAAMC,MAAQH,EACvBpB,KAAKqB,IAAIC,MAAME,OAASJ,EACxBpB,KAAKqB,IAAIC,MAAMG,OAAS,GAAGlB,SAAWA,KAG9CmB,aAAaV,GAET,GADAjB,MAAM2B,aAAaV,GACfhB,KAAK2B,YAAa,CAClB,IAAIC,EAAQ,UACZ5B,KAAK6B,aAAeC,EAAmBC,aAAaC,WAAUC,IACvC,iBAAfA,EAAOC,KAA0BC,EAAaC,SAASpC,KAAKM,QAAUsB,IAAU5B,KAAKM,QACrFsB,EAAQ5B,KAAKM,MACbN,KAAKU,cAAc,cAKnC2B,uBACI,IAAIC,EACJvC,MAAMsC,uBACuB,QAA5BC,EAAKtC,KAAK6B,oBAAiC,IAAPS,GAAyBA,EAAGC,cAErEC,SACI,OAAOC,EAASN,EAAaC,SAASpC,KAAKM,QACrCoC,CAAK,qBAAqBP,EAAaC,SAASpC,KAAKM,kBACrDe,CAAI,oBAAoBsB,EAAW3C,MAAQ4C,EAAgB5C,2FAGzE6C,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBpD,EAAQqD,UAAW,QAAS,MAC/BJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBpD,EAAQqD,UAAW,OAAQ,MAC9BJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBpD,EAAQqD,UAAW,iBAAa,GACnCJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBpD,EAAQqD,UAAW,YAAQ,GAC9BJ,EAAW,CACPC,EAAS,CAAEC,KAAMG,WAClBtD,EAAQqD,UAAW,aAAS,GAC/BJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBpD,EAAQqD,UAAW,cAAU,GAChCJ,EAAW,CACPC,EAAS,CAAEC,KAAMG,WAClBtD,EAAQqD,UAAW,eAAW,GACjCJ,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClBpD,EAAQqD,UAAW,aAAS,GAC/BJ,EAAW,CACPM,EAAM,CAAEJ,KAAMK,UACfxD,EAAQqD,UAAW,mBAAe,GACrCJ,EAAW,CACPQ,EAAM,QACPzD,EAAQqD,UAAW,WAAO"}
@@ -1,2 +1,2 @@
1
- import{css as o}from"lit";var r=o`:host{--background-size:0% 100%;--background-color:var(--cds-alias-object-opacity-0, rgba(0, 0, 0, 0));--background:linear-gradient(180deg, var(--background-color) 95%, var(--border-color) 0) no-repeat;--border-color:var(--cds-alias-object-interaction-border-color, var(--cds-global-color-construction-500, #6a7a81));--border:0;--border-bottom:var(--cds-alias-object-border-width-100, calc(1 / var(--cds-global-base, 20) * 1rem)) solid var(--border-color);--border-radius:0;--outline:var(--cds-alias-object-interaction-outline);--outline-offset:var(--cds-alias-object-interaction-outline-offset);--cds-alias-object-interaction-outline:none;--cds-alias-object-interaction-outline-offset:0;--padding:var(--cds-global-space-2, calc(2 / var(--cds-global-base, 20) * 1rem)) var(--cds-global-space-4, calc(6 / var(--cds-global-base, 20) * 1rem)) 0 var(--cds-global-space-4, calc(6 / var(--cds-global-base, 20) * 1rem));--font-size:var(--cds-global-typography-font-size-3, calc(13 / var(--cds-global-base, 20) * 1rem));--color:var(--cds-global-typography-color-400, var(--cds-global-color-construction-900, #21333b));--line-height:var(--cds-global-space-9, calc(24 / var(--cds-global-base, 20) * 1rem));--transition:background-size var(--cds-global-animation-duration-quick, 0.2s) ease;--text-align:inherit;display:block;width:100%}::slotted([slot=input]:not([multiple]):not([size])){text-transform:var(--text-transform)!important;border:var(--border)!important;outline:var(--outline)!important;padding:var(--padding);font-size:var(--font-size)!important;color:var(--color)!important;line-height:var(--line-height)!important;height:var(--line-height)!important;border-radius:var(--border-radius)!important;width:100%!important;-webkit-appearance:none!important;background:var(--cds-alias-object-opacity-0,rgba(0,0,0,0))!important;box-shadow:none!important;text-align:var(--text-align)!important}::slotted([slot=input]:not([multiple]):not([size]))::placeholder{--color:var(--cds-global-typography-color-200, var(--cds-global-color-construction-600, #4f6169))!important}::slotted([slot=input]){margin:0!important}.input-container{transition:var(--transition);background:var(--background);background-size:var(--background-size);border-bottom:var(--border-bottom);border-radius:var(--border-radius)!important;position:relative}.prefix,.suffix{line-height:0;position:absolute;pointer-events:none}.prefix{left:0}.suffix{right:0}.rtl .prefix{left:initial;right:0}.rtl .suffix{right:initial;left:0}.rtl ::slotted([slot=input]){text-align:right}:host([_focused]){--background-size:100% 100%;--border-color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}:host([_readonly]){--border-bottom:0;--background-size:0% 100%;--background:var(--cds-alias-object-opacity-0, rgba(0, 0, 0, 0))}:host([status=error]),:host([status=error][_focused]){--border-color:var(--cds-alias-status-danger, var(--cds-global-color-red-700, #e02200))}:host([status=success]){--border-color:var(--cds-alias-status-success, var(--cds-global-color-green-700, #42810e))}:host([_disabled]){--border-color:var(--cds-alias-object-border-color-tint, var(--cds-global-color-construction-100, #e3eaed));--color:var(--cds-alias-status-disabled, var(--cds-global-color-construction-300, #aeb8bc))}`;export{r as default};
1
+ import{css as o}from"lit";var r=o`:host{--background-size:0% 100%;--background-color:var(--cds-alias-object-opacity-0, rgba(0, 0, 0, 0));--background:linear-gradient(180deg, var(--background-color) 95%, var(--border-color) 0) no-repeat;--border-color:var(--cds-alias-object-interaction-border-color, var(--cds-global-color-construction-500, #6a7a81));--border:0;--border-bottom:var(--cds-alias-object-border-width-100, calc(1 / var(--cds-global-base, 20) * 1rem)) solid var(--border-color);--border-radius:0;--outline:var(--cds-alias-object-interaction-outline);--outline-offset:var(--cds-alias-object-interaction-outline-offset);--cds-alias-object-interaction-outline:none;--cds-alias-object-interaction-outline-offset:0;--padding:var(--cds-global-space-2, calc(2 / var(--cds-global-base, 20) * 1rem)) var(--cds-global-space-4, calc(6 / var(--cds-global-base, 20) * 1rem)) 0 var(--cds-global-space-4, calc(6 / var(--cds-global-base, 20) * 1rem));--font-size:var(--cds-global-typography-font-size-3, calc(13 / var(--cds-global-base, 20) * 1rem));--color:var(--cds-global-typography-color-400, var(--cds-global-color-construction-900, #21333b));--line-height:var(--cds-global-space-9, calc(24 / var(--cds-global-base, 20) * 1rem));--transition:background-size var(--cds-global-animation-duration-quick, 0.2s) ease;--text-align:inherit;display:block;width:100%}::slotted([slot=input]:not(select[multiple]):not(select[size])){text-transform:var(--text-transform)!important;border:var(--border)!important;outline:var(--outline)!important;padding:var(--padding);font-size:var(--font-size)!important;color:var(--color)!important;line-height:var(--line-height)!important;height:var(--line-height)!important;border-radius:var(--border-radius)!important;width:100%!important;-webkit-appearance:none!important;background:var(--cds-alias-object-opacity-0,rgba(0,0,0,0))!important;box-shadow:none!important;text-align:var(--text-align)!important}::slotted([slot=input]:not(select[multiple]):not(select[size]))::placeholder{--color:var(--cds-global-typography-color-200, var(--cds-global-color-construction-600, #4f6169))!important}::slotted([slot=input]){margin:0!important}.input-container{transition:var(--transition);background:var(--background);background-size:var(--background-size);border-bottom:var(--border-bottom);border-radius:var(--border-radius)!important;position:relative}.prefix,.suffix{line-height:0;position:absolute;pointer-events:none}.prefix{left:0}.suffix{right:0}.rtl .prefix{left:initial;right:0}.rtl .suffix{right:initial;left:0}.rtl ::slotted([slot=input]){text-align:right}:host([_focused]){--background-size:100% 100%;--border-color:var(--cds-alias-status-info, var(--cds-global-color-blue-700, #0079ad))}:host([_readonly]){--border-bottom:0;--background-size:0% 100%;--background:var(--cds-alias-object-opacity-0, rgba(0, 0, 0, 0))}:host([status=error]),:host([status=error][_focused]){--border-color:var(--cds-alias-status-danger, var(--cds-global-color-red-700, #e02200))}:host([status=success]){--border-color:var(--cds-alias-status-success, var(--cds-global-color-green-700, #42810e))}:host([_disabled]){--border-color:var(--cds-alias-object-border-color-tint, var(--cds-global-color-construction-100, #e3eaed));--color:var(--cds-alias-status-disabled, var(--cds-global-color-construction-300, #aeb8bc))}`;export{r as default};
2
2
  //# sourceMappingURL=input.element.scss.js.map
@@ -1,2 +1,2 @@
1
1
  import { PropertyDrivenAnimation } from '../motion/interfaces.js';
2
- export declare function animate(config: PropertyDrivenAnimation): <T extends new (...args: any[]) => any>(constr: T) => T;
2
+ export declare function animate(config: PropertyDrivenAnimation): (() => void) | (<T extends new (...args: any[]) => any>(constr: T) => T);
@@ -1,2 +1,2 @@
1
- import{PRIVATE_ANIMATION_STATUS_ATTR_NAME as t,AnimationStatus as e}from"../motion/interfaces.js";import{runPropertyAnimations as o}from"../motion/utils.js";function i(i){return function(r){const s=r;return class extends s{updated(r){super.updated(r);const s=this;s._animations=i||void 0,s.hasAttribute(t)?s.hasAttribute("_demo-mode")||o(r,s):s.setAttribute(t,e.ready)}}}}export{i as animate};
1
+ import{PRIVATE_ANIMATION_STATUS_ATTR_NAME as t,AnimationStatus as o}from"../motion/interfaces.js";import{runPropertyAnimations as e}from"../motion/utils.js";import{isJestTest as i}from"../utils/environment.js";function n(n){return i()?function(){}:function(i){const r=i;return class extends r{updated(i){super.updated(i);const r=this;r._animations=n||void 0,r.hasAttribute(t)?r.hasAttribute("_demo-mode")||e(i,r):r.setAttribute(t,o.ready)}}}}export{n as animate};
2
2
  //# sourceMappingURL=animate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"animate.js","sources":["../../../../src/internal/decorators/animate.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\nimport { AnimationStatus, PRIVATE_ANIMATION_STATUS_ATTR_NAME, } from '../motion/interfaces.js';\nimport { runPropertyAnimations } from '../motion/utils.js';\n// https://www.typescriptlang.org/docs/handbook/decorators.html#class-decorators\nexport function animate(config) {\n return function _DecoratorName(constr) {\n const _constr = constr;\n return class extends _constr {\n updated(props) {\n super.updated(props);\n const self = this;\n self._animations = config || void 0;\n if (!self.hasAttribute(PRIVATE_ANIMATION_STATUS_ATTR_NAME)) {\n self.setAttribute(PRIVATE_ANIMATION_STATUS_ATTR_NAME, AnimationStatus.ready);\n }\n else if (!self.hasAttribute('_demo-mode')) {\n // ignore if element has the _demo-mode attribute set; _demo-mode is used for docs, static examples, and stories\n runPropertyAnimations(props, self);\n }\n }\n };\n };\n}\n"],"names":["animate","config","constr","_constr","updated","props","super","self","this","_animations","hasAttribute","PRIVATE_ANIMATION_STATUS_ATTR_NAME","runPropertyAnimations","setAttribute","AnimationStatus","ready"],"mappings":"6JAQO,SAASA,EAAQC,GACpB,OAAO,SAAwBC,GAC3B,MAAMC,EAAUD,EAChB,OAAO,cAAcC,EACjBC,QAAQC,GACJC,MAAMF,QAAQC,GACd,MAAME,EAAOC,KACbD,EAAKE,YAAcR,QAAU,EACxBM,EAAKG,aAAaC,GAGbJ,EAAKG,aAAa,eAExBE,EAAsBP,EAAOE,GAJ7BA,EAAKM,aAAaF,EAAoCG,EAAgBC"}
1
+ {"version":3,"file":"animate.js","sources":["../../../../src/internal/decorators/animate.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\nimport { AnimationStatus, PRIVATE_ANIMATION_STATUS_ATTR_NAME, } from '../motion/interfaces.js';\nimport { runPropertyAnimations } from '../motion/utils.js';\nimport { isJestTest } from '../utils/environment.js';\n// https://www.typescriptlang.org/docs/handbook/decorators.html#class-decorators\nexport function animate(config) {\n if (isJestTest()) {\n return function () {\n // jsdom doesn't like the class returned from the decorator below\n // do nothing\n };\n }\n return function _DecoratorName(constr) {\n const _constr = constr;\n return class extends _constr {\n updated(props) {\n super.updated(props);\n const self = this;\n self._animations = config || void 0;\n if (!self.hasAttribute(PRIVATE_ANIMATION_STATUS_ATTR_NAME)) {\n self.setAttribute(PRIVATE_ANIMATION_STATUS_ATTR_NAME, AnimationStatus.ready);\n }\n else if (!self.hasAttribute('_demo-mode')) {\n // ignore if element has the _demo-mode attribute set; _demo-mode is used for docs, static examples, and stories\n runPropertyAnimations(props, self);\n }\n }\n };\n };\n}\n"],"names":["animate","config","isJestTest","constr","_constr","updated","props","super","self","this","_animations","hasAttribute","PRIVATE_ANIMATION_STATUS_ATTR_NAME","runPropertyAnimations","setAttribute","AnimationStatus","ready"],"mappings":"kNASO,SAASA,EAAQC,GACpB,OAAIC,IACO,aAKJ,SAAwBC,GAC3B,MAAMC,EAAUD,EAChB,OAAO,cAAcC,EACjBC,QAAQC,GACJC,MAAMF,QAAQC,GACd,MAAME,EAAOC,KACbD,EAAKE,YAAcT,QAAU,EACxBO,EAAKG,aAAaC,GAGbJ,EAAKG,aAAa,eAExBE,EAAsBP,EAAOE,GAJ7BA,EAAKM,aAAaF,EAAoCG,EAAgBC"}
@@ -1,2 +1,2 @@
1
- import{isBrowser as e}from"./environment.js";import{getAngularVersion as n,getAngularJSVersion as o,getReactVersion as t,getVueVersion as i}from"./framework.js";import{browserFeatures as s}from"./supports.js";import{LogService as r}from"../services/log.service.js";function w(){e()&&(window.CDS=window.CDS||{_version:[],_react:{version:void 0},_supports:s.supports,_isStateProxied:!1,_state:{focusTrapItems:[],i18nRegistry:{},elementRegistry:{},iconRegistry:{},motionRegistry:{}},environment:{production:!1},getDetails:a,logDetails:d},function(){var e;const n="5.7.1";window.CDS._version.indexOf(n)<0&&(window.CDS._version.push(n),null===(e=document.querySelector("body"))||void 0===e||e.setAttribute("cds-version",window.CDS._version.join(" "))),window.CDS._version.length>1&&r.warn("Running more than one version of Clarity can cause unexpected issues. Please ensure only one version is loaded.")}(),window.CDS._isStateProxied||(window.CDS._isStateProxied=!0,window.CDS._state=new Proxy(window.CDS._state,{set:(e,n,o)=>{const t={key:n,prev:window.CDS._state[n],current:o};return e[n]=o,document.dispatchEvent(new CustomEvent("CDS_STATE_UPDATE",{detail:t})),!0}})))}function a(){return{versions:window.CDS._version,environment:window.CDS.environment,userAgent:navigator.userAgent,supports:window.CDS._supports,angularVersion:n(!1),angularJSVersion:o(!1),reactVersion:t(!1),vueVersion:i(!1),state:{...window.CDS._state,iconRegistry:Object.keys(window.CDS._state.iconRegistry),motionRegistry:Object.keys(window.CDS._state.motionRegistry),focusTrapRegistry:Object.keys(window.CDS._state.focusTrapItems.map((e=>e.focusTrapId)))}}}function d(){r.log(JSON.stringify(a(),null,2))}export{w as setupCDSGlobal};
1
+ import{isBrowser as e}from"./environment.js";import{getAngularVersion as n,getAngularJSVersion as o,getReactVersion as t,getVueVersion as i}from"./framework.js";import{browserFeatures as s}from"./supports.js";import{LogService as r}from"../services/log.service.js";function w(){e()&&(window.CDS=window.CDS||{_version:[],_react:{version:void 0},_supports:s.supports,_isStateProxied:!1,_state:{focusTrapItems:[],i18nRegistry:{},elementRegistry:{},iconRegistry:{},motionRegistry:{}},environment:{production:!1},getDetails:a,logDetails:d},function(){var e;const n="5.8.0";window.CDS._version.indexOf(n)<0&&(window.CDS._version.push(n),null===(e=document.querySelector("body"))||void 0===e||e.setAttribute("cds-version",window.CDS._version.join(" "))),window.CDS._version.length>1&&r.warn("Running more than one version of Clarity can cause unexpected issues. Please ensure only one version is loaded.")}(),window.CDS._isStateProxied||(window.CDS._isStateProxied=!0,window.CDS._state=new Proxy(window.CDS._state,{set:(e,n,o)=>{const t={key:n,prev:window.CDS._state[n],current:o};return e[n]=o,document.dispatchEvent(new CustomEvent("CDS_STATE_UPDATE",{detail:t})),!0}})))}function a(){return{versions:window.CDS._version,environment:window.CDS.environment,userAgent:navigator.userAgent,supports:window.CDS._supports,angularVersion:n(!1),angularJSVersion:o(!1),reactVersion:t(!1),vueVersion:i(!1),state:{...window.CDS._state,iconRegistry:Object.keys(window.CDS._state.iconRegistry),motionRegistry:Object.keys(window.CDS._state.motionRegistry),focusTrapRegistry:Object.keys(window.CDS._state.focusTrapItems.map((e=>e.focusTrapId)))}}}function d(){r.log(JSON.stringify(a(),null,2))}export{w as setupCDSGlobal};
2
2
  //# sourceMappingURL=global.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "MIT",
4
4
  "author": "clarity",
5
5
  "description": "Clarity Design System - common components, themes, and utilties",
6
- "homepage": "https://clarity.design",
6
+ "homepage": "https://core.clarity.design",
7
7
  "customElements": "./custom-elements.json",
8
8
  "keywords": [
9
9
  "web component",
@@ -216,5 +216,5 @@
216
216
  "./tokens/tokens.ios.swift": "./tokens/tokens.ios.swift",
217
217
  "./tokens/tokens.android.xml": "./tokens/tokens.android.xml"
218
218
  },
219
- "version": "5.7.1"
219
+ "version": "5.8.0"
220
220
  }
@@ -1,2 +1,2 @@
1
- import{__decorate as t}from"tslib";import{querySlotAll as o,id as r}from"@cds/core/internal";import{CdsInternalControlGroup as s}from"@cds/core/forms";class e extends s{static get styles(){return[...super.styles]}firstUpdated(t){super.firstUpdated(t),this.associateRadioControls(),this.syncRadioControls()}associateRadioControls(){this.controls.forEach((t=>{t&&!t.inputControl.getAttribute("name")&&t.inputControl.setAttribute("name",this.radioName)}))}syncRadioControls(){this.controls.forEach((t=>t.addEventListener("checkedChange",(t=>{t.detail&&(Array.from(this.controls).forEach((t=>t.inputControl.checked=!1)),t.target.inputControl.checked=!0)}))))}}t([o("cds-radio, cds-radio")],e.prototype,"controls",void 0),t([r()],e.prototype,"radioName",void 0);export{e as CdsRadioGroup};
1
+ import{__decorate as t}from"tslib";import{querySlotAll as o,id as r}from"@cds/core/internal";import{CdsInternalControlGroup as s}from"@cds/core/forms";class e extends s{static get styles(){return[...super.styles]}firstUpdated(t){super.firstUpdated(t),this.associateRadioControls(),this.syncRadioControls()}associateRadioControls(){this.controls.forEach((t=>{t&&!t.inputControl.getAttribute("name")&&t.inputControl.setAttribute("name",this.radioName)}))}syncRadioControls(){this.controls.forEach((t=>t.addEventListener("checkedChange",(t=>{t.detail&&(Array.from(this.controls).forEach((t=>t.inputControl.checked=!1)),t.target.inputControl.checked=!0)}))))}}t([o("cds-radio, cds-radio-panel")],e.prototype,"controls",void 0),t([r()],e.prototype,"radioName",void 0);export{e as CdsRadioGroup};
2
2
  //# sourceMappingURL=radio-group.element.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.element.js","sources":["../../../src/radio/radio-group.element.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\nimport { __decorate } from \"tslib\";\nimport { querySlotAll, id } from '@cds/core/internal';\nimport { CdsInternalControlGroup } from '@cds/core/forms';\n/**\n * Radio Group\n *\n * ```typescript\n * import '@cds/core/radio/register.js';\n * ```\n *\n * ```html\n * <cds-radio-group>\n * <label>radio group</label>\n * <cds-radio>\n * <label>item 1</label>\n * <input type=\"radio\" />\n * </cds-radio>\n *\n * <cds-radio>\n * <label>item 2</label>\n * <input type=\"radio\" />\n * </cds-radio>\n * </cds-radio-group>\n * ```\n *\n * @element cds-radio-group\n * @slot - For projecting cds-radio controls\n */\nexport class CdsRadioGroup extends CdsInternalControlGroup {\n static get styles() {\n return [...super.styles];\n }\n firstUpdated(props) {\n super.firstUpdated(props);\n this.associateRadioControls();\n this.syncRadioControls();\n }\n associateRadioControls() {\n this.controls.forEach(radio => {\n if (radio && !radio.inputControl.getAttribute('name')) {\n radio.inputControl.setAttribute('name', this.radioName);\n }\n });\n }\n syncRadioControls() {\n this.controls.forEach(c => c.addEventListener('checkedChange', (e) => {\n if (e.detail) {\n Array.from(this.controls).forEach(c => (c.inputControl.checked = false));\n e.target.inputControl.checked = true;\n }\n }));\n }\n}\n__decorate([\n querySlotAll('cds-radio, cds-radio')\n], CdsRadioGroup.prototype, \"controls\", void 0);\n__decorate([\n id()\n], CdsRadioGroup.prototype, \"radioName\", void 0);\n"],"names":["CdsRadioGroup","CdsInternalControlGroup","styles","super","firstUpdated","props","this","associateRadioControls","syncRadioControls","controls","forEach","radio","inputControl","getAttribute","setAttribute","radioName","c","addEventListener","e","detail","Array","from","checked","target","__decorate","querySlotAll","prototype","id"],"mappings":"uJAiCO,MAAMA,UAAsBC,EACpBC,oBACP,MAAO,IAAIC,MAAMD,QAErBE,aAAaC,GACTF,MAAMC,aAAaC,GACnBC,KAAKC,yBACLD,KAAKE,oBAETD,yBACID,KAAKG,SAASC,SAAQC,IACdA,IAAUA,EAAMC,aAAaC,aAAa,SAC1CF,EAAMC,aAAaE,aAAa,OAAQR,KAAKS,cAIzDP,oBACIF,KAAKG,SAASC,SAAQM,GAAKA,EAAEC,iBAAiB,iBAAkBC,IACxDA,EAAEC,SACFC,MAAMC,KAAKf,KAAKG,UAAUC,SAAQM,GAAMA,EAAEJ,aAAaU,SAAU,IACjEJ,EAAEK,OAAOX,aAAaU,SAAU,SAKhDE,EAAW,CACPC,EAAa,yBACdzB,EAAc0B,UAAW,gBAAY,GACxCF,EAAW,CACPG,KACD3B,EAAc0B,UAAW,iBAAa"}
1
+ {"version":3,"file":"radio-group.element.js","sources":["../../../src/radio/radio-group.element.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\nimport { __decorate } from \"tslib\";\nimport { querySlotAll, id } from '@cds/core/internal';\nimport { CdsInternalControlGroup } from '@cds/core/forms';\n/**\n * Radio Group\n *\n * ```typescript\n * import '@cds/core/radio/register.js';\n * ```\n *\n * ```html\n * <cds-radio-group>\n * <label>radio group</label>\n * <cds-radio>\n * <label>item 1</label>\n * <input type=\"radio\" />\n * </cds-radio>\n *\n * <cds-radio>\n * <label>item 2</label>\n * <input type=\"radio\" />\n * </cds-radio>\n * </cds-radio-group>\n * ```\n *\n * @element cds-radio-group\n * @slot - For projecting cds-radio controls\n */\nexport class CdsRadioGroup extends CdsInternalControlGroup {\n static get styles() {\n return [...super.styles];\n }\n firstUpdated(props) {\n super.firstUpdated(props);\n this.associateRadioControls();\n this.syncRadioControls();\n }\n associateRadioControls() {\n this.controls.forEach(radio => {\n if (radio && !radio.inputControl.getAttribute('name')) {\n radio.inputControl.setAttribute('name', this.radioName);\n }\n });\n }\n syncRadioControls() {\n this.controls.forEach(c => c.addEventListener('checkedChange', (e) => {\n if (e.detail) {\n Array.from(this.controls).forEach(c => (c.inputControl.checked = false));\n e.target.inputControl.checked = true;\n }\n }));\n }\n}\n__decorate([\n querySlotAll('cds-radio, cds-radio-panel')\n], CdsRadioGroup.prototype, \"controls\", void 0);\n__decorate([\n id()\n], CdsRadioGroup.prototype, \"radioName\", void 0);\n"],"names":["CdsRadioGroup","CdsInternalControlGroup","styles","super","firstUpdated","props","this","associateRadioControls","syncRadioControls","controls","forEach","radio","inputControl","getAttribute","setAttribute","radioName","c","addEventListener","e","detail","Array","from","checked","target","__decorate","querySlotAll","prototype","id"],"mappings":"uJAiCO,MAAMA,UAAsBC,EACpBC,oBACP,MAAO,IAAIC,MAAMD,QAErBE,aAAaC,GACTF,MAAMC,aAAaC,GACnBC,KAAKC,yBACLD,KAAKE,oBAETD,yBACID,KAAKG,SAASC,SAAQC,IACdA,IAAUA,EAAMC,aAAaC,aAAa,SAC1CF,EAAMC,aAAaE,aAAa,OAAQR,KAAKS,cAIzDP,oBACIF,KAAKG,SAASC,SAAQM,GAAKA,EAAEC,iBAAiB,iBAAkBC,IACxDA,EAAEC,SACFC,MAAMC,KAAKf,KAAKG,UAAUC,SAAQM,GAAMA,EAAEJ,aAAaU,SAAU,IACjEJ,EAAEK,OAAOX,aAAaU,SAAU,SAKhDE,EAAW,CACPC,EAAa,+BACdzB,EAAc0B,UAAW,gBAAY,GACxCF,EAAW,CACPG,KACD3B,EAAc0B,UAAW,iBAAa"}