@blueprintui/typewriter
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -1,1 +0,1 @@ | ||
import{__esDecorate as t,__runInitializers as e}from"tslib";import{LitElement as l,css as r,html as o}from"lit";import{keynav as n}from"../internals/controllers/keynav.controller.js";let s=(()=>{let s,i,a=[n((t=>({grid:t.grid,loop:t.loop,columns:t.columns})))],c=[],u=l;return class extends u{static{i=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;t(null,s={value:i},a,{kind:"class",name:i.name,metadata:e},null,c),i=s.value,e&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static{this.properties={columns:{type:Number},layout:{type:String},loop:{type:Boolean}}}constructor(){super(...arguments),this.layout="grid"}get grid(){return"inline"===this.layout?this.#t:this.#e}get#e(){const t=this.columns??getComputedStyle(this).getPropertyValue("grid-template-columns").split(" ").length,e=Array.from(this.querySelectorAll("*")),l=[];for(;e.length;)l.push(e.splice(0,t));return l}get#t(){return[Array.from(this.querySelectorAll(":scope > *"))].filter((t=>!0!==t.disabled))}static{this.styles=[r`:host,slot{display:contents}`]}#l=this.attachInternals();render(){return o`<slot role="presentation"></slot>`}connectedCallback(){super.connectedCallback(),this.#l.role="presentation"}static{e(i,c)}},i})();export{s as BpKeynav}; | ||
import{__esDecorate as t,__runInitializers as e}from"tslib";import{LitElement as s,css as o,html as a}from"lit";import{property as l}from"lit/decorators/property.js";import{keynav as r}from"../internals/controllers/keynav.controller.js";let i=(()=>{let i,n,c,u,m,p=[r((t=>({grid:t.grid,loop:t.loop,columns:t.columns})))],h=[],d=s,g=[],y=[],_=[],b=[],f=[],v=[];return class extends d{static{n=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;c=[l({type:Number})],u=[l({type:String})],m=[l({type:Boolean})],t(this,null,c,{kind:"accessor",name:"columns",static:!1,private:!1,access:{has:t=>"columns"in t,get:t=>t.columns,set:(t,e)=>{t.columns=e}},metadata:e},g,y),t(this,null,u,{kind:"accessor",name:"layout",static:!1,private:!1,access:{has:t=>"layout"in t,get:t=>t.layout,set:(t,e)=>{t.layout=e}},metadata:e},_,b),t(this,null,m,{kind:"accessor",name:"loop",static:!1,private:!1,access:{has:t=>"loop"in t,get:t=>t.loop,set:(t,e)=>{t.loop=e}},metadata:e},f,v),t(null,i={value:n},p,{kind:"class",name:n.name,metadata:e},null,h),n=i.value,e&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,g,void 0);get columns(){return this.#t}set columns(t){this.#t=t}#e=(e(this,y),e(this,_,"grid"));get layout(){return this.#e}set layout(t){this.#e=t}#s=(e(this,b),e(this,f,void 0));get loop(){return this.#s}set loop(t){this.#s=t}get grid(){return"inline"===this.layout?this.#o:this.#a}get#a(){const t=this.columns??getComputedStyle(this).getPropertyValue("grid-template-columns").split(" ").length,e=Array.from(this.querySelectorAll("*")),s=[];for(;e.length;)s.push(e.splice(0,t));return s}get#o(){return[Array.from(this.querySelectorAll(":scope > *"))].filter((t=>!0!==t.disabled))}static{this.styles=[o`:host,slot{display:contents}`]}#l=(e(this,v),this.attachInternals());render(){return a`<slot role="presentation"></slot>`}connectedCallback(){super.connectedCallback(),this.#l.role="presentation"}static{e(n,h)}},n})();export{i as BpKeynav}; |
{ | ||
"name": "@blueprintui/typewriter", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
Sorry, the diff of this file is not supported yet
47124
790