@everymatrix/general-registration-hsl 0.3.10 → 0.3.12
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.
|
@@ -12098,6 +12098,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12098
12098
|
overflow: hidden;
|
|
12099
12099
|
min-width: var(--lumo-size-m);
|
|
12100
12100
|
-webkit-user-select: none;
|
|
12101
|
+
-moz-user-select: none;
|
|
12101
12102
|
user-select: none;
|
|
12102
12103
|
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
12103
12104
|
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
@@ -12307,11 +12308,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12307
12308
|
}
|
|
12308
12309
|
`,{moduleId:"lumo-tab"});/**
|
|
12309
12310
|
* @license
|
|
12310
|
-
* Copyright (c) 2017 -
|
|
12311
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12311
12312
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12312
12313
|
*/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();}}};/**
|
|
12313
12314
|
* @license
|
|
12314
|
-
* Copyright (c) 2017 -
|
|
12315
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12315
12316
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12316
12317
|
*/const uh=p`
|
|
12317
12318
|
:host {
|
|
@@ -12334,7 +12335,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12334
12335
|
}
|
|
12335
12336
|
`;/**
|
|
12336
12337
|
* @license
|
|
12337
|
-
* Copyright (c) 2017 -
|
|
12338
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12338
12339
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12339
12340
|
*/m("vaadin-tab",uh,{moduleId:"vaadin-tab-styles"});class ph extends N(x(hh(F(b)))){static get template(){return g`
|
|
12340
12341
|
<slot></slot>
|
|
@@ -12579,11 +12580,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12579
12580
|
}
|
|
12580
12581
|
`,{moduleId:"lumo-tabs"});/**
|
|
12581
12582
|
* @license
|
|
12582
|
-
* Copyright (c) 2017 -
|
|
12583
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12583
12584
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12584
12585
|
*/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");}};/**
|
|
12585
12586
|
* @license
|
|
12586
|
-
* Copyright (c) 2017 -
|
|
12587
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12587
12588
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12588
12589
|
*/const fh=p`
|
|
12589
12590
|
:host {
|
|
@@ -12663,7 +12664,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12663
12664
|
}
|
|
12664
12665
|
`;/**
|
|
12665
12666
|
* @license
|
|
12666
|
-
* Copyright (c) 2017 -
|
|
12667
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12667
12668
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12668
12669
|
*/m("vaadin-tabs",fh,{moduleId:"vaadin-tabs-styles"});class _h extends mh(N(x(b))){static get template(){return g`
|
|
12669
12670
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
@@ -12094,6 +12094,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12094
12094
|
overflow: hidden;
|
|
12095
12095
|
min-width: var(--lumo-size-m);
|
|
12096
12096
|
-webkit-user-select: none;
|
|
12097
|
+
-moz-user-select: none;
|
|
12097
12098
|
user-select: none;
|
|
12098
12099
|
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
12099
12100
|
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
@@ -12303,11 +12304,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12303
12304
|
}
|
|
12304
12305
|
`,{moduleId:"lumo-tab"});/**
|
|
12305
12306
|
* @license
|
|
12306
|
-
* Copyright (c) 2017 -
|
|
12307
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12307
12308
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12308
12309
|
*/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();}}};/**
|
|
12309
12310
|
* @license
|
|
12310
|
-
* Copyright (c) 2017 -
|
|
12311
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12311
12312
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12312
12313
|
*/const uh=p`
|
|
12313
12314
|
:host {
|
|
@@ -12330,7 +12331,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12330
12331
|
}
|
|
12331
12332
|
`;/**
|
|
12332
12333
|
* @license
|
|
12333
|
-
* Copyright (c) 2017 -
|
|
12334
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12334
12335
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12335
12336
|
*/m("vaadin-tab",uh,{moduleId:"vaadin-tab-styles"});class ph extends N(x(hh(F(b)))){static get template(){return g`
|
|
12336
12337
|
<slot></slot>
|
|
@@ -12575,11 +12576,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12575
12576
|
}
|
|
12576
12577
|
`,{moduleId:"lumo-tabs"});/**
|
|
12577
12578
|
* @license
|
|
12578
|
-
* Copyright (c) 2017 -
|
|
12579
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12579
12580
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12580
12581
|
*/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");}};/**
|
|
12581
12582
|
* @license
|
|
12582
|
-
* Copyright (c) 2017 -
|
|
12583
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12583
12584
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12584
12585
|
*/const fh=p`
|
|
12585
12586
|
:host {
|
|
@@ -12659,7 +12660,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12659
12660
|
}
|
|
12660
12661
|
`;/**
|
|
12661
12662
|
* @license
|
|
12662
|
-
* Copyright (c) 2017 -
|
|
12663
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12663
12664
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12664
12665
|
*/m("vaadin-tabs",fh,{moduleId:"vaadin-tabs-styles"});class _h extends mh(N(x(b))){static get template(){return g`
|
|
12665
12666
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
@@ -6068,6 +6068,7 @@ const sd=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 sd=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 rd=t=>class extends(jc(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
|
Ts("vaadin-tab",fi`
|
|
@@ -6555,18 +6556,18 @@ Ts("vaadin-tab",fi`
|
|
|
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 ad=t=>class extends(Mc(qc(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(),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),n=t.getBoundingClientRect();return o>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:$c(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
|
Ts("vaadin-tabs",fi`
|