@everymatrix/general-input 1.77.11 → 1.77.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.
@@ -12200,6 +12200,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12200
12200
  overflow: hidden;
12201
12201
  min-width: var(--lumo-size-m);
12202
12202
  -webkit-user-select: none;
12203
+ -moz-user-select: none;
12203
12204
  user-select: none;
12204
12205
  --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
12205
12206
  --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
@@ -12409,11 +12410,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12409
12410
  }
12410
12411
  `,{moduleId:"lumo-tab"});/**
12411
12412
  * @license
12412
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12413
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12413
12414
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12414
12415
  */const hh=s=>class extends $r(s){ready(){super.ready(),this.setAttribute("role","tab");}_onKeyUp(e){const i=this.hasAttribute("active");if(super._onKeyUp(e),i){const o=this.querySelector("a");o&&o.click();}}};/**
12415
12416
  * @license
12416
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12417
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12417
12418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12418
12419
  */const uh=p`
12419
12420
  :host {
@@ -12436,7 +12437,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12436
12437
  }
12437
12438
  `;/**
12438
12439
  * @license
12439
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12440
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12440
12441
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12441
12442
  */m("vaadin-tab",uh,{moduleId:"vaadin-tab-styles"});class ph extends N(x(hh(F(b)))){static get template(){return g`
12442
12443
  <slot></slot>
@@ -12681,11 +12682,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12681
12682
  }
12682
12683
  `,{moduleId:"lumo-tabs"});/**
12683
12684
  * @license
12684
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12685
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12685
12686
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12686
12687
  */const mh=s=>class extends Vr(Ur(s)){static get properties(){return {orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return ["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow());});}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return !this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),Ji(this,()=>{this._updateOverflow();});}_onResize(){this._updateOverflow();}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(i=>{this.__itemsResizeObserver.observe(i);}),this._updateOverflow();}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),i=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),n=[...this.items].reverse().find(c=>this._isItemVisible(c,e,i,o)).getBoundingClientRect(),l=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let d;if(this.__isRTL){const c=o.right-l;d=n.right-c;}else {const c=o.left+l;d=n.left-c;}-this.__direction*d<1&&(d=-this.__direction*(this._scrollOffset-l)),this._scroll(d);}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),i=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),n=this.items.find(c=>this._isItemVisible(c,e,i,o)).getBoundingClientRect(),l=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let d;if(this.__isRTL){const c=o.left+l;d=n.left-c;}else {const c=o.right-l;d=n.right-c;}this.__direction*d<1&&(d=this.__direction*(this._scrollOffset-l)),this._scroll(d);}_isItemVisible(e,i,o,r){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const n=this.__isRTL?o:i,a=this.__isRTL?i:o,l=r.right-n,d=r.left+a,c=e.getBoundingClientRect();return l>Math.floor(c.left)&&d<Math.ceil(c.right)}_getNavigationButtonVisibleWidth(e){const i=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(i).opacity==="0"?0:i.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Hr(this._scrollerElement,this.getAttribute("dir")),i=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let o=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(i-this._scrollOffset)&&(o+=" end"),this.__direction===1&&(o=o.replace(/start|end/giu,r=>r==="start"?"end":"start")),o?this.setAttribute("overflow",o.trim()):this.removeAttribute("overflow");}};/**
12687
12688
  * @license
12688
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12689
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12689
12690
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12690
12691
  */const fh=p`
12691
12692
  :host {
@@ -12765,7 +12766,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12765
12766
  }
12766
12767
  `;/**
12767
12768
  * @license
12768
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12769
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12769
12770
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12770
12771
  */m("vaadin-tabs",fh,{moduleId:"vaadin-tabs-styles"});class _h extends mh(N(x(b))){static get template(){return g`
12771
12772
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
@@ -12196,6 +12196,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12196
12196
  overflow: hidden;
12197
12197
  min-width: var(--lumo-size-m);
12198
12198
  -webkit-user-select: none;
12199
+ -moz-user-select: none;
12199
12200
  user-select: none;
12200
12201
  --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
12201
12202
  --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
@@ -12405,11 +12406,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12405
12406
  }
12406
12407
  `,{moduleId:"lumo-tab"});/**
12407
12408
  * @license
12408
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12409
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12409
12410
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12410
12411
  */const hh=s=>class extends $r(s){ready(){super.ready(),this.setAttribute("role","tab");}_onKeyUp(e){const i=this.hasAttribute("active");if(super._onKeyUp(e),i){const o=this.querySelector("a");o&&o.click();}}};/**
12411
12412
  * @license
12412
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12413
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12413
12414
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12414
12415
  */const uh=p`
12415
12416
  :host {
@@ -12432,7 +12433,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12432
12433
  }
12433
12434
  `;/**
12434
12435
  * @license
12435
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12436
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12436
12437
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12437
12438
  */m("vaadin-tab",uh,{moduleId:"vaadin-tab-styles"});class ph extends N(x(hh(F(b)))){static get template(){return g`
12438
12439
  <slot></slot>
@@ -12677,11 +12678,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12677
12678
  }
12678
12679
  `,{moduleId:"lumo-tabs"});/**
12679
12680
  * @license
12680
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12681
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12681
12682
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12682
12683
  */const mh=s=>class extends Vr(Ur(s)){static get properties(){return {orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return ["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow());});}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return !this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),Ji(this,()=>{this._updateOverflow();});}_onResize(){this._updateOverflow();}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(i=>{this.__itemsResizeObserver.observe(i);}),this._updateOverflow();}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),i=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),n=[...this.items].reverse().find(c=>this._isItemVisible(c,e,i,o)).getBoundingClientRect(),l=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let d;if(this.__isRTL){const c=o.right-l;d=n.right-c;}else {const c=o.left+l;d=n.left-c;}-this.__direction*d<1&&(d=-this.__direction*(this._scrollOffset-l)),this._scroll(d);}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),i=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),n=this.items.find(c=>this._isItemVisible(c,e,i,o)).getBoundingClientRect(),l=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let d;if(this.__isRTL){const c=o.left+l;d=n.left-c;}else {const c=o.right-l;d=n.right-c;}this.__direction*d<1&&(d=this.__direction*(this._scrollOffset-l)),this._scroll(d);}_isItemVisible(e,i,o,r){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const n=this.__isRTL?o:i,a=this.__isRTL?i:o,l=r.right-n,d=r.left+a,c=e.getBoundingClientRect();return l>Math.floor(c.left)&&d<Math.ceil(c.right)}_getNavigationButtonVisibleWidth(e){const i=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(i).opacity==="0"?0:i.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Hr(this._scrollerElement,this.getAttribute("dir")),i=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let o=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(i-this._scrollOffset)&&(o+=" end"),this.__direction===1&&(o=o.replace(/start|end/giu,r=>r==="start"?"end":"start")),o?this.setAttribute("overflow",o.trim()):this.removeAttribute("overflow");}};/**
12683
12684
  * @license
12684
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12685
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12685
12686
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12686
12687
  */const fh=p`
12687
12688
  :host {
@@ -12761,7 +12762,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12761
12762
  }
12762
12763
  `;/**
12763
12764
  * @license
12764
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
12765
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
12765
12766
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12766
12767
  */m("vaadin-tabs",fh,{moduleId:"vaadin-tabs-styles"});class _h extends mh(N(x(b))){static get template(){return g`
12767
12768
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
@@ -6068,6 +6068,7 @@ const ic=t=>class extends t{static get properties(){return{accessibleDescription
6068
6068
  overflow: hidden;
6069
6069
  min-width: var(--lumo-size-m);
6070
6070
  -webkit-user-select: none;
6071
+ -moz-user-select: none;
6071
6072
  user-select: none;
6072
6073
  --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
6073
6074
  --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
@@ -6278,18 +6279,18 @@ const ic=t=>class extends t{static get properties(){return{accessibleDescription
6278
6279
  `,{moduleId:"lumo-tab"});
6279
6280
  /**
6280
6281
  * @license
6281
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6282
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6282
6283
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6283
6284
  */
6284
6285
  const sc=t=>class extends(Bd(t)){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(t){const e=this.hasAttribute("active");if(super._onKeyUp(t),e){const t=this.querySelector("a");t&&t.click()}}}
6285
6286
  /**
6286
6287
  * @license
6287
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6288
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6288
6289
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6289
6290
  */;
6290
6291
  /**
6291
6292
  * @license
6292
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6293
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6293
6294
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6294
6295
  */
6295
6296
  To("vaadin-tab",vi`
@@ -6555,18 +6556,18 @@ To("vaadin-tab",vi`
6555
6556
  `,{moduleId:"lumo-tabs"});
6556
6557
  /**
6557
6558
  * @license
6558
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6559
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6559
6560
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6560
6561
  */
6561
6562
  const nc=t=>class extends(Dd($d(t))){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver((()=>{setTimeout((()=>this._updateOverflow()))}))}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",(()=>this._updateOverflow())),this.setAttribute("role","tablist"),dl(this,(()=>{this._updateOverflow()}))}_onResize(){this._updateOverflow()}__tabsItemsChanged(t){this.__itemsResizeObserver.disconnect(),(t||[]).forEach((t=>{this.__itemsResizeObserver.observe(t)})),this._updateOverflow()}_scrollForward(){const t=this._getNavigationButtonVisibleWidth("forward-button"),e=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=[...this.items].reverse().find((o=>this._isItemVisible(o,t,e,i))).getBoundingClientRect(),s=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let r;r=this.__isRTL?o.right-(i.right-s):o.left-(i.left+s),-this.__direction*r<1&&(r=-this.__direction*(this._scrollOffset-s)),this._scroll(r)}_scrollBack(){const t=this._getNavigationButtonVisibleWidth("forward-button"),e=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),o=this.items.find((o=>this._isItemVisible(o,t,e,i))).getBoundingClientRect(),s=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let r;r=this.__isRTL?o.left-(i.left+s):o.right-(i.right-s),this.__direction*r<1&&(r=this.__direction*(this._scrollOffset-s)),this._scroll(r)}_isItemVisible(t,e,i,o){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const s=o.right-(this.__isRTL?i:e),r=o.left+(this.__isRTL?e:i),n=t.getBoundingClientRect();return s>Math.floor(n.left)&&r<Math.ceil(n.right)}_getNavigationButtonVisibleWidth(t){const e=this.shadowRoot.querySelector(`[part="${t}"]`);return"0"===window.getComputedStyle(e).opacity?0:e.clientWidth}_updateOverflow(){const t=this._vertical?this._scrollerElement.scrollTop:Ld(this._scrollerElement,this.getAttribute("dir")),e=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let i=Math.floor(t)>1?"start":"";Math.ceil(t)<Math.ceil(e-this._scrollOffset)&&(i+=" end"),1===this.__direction&&(i=i.replace(/start|end/giu,(t=>"start"===t?"end":"start"))),i?this.setAttribute("overflow",i.trim()):this.removeAttribute("overflow")}}
6562
6563
  /**
6563
6564
  * @license
6564
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6565
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6565
6566
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6566
6567
  */;
6567
6568
  /**
6568
6569
  * @license
6569
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
6570
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
6570
6571
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6571
6572
  */
6572
6573
  To("vaadin-tabs",vi`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-input",
3
- "version": "1.77.11",
3
+ "version": "1.77.13",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",