scb-wc-test 0.1.205 → 0.1.206

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,4 +1,4 @@
1
- import{a as c,n as r,i as p,x as h,t as b}from"../../vendor/vendor.js";(function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(i,n,o){try{customElements.get(i)||e(i,n,o)}catch(l){var d=String(l||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var g=Object.defineProperty,u=Object.getOwnPropertyDescriptor,a=(t,e,i,n)=>{for(var o=n>1?void 0:n?u(e,i):e,d=t.length-1,l;d>=0;d--)(l=t[d])&&(o=(n?l(e,i,o):l(o))||o);return n&&o&&g(e,i,o),o};let s=class extends p{constructor(){super(...arguments),this._slotClickHandler=t=>{const e=this.shadowRoot?.querySelector("slot"),i=t.target;i&&i!==e&&i.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.sizing="fit-content",this.position="relative",this.positionTop=0,this.positionRight=void 0,this.positionSide="right",this.positionLeft=void 0,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){const t=this.shadowRoot?.querySelector("slot");this.autoHide&&t&&t.addEventListener("click",this._slotClickHandler)}updated(){const t=this.shadowRoot?.querySelector("slot");t&&(this.autoHide?t.addEventListener("click",this._slotClickHandler):t.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}mapSpacingToken(t){if(t==null)return;if(typeof t=="number"&&!Number.isNaN(t))return`${t}px`;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}render(){const t=this.mapSpacingToken(this.positionRight)??"var(--spacing-4)",e=this.mapSpacingToken(this.positionLeft)??"var(--spacing-4)",i=this.mapSpacingToken(this.positionTop)??"0px";this.style.setProperty("--scb-badge-absolute-top",i),this.style.setProperty("--scb-badge-absolute-right",t),this.style.setProperty("--scb-badge-absolute-left",e);let n=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(n=this.value.slice(0,4)+"+");const o=this.variant==="value"&&!this.value?"badge-value-empty":"",d=this._badgeVisible?"":"badge--hide",l=this.label||(this.variant==="dot"?"Indikator":`Märke: ${n}`);return h`
1
+ import{a as c,n as r,i as p,x as b,t as h}from"../../vendor/vendor.js";(function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(i,n,o){try{customElements.get(i)||e(i,n,o)}catch(l){var d=String(l||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var g=Object.defineProperty,u=Object.getOwnPropertyDescriptor,a=(t,e,i,n)=>{for(var o=n>1?void 0:n?u(e,i):e,d=t.length-1,l;d>=0;d--)(l=t[d])&&(o=(n?l(e,i,o):l(o))||o);return n&&o&&g(e,i,o),o};let s=class extends p{constructor(){super(...arguments),this._slotClickHandler=t=>{const e=this.shadowRoot?.querySelector("slot"),i=t.target;i&&i!==e&&i.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.sizing="fit-content",this.position="relative",this.positionTop=0,this.positionRight=void 0,this.positionSide="right",this.positionLeft=void 0,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){const t=this.shadowRoot?.querySelector("slot");this.autoHide&&t&&t.addEventListener("click",this._slotClickHandler)}updated(){const t=this.shadowRoot?.querySelector("slot");t&&(this.autoHide?t.addEventListener("click",this._slotClickHandler):t.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}mapSpacingToken(t){if(t==null)return;if(typeof t=="number"&&!Number.isNaN(t))return`${t}px`;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}render(){const t=this.mapSpacingToken(this.positionRight)??"var(--spacing-4)",e=this.mapSpacingToken(this.positionLeft)??"var(--spacing-4)",i=this.mapSpacingToken(this.positionTop)??"0px";this.style.setProperty("--scb-badge-absolute-top",i),this.style.setProperty("--scb-badge-absolute-right",t),this.style.setProperty("--scb-badge-absolute-left",e);let n=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(n=this.value.slice(0,4)+"+");const o=this.variant==="value"&&!this.value?"badge-value-empty":"",d=this._badgeVisible?"":"badge--hide",l=this.label||(this.variant==="dot"?"Indikator":`Märke: ${n}`);return b`
2
2
  <div class="badge-content">
3
3
  <slot></slot>
4
4
  <div
@@ -11,6 +11,7 @@ import{a as c,n as r,i as p,x as h,t as b}from"../../vendor/vendor.js";(function
11
11
  :host {
12
12
  display: block;
13
13
  position: relative;
14
+ overflow: visible;
14
15
  width: fit-content;
15
16
  --scb-badge-font-size: var(--scale-01);
16
17
  --scb-badge-line-height: 100%;
@@ -76,4 +77,4 @@ import{a as c,n as r,i as p,x as h,t as b}from"../../vendor/vendor.js";(function
76
77
  justify-content: center;
77
78
  gap: var(--scb-badge-relative-gap);
78
79
  }
79
- `;a([r({type:Boolean,reflect:!0,attribute:"auto-hide"})],s.prototype,"autoHide",2);a([r({type:String,reflect:!0})],s.prototype,"sizing",2);a([r({type:String,reflect:!0})],s.prototype,"position",2);a([r({type:String,attribute:"position-top"})],s.prototype,"positionTop",2);a([r({type:String,attribute:"position-right"})],s.prototype,"positionRight",2);a([r({type:String,reflect:!0,attribute:"position-side"})],s.prototype,"positionSide",2);a([r({type:String,attribute:"position-left"})],s.prototype,"positionLeft",2);a([r({type:String,reflect:!0})],s.prototype,"value",2);a([r({type:String,reflect:!0})],s.prototype,"label",2);a([r({type:Boolean,reflect:!0})],s.prototype,"hidden",2);a([r({type:String,reflect:!0})],s.prototype,"variant",2);s=a([b("scb-badge")],s);
80
+ `;a([r({type:Boolean,reflect:!0,attribute:"auto-hide"})],s.prototype,"autoHide",2);a([r({type:String,reflect:!0})],s.prototype,"sizing",2);a([r({type:String,reflect:!0})],s.prototype,"position",2);a([r({type:String,attribute:"position-top"})],s.prototype,"positionTop",2);a([r({type:String,attribute:"position-right"})],s.prototype,"positionRight",2);a([r({type:String,reflect:!0,attribute:"position-side"})],s.prototype,"positionSide",2);a([r({type:String,attribute:"position-left"})],s.prototype,"positionLeft",2);a([r({type:String,reflect:!0})],s.prototype,"value",2);a([r({type:String,reflect:!0})],s.prototype,"label",2);a([r({type:Boolean,reflect:!0})],s.prototype,"hidden",2);a([r({type:String,reflect:!0})],s.prototype,"variant",2);s=a([h("scb-badge")],s);
@@ -248,6 +248,10 @@ import{_ as f}from"../../vendor/preload-helper.js";import{a as $,n as a,i as k,x
248
248
  overflow: hidden;
249
249
  }
250
250
 
251
+ :host([type='social']) .scb-card {
252
+ overflow: visible;
253
+ }
254
+
251
255
  .scb-card:focus,
252
256
  .scb-card:focus-visible {
253
257
  outline: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scb-wc-test",
3
- "version": "0.1.205",
3
+ "version": "0.1.206",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -378,5 +378,5 @@
378
378
  },
379
379
  "./mvc/*": "./mvc/*"
380
380
  },
381
- "buildHash": "9963ED833FDCBC66A5A19D36260234144EBBC39003944C08CCC4D21E84B05E96"
381
+ "buildHash": "47658AE04D0AE346ACB7F9EB91808DF30150F60B70158103BDE24232E478E7C8"
382
382
  }
@@ -60,6 +60,7 @@ i.styles = p`
60
60
  :host {
61
61
  display: block;
62
62
  position: relative;
63
+ overflow: visible;
63
64
  width: fit-content;
64
65
  --scb-badge-font-size: var(--scale-01);
65
66
  --scb-badge-line-height: 100%;
@@ -357,6 +357,10 @@ t.styles = $`
357
357
  overflow: hidden;
358
358
  }
359
359
 
360
+ :host([type='social']) .scb-card {
361
+ overflow: visible;
362
+ }
363
+
360
364
  .scb-card:focus,
361
365
  .scb-card:focus-visible {
362
366
  outline: none;
@@ -3062,6 +3062,7 @@
3062
3062
  :host {
3063
3063
  display: block;
3064
3064
  position: relative;
3065
+ overflow: visible;
3065
3066
  width: fit-content;
3066
3067
  --scb-badge-font-size: var(--scale-01);
3067
3068
  --scb-badge-line-height: 100%;
@@ -5601,6 +5602,10 @@ ${this.value}</textarea
5601
5602
  overflow: hidden;
5602
5603
  }
5603
5604
 
5605
+ :host([type='social']) .scb-card {
5606
+ overflow: visible;
5607
+ }
5608
+
5604
5609
  .scb-card:focus,
5605
5610
  .scb-card:focus-visible {
5606
5611
  outline: none;