@everymatrix/lottery-ticket-controller 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.
|
@@ -6612,6 +6612,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6612
6612
|
overflow: hidden;
|
|
6613
6613
|
min-width: var(--lumo-size-m);
|
|
6614
6614
|
-webkit-user-select: none;
|
|
6615
|
+
-moz-user-select: none;
|
|
6615
6616
|
user-select: none;
|
|
6616
6617
|
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
6617
6618
|
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
@@ -6821,11 +6822,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6821
6822
|
}
|
|
6822
6823
|
`,{moduleId:"lumo-tab"});/**
|
|
6823
6824
|
* @license
|
|
6824
|
-
* Copyright (c) 2017 -
|
|
6825
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6825
6826
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6826
6827
|
*/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();}}};/**
|
|
6827
6828
|
* @license
|
|
6828
|
-
* Copyright (c) 2017 -
|
|
6829
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6829
6830
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6830
6831
|
*/const uh=p`
|
|
6831
6832
|
:host {
|
|
@@ -6848,7 +6849,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6848
6849
|
}
|
|
6849
6850
|
`;/**
|
|
6850
6851
|
* @license
|
|
6851
|
-
* Copyright (c) 2017 -
|
|
6852
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6852
6853
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6853
6854
|
*/m("vaadin-tab",uh,{moduleId:"vaadin-tab-styles"});class ph extends N(x(hh(F(b)))){static get template(){return g`
|
|
6854
6855
|
<slot></slot>
|
|
@@ -7093,11 +7094,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7093
7094
|
}
|
|
7094
7095
|
`,{moduleId:"lumo-tabs"});/**
|
|
7095
7096
|
* @license
|
|
7096
|
-
* Copyright (c) 2017 -
|
|
7097
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7097
7098
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7098
7099
|
*/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");}};/**
|
|
7099
7100
|
* @license
|
|
7100
|
-
* Copyright (c) 2017 -
|
|
7101
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7101
7102
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7102
7103
|
*/const fh=p`
|
|
7103
7104
|
:host {
|
|
@@ -7177,7 +7178,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7177
7178
|
}
|
|
7178
7179
|
`;/**
|
|
7179
7180
|
* @license
|
|
7180
|
-
* Copyright (c) 2017 -
|
|
7181
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7181
7182
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7182
7183
|
*/m("vaadin-tabs",fh,{moduleId:"vaadin-tabs-styles"});class _h extends mh(N(x(b))){static get template(){return g`
|
|
7183
7184
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
@@ -6608,6 +6608,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6608
6608
|
overflow: hidden;
|
|
6609
6609
|
min-width: var(--lumo-size-m);
|
|
6610
6610
|
-webkit-user-select: none;
|
|
6611
|
+
-moz-user-select: none;
|
|
6611
6612
|
user-select: none;
|
|
6612
6613
|
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
6613
6614
|
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
@@ -6817,11 +6818,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6817
6818
|
}
|
|
6818
6819
|
`,{moduleId:"lumo-tab"});/**
|
|
6819
6820
|
* @license
|
|
6820
|
-
* Copyright (c) 2017 -
|
|
6821
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6821
6822
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6822
6823
|
*/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();}}};/**
|
|
6823
6824
|
* @license
|
|
6824
|
-
* Copyright (c) 2017 -
|
|
6825
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6825
6826
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6826
6827
|
*/const uh=p`
|
|
6827
6828
|
:host {
|
|
@@ -6844,7 +6845,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6844
6845
|
}
|
|
6845
6846
|
`;/**
|
|
6846
6847
|
* @license
|
|
6847
|
-
* Copyright (c) 2017 -
|
|
6848
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6848
6849
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6849
6850
|
*/m("vaadin-tab",uh,{moduleId:"vaadin-tab-styles"});class ph extends N(x(hh(F(b)))){static get template(){return g`
|
|
6850
6851
|
<slot></slot>
|
|
@@ -7089,11 +7090,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7089
7090
|
}
|
|
7090
7091
|
`,{moduleId:"lumo-tabs"});/**
|
|
7091
7092
|
* @license
|
|
7092
|
-
* Copyright (c) 2017 -
|
|
7093
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7093
7094
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7094
7095
|
*/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");}};/**
|
|
7095
7096
|
* @license
|
|
7096
|
-
* Copyright (c) 2017 -
|
|
7097
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7097
7098
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7098
7099
|
*/const fh=p`
|
|
7099
7100
|
:host {
|
|
@@ -7173,7 +7174,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7173
7174
|
}
|
|
7174
7175
|
`;/**
|
|
7175
7176
|
* @license
|
|
7176
|
-
* Copyright (c) 2017 -
|
|
7177
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7177
7178
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7178
7179
|
*/m("vaadin-tabs",fh,{moduleId:"vaadin-tabs-styles"});class _h extends mh(N(x(b))){static get template(){return g`
|
|
7179
7180
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
@@ -6068,6 +6068,7 @@ const yl=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 yl=t=>class extends t{static get properties(){return{accessibleDescription
|
|
|
6278
6279
|
`,{moduleId:"lumo-tab"});
|
|
6279
6280
|
/**
|
|
6280
6281
|
* @license
|
|
6281
|
-
* Copyright (c) 2017 -
|
|
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 _l=t=>class extends(tl(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 -
|
|
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 -
|
|
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
|
Ht("vaadin-tab",E`
|
|
@@ -6555,18 +6556,18 @@ Ht("vaadin-tab",E`
|
|
|
6555
6556
|
`,{moduleId:"lumo-tabs"});
|
|
6556
6557
|
/**
|
|
6557
6558
|
* @license
|
|
6558
|
-
* Copyright (c) 2017 -
|
|
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 kl=t=>class extends(Yn(ol(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"),Ar(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(),s=[...this.items].reverse().find((s=>this._isItemVisible(s,t,e,i))).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let r;r=this.__isRTL?s.right-(i.right-o):s.left-(i.left+o),-this.__direction*r<1&&(r=-this.__direction*(this._scrollOffset-o)),this._scroll(r)}_scrollBack(){const t=this._getNavigationButtonVisibleWidth("forward-button"),e=this._getNavigationButtonVisibleWidth("back-button"),i=this._scrollerElement.getBoundingClientRect(),s=this.items.find((s=>this._isItemVisible(s,t,e,i))).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let r;r=this.__isRTL?s.left-(i.left+o):s.right-(i.right-o),this.__direction*r<1&&(r=this.__direction*(this._scrollOffset-o)),this._scroll(r)}_isItemVisible(t,e,i,s){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const o=s.right-(this.__isRTL?i:e),r=s.left+(this.__isRTL?e:i),a=t.getBoundingClientRect();return o>Math.floor(a.left)&&r<Math.ceil(a.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:il(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 -
|
|
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 -
|
|
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
|
Ht("vaadin-tabs",E`
|